├── settings.gradle ├── gradle.properties ├── src └── main │ ├── AndroidManifest.xml │ └── java │ └── io │ └── openkruise │ └── client │ └── models │ ├── KruiseAppsV1alpha1ContainerProbeSpec.java │ ├── KruiseAppsV1alpha1PersistentPodAnnotation.java │ ├── KruiseAppsV1alpha1ResourceDistributionNamespace.java │ ├── KruiseAppsV1alpha1ImageStatus.java │ ├── KruiseAppsPubInPlaceUpdateStrategy.java │ ├── KruiseAppsPubUpdatePriorityOrderTerm.java │ ├── KruiseAppsV1alpha1NodePodProbeStatus.java │ ├── KruiseAppsV1alpha1NodePodProbeSpec.java │ ├── KruiseAppsV1alpha1EphemeralContainerTemplateSpec.java │ ├── KruiseAppsV1alpha1UpdateScatterTerm.java │ ├── KruiseAppsV1alpha1ManualUpdate.java │ ├── KruiseAppsV1alpha1NodeImageSpec.java │ ├── KruiseAppsV1beta1UnorderedUpdateStrategy.java │ ├── KruiseAppsV1alpha1NodeTopologyTerm.java │ ├── KruiseAppsV1alpha1Topology.java │ ├── KruiseAppsV1alpha1ReferenceObject.java │ ├── KruiseAppsV1alpha1CloneSetTemplateSpec.java │ ├── KruiseAppsV1alpha1PreferredTopologyTerm.java │ ├── KruiseAppsV1alpha1ResourceDistributionTargetNamespaces.java │ ├── KruiseAppsV1alpha1DeploymentTemplateSpec.java │ ├── KruiseAppsV1beta1StatefulSetScaleStrategy.java │ ├── KruiseAppsV1alpha1StatefulSetTemplateSpec.java │ ├── KruiseAppsV1alpha1AdvancedStatefulSetTemplateSpec.java │ ├── KruiseAppsV1alpha1FailurePolicy.java │ ├── KruiseAppsV1alpha1DaemonSetUpdateStrategy.java │ ├── KruiseAppsV1alpha1UnitedDeploymentUpdateStrategy.java │ ├── KruiseAppsV1alpha1ResourceDistributionSpec.java │ ├── KruiseAppsPubUpdatePriorityWeightTerm.java │ ├── KruiseAppsV1alpha1PullPolicy.java │ ├── KruiseAppsV1beta1StatefulSetUpdateStrategy.java │ ├── KruiseAppsV1alpha1CronJobTemplate.java │ ├── KruiseAppsV1alpha1SidecarSetPatchPodMetadata.java │ ├── KruiseAppsV1alpha1SidecarSetInjectionStrategy.java │ ├── KruiseAppsV1alpha1PodProbeMarkerStatus.java │ ├── KruiseAppsV1alpha1ContainerProbe.java │ ├── KruiseAppsV1alpha1UpdateStatus.java │ ├── KruiseAppsV1alpha1SandboxConfig.java │ ├── KruiseAppsV1alpha1PodProbeMarkerSpec.java │ ├── KruiseAppsV1alpha1SyncStatus.java │ ├── KruiseAppsPubLifecycle.java │ ├── KruiseAppsV1alpha1FailedImageStatus.java │ ├── KruiseAppsV1alpha1ContainerRecreateRequestContext.java │ ├── KruiseAppsV1alpha1TargetReference.java │ ├── KruiseAppsV1alpha1PersistentPodStateStatus.java │ ├── KruiseAppsV1alpha1WorkloadSpreadStatus.java │ ├── KruiseAppsV1alpha1AdvancedCronJobStatus.java │ ├── KruiseAppsV1alpha1PodProbe.java │ ├── KruiseAppsV1alpha1WorkloadSpreadSpec.java │ ├── KruiseAppsV1alpha1PodState.java │ ├── KruiseAppsV1alpha1PodProbeStatus.java │ ├── KruiseAppsV1beta1StatefulSetPersistentVolumeClaimRetentionPolicy.java │ ├── KruiseAppsV1alpha1ImagePullJobPodSelector.java │ └── KruiseAppsV1alpha1AdaptiveWorkloadSpreadStrategy.java ├── OWNERS ├── gradle └── wrapper │ └── gradle-wrapper.properties ├── .gitignore ├── git_push.sh ├── gradlew.bat └── README.md /settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = "client-java" -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Uncomment to build for Android 2 | #target = android -------------------------------------------------------------------------------- /src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /OWNERS: -------------------------------------------------------------------------------- 1 | # See: https://go.k8s.io/owners 2 | approvers: 3 | - Fei-Guo 4 | - FillZpp 5 | - furykerry 6 | - zmberg 7 | - veophi 8 | reviewers: 9 | - Fei-Guo 10 | - FillZpp 11 | - furykerry 12 | - zmberg 13 | - veophi 14 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Tue May 17 23:08:05 CST 2016 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.6-bin.zip 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled class file 2 | *.class 3 | 4 | # Log file 5 | *.log 6 | 7 | # BlueJ files 8 | *.ctxt 9 | 10 | # Mobile Tools for Java (J2ME) 11 | .mtj.tmp/ 12 | 13 | # Package Files # 14 | *.jar 15 | *.war 16 | *.nar 17 | *.ear 18 | *.zip 19 | *.tar.gz 20 | *.rar 21 | 22 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 23 | hs_err_pid* 24 | 25 | # build files 26 | **/target 27 | target 28 | .gradle 29 | build 30 | 31 | .idea/ 32 | *.iml -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1ContainerProbeSpec.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | import io.kubernetes.client.openapi.models.V1Probe; 16 | import io.swagger.annotations.ApiModel; 17 | import javax.annotation.Generated; 18 | 19 | /** 20 | * container probe spec 21 | */ 22 | @ApiModel(description = "container probe spec") 23 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 24 | public class KruiseAppsV1alpha1ContainerProbeSpec extends V1Probe { 25 | } 26 | 27 | -------------------------------------------------------------------------------- /git_push.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ 3 | # 4 | # Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" 5 | 6 | git_user_id=$1 7 | git_repo_id=$2 8 | release_note=$3 9 | 10 | if [ "$git_user_id" = "" ]; then 11 | git_user_id="kubernetes-client" 12 | echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" 13 | fi 14 | 15 | if [ "$git_repo_id" = "" ]; then 16 | git_repo_id="client-java" 17 | echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" 18 | fi 19 | 20 | if [ "$release_note" = "" ]; then 21 | release_note="Minor update" 22 | echo "[INFO] No command line input provided. Set \$release_note to $release_note" 23 | fi 24 | 25 | # Initialize the local directory as a Git repository 26 | git init 27 | 28 | # Adds the files in the local repository and stages them for commit. 29 | git add . 30 | 31 | # Commits the tracked changes and prepares them to be pushed to a remote repository. 32 | git commit -m "$release_note" 33 | 34 | # Sets the new remote 35 | git_remote=`git remote` 36 | if [ "$git_remote" = "" ]; then # git remote not defined 37 | 38 | if [ "$GIT_TOKEN" = "" ]; then 39 | echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment." 40 | git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git 41 | else 42 | git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git 43 | fi 44 | 45 | fi 46 | 47 | git pull origin master 48 | 49 | # Pushes (Forces) the changes in the local repository up to the remote repository 50 | echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" 51 | git push origin master 2>&1 | grep -v 'To https' 52 | 53 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windows variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1PersistentPodAnnotation.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModelProperty; 18 | import java.util.Objects; 19 | import javax.annotation.Generated; 20 | 21 | /** 22 | * KruiseAppsV1alpha1PersistentPodStateSpecPersistentPodAnnotations 23 | */ 24 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 25 | public class KruiseAppsV1alpha1PersistentPodAnnotation { 26 | @SerializedName("key") 27 | private String key = null; 28 | 29 | public KruiseAppsV1alpha1PersistentPodAnnotation key(String key) { 30 | this.key = key; 31 | return this; 32 | } 33 | 34 | /** 35 | * Get key 36 | * @return key 37 | **/ 38 | @ApiModelProperty(required = true, value = "") 39 | public String getKey() { 40 | return key; 41 | } 42 | 43 | public void setKey(String key) { 44 | this.key = key; 45 | } 46 | 47 | 48 | @Override 49 | public boolean equals(Object o) { 50 | if (this == o) { 51 | return true; 52 | } 53 | if (!(o instanceof KruiseAppsV1alpha1PersistentPodAnnotation)) { 54 | return false; 55 | } 56 | KruiseAppsV1alpha1PersistentPodAnnotation ioKruiseAppsV1alpha1PersistentPodStateSpecPersistentPodAnnotations = (KruiseAppsV1alpha1PersistentPodAnnotation) o; 57 | return Objects.equals(this.key, ioKruiseAppsV1alpha1PersistentPodStateSpecPersistentPodAnnotations.key); 58 | } 59 | 60 | @Override 61 | public int hashCode() { 62 | return Objects.hash(key); 63 | } 64 | 65 | 66 | @Override 67 | public String toString() { 68 | StringBuilder sb = new StringBuilder(); 69 | sb.append("class KruiseAppsV1alpha1PersistentPodStateSpecPersistentPodAnnotations {\n"); 70 | 71 | sb.append(" key: ").append(toIndentedString(key)).append("\n"); 72 | sb.append("}"); 73 | return sb.toString(); 74 | } 75 | 76 | /** 77 | * Convert the given object to string with each line indented by 4 spaces 78 | * (except the first line). 79 | */ 80 | private String toIndentedString(Object o) { 81 | if (o == null) { 82 | return "null"; 83 | } 84 | return o.toString().replace("\n", "\n "); 85 | } 86 | 87 | } 88 | 89 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1ResourceDistributionNamespace.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModel; 18 | import io.swagger.annotations.ApiModelProperty; 19 | import java.util.Objects; 20 | import javax.annotation.Generated; 21 | 22 | /** 23 | * ResourceDistributionNamespace contains a namespace name 24 | */ 25 | @ApiModel(description = "ResourceDistributionNamespace contains a namespace name") 26 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 27 | public class KruiseAppsV1alpha1ResourceDistributionNamespace { 28 | @SerializedName("name") 29 | private String name = null; 30 | 31 | public KruiseAppsV1alpha1ResourceDistributionNamespace name(String name) { 32 | this.name = name; 33 | return this; 34 | } 35 | 36 | /** 37 | * Namespace name 38 | * @return name 39 | **/ 40 | @ApiModelProperty(value = "Namespace name") 41 | public String getName() { 42 | return name; 43 | } 44 | 45 | public void setName(String name) { 46 | this.name = name; 47 | } 48 | 49 | 50 | @Override 51 | public boolean equals(Object o) { 52 | if (this == o) { 53 | return true; 54 | } 55 | if (!(o instanceof KruiseAppsV1alpha1ResourceDistributionNamespace)) { 56 | return false; 57 | } 58 | KruiseAppsV1alpha1ResourceDistributionNamespace ioKruiseAppsV1alpha1ResourceDistributionSpecTargetsExcludedNamespacesList = (KruiseAppsV1alpha1ResourceDistributionNamespace) o; 59 | return Objects.equals(this.name, ioKruiseAppsV1alpha1ResourceDistributionSpecTargetsExcludedNamespacesList.name); 60 | } 61 | 62 | @Override 63 | public int hashCode() { 64 | return Objects.hash(name); 65 | } 66 | 67 | 68 | @Override 69 | public String toString() { 70 | StringBuilder sb = new StringBuilder(); 71 | sb.append("class KruiseAppsV1alpha1ResourceDistributionSpecTargetsExcludedNamespacesList {\n"); 72 | 73 | sb.append(" name: ").append(toIndentedString(name)).append("\n"); 74 | sb.append("}"); 75 | return sb.toString(); 76 | } 77 | 78 | /** 79 | * Convert the given object to string with each line indented by 4 spaces 80 | * (except the first line). 81 | */ 82 | private String toIndentedString(Object o) { 83 | if (o == null) { 84 | return "null"; 85 | } 86 | return o.toString().replace("\n", "\n "); 87 | } 88 | 89 | } 90 | 91 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1ImageStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModel; 18 | import io.swagger.annotations.ApiModelProperty; 19 | import java.util.ArrayList; 20 | import java.util.List; 21 | import java.util.Objects; 22 | import javax.annotation.Generated; 23 | 24 | /** 25 | * ImageStatus defines the pulling status of an image 26 | */ 27 | @ApiModel(description = "ImageStatus defines the pulling status of an image") 28 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 29 | public class KruiseAppsV1alpha1ImageStatus { 30 | @SerializedName("tags") 31 | private List tags = new ArrayList(); 32 | 33 | public KruiseAppsV1alpha1ImageStatus tags(List tags) { 34 | this.tags = tags; 35 | return this; 36 | } 37 | 38 | public KruiseAppsV1alpha1ImageStatus addTagsItem(KruiseAppsV1alpha1ImageTagStatus tagsItem) { 39 | this.tags.add(tagsItem); 40 | return this; 41 | } 42 | 43 | /** 44 | * Represents statuses of pulling tasks on this node 45 | * @return tags 46 | **/ 47 | @ApiModelProperty(required = true, value = "Represents statuses of pulling tasks on this node") 48 | public List getTags() { 49 | return tags; 50 | } 51 | 52 | public void setTags(List tags) { 53 | this.tags = tags; 54 | } 55 | 56 | 57 | @Override 58 | public boolean equals(Object o) { 59 | if (this == o) { 60 | return true; 61 | } 62 | if (!(o instanceof KruiseAppsV1alpha1ImageStatus)) { 63 | return false; 64 | } 65 | KruiseAppsV1alpha1ImageStatus ioKruiseAppsV1alpha1NodeImageStatusImageStatuses = (KruiseAppsV1alpha1ImageStatus) o; 66 | return Objects.equals(this.tags, ioKruiseAppsV1alpha1NodeImageStatusImageStatuses.tags); 67 | } 68 | 69 | @Override 70 | public int hashCode() { 71 | return Objects.hash(tags); 72 | } 73 | 74 | 75 | @Override 76 | public String toString() { 77 | StringBuilder sb = new StringBuilder(); 78 | sb.append("class KruiseAppsV1alpha1NodeImageStatusImageStatuses {\n"); 79 | 80 | sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); 81 | sb.append("}"); 82 | return sb.toString(); 83 | } 84 | 85 | /** 86 | * Convert the given object to string with each line indented by 4 spaces 87 | * (except the first line). 88 | */ 89 | private String toIndentedString(Object o) { 90 | if (o == null) { 91 | return "null"; 92 | } 93 | return o.toString().replace("\n", "\n "); 94 | } 95 | 96 | } 97 | 98 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsPubInPlaceUpdateStrategy.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModel; 18 | import io.swagger.annotations.ApiModelProperty; 19 | import java.util.Objects; 20 | import javax.annotation.Generated; 21 | 22 | /** 23 | * InPlaceUpdateStrategy contains strategies for in-place update. 24 | */ 25 | @ApiModel(description = "InPlaceUpdateStrategy contains strategies for in-place update.") 26 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 27 | public class KruiseAppsPubInPlaceUpdateStrategy { 28 | @SerializedName("gracePeriodSeconds") 29 | private Integer gracePeriodSeconds = null; 30 | 31 | public KruiseAppsPubInPlaceUpdateStrategy gracePeriodSeconds(Integer gracePeriodSeconds) { 32 | this.gracePeriodSeconds = gracePeriodSeconds; 33 | return this; 34 | } 35 | 36 | /** 37 | * GracePeriodSeconds is the timespan between set Pod status to not-ready and update images in Pod spec when in-place update a Pod. 38 | * @return gracePeriodSeconds 39 | **/ 40 | @ApiModelProperty(value = "GracePeriodSeconds is the timespan between set Pod status to not-ready and update images in Pod spec when in-place update a Pod.") 41 | public Integer getGracePeriodSeconds() { 42 | return gracePeriodSeconds; 43 | } 44 | 45 | public void setGracePeriodSeconds(Integer gracePeriodSeconds) { 46 | this.gracePeriodSeconds = gracePeriodSeconds; 47 | } 48 | 49 | 50 | @Override 51 | public boolean equals(Object o) { 52 | if (this == o) { 53 | return true; 54 | } 55 | if (!(o instanceof KruiseAppsPubInPlaceUpdateStrategy)) { 56 | return false; 57 | } 58 | KruiseAppsPubInPlaceUpdateStrategy ioKruiseAppsV1alpha1CloneSetSpecUpdateStrategyInPlaceUpdateStrategy = (KruiseAppsPubInPlaceUpdateStrategy) o; 59 | return Objects.equals(this.gracePeriodSeconds, ioKruiseAppsV1alpha1CloneSetSpecUpdateStrategyInPlaceUpdateStrategy.gracePeriodSeconds); 60 | } 61 | 62 | @Override 63 | public int hashCode() { 64 | return Objects.hash(gracePeriodSeconds); 65 | } 66 | 67 | 68 | @Override 69 | public String toString() { 70 | StringBuilder sb = new StringBuilder(); 71 | sb.append("class KruiseAppsV1alpha1CloneSetSpecUpdateStrategyInPlaceUpdateStrategy {\n"); 72 | 73 | sb.append(" gracePeriodSeconds: ").append(toIndentedString(gracePeriodSeconds)).append("\n"); 74 | sb.append("}"); 75 | return sb.toString(); 76 | } 77 | 78 | /** 79 | * Convert the given object to string with each line indented by 4 spaces 80 | * (except the first line). 81 | */ 82 | private String toIndentedString(Object o) { 83 | if (o == null) { 84 | return "null"; 85 | } 86 | return o.toString().replace("\n", "\n "); 87 | } 88 | 89 | } 90 | 91 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsPubUpdatePriorityOrderTerm.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModel; 18 | import io.swagger.annotations.ApiModelProperty; 19 | import java.util.Objects; 20 | import javax.annotation.Generated; 21 | 22 | /** 23 | * UpdatePriorityOrderTerm defines order priority. 24 | */ 25 | @ApiModel(description = "UpdatePriorityOrderTerm defines order priority.") 26 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 27 | public class KruiseAppsPubUpdatePriorityOrderTerm { 28 | @SerializedName("orderedKey") 29 | private String orderedKey = null; 30 | 31 | public KruiseAppsPubUpdatePriorityOrderTerm orderedKey(String orderedKey) { 32 | this.orderedKey = orderedKey; 33 | return this; 34 | } 35 | 36 | /** 37 | * Calculate priority by value of this key. Values of this key, will be sorted by GetInt(val). GetInt method will find the last int in value, such as getting 5 in value '5', getting 10 in value 'sts-10'. 38 | * @return orderedKey 39 | **/ 40 | @ApiModelProperty(required = true, value = "Calculate priority by value of this key. Values of this key, will be sorted by GetInt(val). GetInt method will find the last int in value, such as getting 5 in value '5', getting 10 in value 'sts-10'.") 41 | public String getOrderedKey() { 42 | return orderedKey; 43 | } 44 | 45 | public void setOrderedKey(String orderedKey) { 46 | this.orderedKey = orderedKey; 47 | } 48 | 49 | 50 | @Override 51 | public boolean equals(Object o) { 52 | if (this == o) { 53 | return true; 54 | } 55 | if (!(o instanceof KruiseAppsPubUpdatePriorityOrderTerm)) { 56 | return false; 57 | } 58 | KruiseAppsPubUpdatePriorityOrderTerm ioKruiseAppsV1alpha1CloneSetSpecUpdateStrategyPriorityStrategyOrderPriority = (KruiseAppsPubUpdatePriorityOrderTerm) o; 59 | return Objects.equals(this.orderedKey, ioKruiseAppsV1alpha1CloneSetSpecUpdateStrategyPriorityStrategyOrderPriority.orderedKey); 60 | } 61 | 62 | @Override 63 | public int hashCode() { 64 | return Objects.hash(orderedKey); 65 | } 66 | 67 | 68 | @Override 69 | public String toString() { 70 | StringBuilder sb = new StringBuilder(); 71 | sb.append("class KruiseAppsV1alpha1CloneSetSpecUpdateStrategyPriorityStrategyOrderPriority {\n"); 72 | 73 | sb.append(" orderedKey: ").append(toIndentedString(orderedKey)).append("\n"); 74 | sb.append("}"); 75 | return sb.toString(); 76 | } 77 | 78 | /** 79 | * Convert the given object to string with each line indented by 4 spaces 80 | * (except the first line). 81 | */ 82 | private String toIndentedString(Object o) { 83 | if (o == null) { 84 | return "null"; 85 | } 86 | return o.toString().replace("\n", "\n "); 87 | } 88 | 89 | } 90 | 91 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1NodePodProbeStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModelProperty; 18 | import java.util.ArrayList; 19 | import java.util.List; 20 | import java.util.Objects; 21 | import javax.annotation.Generated; 22 | 23 | /** 24 | * KruiseAppsV1alpha1NodePodProbeStatus 25 | */ 26 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 27 | public class KruiseAppsV1alpha1NodePodProbeStatus { 28 | @SerializedName("podProbeStatuses") 29 | private List podProbeStatuses = null; 30 | 31 | public KruiseAppsV1alpha1NodePodProbeStatus podProbeStatuses(List podProbeStatuses) { 32 | this.podProbeStatuses = podProbeStatuses; 33 | return this; 34 | } 35 | 36 | public KruiseAppsV1alpha1NodePodProbeStatus addPodProbeStatusesItem(KruiseAppsV1alpha1PodProbeStatus podProbeStatusesItem) { 37 | if (this.podProbeStatuses == null) { 38 | this.podProbeStatuses = new ArrayList(); 39 | } 40 | this.podProbeStatuses.add(podProbeStatusesItem); 41 | return this; 42 | } 43 | 44 | /** 45 | * pod probe results 46 | * @return podProbeStatuses 47 | **/ 48 | @ApiModelProperty(value = "pod probe results") 49 | public List getPodProbeStatuses() { 50 | return podProbeStatuses; 51 | } 52 | 53 | public void setPodProbeStatuses(List podProbeStatuses) { 54 | this.podProbeStatuses = podProbeStatuses; 55 | } 56 | 57 | 58 | @Override 59 | public boolean equals(Object o) { 60 | if (this == o) { 61 | return true; 62 | } 63 | if (!(o instanceof KruiseAppsV1alpha1NodePodProbeStatus)) { 64 | return false; 65 | } 66 | KruiseAppsV1alpha1NodePodProbeStatus ioKruiseAppsV1alpha1NodePodProbeStatus = (KruiseAppsV1alpha1NodePodProbeStatus) o; 67 | return Objects.equals(this.podProbeStatuses, ioKruiseAppsV1alpha1NodePodProbeStatus.podProbeStatuses); 68 | } 69 | 70 | @Override 71 | public int hashCode() { 72 | return Objects.hash(podProbeStatuses); 73 | } 74 | 75 | 76 | @Override 77 | public String toString() { 78 | StringBuilder sb = new StringBuilder(); 79 | sb.append("class KruiseAppsV1alpha1NodePodProbeStatus {\n"); 80 | 81 | sb.append(" podProbeStatuses: ").append(toIndentedString(podProbeStatuses)).append("\n"); 82 | sb.append("}"); 83 | return sb.toString(); 84 | } 85 | 86 | /** 87 | * Convert the given object to string with each line indented by 4 spaces 88 | * (except the first line). 89 | */ 90 | private String toIndentedString(Object o) { 91 | if (o == null) { 92 | return "null"; 93 | } 94 | return o.toString().replace("\n", "\n "); 95 | } 96 | 97 | } 98 | 99 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1NodePodProbeSpec.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModel; 18 | import io.swagger.annotations.ApiModelProperty; 19 | import java.util.ArrayList; 20 | import java.util.List; 21 | import java.util.Objects; 22 | import javax.annotation.Generated; 23 | 24 | /** 25 | * NodePodProbeSpec defines the desired state of NodePodProbe 26 | */ 27 | @ApiModel(description = "NodePodProbeSpec defines the desired state of NodePodProbe") 28 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 29 | public class KruiseAppsV1alpha1NodePodProbeSpec { 30 | @SerializedName("podProbes") 31 | private List podProbes = null; 32 | 33 | public KruiseAppsV1alpha1NodePodProbeSpec podProbes(List podProbes) { 34 | this.podProbes = podProbes; 35 | return this; 36 | } 37 | 38 | public KruiseAppsV1alpha1NodePodProbeSpec addPodProbesItem(KruiseAppsV1alpha1PodProbe podProbesItem) { 39 | if (this.podProbes == null) { 40 | this.podProbes = new ArrayList(); 41 | } 42 | this.podProbes.add(podProbesItem); 43 | return this; 44 | } 45 | 46 | /** 47 | * Get podProbes 48 | * @return podProbes 49 | **/ 50 | @ApiModelProperty(value = "") 51 | public List getPodProbes() { 52 | return podProbes; 53 | } 54 | 55 | public void setPodProbes(List podProbes) { 56 | this.podProbes = podProbes; 57 | } 58 | 59 | 60 | @Override 61 | public boolean equals(Object o) { 62 | if (this == o) { 63 | return true; 64 | } 65 | if (!(o instanceof KruiseAppsV1alpha1NodePodProbeSpec)) { 66 | return false; 67 | } 68 | KruiseAppsV1alpha1NodePodProbeSpec ioKruiseAppsV1alpha1NodePodProbeSpec = (KruiseAppsV1alpha1NodePodProbeSpec) o; 69 | return Objects.equals(this.podProbes, ioKruiseAppsV1alpha1NodePodProbeSpec.podProbes); 70 | } 71 | 72 | @Override 73 | public int hashCode() { 74 | return Objects.hash(podProbes); 75 | } 76 | 77 | 78 | @Override 79 | public String toString() { 80 | StringBuilder sb = new StringBuilder(); 81 | sb.append("class KruiseAppsV1alpha1NodePodProbeSpec {\n"); 82 | 83 | sb.append(" podProbes: ").append(toIndentedString(podProbes)).append("\n"); 84 | sb.append("}"); 85 | return sb.toString(); 86 | } 87 | 88 | /** 89 | * Convert the given object to string with each line indented by 4 spaces 90 | * (except the first line). 91 | */ 92 | private String toIndentedString(Object o) { 93 | if (o == null) { 94 | return "null"; 95 | } 96 | return o.toString().replace("\n", "\n "); 97 | } 98 | 99 | } 100 | 101 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1EphemeralContainerTemplateSpec.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.kubernetes.client.openapi.models.V1EphemeralContainer; 18 | import io.swagger.annotations.ApiModel; 19 | import io.swagger.annotations.ApiModelProperty; 20 | import java.util.List; 21 | import java.util.Objects; 22 | import javax.annotation.Generated; 23 | 24 | /** 25 | * Template describes the ephemeral container that will be created. 26 | */ 27 | @ApiModel(description = "Template describes the ephemeral container that will be created.") 28 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 29 | public class KruiseAppsV1alpha1EphemeralContainerTemplateSpec { 30 | @SerializedName("ephemeralContainers") 31 | private List ephemeralContainers = null; 32 | 33 | public KruiseAppsV1alpha1EphemeralContainerTemplateSpec ephemeralContainers(List ephemeralContainers) { 34 | this.ephemeralContainers = ephemeralContainers; 35 | return this; 36 | } 37 | 38 | /** 39 | * EphemeralContainers defines ephemeral container list in match pods. 40 | * @return ephemeralContainers 41 | **/ 42 | @ApiModelProperty(required = true, value = "EphemeralContainers defines ephemeral container list in match pods.") 43 | public List getEphemeralContainers() { 44 | return ephemeralContainers; 45 | } 46 | 47 | public void setEphemeralContainers(List ephemeralContainers) { 48 | this.ephemeralContainers = ephemeralContainers; 49 | } 50 | 51 | 52 | @Override 53 | public boolean equals(Object o) { 54 | if (this == o) { 55 | return true; 56 | } 57 | if (!(o instanceof KruiseAppsV1alpha1EphemeralContainerTemplateSpec)) { 58 | return false; 59 | } 60 | KruiseAppsV1alpha1EphemeralContainerTemplateSpec ioKruiseAppsV1alpha1EphemeralJobSpecTemplate = (KruiseAppsV1alpha1EphemeralContainerTemplateSpec) o; 61 | return Objects.equals(this.ephemeralContainers, ioKruiseAppsV1alpha1EphemeralJobSpecTemplate.ephemeralContainers); 62 | } 63 | 64 | @Override 65 | public int hashCode() { 66 | return Objects.hash(ephemeralContainers); 67 | } 68 | 69 | 70 | @Override 71 | public String toString() { 72 | StringBuilder sb = new StringBuilder(); 73 | sb.append("class KruiseAppsV1alpha1EphemeralJobSpecTemplate {\n"); 74 | 75 | sb.append(" ephemeralContainers: ").append(toIndentedString(ephemeralContainers)).append("\n"); 76 | sb.append("}"); 77 | return sb.toString(); 78 | } 79 | 80 | /** 81 | * Convert the given object to string with each line indented by 4 spaces 82 | * (except the first line). 83 | */ 84 | private String toIndentedString(Object o) { 85 | if (o == null) { 86 | return "null"; 87 | } 88 | return o.toString().replace("\n", "\n "); 89 | } 90 | 91 | } 92 | 93 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1UpdateScatterTerm.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModelProperty; 18 | import java.util.Objects; 19 | import javax.annotation.Generated; 20 | 21 | /** 22 | * KruiseAppsV1alpha1CloneSetSpecUpdateStrategyScatterStrategy 23 | */ 24 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 25 | public class KruiseAppsV1alpha1UpdateScatterTerm { 26 | @SerializedName("key") 27 | private String key = null; 28 | 29 | @SerializedName("value") 30 | private String value = null; 31 | 32 | public KruiseAppsV1alpha1UpdateScatterTerm key(String key) { 33 | this.key = key; 34 | return this; 35 | } 36 | 37 | /** 38 | * Get key 39 | * @return key 40 | **/ 41 | @ApiModelProperty(required = true, value = "") 42 | public String getKey() { 43 | return key; 44 | } 45 | 46 | public void setKey(String key) { 47 | this.key = key; 48 | } 49 | 50 | public KruiseAppsV1alpha1UpdateScatterTerm value(String value) { 51 | this.value = value; 52 | return this; 53 | } 54 | 55 | /** 56 | * Get value 57 | * @return value 58 | **/ 59 | @ApiModelProperty(required = true, value = "") 60 | public String getValue() { 61 | return value; 62 | } 63 | 64 | public void setValue(String value) { 65 | this.value = value; 66 | } 67 | 68 | 69 | @Override 70 | public boolean equals(Object o) { 71 | if (this == o) { 72 | return true; 73 | } 74 | if (!(o instanceof KruiseAppsV1alpha1UpdateScatterTerm)) { 75 | return false; 76 | } 77 | KruiseAppsV1alpha1UpdateScatterTerm ioKruiseAppsV1alpha1CloneSetSpecUpdateStrategyScatterStrategy = (KruiseAppsV1alpha1UpdateScatterTerm) o; 78 | return Objects.equals(this.key, ioKruiseAppsV1alpha1CloneSetSpecUpdateStrategyScatterStrategy.key) && 79 | Objects.equals(this.value, ioKruiseAppsV1alpha1CloneSetSpecUpdateStrategyScatterStrategy.value); 80 | } 81 | 82 | @Override 83 | public int hashCode() { 84 | return Objects.hash(key, value); 85 | } 86 | 87 | 88 | @Override 89 | public String toString() { 90 | StringBuilder sb = new StringBuilder(); 91 | sb.append("class KruiseAppsV1alpha1CloneSetSpecUpdateStrategyScatterStrategy {\n"); 92 | 93 | sb.append(" key: ").append(toIndentedString(key)).append("\n"); 94 | sb.append(" value: ").append(toIndentedString(value)).append("\n"); 95 | sb.append("}"); 96 | return sb.toString(); 97 | } 98 | 99 | /** 100 | * Convert the given object to string with each line indented by 4 spaces 101 | * (except the first line). 102 | */ 103 | private String toIndentedString(Object o) { 104 | if (o == null) { 105 | return "null"; 106 | } 107 | return o.toString().replace("\n", "\n "); 108 | } 109 | 110 | } 111 | 112 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1ManualUpdate.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModel; 18 | import io.swagger.annotations.ApiModelProperty; 19 | import java.util.HashMap; 20 | import java.util.Map; 21 | import java.util.Objects; 22 | import javax.annotation.Generated; 23 | 24 | /** 25 | * Includes all of the parameters a Manual update strategy needs. 26 | */ 27 | @ApiModel(description = "Includes all of the parameters a Manual update strategy needs.") 28 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 29 | public class KruiseAppsV1alpha1ManualUpdate { 30 | @SerializedName("partitions") 31 | private Map partitions = null; 32 | 33 | public KruiseAppsV1alpha1ManualUpdate partitions(Map partitions) { 34 | this.partitions = partitions; 35 | return this; 36 | } 37 | 38 | public KruiseAppsV1alpha1ManualUpdate putPartitionsItem(String key, Integer partitionsItem) { 39 | if (this.partitions == null) { 40 | this.partitions = new HashMap(); 41 | } 42 | this.partitions.put(key, partitionsItem); 43 | return this; 44 | } 45 | 46 | /** 47 | * Indicates number of subset partition. 48 | * @return partitions 49 | **/ 50 | @ApiModelProperty(value = "Indicates number of subset partition.") 51 | public Map getPartitions() { 52 | return partitions; 53 | } 54 | 55 | public void setPartitions(Map partitions) { 56 | this.partitions = partitions; 57 | } 58 | 59 | 60 | @Override 61 | public boolean equals(Object o) { 62 | if (this == o) { 63 | return true; 64 | } 65 | if (!(o instanceof KruiseAppsV1alpha1ManualUpdate)) { 66 | return false; 67 | } 68 | KruiseAppsV1alpha1ManualUpdate ioKruiseAppsV1alpha1UnitedDeploymentSpecUpdateStrategyManualUpdate = (KruiseAppsV1alpha1ManualUpdate) o; 69 | return Objects.equals(this.partitions, ioKruiseAppsV1alpha1UnitedDeploymentSpecUpdateStrategyManualUpdate.partitions); 70 | } 71 | 72 | @Override 73 | public int hashCode() { 74 | return Objects.hash(partitions); 75 | } 76 | 77 | 78 | @Override 79 | public String toString() { 80 | StringBuilder sb = new StringBuilder(); 81 | sb.append("class KruiseAppsV1alpha1UnitedDeploymentSpecUpdateStrategyManualUpdate {\n"); 82 | 83 | sb.append(" partitions: ").append(toIndentedString(partitions)).append("\n"); 84 | sb.append("}"); 85 | return sb.toString(); 86 | } 87 | 88 | /** 89 | * Convert the given object to string with each line indented by 4 spaces 90 | * (except the first line). 91 | */ 92 | private String toIndentedString(Object o) { 93 | if (o == null) { 94 | return "null"; 95 | } 96 | return o.toString().replace("\n", "\n "); 97 | } 98 | 99 | } 100 | 101 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1NodeImageSpec.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModel; 18 | import io.swagger.annotations.ApiModelProperty; 19 | import java.util.HashMap; 20 | import java.util.Map; 21 | import java.util.Objects; 22 | import javax.annotation.Generated; 23 | 24 | /** 25 | * NodeImageSpec defines the desired state of NodeImage 26 | */ 27 | @ApiModel(description = "NodeImageSpec defines the desired state of NodeImage") 28 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 29 | public class KruiseAppsV1alpha1NodeImageSpec { 30 | @SerializedName("images") 31 | private Map images = null; 32 | 33 | public KruiseAppsV1alpha1NodeImageSpec images(Map images) { 34 | this.images = images; 35 | return this; 36 | } 37 | 38 | public KruiseAppsV1alpha1NodeImageSpec putImagesItem(String key, KruiseAppsV1alpha1ImageSpec imagesItem) { 39 | if (this.images == null) { 40 | this.images = new HashMap(); 41 | } 42 | this.images.put(key, imagesItem); 43 | return this; 44 | } 45 | 46 | /** 47 | * Specifies images to be pulled on this node It can not be more than 256 for each NodeImage 48 | * @return images 49 | **/ 50 | @ApiModelProperty(value = "Specifies images to be pulled on this node It can not be more than 256 for each NodeImage") 51 | public Map getImages() { 52 | return images; 53 | } 54 | 55 | public void setImages(Map images) { 56 | this.images = images; 57 | } 58 | 59 | 60 | @Override 61 | public boolean equals(Object o) { 62 | if (this == o) { 63 | return true; 64 | } 65 | if (!(o instanceof KruiseAppsV1alpha1NodeImageSpec)) { 66 | return false; 67 | } 68 | KruiseAppsV1alpha1NodeImageSpec ioKruiseAppsV1alpha1NodeImageSpec = (KruiseAppsV1alpha1NodeImageSpec) o; 69 | return Objects.equals(this.images, ioKruiseAppsV1alpha1NodeImageSpec.images); 70 | } 71 | 72 | @Override 73 | public int hashCode() { 74 | return Objects.hash(images); 75 | } 76 | 77 | 78 | @Override 79 | public String toString() { 80 | StringBuilder sb = new StringBuilder(); 81 | sb.append("class KruiseAppsV1alpha1NodeImageSpec {\n"); 82 | 83 | sb.append(" images: ").append(toIndentedString(images)).append("\n"); 84 | sb.append("}"); 85 | return sb.toString(); 86 | } 87 | 88 | /** 89 | * Convert the given object to string with each line indented by 4 spaces 90 | * (except the first line). 91 | */ 92 | private String toIndentedString(Object o) { 93 | if (o == null) { 94 | return "null"; 95 | } 96 | return o.toString().replace("\n", "\n "); 97 | } 98 | 99 | } 100 | 101 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1beta1UnorderedUpdateStrategy.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModel; 18 | import io.swagger.annotations.ApiModelProperty; 19 | import java.util.Objects; 20 | import javax.annotation.Generated; 21 | 22 | /** 23 | * UnorderedUpdate contains strategies for non-ordered update. If it is not nil, pods will be updated with non-ordered sequence. Noted that UnorderedUpdate can only be allowed to work with Parallel podManagementPolicy 24 | */ 25 | @ApiModel(description = "UnorderedUpdate contains strategies for non-ordered update. If it is not nil, pods will be updated with non-ordered sequence. Noted that UnorderedUpdate can only be allowed to work with Parallel podManagementPolicy") 26 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 27 | public class KruiseAppsV1beta1UnorderedUpdateStrategy { 28 | @SerializedName("priorityStrategy") 29 | private KruiseAppsPubUpdatePriorityStrategy priorityStrategy = null; 30 | 31 | public KruiseAppsV1beta1UnorderedUpdateStrategy priorityStrategy(KruiseAppsPubUpdatePriorityStrategy priorityStrategy) { 32 | this.priorityStrategy = priorityStrategy; 33 | return this; 34 | } 35 | 36 | /** 37 | * Get priorityStrategy 38 | * @return priorityStrategy 39 | **/ 40 | @ApiModelProperty(value = "") 41 | public KruiseAppsPubUpdatePriorityStrategy getPriorityStrategy() { 42 | return priorityStrategy; 43 | } 44 | 45 | public void setPriorityStrategy(KruiseAppsPubUpdatePriorityStrategy priorityStrategy) { 46 | this.priorityStrategy = priorityStrategy; 47 | } 48 | 49 | 50 | @Override 51 | public boolean equals(Object o) { 52 | if (this == o) { 53 | return true; 54 | } 55 | if (!(o instanceof KruiseAppsV1beta1UnorderedUpdateStrategy)) { 56 | return false; 57 | } 58 | KruiseAppsV1beta1UnorderedUpdateStrategy ioKruiseAppsV1alpha1StatefulSetSpecUpdateStrategyRollingUpdateUnorderedUpdate = (KruiseAppsV1beta1UnorderedUpdateStrategy) o; 59 | return Objects.equals(this.priorityStrategy, ioKruiseAppsV1alpha1StatefulSetSpecUpdateStrategyRollingUpdateUnorderedUpdate.priorityStrategy); 60 | } 61 | 62 | @Override 63 | public int hashCode() { 64 | return Objects.hash(priorityStrategy); 65 | } 66 | 67 | 68 | @Override 69 | public String toString() { 70 | StringBuilder sb = new StringBuilder(); 71 | sb.append("class KruiseAppsV1alpha1StatefulSetSpecUpdateStrategyRollingUpdateUnorderedUpdate {\n"); 72 | 73 | sb.append(" priorityStrategy: ").append(toIndentedString(priorityStrategy)).append("\n"); 74 | sb.append("}"); 75 | return sb.toString(); 76 | } 77 | 78 | /** 79 | * Convert the given object to string with each line indented by 4 spaces 80 | * (except the first line). 81 | */ 82 | private String toIndentedString(Object o) { 83 | if (o == null) { 84 | return "null"; 85 | } 86 | return o.toString().replace("\n", "\n "); 87 | } 88 | 89 | } 90 | 91 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1NodeTopologyTerm.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModel; 18 | import io.swagger.annotations.ApiModelProperty; 19 | import java.util.ArrayList; 20 | import java.util.List; 21 | import java.util.Objects; 22 | import javax.annotation.Generated; 23 | 24 | /** 25 | * Pod rebuilt topology required for node labels for example kubernetes.io/hostname, failure-domain.beta.kubernetes.io/zone 26 | */ 27 | @ApiModel(description = "Pod rebuilt topology required for node labels for example kubernetes.io/hostname, failure-domain.beta.kubernetes.io/zone") 28 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 29 | public class KruiseAppsV1alpha1NodeTopologyTerm { 30 | @SerializedName("nodeTopologyKeys") 31 | private List nodeTopologyKeys = new ArrayList(); 32 | 33 | public KruiseAppsV1alpha1NodeTopologyTerm nodeTopologyKeys(List nodeTopologyKeys) { 34 | this.nodeTopologyKeys = nodeTopologyKeys; 35 | return this; 36 | } 37 | 38 | public KruiseAppsV1alpha1NodeTopologyTerm addNodeTopologyKeysItem(String nodeTopologyKeysItem) { 39 | this.nodeTopologyKeys.add(nodeTopologyKeysItem); 40 | return this; 41 | } 42 | 43 | /** 44 | * A list of node selector requirements by node's labels. 45 | * @return nodeTopologyKeys 46 | **/ 47 | @ApiModelProperty(required = true, value = "A list of node selector requirements by node's labels.") 48 | public List getNodeTopologyKeys() { 49 | return nodeTopologyKeys; 50 | } 51 | 52 | public void setNodeTopologyKeys(List nodeTopologyKeys) { 53 | this.nodeTopologyKeys = nodeTopologyKeys; 54 | } 55 | 56 | 57 | @Override 58 | public boolean equals(Object o) { 59 | if (this == o) { 60 | return true; 61 | } 62 | if (!(o instanceof KruiseAppsV1alpha1NodeTopologyTerm)) { 63 | return false; 64 | } 65 | KruiseAppsV1alpha1NodeTopologyTerm ioKruiseAppsV1alpha1PersistentPodStateSpecRequiredPersistentTopology = (KruiseAppsV1alpha1NodeTopologyTerm) o; 66 | return Objects.equals(this.nodeTopologyKeys, ioKruiseAppsV1alpha1PersistentPodStateSpecRequiredPersistentTopology.nodeTopologyKeys); 67 | } 68 | 69 | @Override 70 | public int hashCode() { 71 | return Objects.hash(nodeTopologyKeys); 72 | } 73 | 74 | 75 | @Override 76 | public String toString() { 77 | StringBuilder sb = new StringBuilder(); 78 | sb.append("class KruiseAppsV1alpha1PersistentPodStateSpecRequiredPersistentTopology {\n"); 79 | 80 | sb.append(" nodeTopologyKeys: ").append(toIndentedString(nodeTopologyKeys)).append("\n"); 81 | sb.append("}"); 82 | return sb.toString(); 83 | } 84 | 85 | /** 86 | * Convert the given object to string with each line indented by 4 spaces 87 | * (except the first line). 88 | */ 89 | private String toIndentedString(Object o) { 90 | if (o == null) { 91 | return "null"; 92 | } 93 | return o.toString().replace("\n", "\n "); 94 | } 95 | 96 | } 97 | 98 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1Topology.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModel; 18 | import io.swagger.annotations.ApiModelProperty; 19 | import java.util.ArrayList; 20 | import java.util.List; 21 | import java.util.Objects; 22 | import javax.annotation.Generated; 23 | 24 | /** 25 | * Topology describes the pods distribution detail between each of subsets. 26 | */ 27 | @ApiModel(description = "Topology describes the pods distribution detail between each of subsets.") 28 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 29 | public class KruiseAppsV1alpha1Topology { 30 | @SerializedName("subsets") 31 | private List subsets = null; 32 | 33 | public KruiseAppsV1alpha1Topology subsets(List subsets) { 34 | this.subsets = subsets; 35 | return this; 36 | } 37 | 38 | public KruiseAppsV1alpha1Topology addSubsetsItem(KruiseAppsV1alpha1Subset subsetsItem) { 39 | if (this.subsets == null) { 40 | this.subsets = new ArrayList(); 41 | } 42 | this.subsets.add(subsetsItem); 43 | return this; 44 | } 45 | 46 | /** 47 | * Contains the details of each subset. Each element in this array represents one subset which will be provisioned and managed by UnitedDeployment. 48 | * @return subsets 49 | **/ 50 | @ApiModelProperty(value = "Contains the details of each subset. Each element in this array represents one subset which will be provisioned and managed by UnitedDeployment.") 51 | public List getSubsets() { 52 | return subsets; 53 | } 54 | 55 | public void setSubsets(List subsets) { 56 | this.subsets = subsets; 57 | } 58 | 59 | 60 | @Override 61 | public boolean equals(Object o) { 62 | if (this == o) { 63 | return true; 64 | } 65 | if (!(o instanceof KruiseAppsV1alpha1Topology)) { 66 | return false; 67 | } 68 | KruiseAppsV1alpha1Topology ioKruiseAppsV1alpha1UnitedDeploymentSpecTopology = (KruiseAppsV1alpha1Topology) o; 69 | return Objects.equals(this.subsets, ioKruiseAppsV1alpha1UnitedDeploymentSpecTopology.subsets); 70 | } 71 | 72 | @Override 73 | public int hashCode() { 74 | return Objects.hash(subsets); 75 | } 76 | 77 | 78 | @Override 79 | public String toString() { 80 | StringBuilder sb = new StringBuilder(); 81 | sb.append("class KruiseAppsV1alpha1UnitedDeploymentSpecTopology {\n"); 82 | 83 | sb.append(" subsets: ").append(toIndentedString(subsets)).append("\n"); 84 | sb.append("}"); 85 | return sb.toString(); 86 | } 87 | 88 | /** 89 | * Convert the given object to string with each line indented by 4 spaces 90 | * (except the first line). 91 | */ 92 | private String toIndentedString(Object o) { 93 | if (o == null) { 94 | return "null"; 95 | } 96 | return o.toString().replace("\n", "\n "); 97 | } 98 | 99 | } 100 | 101 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1ReferenceObject.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModel; 18 | import io.swagger.annotations.ApiModelProperty; 19 | import java.util.Objects; 20 | import javax.annotation.Generated; 21 | 22 | /** 23 | * ReferenceObject comprises a resource name, with a mandatory namespace, rendered as \"<namespace>/<name>\". 24 | */ 25 | @ApiModel(description = "ReferenceObject comprises a resource name, with a mandatory namespace, rendered as \"/\".") 26 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 27 | public class KruiseAppsV1alpha1ReferenceObject { 28 | @SerializedName("name") 29 | private String name = null; 30 | 31 | @SerializedName("namespace") 32 | private String namespace = null; 33 | 34 | public KruiseAppsV1alpha1ReferenceObject name(String name) { 35 | this.name = name; 36 | return this; 37 | } 38 | 39 | /** 40 | * Get name 41 | * @return name 42 | **/ 43 | @ApiModelProperty(value = "") 44 | public String getName() { 45 | return name; 46 | } 47 | 48 | public void setName(String name) { 49 | this.name = name; 50 | } 51 | 52 | public KruiseAppsV1alpha1ReferenceObject namespace(String namespace) { 53 | this.namespace = namespace; 54 | return this; 55 | } 56 | 57 | /** 58 | * Get namespace 59 | * @return namespace 60 | **/ 61 | @ApiModelProperty(value = "") 62 | public String getNamespace() { 63 | return namespace; 64 | } 65 | 66 | public void setNamespace(String namespace) { 67 | this.namespace = namespace; 68 | } 69 | 70 | 71 | @Override 72 | public boolean equals(Object o) { 73 | if (this == o) { 74 | return true; 75 | } 76 | if (!(o instanceof KruiseAppsV1alpha1ReferenceObject)) { 77 | return false; 78 | } 79 | KruiseAppsV1alpha1ReferenceObject ioKruiseAppsV1alpha1NodeImageSpecPullSecrets = (KruiseAppsV1alpha1ReferenceObject) o; 80 | return Objects.equals(this.name, ioKruiseAppsV1alpha1NodeImageSpecPullSecrets.name) && 81 | Objects.equals(this.namespace, ioKruiseAppsV1alpha1NodeImageSpecPullSecrets.namespace); 82 | } 83 | 84 | @Override 85 | public int hashCode() { 86 | return Objects.hash(name, namespace); 87 | } 88 | 89 | 90 | @Override 91 | public String toString() { 92 | StringBuilder sb = new StringBuilder(); 93 | sb.append("class KruiseAppsV1alpha1NodeImageSpecPullSecrets {\n"); 94 | 95 | sb.append(" name: ").append(toIndentedString(name)).append("\n"); 96 | sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); 97 | sb.append("}"); 98 | return sb.toString(); 99 | } 100 | 101 | /** 102 | * Convert the given object to string with each line indented by 4 spaces 103 | * (except the first line). 104 | */ 105 | private String toIndentedString(Object o) { 106 | if (o == null) { 107 | return "null"; 108 | } 109 | return o.toString().replace("\n", "\n "); 110 | } 111 | 112 | } 113 | 114 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1CloneSetTemplateSpec.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.kubernetes.client.openapi.models.V1ObjectMeta; 18 | import io.swagger.annotations.ApiModel; 19 | import io.swagger.annotations.ApiModelProperty; 20 | import java.util.Objects; 21 | import javax.annotation.Generated; 22 | 23 | /** 24 | * CloneSet template 25 | */ 26 | @ApiModel(description = "CloneSet template") 27 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 28 | public class KruiseAppsV1alpha1CloneSetTemplateSpec { 29 | @SerializedName("metadata") 30 | private V1ObjectMeta metadata = null; 31 | 32 | @SerializedName("spec") 33 | private KruiseAppsV1alpha1CloneSetSpec spec = null; 34 | 35 | public KruiseAppsV1alpha1CloneSetTemplateSpec metadata(V1ObjectMeta metadata) { 36 | this.metadata = metadata; 37 | return this; 38 | } 39 | 40 | /** 41 | * Get metadata 42 | * @return metadata 43 | **/ 44 | @ApiModelProperty(value = "") 45 | public V1ObjectMeta getMetadata() { 46 | return metadata; 47 | } 48 | 49 | public void setMetadata(V1ObjectMeta metadata) { 50 | this.metadata = metadata; 51 | } 52 | 53 | public KruiseAppsV1alpha1CloneSetTemplateSpec spec(KruiseAppsV1alpha1CloneSetSpec spec) { 54 | this.spec = spec; 55 | return this; 56 | } 57 | 58 | /** 59 | * Get spec 60 | * @return spec 61 | **/ 62 | @ApiModelProperty(required = true, value = "") 63 | public KruiseAppsV1alpha1CloneSetSpec getSpec() { 64 | return spec; 65 | } 66 | 67 | public void setSpec(KruiseAppsV1alpha1CloneSetSpec spec) { 68 | this.spec = spec; 69 | } 70 | 71 | 72 | @Override 73 | public boolean equals(Object o) { 74 | if (this == o) { 75 | return true; 76 | } 77 | if (!(o instanceof KruiseAppsV1alpha1CloneSetTemplateSpec)) { 78 | return false; 79 | } 80 | KruiseAppsV1alpha1CloneSetTemplateSpec ioKruiseAppsV1alpha1UnitedDeploymentSpecTemplateCloneSetTemplate = (KruiseAppsV1alpha1CloneSetTemplateSpec) o; 81 | return Objects.equals(this.metadata, ioKruiseAppsV1alpha1UnitedDeploymentSpecTemplateCloneSetTemplate.metadata) && 82 | Objects.equals(this.spec, ioKruiseAppsV1alpha1UnitedDeploymentSpecTemplateCloneSetTemplate.spec); 83 | } 84 | 85 | @Override 86 | public int hashCode() { 87 | return Objects.hash(metadata, spec); 88 | } 89 | 90 | 91 | @Override 92 | public String toString() { 93 | StringBuilder sb = new StringBuilder(); 94 | sb.append("class KruiseAppsV1alpha1UnitedDeploymentSpecTemplateCloneSetTemplate {\n"); 95 | 96 | sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); 97 | sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); 98 | sb.append("}"); 99 | return sb.toString(); 100 | } 101 | 102 | /** 103 | * Convert the given object to string with each line indented by 4 spaces 104 | * (except the first line). 105 | */ 106 | private String toIndentedString(Object o) { 107 | if (o == null) { 108 | return "null"; 109 | } 110 | return o.toString().replace("\n", "\n "); 111 | } 112 | 113 | } 114 | 115 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1PreferredTopologyTerm.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModelProperty; 18 | import java.util.Objects; 19 | import javax.annotation.Generated; 20 | 21 | /** 22 | * KruiseAppsV1alpha1PersistentPodStateSpecPreferredPersistentTopology 23 | */ 24 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 25 | public class KruiseAppsV1alpha1PreferredTopologyTerm { 26 | @SerializedName("preference") 27 | private KruiseAppsV1alpha1NodeTopologyTerm preference = null; 28 | 29 | @SerializedName("weight") 30 | private Integer weight = null; 31 | 32 | public KruiseAppsV1alpha1PreferredTopologyTerm preference(KruiseAppsV1alpha1NodeTopologyTerm preference) { 33 | this.preference = preference; 34 | return this; 35 | } 36 | 37 | /** 38 | * Get preference 39 | * @return preference 40 | **/ 41 | @ApiModelProperty(required = true, value = "") 42 | public KruiseAppsV1alpha1NodeTopologyTerm getPreference() { 43 | return preference; 44 | } 45 | 46 | public void setPreference(KruiseAppsV1alpha1NodeTopologyTerm preference) { 47 | this.preference = preference; 48 | } 49 | 50 | public KruiseAppsV1alpha1PreferredTopologyTerm weight(Integer weight) { 51 | this.weight = weight; 52 | return this; 53 | } 54 | 55 | /** 56 | * Get weight 57 | * @return weight 58 | **/ 59 | @ApiModelProperty(required = true, value = "") 60 | public Integer getWeight() { 61 | return weight; 62 | } 63 | 64 | public void setWeight(Integer weight) { 65 | this.weight = weight; 66 | } 67 | 68 | 69 | @Override 70 | public boolean equals(Object o) { 71 | if (this == o) { 72 | return true; 73 | } 74 | if (!(o instanceof KruiseAppsV1alpha1PreferredTopologyTerm)) { 75 | return false; 76 | } 77 | KruiseAppsV1alpha1PreferredTopologyTerm ioKruiseAppsV1alpha1PersistentPodStateSpecPreferredPersistentTopology = (KruiseAppsV1alpha1PreferredTopologyTerm) o; 78 | return Objects.equals(this.preference, ioKruiseAppsV1alpha1PersistentPodStateSpecPreferredPersistentTopology.preference) && 79 | Objects.equals(this.weight, ioKruiseAppsV1alpha1PersistentPodStateSpecPreferredPersistentTopology.weight); 80 | } 81 | 82 | @Override 83 | public int hashCode() { 84 | return Objects.hash(preference, weight); 85 | } 86 | 87 | 88 | @Override 89 | public String toString() { 90 | StringBuilder sb = new StringBuilder(); 91 | sb.append("class KruiseAppsV1alpha1PersistentPodStateSpecPreferredPersistentTopology {\n"); 92 | 93 | sb.append(" preference: ").append(toIndentedString(preference)).append("\n"); 94 | sb.append(" weight: ").append(toIndentedString(weight)).append("\n"); 95 | sb.append("}"); 96 | return sb.toString(); 97 | } 98 | 99 | /** 100 | * Convert the given object to string with each line indented by 4 spaces 101 | * (except the first line). 102 | */ 103 | private String toIndentedString(Object o) { 104 | if (o == null) { 105 | return "null"; 106 | } 107 | return o.toString().replace("\n", "\n "); 108 | } 109 | 110 | } 111 | 112 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1ResourceDistributionTargetNamespaces.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModel; 18 | import io.swagger.annotations.ApiModelProperty; 19 | import java.util.ArrayList; 20 | import java.util.List; 21 | import java.util.Objects; 22 | import javax.annotation.Generated; 23 | 24 | /** 25 | * If ExcludedNamespaces is not empty, Resource will never be distributed to the listed namespaces. ExcludedNamespaces has the highest priority. 26 | */ 27 | @ApiModel(description = "If ExcludedNamespaces is not empty, Resource will never be distributed to the listed namespaces. ExcludedNamespaces has the highest priority.") 28 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 29 | public class KruiseAppsV1alpha1ResourceDistributionTargetNamespaces { 30 | @SerializedName("list") 31 | private List _list = null; 32 | 33 | public KruiseAppsV1alpha1ResourceDistributionTargetNamespaces _list(List _list) { 34 | this._list = _list; 35 | return this; 36 | } 37 | 38 | public KruiseAppsV1alpha1ResourceDistributionTargetNamespaces addListItem(KruiseAppsV1alpha1ResourceDistributionNamespace _listItem) { 39 | if (this._list == null) { 40 | this._list = new ArrayList(); 41 | } 42 | this._list.add(_listItem); 43 | return this; 44 | } 45 | 46 | /** 47 | * Get _list 48 | * @return _list 49 | **/ 50 | @ApiModelProperty(value = "") 51 | public List getList() { 52 | return _list; 53 | } 54 | 55 | public void setList(List _list) { 56 | this._list = _list; 57 | } 58 | 59 | 60 | @Override 61 | public boolean equals(Object o) { 62 | if (this == o) { 63 | return true; 64 | } 65 | if (!(o instanceof KruiseAppsV1alpha1ResourceDistributionTargetNamespaces)) { 66 | return false; 67 | } 68 | KruiseAppsV1alpha1ResourceDistributionTargetNamespaces ioKruiseAppsV1alpha1ResourceDistributionSpecTargetsExcludedNamespaces = (KruiseAppsV1alpha1ResourceDistributionTargetNamespaces) o; 69 | return Objects.equals(this._list, ioKruiseAppsV1alpha1ResourceDistributionSpecTargetsExcludedNamespaces._list); 70 | } 71 | 72 | @Override 73 | public int hashCode() { 74 | return Objects.hash(_list); 75 | } 76 | 77 | 78 | @Override 79 | public String toString() { 80 | StringBuilder sb = new StringBuilder(); 81 | sb.append("class KruiseAppsV1alpha1ResourceDistributionSpecTargetsExcludedNamespaces {\n"); 82 | 83 | sb.append(" _list: ").append(toIndentedString(_list)).append("\n"); 84 | sb.append("}"); 85 | return sb.toString(); 86 | } 87 | 88 | /** 89 | * Convert the given object to string with each line indented by 4 spaces 90 | * (except the first line). 91 | */ 92 | private String toIndentedString(Object o) { 93 | if (o == null) { 94 | return "null"; 95 | } 96 | return o.toString().replace("\n", "\n "); 97 | } 98 | 99 | } 100 | 101 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1DeploymentTemplateSpec.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.kubernetes.client.openapi.models.V1DeploymentSpec; 18 | import io.kubernetes.client.openapi.models.V1ObjectMeta; 19 | import io.swagger.annotations.ApiModel; 20 | import io.swagger.annotations.ApiModelProperty; 21 | import java.util.Objects; 22 | import javax.annotation.Generated; 23 | 24 | /** 25 | * Deployment template 26 | */ 27 | @ApiModel(description = "Deployment template") 28 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 29 | public class KruiseAppsV1alpha1DeploymentTemplateSpec { 30 | @SerializedName("metadata") 31 | private V1ObjectMeta metadata = null; 32 | 33 | @SerializedName("spec") 34 | private V1DeploymentSpec spec = null; 35 | 36 | public KruiseAppsV1alpha1DeploymentTemplateSpec metadata(V1ObjectMeta metadata) { 37 | this.metadata = metadata; 38 | return this; 39 | } 40 | 41 | /** 42 | * Get metadata 43 | * @return metadata 44 | **/ 45 | @ApiModelProperty(value = "") 46 | public V1ObjectMeta getMetadata() { 47 | return metadata; 48 | } 49 | 50 | public void setMetadata(V1ObjectMeta metadata) { 51 | this.metadata = metadata; 52 | } 53 | 54 | public KruiseAppsV1alpha1DeploymentTemplateSpec spec(V1DeploymentSpec spec) { 55 | this.spec = spec; 56 | return this; 57 | } 58 | 59 | /** 60 | * Get spec 61 | * @return spec 62 | **/ 63 | @ApiModelProperty(required = true, value = "") 64 | public V1DeploymentSpec getSpec() { 65 | return spec; 66 | } 67 | 68 | public void setSpec(V1DeploymentSpec spec) { 69 | this.spec = spec; 70 | } 71 | 72 | 73 | @Override 74 | public boolean equals(Object o) { 75 | if (this == o) { 76 | return true; 77 | } 78 | if (!(o instanceof KruiseAppsV1alpha1DeploymentTemplateSpec)) { 79 | return false; 80 | } 81 | KruiseAppsV1alpha1DeploymentTemplateSpec ioKruiseAppsV1alpha1UnitedDeploymentSpecTemplateDeploymentTemplate = (KruiseAppsV1alpha1DeploymentTemplateSpec) o; 82 | return Objects.equals(this.metadata, ioKruiseAppsV1alpha1UnitedDeploymentSpecTemplateDeploymentTemplate.metadata) && 83 | Objects.equals(this.spec, ioKruiseAppsV1alpha1UnitedDeploymentSpecTemplateDeploymentTemplate.spec); 84 | } 85 | 86 | @Override 87 | public int hashCode() { 88 | return Objects.hash(metadata, spec); 89 | } 90 | 91 | 92 | @Override 93 | public String toString() { 94 | StringBuilder sb = new StringBuilder(); 95 | sb.append("class KruiseAppsV1alpha1UnitedDeploymentSpecTemplateDeploymentTemplate {\n"); 96 | 97 | sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); 98 | sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); 99 | sb.append("}"); 100 | return sb.toString(); 101 | } 102 | 103 | /** 104 | * Convert the given object to string with each line indented by 4 spaces 105 | * (except the first line). 106 | */ 107 | private String toIndentedString(Object o) { 108 | if (o == null) { 109 | return "null"; 110 | } 111 | return o.toString().replace("\n", "\n "); 112 | } 113 | 114 | } 115 | 116 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1beta1StatefulSetScaleStrategy.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.kubernetes.client.custom.IntOrString; 18 | import io.swagger.annotations.ApiModel; 19 | import io.swagger.annotations.ApiModelProperty; 20 | import java.util.Objects; 21 | import javax.annotation.Generated; 22 | 23 | /** 24 | * scaleStrategy indicates the StatefulSetScaleStrategy that will be employed to scale Pods in the StatefulSet. 25 | */ 26 | @ApiModel(description = "scaleStrategy indicates the StatefulSetScaleStrategy that will be employed to scale Pods in the StatefulSet.") 27 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 28 | public class KruiseAppsV1beta1StatefulSetScaleStrategy { 29 | @SerializedName("maxUnavailable") 30 | private IntOrString maxUnavailable = null; 31 | 32 | public KruiseAppsV1beta1StatefulSetScaleStrategy maxUnavailable(IntOrString maxUnavailable) { 33 | this.maxUnavailable = maxUnavailable; 34 | return this; 35 | } 36 | 37 | /** 38 | * The maximum number of pods that can be unavailable during scaling. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. It can just be allowed to work with Parallel podManagementPolicy. 39 | * @return maxUnavailable 40 | **/ 41 | @ApiModelProperty(value = "The maximum number of pods that can be unavailable during scaling. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. It can just be allowed to work with Parallel podManagementPolicy.") 42 | public IntOrString getMaxUnavailable() { 43 | return maxUnavailable; 44 | } 45 | 46 | public void setMaxUnavailable(IntOrString maxUnavailable) { 47 | this.maxUnavailable = maxUnavailable; 48 | } 49 | 50 | 51 | @Override 52 | public boolean equals(Object o) { 53 | if (this == o) { 54 | return true; 55 | } 56 | if (!(o instanceof KruiseAppsV1beta1StatefulSetScaleStrategy)) { 57 | return false; 58 | } 59 | KruiseAppsV1beta1StatefulSetScaleStrategy ioKruiseAppsV1alpha1UnitedDeploymentSpecTemplateAdvancedStatefulSetTemplateSpecScaleStrategy = (KruiseAppsV1beta1StatefulSetScaleStrategy) o; 60 | return Objects.equals(this.maxUnavailable, ioKruiseAppsV1alpha1UnitedDeploymentSpecTemplateAdvancedStatefulSetTemplateSpecScaleStrategy.maxUnavailable); 61 | } 62 | 63 | @Override 64 | public int hashCode() { 65 | return Objects.hash(maxUnavailable); 66 | } 67 | 68 | 69 | @Override 70 | public String toString() { 71 | StringBuilder sb = new StringBuilder(); 72 | sb.append("class KruiseAppsV1alpha1UnitedDeploymentSpecTemplateAdvancedStatefulSetTemplateSpecScaleStrategy {\n"); 73 | 74 | sb.append(" maxUnavailable: ").append(toIndentedString(maxUnavailable)).append("\n"); 75 | sb.append("}"); 76 | return sb.toString(); 77 | } 78 | 79 | /** 80 | * Convert the given object to string with each line indented by 4 spaces 81 | * (except the first line). 82 | */ 83 | private String toIndentedString(Object o) { 84 | if (o == null) { 85 | return "null"; 86 | } 87 | return o.toString().replace("\n", "\n "); 88 | } 89 | 90 | } 91 | 92 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1StatefulSetTemplateSpec.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.kubernetes.client.openapi.models.V1ObjectMeta; 18 | import io.kubernetes.client.openapi.models.V1StatefulSetSpec; 19 | import io.swagger.annotations.ApiModel; 20 | import io.swagger.annotations.ApiModelProperty; 21 | import java.util.Objects; 22 | import javax.annotation.Generated; 23 | 24 | /** 25 | * StatefulSet template 26 | */ 27 | @ApiModel(description = "StatefulSet template") 28 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 29 | public class KruiseAppsV1alpha1StatefulSetTemplateSpec { 30 | @SerializedName("metadata") 31 | private V1ObjectMeta metadata = null; 32 | 33 | @SerializedName("spec") 34 | private V1StatefulSetSpec spec = null; 35 | 36 | public KruiseAppsV1alpha1StatefulSetTemplateSpec metadata(V1ObjectMeta metadata) { 37 | this.metadata = metadata; 38 | return this; 39 | } 40 | 41 | /** 42 | * Get metadata 43 | * @return metadata 44 | **/ 45 | @ApiModelProperty(value = "") 46 | public V1ObjectMeta getMetadata() { 47 | return metadata; 48 | } 49 | 50 | public void setMetadata(V1ObjectMeta metadata) { 51 | this.metadata = metadata; 52 | } 53 | 54 | public KruiseAppsV1alpha1StatefulSetTemplateSpec spec(V1StatefulSetSpec spec) { 55 | this.spec = spec; 56 | return this; 57 | } 58 | 59 | /** 60 | * Get spec 61 | * @return spec 62 | **/ 63 | @ApiModelProperty(required = true, value = "") 64 | public V1StatefulSetSpec getSpec() { 65 | return spec; 66 | } 67 | 68 | public void setSpec(V1StatefulSetSpec spec) { 69 | this.spec = spec; 70 | } 71 | 72 | 73 | @Override 74 | public boolean equals(Object o) { 75 | if (this == o) { 76 | return true; 77 | } 78 | if (!(o instanceof KruiseAppsV1alpha1StatefulSetTemplateSpec)) { 79 | return false; 80 | } 81 | KruiseAppsV1alpha1StatefulSetTemplateSpec ioKruiseAppsV1alpha1UnitedDeploymentSpecTemplateStatefulSetTemplate = (KruiseAppsV1alpha1StatefulSetTemplateSpec) o; 82 | return Objects.equals(this.metadata, ioKruiseAppsV1alpha1UnitedDeploymentSpecTemplateStatefulSetTemplate.metadata) && 83 | Objects.equals(this.spec, ioKruiseAppsV1alpha1UnitedDeploymentSpecTemplateStatefulSetTemplate.spec); 84 | } 85 | 86 | @Override 87 | public int hashCode() { 88 | return Objects.hash(metadata, spec); 89 | } 90 | 91 | 92 | @Override 93 | public String toString() { 94 | StringBuilder sb = new StringBuilder(); 95 | sb.append("class KruiseAppsV1alpha1UnitedDeploymentSpecTemplateStatefulSetTemplate {\n"); 96 | 97 | sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); 98 | sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); 99 | sb.append("}"); 100 | return sb.toString(); 101 | } 102 | 103 | /** 104 | * Convert the given object to string with each line indented by 4 spaces 105 | * (except the first line). 106 | */ 107 | private String toIndentedString(Object o) { 108 | if (o == null) { 109 | return "null"; 110 | } 111 | return o.toString().replace("\n", "\n "); 112 | } 113 | 114 | } 115 | 116 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1AdvancedStatefulSetTemplateSpec.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.kubernetes.client.openapi.models.V1ObjectMeta; 18 | import io.swagger.annotations.ApiModel; 19 | import io.swagger.annotations.ApiModelProperty; 20 | import java.util.Objects; 21 | import javax.annotation.Generated; 22 | 23 | /** 24 | * AdvancedStatefulSet template 25 | */ 26 | @ApiModel(description = "AdvancedStatefulSet template") 27 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 28 | public class KruiseAppsV1alpha1AdvancedStatefulSetTemplateSpec { 29 | @SerializedName("metadata") 30 | private V1ObjectMeta metadata = null; 31 | 32 | @SerializedName("spec") 33 | private KruiseAppsV1beta1StatefulSetSpec spec = null; 34 | 35 | public KruiseAppsV1alpha1AdvancedStatefulSetTemplateSpec metadata(V1ObjectMeta metadata) { 36 | this.metadata = metadata; 37 | return this; 38 | } 39 | 40 | /** 41 | * Get metadata 42 | * @return metadata 43 | **/ 44 | @ApiModelProperty(value = "") 45 | public V1ObjectMeta getMetadata() { 46 | return metadata; 47 | } 48 | 49 | public void setMetadata(V1ObjectMeta metadata) { 50 | this.metadata = metadata; 51 | } 52 | 53 | public KruiseAppsV1alpha1AdvancedStatefulSetTemplateSpec spec(KruiseAppsV1beta1StatefulSetSpec spec) { 54 | this.spec = spec; 55 | return this; 56 | } 57 | 58 | /** 59 | * Get spec 60 | * @return spec 61 | **/ 62 | @ApiModelProperty(required = true, value = "") 63 | public KruiseAppsV1beta1StatefulSetSpec getSpec() { 64 | return spec; 65 | } 66 | 67 | public void setSpec(KruiseAppsV1beta1StatefulSetSpec spec) { 68 | this.spec = spec; 69 | } 70 | 71 | 72 | @Override 73 | public boolean equals(Object o) { 74 | if (this == o) { 75 | return true; 76 | } 77 | if (!(o instanceof KruiseAppsV1alpha1AdvancedStatefulSetTemplateSpec)) { 78 | return false; 79 | } 80 | KruiseAppsV1alpha1AdvancedStatefulSetTemplateSpec ioKruiseAppsV1alpha1UnitedDeploymentSpecTemplateAdvancedStatefulSetTemplate = (KruiseAppsV1alpha1AdvancedStatefulSetTemplateSpec) o; 81 | return Objects.equals(this.metadata, ioKruiseAppsV1alpha1UnitedDeploymentSpecTemplateAdvancedStatefulSetTemplate.metadata) && 82 | Objects.equals(this.spec, ioKruiseAppsV1alpha1UnitedDeploymentSpecTemplateAdvancedStatefulSetTemplate.spec); 83 | } 84 | 85 | @Override 86 | public int hashCode() { 87 | return Objects.hash(metadata, spec); 88 | } 89 | 90 | 91 | @Override 92 | public String toString() { 93 | StringBuilder sb = new StringBuilder(); 94 | sb.append("class KruiseAppsV1alpha1UnitedDeploymentSpecTemplateAdvancedStatefulSetTemplate {\n"); 95 | 96 | sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); 97 | sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); 98 | sb.append("}"); 99 | return sb.toString(); 100 | } 101 | 102 | /** 103 | * Convert the given object to string with each line indented by 4 spaces 104 | * (except the first line). 105 | */ 106 | private String toIndentedString(Object o) { 107 | if (o == null) { 108 | return "null"; 109 | } 110 | return o.toString().replace("\n", "\n "); 111 | } 112 | 113 | } 114 | 115 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1FailurePolicy.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModel; 18 | import io.swagger.annotations.ApiModelProperty; 19 | import java.util.Objects; 20 | import javax.annotation.Generated; 21 | 22 | /** 23 | * FailurePolicy indicates the behavior of the job, when failed pod is found. 24 | */ 25 | @ApiModel(description = "FailurePolicy indicates the behavior of the job, when failed pod is found.") 26 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 27 | public class KruiseAppsV1alpha1FailurePolicy { 28 | @SerializedName("restartLimit") 29 | private Integer restartLimit = null; 30 | 31 | @SerializedName("type") 32 | private String type = null; 33 | 34 | public KruiseAppsV1alpha1FailurePolicy restartLimit(Integer restartLimit) { 35 | this.restartLimit = restartLimit; 36 | return this; 37 | } 38 | 39 | /** 40 | * RestartLimit specifies the number of retries before marking the pod failed. 41 | * @return restartLimit 42 | **/ 43 | @ApiModelProperty(value = "RestartLimit specifies the number of retries before marking the pod failed.") 44 | public Integer getRestartLimit() { 45 | return restartLimit; 46 | } 47 | 48 | public void setRestartLimit(Integer restartLimit) { 49 | this.restartLimit = restartLimit; 50 | } 51 | 52 | public KruiseAppsV1alpha1FailurePolicy type(String type) { 53 | this.type = type; 54 | return this; 55 | } 56 | 57 | /** 58 | * Type indicates the type of FailurePolicyType. Default is FailurePolicyTypeFailFast. 59 | * @return type 60 | **/ 61 | @ApiModelProperty(value = "Type indicates the type of FailurePolicyType. Default is FailurePolicyTypeFailFast.") 62 | public String getType() { 63 | return type; 64 | } 65 | 66 | public void setType(String type) { 67 | this.type = type; 68 | } 69 | 70 | 71 | @Override 72 | public boolean equals(Object o) { 73 | if (this == o) { 74 | return true; 75 | } 76 | if (!(o instanceof KruiseAppsV1alpha1FailurePolicy)) { 77 | return false; 78 | } 79 | KruiseAppsV1alpha1FailurePolicy ioKruiseAppsV1Alpha1FailurePolicy = (KruiseAppsV1alpha1FailurePolicy) o; 80 | return Objects.equals(this.restartLimit, ioKruiseAppsV1Alpha1FailurePolicy.restartLimit) && 81 | Objects.equals(this.type, ioKruiseAppsV1Alpha1FailurePolicy.type); 82 | } 83 | 84 | @Override 85 | public int hashCode() { 86 | return Objects.hash(restartLimit, type); 87 | } 88 | 89 | 90 | @Override 91 | public String toString() { 92 | StringBuilder sb = new StringBuilder(); 93 | sb.append("class KruiseAppsV1alpha1AdvancedCronJobSpecTemplateBroadcastJobTemplateSpecFailurePolicy {\n"); 94 | 95 | sb.append(" restartLimit: ").append(toIndentedString(restartLimit)).append("\n"); 96 | sb.append(" type: ").append(toIndentedString(type)).append("\n"); 97 | sb.append("}"); 98 | return sb.toString(); 99 | } 100 | 101 | /** 102 | * Convert the given object to string with each line indented by 4 spaces 103 | * (except the first line). 104 | */ 105 | private String toIndentedString(Object o) { 106 | if (o == null) { 107 | return "null"; 108 | } 109 | return o.toString().replace("\n", "\n "); 110 | } 111 | 112 | } 113 | 114 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1DaemonSetUpdateStrategy.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModel; 18 | import io.swagger.annotations.ApiModelProperty; 19 | import java.util.Objects; 20 | import javax.annotation.Generated; 21 | 22 | /** 23 | * An update strategy to replace existing DaemonSet pods with new pods. 24 | */ 25 | @ApiModel(description = "An update strategy to replace existing DaemonSet pods with new pods.") 26 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 27 | public class KruiseAppsV1alpha1DaemonSetUpdateStrategy { 28 | @SerializedName("rollingUpdate") 29 | private KruiseAppsV1alpha1RollingUpdateDaemonSet rollingUpdate = null; 30 | 31 | @SerializedName("type") 32 | private String type = null; 33 | 34 | public KruiseAppsV1alpha1DaemonSetUpdateStrategy rollingUpdate(KruiseAppsV1alpha1RollingUpdateDaemonSet rollingUpdate) { 35 | this.rollingUpdate = rollingUpdate; 36 | return this; 37 | } 38 | 39 | /** 40 | * Get rollingUpdate 41 | * @return rollingUpdate 42 | **/ 43 | @ApiModelProperty(value = "") 44 | public KruiseAppsV1alpha1RollingUpdateDaemonSet getRollingUpdate() { 45 | return rollingUpdate; 46 | } 47 | 48 | public void setRollingUpdate(KruiseAppsV1alpha1RollingUpdateDaemonSet rollingUpdate) { 49 | this.rollingUpdate = rollingUpdate; 50 | } 51 | 52 | public KruiseAppsV1alpha1DaemonSetUpdateStrategy type(String type) { 53 | this.type = type; 54 | return this; 55 | } 56 | 57 | /** 58 | * Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate. 59 | * @return type 60 | **/ 61 | @ApiModelProperty(value = "Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate.") 62 | public String getType() { 63 | return type; 64 | } 65 | 66 | public void setType(String type) { 67 | this.type = type; 68 | } 69 | 70 | 71 | @Override 72 | public boolean equals(Object o) { 73 | if (this == o) { 74 | return true; 75 | } 76 | if (!(o instanceof KruiseAppsV1alpha1DaemonSetUpdateStrategy)) { 77 | return false; 78 | } 79 | KruiseAppsV1alpha1DaemonSetUpdateStrategy ioKruiseAppsV1alpha1DaemonSetSpecUpdateStrategy = (KruiseAppsV1alpha1DaemonSetUpdateStrategy) o; 80 | return Objects.equals(this.rollingUpdate, ioKruiseAppsV1alpha1DaemonSetSpecUpdateStrategy.rollingUpdate) && 81 | Objects.equals(this.type, ioKruiseAppsV1alpha1DaemonSetSpecUpdateStrategy.type); 82 | } 83 | 84 | @Override 85 | public int hashCode() { 86 | return Objects.hash(rollingUpdate, type); 87 | } 88 | 89 | 90 | @Override 91 | public String toString() { 92 | StringBuilder sb = new StringBuilder(); 93 | sb.append("class KruiseAppsV1alpha1DaemonSetSpecUpdateStrategy {\n"); 94 | 95 | sb.append(" rollingUpdate: ").append(toIndentedString(rollingUpdate)).append("\n"); 96 | sb.append(" type: ").append(toIndentedString(type)).append("\n"); 97 | sb.append("}"); 98 | return sb.toString(); 99 | } 100 | 101 | /** 102 | * Convert the given object to string with each line indented by 4 spaces 103 | * (except the first line). 104 | */ 105 | private String toIndentedString(Object o) { 106 | if (o == null) { 107 | return "null"; 108 | } 109 | return o.toString().replace("\n", "\n "); 110 | } 111 | 112 | } 113 | 114 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1UnitedDeploymentUpdateStrategy.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModel; 18 | import io.swagger.annotations.ApiModelProperty; 19 | import java.util.Objects; 20 | import javax.annotation.Generated; 21 | 22 | /** 23 | * UpdateStrategy indicates the strategy the UnitedDeployment use to preform the update, when template is changed. 24 | */ 25 | @ApiModel(description = "UpdateStrategy indicates the strategy the UnitedDeployment use to preform the update, when template is changed.") 26 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 27 | public class KruiseAppsV1alpha1UnitedDeploymentUpdateStrategy { 28 | @SerializedName("manualUpdate") 29 | private KruiseAppsV1alpha1ManualUpdate manualUpdate = null; 30 | 31 | @SerializedName("type") 32 | private String type = null; 33 | 34 | public KruiseAppsV1alpha1UnitedDeploymentUpdateStrategy manualUpdate(KruiseAppsV1alpha1ManualUpdate manualUpdate) { 35 | this.manualUpdate = manualUpdate; 36 | return this; 37 | } 38 | 39 | /** 40 | * Get manualUpdate 41 | * @return manualUpdate 42 | **/ 43 | @ApiModelProperty(value = "") 44 | public KruiseAppsV1alpha1ManualUpdate getManualUpdate() { 45 | return manualUpdate; 46 | } 47 | 48 | public void setManualUpdate(KruiseAppsV1alpha1ManualUpdate manualUpdate) { 49 | this.manualUpdate = manualUpdate; 50 | } 51 | 52 | public KruiseAppsV1alpha1UnitedDeploymentUpdateStrategy type(String type) { 53 | this.type = type; 54 | return this; 55 | } 56 | 57 | /** 58 | * Type of UnitedDeployment update strategy. Default is Manual. 59 | * @return type 60 | **/ 61 | @ApiModelProperty(value = "Type of UnitedDeployment update strategy. Default is Manual.") 62 | public String getType() { 63 | return type; 64 | } 65 | 66 | public void setType(String type) { 67 | this.type = type; 68 | } 69 | 70 | 71 | @Override 72 | public boolean equals(Object o) { 73 | if (this == o) { 74 | return true; 75 | } 76 | if (!(o instanceof KruiseAppsV1alpha1UnitedDeploymentUpdateStrategy)) { 77 | return false; 78 | } 79 | KruiseAppsV1alpha1UnitedDeploymentUpdateStrategy ioKruiseAppsV1alpha1UnitedDeploymentSpecUpdateStrategy = (KruiseAppsV1alpha1UnitedDeploymentUpdateStrategy) o; 80 | return Objects.equals(this.manualUpdate, ioKruiseAppsV1alpha1UnitedDeploymentSpecUpdateStrategy.manualUpdate) && 81 | Objects.equals(this.type, ioKruiseAppsV1alpha1UnitedDeploymentSpecUpdateStrategy.type); 82 | } 83 | 84 | @Override 85 | public int hashCode() { 86 | return Objects.hash(manualUpdate, type); 87 | } 88 | 89 | 90 | @Override 91 | public String toString() { 92 | StringBuilder sb = new StringBuilder(); 93 | sb.append("class KruiseAppsV1alpha1UnitedDeploymentSpecUpdateStrategy {\n"); 94 | 95 | sb.append(" manualUpdate: ").append(toIndentedString(manualUpdate)).append("\n"); 96 | sb.append(" type: ").append(toIndentedString(type)).append("\n"); 97 | sb.append("}"); 98 | return sb.toString(); 99 | } 100 | 101 | /** 102 | * Convert the given object to string with each line indented by 4 spaces 103 | * (except the first line). 104 | */ 105 | private String toIndentedString(Object o) { 106 | if (o == null) { 107 | return "null"; 108 | } 109 | return o.toString().replace("\n", "\n "); 110 | } 111 | 112 | } 113 | 114 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1ResourceDistributionSpec.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.kubernetes.client.proto.Runtime; 18 | import io.swagger.annotations.ApiModel; 19 | import io.swagger.annotations.ApiModelProperty; 20 | import java.util.Objects; 21 | import javax.annotation.Generated; 22 | 23 | /** 24 | * ResourceDistributionSpec defines the desired state of ResourceDistribution. 25 | */ 26 | @ApiModel(description = "ResourceDistributionSpec defines the desired state of ResourceDistribution.") 27 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 28 | public class KruiseAppsV1alpha1ResourceDistributionSpec { 29 | @SerializedName("resource") 30 | private Runtime.RawExtension resource = null; 31 | 32 | @SerializedName("targets") 33 | private KruiseAppsV1alpha1ResourceDistributionTargets targets = null; 34 | 35 | public KruiseAppsV1alpha1ResourceDistributionSpec resource(Runtime.RawExtension resource) { 36 | this.resource = resource; 37 | return this; 38 | } 39 | 40 | /** 41 | * Resource must be the complete yaml that users want to distribute. 42 | * @return resource 43 | **/ 44 | @ApiModelProperty(required = true, value = "Resource must be the complete yaml that users want to distribute.") 45 | public Runtime.RawExtension getResource() { 46 | return resource; 47 | } 48 | 49 | public void setResource(Runtime.RawExtension resource) { 50 | this.resource = resource; 51 | } 52 | 53 | public KruiseAppsV1alpha1ResourceDistributionSpec targets(KruiseAppsV1alpha1ResourceDistributionTargets targets) { 54 | this.targets = targets; 55 | return this; 56 | } 57 | 58 | /** 59 | * Get targets 60 | * @return targets 61 | **/ 62 | @ApiModelProperty(required = true, value = "") 63 | public KruiseAppsV1alpha1ResourceDistributionTargets getTargets() { 64 | return targets; 65 | } 66 | 67 | public void setTargets(KruiseAppsV1alpha1ResourceDistributionTargets targets) { 68 | this.targets = targets; 69 | } 70 | 71 | 72 | @Override 73 | public boolean equals(Object o) { 74 | if (this == o) { 75 | return true; 76 | } 77 | if (!(o instanceof KruiseAppsV1alpha1ResourceDistributionSpec)) { 78 | return false; 79 | } 80 | KruiseAppsV1alpha1ResourceDistributionSpec ioKruiseAppsV1alpha1ResourceDistributionSpec = (KruiseAppsV1alpha1ResourceDistributionSpec) o; 81 | return Objects.equals(this.resource, ioKruiseAppsV1alpha1ResourceDistributionSpec.resource) && 82 | Objects.equals(this.targets, ioKruiseAppsV1alpha1ResourceDistributionSpec.targets); 83 | } 84 | 85 | @Override 86 | public int hashCode() { 87 | return Objects.hash(resource, targets); 88 | } 89 | 90 | 91 | @Override 92 | public String toString() { 93 | StringBuilder sb = new StringBuilder(); 94 | sb.append("class KruiseAppsV1alpha1ResourceDistributionSpec {\n"); 95 | 96 | sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); 97 | sb.append(" targets: ").append(toIndentedString(targets)).append("\n"); 98 | sb.append("}"); 99 | return sb.toString(); 100 | } 101 | 102 | /** 103 | * Convert the given object to string with each line indented by 4 spaces 104 | * (except the first line). 105 | */ 106 | private String toIndentedString(Object o) { 107 | if (o == null) { 108 | return "null"; 109 | } 110 | return o.toString().replace("\n", "\n "); 111 | } 112 | 113 | } 114 | 115 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsPubUpdatePriorityWeightTerm.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.kubernetes.client.openapi.models.V1LabelSelector; 18 | import io.swagger.annotations.ApiModel; 19 | import io.swagger.annotations.ApiModelProperty; 20 | import java.util.Objects; 21 | import javax.annotation.Generated; 22 | 23 | /** 24 | * UpdatePriorityWeightTerm defines weight priority. 25 | */ 26 | @ApiModel(description = "UpdatePriorityWeightTerm defines weight priority.") 27 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 28 | public class KruiseAppsPubUpdatePriorityWeightTerm { 29 | @SerializedName("matchSelector") 30 | private V1LabelSelector matchSelector = null; 31 | 32 | @SerializedName("weight") 33 | private Integer weight = null; 34 | 35 | public KruiseAppsPubUpdatePriorityWeightTerm matchSelector(V1LabelSelector matchSelector) { 36 | this.matchSelector = matchSelector; 37 | return this; 38 | } 39 | 40 | /** 41 | * Get matchSelector 42 | * @return matchSelector 43 | **/ 44 | @ApiModelProperty(required = true, value = "") 45 | public V1LabelSelector getMatchSelector() { 46 | return matchSelector; 47 | } 48 | 49 | public void setMatchSelector(V1LabelSelector matchSelector) { 50 | this.matchSelector = matchSelector; 51 | } 52 | 53 | public KruiseAppsPubUpdatePriorityWeightTerm weight(Integer weight) { 54 | this.weight = weight; 55 | return this; 56 | } 57 | 58 | /** 59 | * Weight associated with matching the corresponding matchExpressions, in the range 1-100. 60 | * @return weight 61 | **/ 62 | @ApiModelProperty(required = true, value = "Weight associated with matching the corresponding matchExpressions, in the range 1-100.") 63 | public Integer getWeight() { 64 | return weight; 65 | } 66 | 67 | public void setWeight(Integer weight) { 68 | this.weight = weight; 69 | } 70 | 71 | 72 | @Override 73 | public boolean equals(Object o) { 74 | if (this == o) { 75 | return true; 76 | } 77 | if (!(o instanceof KruiseAppsPubUpdatePriorityWeightTerm)) { 78 | return false; 79 | } 80 | KruiseAppsPubUpdatePriorityWeightTerm ioKruiseAppsV1alpha1CloneSetSpecUpdateStrategyPriorityStrategyWeightPriority = (KruiseAppsPubUpdatePriorityWeightTerm) o; 81 | return Objects.equals(this.matchSelector, ioKruiseAppsV1alpha1CloneSetSpecUpdateStrategyPriorityStrategyWeightPriority.matchSelector) && 82 | Objects.equals(this.weight, ioKruiseAppsV1alpha1CloneSetSpecUpdateStrategyPriorityStrategyWeightPriority.weight); 83 | } 84 | 85 | @Override 86 | public int hashCode() { 87 | return Objects.hash(matchSelector, weight); 88 | } 89 | 90 | 91 | @Override 92 | public String toString() { 93 | StringBuilder sb = new StringBuilder(); 94 | sb.append("class KruiseAppsV1alpha1CloneSetSpecUpdateStrategyPriorityStrategyWeightPriority {\n"); 95 | 96 | sb.append(" matchSelector: ").append(toIndentedString(matchSelector)).append("\n"); 97 | sb.append(" weight: ").append(toIndentedString(weight)).append("\n"); 98 | sb.append("}"); 99 | return sb.toString(); 100 | } 101 | 102 | /** 103 | * Convert the given object to string with each line indented by 4 spaces 104 | * (except the first line). 105 | */ 106 | private String toIndentedString(Object o) { 107 | if (o == null) { 108 | return "null"; 109 | } 110 | return o.toString().replace("\n", "\n "); 111 | } 112 | 113 | } 114 | 115 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1PullPolicy.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModel; 18 | import io.swagger.annotations.ApiModelProperty; 19 | import java.util.Objects; 20 | import javax.annotation.Generated; 21 | 22 | /** 23 | * PullPolicy is an optional field to set parameters of the pulling task. If not specified, the system will use the default values. 24 | */ 25 | @ApiModel(description = "PullPolicy is an optional field to set parameters of the pulling task. If not specified, the system will use the default values.") 26 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 27 | public class KruiseAppsV1alpha1PullPolicy { 28 | @SerializedName("backoffLimit") 29 | private Integer backoffLimit = null; 30 | 31 | @SerializedName("timeoutSeconds") 32 | private Integer timeoutSeconds = null; 33 | 34 | public KruiseAppsV1alpha1PullPolicy backoffLimit(Integer backoffLimit) { 35 | this.backoffLimit = backoffLimit; 36 | return this; 37 | } 38 | 39 | /** 40 | * Specifies the number of retries before marking the pulling task failed. Defaults to 3 41 | * @return backoffLimit 42 | **/ 43 | @ApiModelProperty(value = "Specifies the number of retries before marking the pulling task failed. Defaults to 3") 44 | public Integer getBackoffLimit() { 45 | return backoffLimit; 46 | } 47 | 48 | public void setBackoffLimit(Integer backoffLimit) { 49 | this.backoffLimit = backoffLimit; 50 | } 51 | 52 | public KruiseAppsV1alpha1PullPolicy timeoutSeconds(Integer timeoutSeconds) { 53 | this.timeoutSeconds = timeoutSeconds; 54 | return this; 55 | } 56 | 57 | /** 58 | * Specifies the timeout of the pulling task. Defaults to 600 59 | * @return timeoutSeconds 60 | **/ 61 | @ApiModelProperty(value = "Specifies the timeout of the pulling task. Defaults to 600") 62 | public Integer getTimeoutSeconds() { 63 | return timeoutSeconds; 64 | } 65 | 66 | public void setTimeoutSeconds(Integer timeoutSeconds) { 67 | this.timeoutSeconds = timeoutSeconds; 68 | } 69 | 70 | 71 | @Override 72 | public boolean equals(Object o) { 73 | if (this == o) { 74 | return true; 75 | } 76 | if (!(o instanceof KruiseAppsV1alpha1PullPolicy)) { 77 | return false; 78 | } 79 | KruiseAppsV1alpha1PullPolicy ioKruiseAppsV1alpha1ImageListPullJobSpecPullPolicy = (KruiseAppsV1alpha1PullPolicy) o; 80 | return Objects.equals(this.backoffLimit, ioKruiseAppsV1alpha1ImageListPullJobSpecPullPolicy.backoffLimit) && 81 | Objects.equals(this.timeoutSeconds, ioKruiseAppsV1alpha1ImageListPullJobSpecPullPolicy.timeoutSeconds); 82 | } 83 | 84 | @Override 85 | public int hashCode() { 86 | return Objects.hash(backoffLimit, timeoutSeconds); 87 | } 88 | 89 | 90 | @Override 91 | public String toString() { 92 | StringBuilder sb = new StringBuilder(); 93 | sb.append("class KruiseAppsV1alpha1ImageListPullJobSpecPullPolicy {\n"); 94 | 95 | sb.append(" backoffLimit: ").append(toIndentedString(backoffLimit)).append("\n"); 96 | sb.append(" timeoutSeconds: ").append(toIndentedString(timeoutSeconds)).append("\n"); 97 | sb.append("}"); 98 | return sb.toString(); 99 | } 100 | 101 | /** 102 | * Convert the given object to string with each line indented by 4 spaces 103 | * (except the first line). 104 | */ 105 | private String toIndentedString(Object o) { 106 | if (o == null) { 107 | return "null"; 108 | } 109 | return o.toString().replace("\n", "\n "); 110 | } 111 | 112 | } 113 | 114 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1beta1StatefulSetUpdateStrategy.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModel; 18 | import io.swagger.annotations.ApiModelProperty; 19 | import java.util.Objects; 20 | import javax.annotation.Generated; 21 | 22 | /** 23 | * updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. 24 | */ 25 | @ApiModel(description = "updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template.") 26 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 27 | public class KruiseAppsV1beta1StatefulSetUpdateStrategy { 28 | @SerializedName("rollingUpdate") 29 | private KruiseAppsV1beta1RollingUpdateStatefulSetStrategy rollingUpdate = null; 30 | 31 | @SerializedName("type") 32 | private String type = null; 33 | 34 | public KruiseAppsV1beta1StatefulSetUpdateStrategy rollingUpdate(KruiseAppsV1beta1RollingUpdateStatefulSetStrategy rollingUpdate) { 35 | this.rollingUpdate = rollingUpdate; 36 | return this; 37 | } 38 | 39 | /** 40 | * Get rollingUpdate 41 | * @return rollingUpdate 42 | **/ 43 | @ApiModelProperty(value = "") 44 | public KruiseAppsV1beta1RollingUpdateStatefulSetStrategy getRollingUpdate() { 45 | return rollingUpdate; 46 | } 47 | 48 | public void setRollingUpdate(KruiseAppsV1beta1RollingUpdateStatefulSetStrategy rollingUpdate) { 49 | this.rollingUpdate = rollingUpdate; 50 | } 51 | 52 | public KruiseAppsV1beta1StatefulSetUpdateStrategy type(String type) { 53 | this.type = type; 54 | return this; 55 | } 56 | 57 | /** 58 | * Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. 59 | * @return type 60 | **/ 61 | @ApiModelProperty(value = "Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate.") 62 | public String getType() { 63 | return type; 64 | } 65 | 66 | public void setType(String type) { 67 | this.type = type; 68 | } 69 | 70 | 71 | @Override 72 | public boolean equals(Object o) { 73 | if (this == o) { 74 | return true; 75 | } 76 | if (!(o instanceof KruiseAppsV1beta1StatefulSetUpdateStrategy)) { 77 | return false; 78 | } 79 | KruiseAppsV1beta1StatefulSetUpdateStrategy ioKruiseAppsV1alpha1StatefulSetSpecUpdateStrategy = (KruiseAppsV1beta1StatefulSetUpdateStrategy) o; 80 | return Objects.equals(this.rollingUpdate, ioKruiseAppsV1alpha1StatefulSetSpecUpdateStrategy.rollingUpdate) && 81 | Objects.equals(this.type, ioKruiseAppsV1alpha1StatefulSetSpecUpdateStrategy.type); 82 | } 83 | 84 | @Override 85 | public int hashCode() { 86 | return Objects.hash(rollingUpdate, type); 87 | } 88 | 89 | 90 | @Override 91 | public String toString() { 92 | StringBuilder sb = new StringBuilder(); 93 | sb.append("class KruiseAppsV1alpha1StatefulSetSpecUpdateStrategy {\n"); 94 | 95 | sb.append(" rollingUpdate: ").append(toIndentedString(rollingUpdate)).append("\n"); 96 | sb.append(" type: ").append(toIndentedString(type)).append("\n"); 97 | sb.append("}"); 98 | return sb.toString(); 99 | } 100 | 101 | /** 102 | * Convert the given object to string with each line indented by 4 spaces 103 | * (except the first line). 104 | */ 105 | private String toIndentedString(Object o) { 106 | if (o == null) { 107 | return "null"; 108 | } 109 | return o.toString().replace("\n", "\n "); 110 | } 111 | 112 | } 113 | 114 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1CronJobTemplate.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.kubernetes.client.openapi.models.V1beta1JobTemplateSpec; 18 | import io.swagger.annotations.ApiModel; 19 | import io.swagger.annotations.ApiModelProperty; 20 | import java.util.Objects; 21 | import javax.annotation.Generated; 22 | 23 | /** 24 | * Specifies the job that will be created when executing a CronJob. 25 | */ 26 | @ApiModel(description = "Specifies the job that will be created when executing a CronJob.") 27 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 28 | public class KruiseAppsV1alpha1CronJobTemplate { 29 | @SerializedName("broadcastJobTemplate") 30 | private KruiseAppsV1alpha1BroadcastJobSpec broadcastJobTemplate = null; 31 | 32 | @SerializedName("jobTemplate") 33 | private V1beta1JobTemplateSpec jobTemplate = null; 34 | 35 | public KruiseAppsV1alpha1CronJobTemplate broadcastJobTemplate(KruiseAppsV1alpha1BroadcastJobSpec broadcastJobTemplate) { 36 | this.broadcastJobTemplate = broadcastJobTemplate; 37 | return this; 38 | } 39 | 40 | /** 41 | * Get broadcastJobTemplate 42 | * @return broadcastJobTemplate 43 | **/ 44 | @ApiModelProperty(value = "") 45 | public KruiseAppsV1alpha1BroadcastJobSpec getBroadcastJobTemplate() { 46 | return broadcastJobTemplate; 47 | } 48 | 49 | public void setBroadcastJobTemplate(KruiseAppsV1alpha1BroadcastJobSpec broadcastJobTemplate) { 50 | this.broadcastJobTemplate = broadcastJobTemplate; 51 | } 52 | 53 | public KruiseAppsV1alpha1CronJobTemplate jobTemplate(V1beta1JobTemplateSpec jobTemplate) { 54 | this.jobTemplate = jobTemplate; 55 | return this; 56 | } 57 | 58 | /** 59 | * Specifies the job that will be created when executing a CronJob. 60 | * @return jobTemplate 61 | **/ 62 | @ApiModelProperty(value = "Specifies the job that will be created when executing a CronJob.") 63 | public V1beta1JobTemplateSpec getJobTemplate() { 64 | return jobTemplate; 65 | } 66 | 67 | public void setJobTemplate(V1beta1JobTemplateSpec jobTemplate) { 68 | this.jobTemplate = jobTemplate; 69 | } 70 | 71 | 72 | @Override 73 | public boolean equals(Object o) { 74 | if (this == o) { 75 | return true; 76 | } 77 | if (!(o instanceof KruiseAppsV1alpha1CronJobTemplate)) { 78 | return false; 79 | } 80 | KruiseAppsV1alpha1CronJobTemplate ioKruiseAppsV1alpha1AdvancedCronJobSpecTemplate = (KruiseAppsV1alpha1CronJobTemplate) o; 81 | return Objects.equals(this.broadcastJobTemplate, ioKruiseAppsV1alpha1AdvancedCronJobSpecTemplate.broadcastJobTemplate) && 82 | Objects.equals(this.jobTemplate, ioKruiseAppsV1alpha1AdvancedCronJobSpecTemplate.jobTemplate); 83 | } 84 | 85 | @Override 86 | public int hashCode() { 87 | return Objects.hash(broadcastJobTemplate, jobTemplate); 88 | } 89 | 90 | 91 | @Override 92 | public String toString() { 93 | StringBuilder sb = new StringBuilder(); 94 | sb.append("class KruiseAppsV1alpha1AdvancedCronJobSpecTemplate {\n"); 95 | 96 | sb.append(" broadcastJobTemplate: ").append(toIndentedString(broadcastJobTemplate)).append("\n"); 97 | sb.append(" jobTemplate: ").append(toIndentedString(jobTemplate)).append("\n"); 98 | sb.append("}"); 99 | return sb.toString(); 100 | } 101 | 102 | /** 103 | * Convert the given object to string with each line indented by 4 spaces 104 | * (except the first line). 105 | */ 106 | private String toIndentedString(Object o) { 107 | if (o == null) { 108 | return "null"; 109 | } 110 | return o.toString().replace("\n", "\n "); 111 | } 112 | 113 | } 114 | 115 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1SidecarSetPatchPodMetadata.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModelProperty; 18 | import java.util.HashMap; 19 | import java.util.Map; 20 | import java.util.Objects; 21 | import javax.annotation.Generated; 22 | 23 | /** 24 | * KruiseAppsV1alpha1SidecarSetSpecPatchPodMetadata 25 | */ 26 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 27 | public class KruiseAppsV1alpha1SidecarSetPatchPodMetadata { 28 | @SerializedName("annotations") 29 | private Map annotations = null; 30 | 31 | @SerializedName("patchPolicy") 32 | private String patchPolicy = null; 33 | 34 | public KruiseAppsV1alpha1SidecarSetPatchPodMetadata annotations(Map annotations) { 35 | this.annotations = annotations; 36 | return this; 37 | } 38 | 39 | public KruiseAppsV1alpha1SidecarSetPatchPodMetadata putAnnotationsItem(String key, String annotationsItem) { 40 | if (this.annotations == null) { 41 | this.annotations = new HashMap(); 42 | } 43 | this.annotations.put(key, annotationsItem); 44 | return this; 45 | } 46 | 47 | /** 48 | * annotations 49 | * @return annotations 50 | **/ 51 | @ApiModelProperty(value = "annotations") 52 | public Map getAnnotations() { 53 | return annotations; 54 | } 55 | 56 | public void setAnnotations(Map annotations) { 57 | this.annotations = annotations; 58 | } 59 | 60 | public KruiseAppsV1alpha1SidecarSetPatchPodMetadata patchPolicy(String patchPolicy) { 61 | this.patchPolicy = patchPolicy; 62 | return this; 63 | } 64 | 65 | /** 66 | * labels map[string]string `json:\"labels,omitempty\"` patch pod metadata policy, Default is \"Retain\" 67 | * @return patchPolicy 68 | **/ 69 | @ApiModelProperty(value = "labels map[string]string `json:\"labels,omitempty\"` patch pod metadata policy, Default is \"Retain\"") 70 | public String getPatchPolicy() { 71 | return patchPolicy; 72 | } 73 | 74 | public void setPatchPolicy(String patchPolicy) { 75 | this.patchPolicy = patchPolicy; 76 | } 77 | 78 | 79 | @Override 80 | public boolean equals(Object o) { 81 | if (this == o) { 82 | return true; 83 | } 84 | if (!(o instanceof KruiseAppsV1alpha1SidecarSetPatchPodMetadata)) { 85 | return false; 86 | } 87 | KruiseAppsV1alpha1SidecarSetPatchPodMetadata ioKruiseAppsV1alpha1SidecarSetSpecPatchPodMetadata = (KruiseAppsV1alpha1SidecarSetPatchPodMetadata) o; 88 | return Objects.equals(this.annotations, ioKruiseAppsV1alpha1SidecarSetSpecPatchPodMetadata.annotations) && 89 | Objects.equals(this.patchPolicy, ioKruiseAppsV1alpha1SidecarSetSpecPatchPodMetadata.patchPolicy); 90 | } 91 | 92 | @Override 93 | public int hashCode() { 94 | return Objects.hash(annotations, patchPolicy); 95 | } 96 | 97 | 98 | @Override 99 | public String toString() { 100 | StringBuilder sb = new StringBuilder(); 101 | sb.append("class KruiseAppsV1alpha1SidecarSetSpecPatchPodMetadata {\n"); 102 | 103 | sb.append(" annotations: ").append(toIndentedString(annotations)).append("\n"); 104 | sb.append(" patchPolicy: ").append(toIndentedString(patchPolicy)).append("\n"); 105 | sb.append("}"); 106 | return sb.toString(); 107 | } 108 | 109 | /** 110 | * Convert the given object to string with each line indented by 4 spaces 111 | * (except the first line). 112 | */ 113 | private String toIndentedString(Object o) { 114 | if (o == null) { 115 | return "null"; 116 | } 117 | return o.toString().replace("\n", "\n "); 118 | } 119 | 120 | } 121 | 122 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1SidecarSetInjectionStrategy.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModel; 18 | import io.swagger.annotations.ApiModelProperty; 19 | import java.util.Objects; 20 | import javax.annotation.Generated; 21 | 22 | /** 23 | * InjectionStrategy describe the strategy when sidecarset is injected into pods 24 | */ 25 | @ApiModel(description = "InjectionStrategy describe the strategy when sidecarset is injected into pods") 26 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 27 | public class KruiseAppsV1alpha1SidecarSetInjectionStrategy { 28 | @SerializedName("paused") 29 | private Boolean paused = null; 30 | 31 | @SerializedName("revision") 32 | private KruiseAppsV1alpha1SidecarSetInjectionStrategyRevision revision = null; 33 | 34 | public KruiseAppsV1alpha1SidecarSetInjectionStrategy paused(Boolean paused) { 35 | this.paused = paused; 36 | return this; 37 | } 38 | 39 | /** 40 | * Paused indicates that SidecarSet will suspend injection into Pods If Paused is true, the sidecarSet will not be injected to newly created Pods, but the injected sidecar container remains updating and running. default is false 41 | * @return paused 42 | **/ 43 | @ApiModelProperty(value = "Paused indicates that SidecarSet will suspend injection into Pods If Paused is true, the sidecarSet will not be injected to newly created Pods, but the injected sidecar container remains updating and running. default is false") 44 | public Boolean isPaused() { 45 | return paused; 46 | } 47 | 48 | public void setPaused(Boolean paused) { 49 | this.paused = paused; 50 | } 51 | 52 | public KruiseAppsV1alpha1SidecarSetInjectionStrategy revision(KruiseAppsV1alpha1SidecarSetInjectionStrategyRevision revision) { 53 | this.revision = revision; 54 | return this; 55 | } 56 | 57 | /** 58 | * Get revision 59 | * @return revision 60 | **/ 61 | @ApiModelProperty(value = "") 62 | public KruiseAppsV1alpha1SidecarSetInjectionStrategyRevision getRevision() { 63 | return revision; 64 | } 65 | 66 | public void setRevision(KruiseAppsV1alpha1SidecarSetInjectionStrategyRevision revision) { 67 | this.revision = revision; 68 | } 69 | 70 | 71 | @Override 72 | public boolean equals(Object o) { 73 | if (this == o) { 74 | return true; 75 | } 76 | if (!(o instanceof KruiseAppsV1alpha1SidecarSetInjectionStrategy)) { 77 | return false; 78 | } 79 | KruiseAppsV1alpha1SidecarSetInjectionStrategy ioKruiseAppsV1alpha1SidecarSetSpecInjectionStrategy = (KruiseAppsV1alpha1SidecarSetInjectionStrategy) o; 80 | return Objects.equals(this.paused, ioKruiseAppsV1alpha1SidecarSetSpecInjectionStrategy.paused) && 81 | Objects.equals(this.revision, ioKruiseAppsV1alpha1SidecarSetSpecInjectionStrategy.revision); 82 | } 83 | 84 | @Override 85 | public int hashCode() { 86 | return Objects.hash(paused, revision); 87 | } 88 | 89 | 90 | @Override 91 | public String toString() { 92 | StringBuilder sb = new StringBuilder(); 93 | sb.append("class KruiseAppsV1alpha1SidecarSetSpecInjectionStrategy {\n"); 94 | 95 | sb.append(" paused: ").append(toIndentedString(paused)).append("\n"); 96 | sb.append(" revision: ").append(toIndentedString(revision)).append("\n"); 97 | sb.append("}"); 98 | return sb.toString(); 99 | } 100 | 101 | /** 102 | * Convert the given object to string with each line indented by 4 spaces 103 | * (except the first line). 104 | */ 105 | private String toIndentedString(Object o) { 106 | if (o == null) { 107 | return "null"; 108 | } 109 | return o.toString().replace("\n", "\n "); 110 | } 111 | 112 | } 113 | 114 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1PodProbeMarkerStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.TypeAdapter; 17 | import com.google.gson.annotations.JsonAdapter; 18 | import com.google.gson.annotations.SerializedName; 19 | import com.google.gson.stream.JsonReader; 20 | import com.google.gson.stream.JsonWriter; 21 | import io.swagger.annotations.ApiModel; 22 | import io.swagger.annotations.ApiModelProperty; 23 | import java.io.IOException; 24 | import java.util.Arrays; 25 | import java.util.Objects; 26 | import javax.annotation.Generated; 27 | 28 | /** 29 | * KruiseAppsV1alpha1PodProbeMarkerStatus 30 | */ 31 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 32 | public class KruiseAppsV1alpha1PodProbeMarkerStatus { 33 | @SerializedName("matchedPods") 34 | private Long matchedPods = null; 35 | 36 | @SerializedName("observedGeneration") 37 | private Long observedGeneration = null; 38 | 39 | public KruiseAppsV1alpha1PodProbeMarkerStatus matchedPods(Long matchedPods) { 40 | this.matchedPods = matchedPods; 41 | return this; 42 | } 43 | 44 | /** 45 | * matched Pods 46 | * @return matchedPods 47 | **/ 48 | @ApiModelProperty(value = "matched Pods") 49 | public Long getMatchedPods() { 50 | return matchedPods; 51 | } 52 | 53 | public void setMatchedPods(Long matchedPods) { 54 | this.matchedPods = matchedPods; 55 | } 56 | 57 | public KruiseAppsV1alpha1PodProbeMarkerStatus observedGeneration(Long observedGeneration) { 58 | this.observedGeneration = observedGeneration; 59 | return this; 60 | } 61 | 62 | /** 63 | * observedGeneration is the most recent generation observed for this PodProbeMarker. It corresponds to the PodProbeMarker's generation, which is updated on mutation by the API Server. 64 | * @return observedGeneration 65 | **/ 66 | @ApiModelProperty(required = true, value = "observedGeneration is the most recent generation observed for this PodProbeMarker. It corresponds to the PodProbeMarker's generation, which is updated on mutation by the API Server.") 67 | public Long getObservedGeneration() { 68 | return observedGeneration; 69 | } 70 | 71 | public void setObservedGeneration(Long observedGeneration) { 72 | this.observedGeneration = observedGeneration; 73 | } 74 | 75 | 76 | @Override 77 | public boolean equals(Object o) { 78 | if (this == o) { 79 | return true; 80 | } 81 | if (!(o instanceof KruiseAppsV1alpha1PodProbeMarkerStatus)) { 82 | return false; 83 | } 84 | KruiseAppsV1alpha1PodProbeMarkerStatus ioKruiseAppsV1alpha1PodProbeMarkerStatus = (KruiseAppsV1alpha1PodProbeMarkerStatus) o; 85 | return Objects.equals(this.matchedPods, ioKruiseAppsV1alpha1PodProbeMarkerStatus.matchedPods) && 86 | Objects.equals(this.observedGeneration, ioKruiseAppsV1alpha1PodProbeMarkerStatus.observedGeneration); 87 | } 88 | 89 | @Override 90 | public int hashCode() { 91 | return Objects.hash(matchedPods, observedGeneration); 92 | } 93 | 94 | 95 | @Override 96 | public String toString() { 97 | StringBuilder sb = new StringBuilder(); 98 | sb.append("class KruiseAppsV1alpha1PodProbeMarkerStatus {\n"); 99 | 100 | sb.append(" matchedPods: ").append(toIndentedString(matchedPods)).append("\n"); 101 | sb.append(" observedGeneration: ").append(toIndentedString(observedGeneration)).append("\n"); 102 | sb.append("}"); 103 | return sb.toString(); 104 | } 105 | 106 | /** 107 | * Convert the given object to string with each line indented by 4 spaces 108 | * (except the first line). 109 | */ 110 | private String toIndentedString(Object o) { 111 | if (o == null) { 112 | return "null"; 113 | } 114 | return o.toString().replace("\n", "\n "); 115 | } 116 | 117 | } 118 | 119 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1ContainerProbe.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModelProperty; 18 | import java.util.Objects; 19 | import javax.annotation.Generated; 20 | 21 | /** 22 | * KruiseAppsV1alpha1NodePodProbeSpecProbes 23 | */ 24 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 25 | public class KruiseAppsV1alpha1ContainerProbe { 26 | @SerializedName("containerName") 27 | private String containerName = null; 28 | 29 | @SerializedName("name") 30 | private String name = null; 31 | 32 | @SerializedName("probe") 33 | private KruiseAppsV1alpha1ContainerProbeSpec probe = null; 34 | 35 | public KruiseAppsV1alpha1ContainerProbe containerName(String containerName) { 36 | this.containerName = containerName; 37 | return this; 38 | } 39 | 40 | /** 41 | * container name 42 | * @return containerName 43 | **/ 44 | @ApiModelProperty(required = true, value = "container name") 45 | public String getContainerName() { 46 | return containerName; 47 | } 48 | 49 | public void setContainerName(String containerName) { 50 | this.containerName = containerName; 51 | } 52 | 53 | public KruiseAppsV1alpha1ContainerProbe name(String name) { 54 | this.name = name; 55 | return this; 56 | } 57 | 58 | /** 59 | * Name is podProbeMarker.Name#probe.Name 60 | * @return name 61 | **/ 62 | @ApiModelProperty(required = true, value = "Name is podProbeMarker.Name#probe.Name") 63 | public String getName() { 64 | return name; 65 | } 66 | 67 | public void setName(String name) { 68 | this.name = name; 69 | } 70 | 71 | public KruiseAppsV1alpha1ContainerProbe probe(KruiseAppsV1alpha1ContainerProbeSpec probe) { 72 | this.probe = probe; 73 | return this; 74 | } 75 | 76 | /** 77 | * Get probe 78 | * @return probe 79 | **/ 80 | @ApiModelProperty(required = true, value = "") 81 | public KruiseAppsV1alpha1ContainerProbeSpec getProbe() { 82 | return probe; 83 | } 84 | 85 | public void setProbe(KruiseAppsV1alpha1ContainerProbeSpec probe) { 86 | this.probe = probe; 87 | } 88 | 89 | 90 | @Override 91 | public boolean equals(Object o) { 92 | if (this == o) { 93 | return true; 94 | } 95 | if (!(o instanceof KruiseAppsV1alpha1ContainerProbe)) { 96 | return false; 97 | } 98 | KruiseAppsV1alpha1ContainerProbe ioKruiseAppsV1alpha1NodePodProbeSpecProbes = (KruiseAppsV1alpha1ContainerProbe) o; 99 | return Objects.equals(this.containerName, ioKruiseAppsV1alpha1NodePodProbeSpecProbes.containerName) && 100 | Objects.equals(this.name, ioKruiseAppsV1alpha1NodePodProbeSpecProbes.name) && 101 | Objects.equals(this.probe, ioKruiseAppsV1alpha1NodePodProbeSpecProbes.probe); 102 | } 103 | 104 | @Override 105 | public int hashCode() { 106 | return Objects.hash(containerName, name, probe); 107 | } 108 | 109 | 110 | @Override 111 | public String toString() { 112 | StringBuilder sb = new StringBuilder(); 113 | sb.append("class KruiseAppsV1alpha1NodePodProbeSpecProbes {\n"); 114 | 115 | sb.append(" containerName: ").append(toIndentedString(containerName)).append("\n"); 116 | sb.append(" name: ").append(toIndentedString(name)).append("\n"); 117 | sb.append(" probe: ").append(toIndentedString(probe)).append("\n"); 118 | sb.append("}"); 119 | return sb.toString(); 120 | } 121 | 122 | /** 123 | * Convert the given object to string with each line indented by 4 spaces 124 | * (except the first line). 125 | */ 126 | private String toIndentedString(Object o) { 127 | if (o == null) { 128 | return "null"; 129 | } 130 | return o.toString().replace("\n", "\n "); 131 | } 132 | 133 | } 134 | 135 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1UpdateStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModel; 18 | import io.swagger.annotations.ApiModelProperty; 19 | import java.util.HashMap; 20 | import java.util.Map; 21 | import java.util.Objects; 22 | import javax.annotation.Generated; 23 | 24 | /** 25 | * Records the information of update progress. 26 | */ 27 | @ApiModel(description = "Records the information of update progress.") 28 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 29 | public class KruiseAppsV1alpha1UpdateStatus { 30 | @SerializedName("currentPartitions") 31 | private Map currentPartitions = null; 32 | 33 | @SerializedName("updatedRevision") 34 | private String updatedRevision = null; 35 | 36 | public KruiseAppsV1alpha1UpdateStatus currentPartitions(Map currentPartitions) { 37 | this.currentPartitions = currentPartitions; 38 | return this; 39 | } 40 | 41 | public KruiseAppsV1alpha1UpdateStatus putCurrentPartitionsItem(String key, Integer currentPartitionsItem) { 42 | if (this.currentPartitions == null) { 43 | this.currentPartitions = new HashMap(); 44 | } 45 | this.currentPartitions.put(key, currentPartitionsItem); 46 | return this; 47 | } 48 | 49 | /** 50 | * Records the current partition. 51 | * @return currentPartitions 52 | **/ 53 | @ApiModelProperty(value = "Records the current partition.") 54 | public Map getCurrentPartitions() { 55 | return currentPartitions; 56 | } 57 | 58 | public void setCurrentPartitions(Map currentPartitions) { 59 | this.currentPartitions = currentPartitions; 60 | } 61 | 62 | public KruiseAppsV1alpha1UpdateStatus updatedRevision(String updatedRevision) { 63 | this.updatedRevision = updatedRevision; 64 | return this; 65 | } 66 | 67 | /** 68 | * Records the latest revision. 69 | * @return updatedRevision 70 | **/ 71 | @ApiModelProperty(value = "Records the latest revision.") 72 | public String getUpdatedRevision() { 73 | return updatedRevision; 74 | } 75 | 76 | public void setUpdatedRevision(String updatedRevision) { 77 | this.updatedRevision = updatedRevision; 78 | } 79 | 80 | 81 | @Override 82 | public boolean equals(Object o) { 83 | if (this == o) { 84 | return true; 85 | } 86 | if (!(o instanceof KruiseAppsV1alpha1UpdateStatus)) { 87 | return false; 88 | } 89 | KruiseAppsV1alpha1UpdateStatus ioKruiseAppsV1alpha1UnitedDeploymentStatusUpdateStatus = (KruiseAppsV1alpha1UpdateStatus) o; 90 | return Objects.equals(this.currentPartitions, ioKruiseAppsV1alpha1UnitedDeploymentStatusUpdateStatus.currentPartitions) && 91 | Objects.equals(this.updatedRevision, ioKruiseAppsV1alpha1UnitedDeploymentStatusUpdateStatus.updatedRevision); 92 | } 93 | 94 | @Override 95 | public int hashCode() { 96 | return Objects.hash(currentPartitions, updatedRevision); 97 | } 98 | 99 | 100 | @Override 101 | public String toString() { 102 | StringBuilder sb = new StringBuilder(); 103 | sb.append("class KruiseAppsV1alpha1UnitedDeploymentStatusUpdateStatus {\n"); 104 | 105 | sb.append(" currentPartitions: ").append(toIndentedString(currentPartitions)).append("\n"); 106 | sb.append(" updatedRevision: ").append(toIndentedString(updatedRevision)).append("\n"); 107 | sb.append("}"); 108 | return sb.toString(); 109 | } 110 | 111 | /** 112 | * Convert the given object to string with each line indented by 4 spaces 113 | * (except the first line). 114 | */ 115 | private String toIndentedString(Object o) { 116 | if (o == null) { 117 | return "null"; 118 | } 119 | return o.toString().replace("\n", "\n "); 120 | } 121 | 122 | } 123 | 124 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1SandboxConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModel; 18 | import io.swagger.annotations.ApiModelProperty; 19 | import java.util.HashMap; 20 | import java.util.Map; 21 | import java.util.Objects; 22 | import javax.annotation.Generated; 23 | 24 | /** 25 | * SandboxConfig support attach metadata in PullImage CRI interface during ImagePulljobs 26 | */ 27 | @ApiModel(description = "SandboxConfig support attach metadata in PullImage CRI interface during ImagePulljobs") 28 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 29 | public class KruiseAppsV1alpha1SandboxConfig { 30 | @SerializedName("annotations") 31 | private Map annotations = null; 32 | 33 | @SerializedName("labels") 34 | private Map labels = null; 35 | 36 | public KruiseAppsV1alpha1SandboxConfig annotations(Map annotations) { 37 | this.annotations = annotations; 38 | return this; 39 | } 40 | 41 | public KruiseAppsV1alpha1SandboxConfig putAnnotationsItem(String key, String annotationsItem) { 42 | if (this.annotations == null) { 43 | this.annotations = new HashMap(); 44 | } 45 | this.annotations.put(key, annotationsItem); 46 | return this; 47 | } 48 | 49 | /** 50 | * Get annotations 51 | * @return annotations 52 | **/ 53 | @ApiModelProperty(value = "") 54 | public Map getAnnotations() { 55 | return annotations; 56 | } 57 | 58 | public void setAnnotations(Map annotations) { 59 | this.annotations = annotations; 60 | } 61 | 62 | public KruiseAppsV1alpha1SandboxConfig labels(Map labels) { 63 | this.labels = labels; 64 | return this; 65 | } 66 | 67 | public KruiseAppsV1alpha1SandboxConfig putLabelsItem(String key, String labelsItem) { 68 | if (this.labels == null) { 69 | this.labels = new HashMap(); 70 | } 71 | this.labels.put(key, labelsItem); 72 | return this; 73 | } 74 | 75 | /** 76 | * Get labels 77 | * @return labels 78 | **/ 79 | @ApiModelProperty(value = "") 80 | public Map getLabels() { 81 | return labels; 82 | } 83 | 84 | public void setLabels(Map labels) { 85 | this.labels = labels; 86 | } 87 | 88 | 89 | @Override 90 | public boolean equals(Object o) { 91 | if (this == o) { 92 | return true; 93 | } 94 | if (!(o instanceof KruiseAppsV1alpha1SandboxConfig)) { 95 | return false; 96 | } 97 | KruiseAppsV1alpha1SandboxConfig ioKruiseAppsV1alpha1ImageListPullJobSpecSandboxConfig = (KruiseAppsV1alpha1SandboxConfig) o; 98 | return Objects.equals(this.annotations, ioKruiseAppsV1alpha1ImageListPullJobSpecSandboxConfig.annotations) && 99 | Objects.equals(this.labels, ioKruiseAppsV1alpha1ImageListPullJobSpecSandboxConfig.labels); 100 | } 101 | 102 | @Override 103 | public int hashCode() { 104 | return Objects.hash(annotations, labels); 105 | } 106 | 107 | 108 | @Override 109 | public String toString() { 110 | StringBuilder sb = new StringBuilder(); 111 | sb.append("class KruiseAppsV1alpha1ImageListPullJobSpecSandboxConfig {\n"); 112 | 113 | sb.append(" annotations: ").append(toIndentedString(annotations)).append("\n"); 114 | sb.append(" labels: ").append(toIndentedString(labels)).append("\n"); 115 | sb.append("}"); 116 | return sb.toString(); 117 | } 118 | 119 | /** 120 | * Convert the given object to string with each line indented by 4 spaces 121 | * (except the first line). 122 | */ 123 | private String toIndentedString(Object o) { 124 | if (o == null) { 125 | return "null"; 126 | } 127 | return o.toString().replace("\n", "\n "); 128 | } 129 | 130 | } 131 | 132 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # client-java 2 | 3 | ## Usage 4 | 5 | Add this dependency to your project's POM: 6 | 7 | ```xml 8 | 9 | io.openkruise 10 | client-java 11 | 1.0.0 12 | compile 13 | 14 | ``` 15 | 16 | **Note that this package has not been uploaded to the maven official repository. Currently, you should manually download this repo and package it to use.** 17 | 18 | You should also add the dependency of Kubernetes official java SDK: 19 | 20 | ```xml 21 | 22 | io.kubernetes 23 | client-java 24 | 11.0.1 25 | 26 | ``` 27 | 28 | ### Manually package 29 | 30 | At first generate the JAR by executing: 31 | 32 | mvn package 33 | 34 | Then manually install the following JARs: 35 | 36 | * target/client-java-1.0.0.jar 37 | * target/lib/*.jar 38 | 39 | ## Getting Started 40 | 41 | You have to use `ApiClient` and `CustomObjectsApi` in `io.kubernetes:client-java` package. 42 | The only thing you should import from `io.openkruise:client-java` is `io.openkruise.client.models.*`. 43 | 44 | ```java 45 | import io.kubernetes.client.openapi.ApiClient; 46 | import io.kubernetes.client.openapi.apis.CustomObjectsApi; 47 | 48 | import io.openkruise.client.models.*; 49 | 50 | public class MyExample { 51 | 52 | // generate this client from a kubeconfig file or something else 53 | ApiClient apiClient; 54 | 55 | public void createCloneSet(String namespace, KruiseAppsV1alpha1CloneSet cloneSet) throws ApiException { 56 | CustomObjectsApi customObjectsApi = new CustomObjectsApi(apiClient); 57 | customObjectsApi.createNamespacedCustomObject( 58 | "apps.kruise.io", 59 | "v1alpha1", 60 | namespace, 61 | "clonesets", 62 | cloneSet, 63 | "true", 64 | null, 65 | null 66 | ); 67 | } 68 | 69 | public KruiseAppsV1alpha1CloneSet getCloneSet(String namespace, String name) throws Exception { 70 | CustomObjectsApi customObjectsApi = new CustomObjectsApi(apiClient); 71 | Object obj = customObjectsApi.getNamespacedCustomObject( 72 | "apps.kruise.io", 73 | "v1alpha1", 74 | namespace, 75 | "clonesets", 76 | name 77 | ); 78 | Gson gson = new JSON().getGson(); 79 | return gson.fromJson(gson.toJsonTree(obj).getAsJsonObject(), KruiseAppsV1alpha1CloneSet.class); 80 | } 81 | 82 | public boolean updateCloneSet(String namespace, String name, String image, int partition, int maxUnavailable) throws ApiException { 83 | CustomObjectsApi customObjectsApi = new CustomObjectsApi(apiClient); 84 | boolean updateSuccess = false; 85 | // a loop to handle update conflicts 86 | for (int i=0; i<5; i++) { 87 | KruiseAppsV1alpha1CloneSet cloneSet = this.getCloneSet(namespace, name); 88 | 89 | // update image in first container 90 | cloneSet.getSpec().getTemplate().getSpec().getContainers().get(0).setImage(image); 91 | // update partition 92 | cloneSet.getSpec().getUpdateStrategy().setPartition(new IntOrString(partition)); 93 | // update maxUnavailable 94 | cloneSet.getSpec().getUpdateStrategy().setMaxUnavailable(new IntOrString(maxUnavailable)); 95 | 96 | try { 97 | customObjectsApi.replaceNamespacedCustomObject( 98 | "apps.kruise.io", 99 | "v1alpha1", 100 | namespace, 101 | "clonesets", 102 | name, 103 | cloneSet, 104 | null, 105 | null 106 | ); 107 | updateSuccess = true; 108 | break; 109 | } catch (ApiException e) { 110 | logger.error(e.getResponseBody()); 111 | // 409 means conflict, just retry to update 112 | if (e.getCode() != 409) { 113 | break; 114 | } 115 | } 116 | } 117 | return updateSuccess; 118 | } 119 | } 120 | 121 | ``` 122 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1PodProbeMarkerSpec.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.kubernetes.client.openapi.models.V1LabelSelector; 18 | import io.swagger.annotations.ApiModel; 19 | import io.swagger.annotations.ApiModelProperty; 20 | import java.util.ArrayList; 21 | import java.util.List; 22 | import java.util.Objects; 23 | import javax.annotation.Generated; 24 | 25 | /** 26 | * PodProbeMarkerSpec defines the desired state of PodProbeMarker 27 | */ 28 | @ApiModel(description = "PodProbeMarkerSpec defines the desired state of PodProbeMarker") 29 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 30 | public class KruiseAppsV1alpha1PodProbeMarkerSpec { 31 | @SerializedName("probes") 32 | private List probes = new ArrayList(); 33 | 34 | @SerializedName("selector") 35 | private V1LabelSelector selector = null; 36 | 37 | public KruiseAppsV1alpha1PodProbeMarkerSpec probes(List probes) { 38 | this.probes = probes; 39 | return this; 40 | } 41 | 42 | public KruiseAppsV1alpha1PodProbeMarkerSpec addProbesItem(KruiseAppsV1alpha1PodContainerProbe probesItem) { 43 | this.probes.add(probesItem); 44 | return this; 45 | } 46 | 47 | /** 48 | * Custom container probe, current only support Exec(). Probe Result will record in Pod.Status.Conditions, and condition.type=probe.name. condition.status=True indicates probe success condition.status=False indicates probe fails 49 | * @return probes 50 | **/ 51 | @ApiModelProperty(required = true, value = "Custom container probe, current only support Exec(). Probe Result will record in Pod.Status.Conditions, and condition.type=probe.name. condition.status=True indicates probe success condition.status=False indicates probe fails") 52 | public List getProbes() { 53 | return probes; 54 | } 55 | 56 | public void setProbes(List probes) { 57 | this.probes = probes; 58 | } 59 | 60 | public KruiseAppsV1alpha1PodProbeMarkerSpec selector(V1LabelSelector selector) { 61 | this.selector = selector; 62 | return this; 63 | } 64 | 65 | /** 66 | * Get selector 67 | * @return selector 68 | **/ 69 | @ApiModelProperty(required = true, value = "") 70 | public V1LabelSelector getSelector() { 71 | return selector; 72 | } 73 | 74 | public void setSelector(V1LabelSelector selector) { 75 | this.selector = selector; 76 | } 77 | 78 | 79 | @Override 80 | public boolean equals(Object o) { 81 | if (this == o) { 82 | return true; 83 | } 84 | if (!(o instanceof KruiseAppsV1alpha1PodProbeMarkerSpec)) { 85 | return false; 86 | } 87 | KruiseAppsV1alpha1PodProbeMarkerSpec ioKruiseAppsV1alpha1PodProbeMarkerSpec = (KruiseAppsV1alpha1PodProbeMarkerSpec) o; 88 | return Objects.equals(this.probes, ioKruiseAppsV1alpha1PodProbeMarkerSpec.probes) && 89 | Objects.equals(this.selector, ioKruiseAppsV1alpha1PodProbeMarkerSpec.selector); 90 | } 91 | 92 | @Override 93 | public int hashCode() { 94 | return Objects.hash(probes, selector); 95 | } 96 | 97 | 98 | @Override 99 | public String toString() { 100 | StringBuilder sb = new StringBuilder(); 101 | sb.append("class KruiseAppsV1alpha1PodProbeMarkerSpec {\n"); 102 | 103 | sb.append(" probes: ").append(toIndentedString(probes)).append("\n"); 104 | sb.append(" selector: ").append(toIndentedString(selector)).append("\n"); 105 | sb.append("}"); 106 | return sb.toString(); 107 | } 108 | 109 | /** 110 | * Convert the given object to string with each line indented by 4 spaces 111 | * (except the first line). 112 | */ 113 | private String toIndentedString(Object o) { 114 | if (o == null) { 115 | return "null"; 116 | } 117 | return o.toString().replace("\n", "\n "); 118 | } 119 | 120 | } 121 | 122 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1SyncStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModel; 18 | import io.swagger.annotations.ApiModelProperty; 19 | import java.util.Objects; 20 | import javax.annotation.Generated; 21 | import org.joda.time.DateTime; 22 | 23 | /** 24 | * The first of all job has finished on this node. When a node is added to the cluster, we want to know the time when the node's image pulling is completed, and use it to trigger the operation of the upper system. 25 | */ 26 | @ApiModel(description = "The first of all job has finished on this node. When a node is added to the cluster, we want to know the time when the node's image pulling is completed, and use it to trigger the operation of the upper system.") 27 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 28 | public class KruiseAppsV1alpha1SyncStatus { 29 | @SerializedName("message") 30 | private String message = null; 31 | 32 | @SerializedName("status") 33 | private String status = null; 34 | 35 | @SerializedName("syncAt") 36 | private DateTime syncAt = null; 37 | 38 | public KruiseAppsV1alpha1SyncStatus message(String message) { 39 | this.message = message; 40 | return this; 41 | } 42 | 43 | /** 44 | * Get message 45 | * @return message 46 | **/ 47 | @ApiModelProperty(value = "") 48 | public String getMessage() { 49 | return message; 50 | } 51 | 52 | public void setMessage(String message) { 53 | this.message = message; 54 | } 55 | 56 | public KruiseAppsV1alpha1SyncStatus status(String status) { 57 | this.status = status; 58 | return this; 59 | } 60 | 61 | /** 62 | * SyncStatusPhase defines the node status 63 | * @return status 64 | **/ 65 | @ApiModelProperty(value = "SyncStatusPhase defines the node status") 66 | public String getStatus() { 67 | return status; 68 | } 69 | 70 | public void setStatus(String status) { 71 | this.status = status; 72 | } 73 | 74 | public KruiseAppsV1alpha1SyncStatus syncAt(DateTime syncAt) { 75 | this.syncAt = syncAt; 76 | return this; 77 | } 78 | 79 | /** 80 | * Get syncAt 81 | * @return syncAt 82 | **/ 83 | @ApiModelProperty(value = "") 84 | public DateTime getSyncAt() { 85 | return syncAt; 86 | } 87 | 88 | public void setSyncAt(DateTime syncAt) { 89 | this.syncAt = syncAt; 90 | } 91 | 92 | 93 | @Override 94 | public boolean equals(Object o) { 95 | if (this == o) { 96 | return true; 97 | } 98 | if (!(o instanceof KruiseAppsV1alpha1SyncStatus)) { 99 | return false; 100 | } 101 | KruiseAppsV1alpha1SyncStatus ioKruiseAppsV1alpha1NodeImageStatusFirstSyncStatus = (KruiseAppsV1alpha1SyncStatus) o; 102 | return Objects.equals(this.message, ioKruiseAppsV1alpha1NodeImageStatusFirstSyncStatus.message) && 103 | Objects.equals(this.status, ioKruiseAppsV1alpha1NodeImageStatusFirstSyncStatus.status) && 104 | Objects.equals(this.syncAt, ioKruiseAppsV1alpha1NodeImageStatusFirstSyncStatus.syncAt); 105 | } 106 | 107 | @Override 108 | public int hashCode() { 109 | return Objects.hash(message, status, syncAt); 110 | } 111 | 112 | 113 | @Override 114 | public String toString() { 115 | StringBuilder sb = new StringBuilder(); 116 | sb.append("class KruiseAppsV1alpha1NodeImageStatusFirstSyncStatus {\n"); 117 | 118 | sb.append(" message: ").append(toIndentedString(message)).append("\n"); 119 | sb.append(" status: ").append(toIndentedString(status)).append("\n"); 120 | sb.append(" syncAt: ").append(toIndentedString(syncAt)).append("\n"); 121 | sb.append("}"); 122 | return sb.toString(); 123 | } 124 | 125 | /** 126 | * Convert the given object to string with each line indented by 4 spaces 127 | * (except the first line). 128 | */ 129 | private String toIndentedString(Object o) { 130 | if (o == null) { 131 | return "null"; 132 | } 133 | return o.toString().replace("\n", "\n "); 134 | } 135 | 136 | } 137 | 138 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsPubLifecycle.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModel; 18 | import io.swagger.annotations.ApiModelProperty; 19 | import java.util.Objects; 20 | import javax.annotation.Generated; 21 | 22 | /** 23 | * Lifecycle defines the lifecycle hooks for Pods pre-available(pre-normal), pre-delete, in-place update. 24 | */ 25 | @ApiModel(description = "Lifecycle defines the lifecycle hooks for Pods pre-available(pre-normal), pre-delete, in-place update.") 26 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 27 | public class KruiseAppsPubLifecycle { 28 | @SerializedName("inPlaceUpdate") 29 | private KruiseAppsPubLifecycleHook inPlaceUpdate = null; 30 | 31 | @SerializedName("preDelete") 32 | private KruiseAppsPubLifecycleHook preDelete = null; 33 | 34 | @SerializedName("preNormal") 35 | private KruiseAppsPubLifecycleHook preNormal = null; 36 | 37 | public KruiseAppsPubLifecycle inPlaceUpdate(KruiseAppsPubLifecycleHook inPlaceUpdate) { 38 | this.inPlaceUpdate = inPlaceUpdate; 39 | return this; 40 | } 41 | 42 | /** 43 | * Get inPlaceUpdate 44 | * @return inPlaceUpdate 45 | **/ 46 | @ApiModelProperty(value = "") 47 | public KruiseAppsPubLifecycleHook getInPlaceUpdate() { 48 | return inPlaceUpdate; 49 | } 50 | 51 | public void setInPlaceUpdate(KruiseAppsPubLifecycleHook inPlaceUpdate) { 52 | this.inPlaceUpdate = inPlaceUpdate; 53 | } 54 | 55 | public KruiseAppsPubLifecycle preDelete(KruiseAppsPubLifecycleHook preDelete) { 56 | this.preDelete = preDelete; 57 | return this; 58 | } 59 | 60 | /** 61 | * Get preDelete 62 | * @return preDelete 63 | **/ 64 | @ApiModelProperty(value = "") 65 | public KruiseAppsPubLifecycleHook getPreDelete() { 66 | return preDelete; 67 | } 68 | 69 | public void setPreDelete(KruiseAppsPubLifecycleHook preDelete) { 70 | this.preDelete = preDelete; 71 | } 72 | 73 | public KruiseAppsPubLifecycle preNormal(KruiseAppsPubLifecycleHook preNormal) { 74 | this.preNormal = preNormal; 75 | return this; 76 | } 77 | 78 | /** 79 | * Get preNormal 80 | * @return preNormal 81 | **/ 82 | @ApiModelProperty(value = "") 83 | public KruiseAppsPubLifecycleHook getPreNormal() { 84 | return preNormal; 85 | } 86 | 87 | public void setPreNormal(KruiseAppsPubLifecycleHook preNormal) { 88 | this.preNormal = preNormal; 89 | } 90 | 91 | 92 | @Override 93 | public boolean equals(Object o) { 94 | if (this == o) { 95 | return true; 96 | } 97 | if (!(o instanceof KruiseAppsPubLifecycle)) { 98 | return false; 99 | } 100 | KruiseAppsPubLifecycle ioKruiseAppsV1alpha1CloneSetSpecLifecycle = (KruiseAppsPubLifecycle) o; 101 | return Objects.equals(this.inPlaceUpdate, ioKruiseAppsV1alpha1CloneSetSpecLifecycle.inPlaceUpdate) && 102 | Objects.equals(this.preDelete, ioKruiseAppsV1alpha1CloneSetSpecLifecycle.preDelete) && 103 | Objects.equals(this.preNormal, ioKruiseAppsV1alpha1CloneSetSpecLifecycle.preNormal); 104 | } 105 | 106 | @Override 107 | public int hashCode() { 108 | return Objects.hash(inPlaceUpdate, preDelete, preNormal); 109 | } 110 | 111 | 112 | @Override 113 | public String toString() { 114 | StringBuilder sb = new StringBuilder(); 115 | sb.append("class KruiseAppsV1alpha1CloneSetSpecLifecycle {\n"); 116 | 117 | sb.append(" inPlaceUpdate: ").append(toIndentedString(inPlaceUpdate)).append("\n"); 118 | sb.append(" preDelete: ").append(toIndentedString(preDelete)).append("\n"); 119 | sb.append(" preNormal: ").append(toIndentedString(preNormal)).append("\n"); 120 | sb.append("}"); 121 | return sb.toString(); 122 | } 123 | 124 | /** 125 | * Convert the given object to string with each line indented by 4 spaces 126 | * (except the first line). 127 | */ 128 | private String toIndentedString(Object o) { 129 | if (o == null) { 130 | return "null"; 131 | } 132 | return o.toString().replace("\n", "\n "); 133 | } 134 | 135 | } 136 | 137 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1FailedImageStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModel; 18 | import io.swagger.annotations.ApiModelProperty; 19 | import java.util.Objects; 20 | import javax.annotation.Generated; 21 | 22 | /** 23 | * FailedImageStatus the state of ImagePullJob which has the failed nodes(status.Failed>0) 24 | */ 25 | @ApiModel(description = "FailedImageStatus the state of ImagePullJob which has the failed nodes(status.Failed>0)") 26 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 27 | public class KruiseAppsV1alpha1FailedImageStatus { 28 | @SerializedName("imagePullJob") 29 | private String imagePullJob = null; 30 | 31 | @SerializedName("message") 32 | private String message = null; 33 | 34 | @SerializedName("name") 35 | private String name = null; 36 | 37 | public KruiseAppsV1alpha1FailedImageStatus imagePullJob(String imagePullJob) { 38 | this.imagePullJob = imagePullJob; 39 | return this; 40 | } 41 | 42 | /** 43 | * The name of ImagePullJob which has the failed nodes(status.Failed>0) 44 | * @return imagePullJob 45 | **/ 46 | @ApiModelProperty(value = "The name of ImagePullJob which has the failed nodes(status.Failed>0)") 47 | public String getImagePullJob() { 48 | return imagePullJob; 49 | } 50 | 51 | public void setImagePullJob(String imagePullJob) { 52 | this.imagePullJob = imagePullJob; 53 | } 54 | 55 | public KruiseAppsV1alpha1FailedImageStatus message(String message) { 56 | this.message = message; 57 | return this; 58 | } 59 | 60 | /** 61 | * The text prompt for job running status. 62 | * @return message 63 | **/ 64 | @ApiModelProperty(value = "The text prompt for job running status.") 65 | public String getMessage() { 66 | return message; 67 | } 68 | 69 | public void setMessage(String message) { 70 | this.message = message; 71 | } 72 | 73 | public KruiseAppsV1alpha1FailedImageStatus name(String name) { 74 | this.name = name; 75 | return this; 76 | } 77 | 78 | /** 79 | * Name of the image 80 | * @return name 81 | **/ 82 | @ApiModelProperty(value = "Name of the image") 83 | public String getName() { 84 | return name; 85 | } 86 | 87 | public void setName(String name) { 88 | this.name = name; 89 | } 90 | 91 | 92 | @Override 93 | public boolean equals(Object o) { 94 | if (this == o) { 95 | return true; 96 | } 97 | if (!(o instanceof KruiseAppsV1alpha1FailedImageStatus)) { 98 | return false; 99 | } 100 | KruiseAppsV1alpha1FailedImageStatus ioKruiseAppsV1alpha1ImageListPullJobStatusFailedImageStatuses = (KruiseAppsV1alpha1FailedImageStatus) o; 101 | return Objects.equals(this.imagePullJob, ioKruiseAppsV1alpha1ImageListPullJobStatusFailedImageStatuses.imagePullJob) && 102 | Objects.equals(this.message, ioKruiseAppsV1alpha1ImageListPullJobStatusFailedImageStatuses.message) && 103 | Objects.equals(this.name, ioKruiseAppsV1alpha1ImageListPullJobStatusFailedImageStatuses.name); 104 | } 105 | 106 | @Override 107 | public int hashCode() { 108 | return Objects.hash(imagePullJob, message, name); 109 | } 110 | 111 | 112 | @Override 113 | public String toString() { 114 | StringBuilder sb = new StringBuilder(); 115 | sb.append("class KruiseAppsV1alpha1ImageListPullJobStatusFailedImageStatuses {\n"); 116 | 117 | sb.append(" imagePullJob: ").append(toIndentedString(imagePullJob)).append("\n"); 118 | sb.append(" message: ").append(toIndentedString(message)).append("\n"); 119 | sb.append(" name: ").append(toIndentedString(name)).append("\n"); 120 | sb.append("}"); 121 | return sb.toString(); 122 | } 123 | 124 | /** 125 | * Convert the given object to string with each line indented by 4 spaces 126 | * (except the first line). 127 | */ 128 | private String toIndentedString(Object o) { 129 | if (o == null) { 130 | return "null"; 131 | } 132 | return o.toString().replace("\n", "\n "); 133 | } 134 | 135 | } 136 | 137 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1ContainerRecreateRequestContext.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModel; 18 | import io.swagger.annotations.ApiModelProperty; 19 | import java.util.Objects; 20 | import javax.annotation.Generated; 21 | 22 | /** 23 | * StatusContext is synced from the real Pod status during this ContainerRecreateRequest creating. Populated by the system. Read-only. 24 | */ 25 | @ApiModel(description = "StatusContext is synced from the real Pod status during this ContainerRecreateRequest creating. Populated by the system. Read-only.") 26 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 27 | public class KruiseAppsV1alpha1ContainerRecreateRequestContext { 28 | @SerializedName("containerID") 29 | private String containerID = null; 30 | 31 | @SerializedName("restartCount") 32 | private Integer restartCount = null; 33 | 34 | public KruiseAppsV1alpha1ContainerRecreateRequestContext containerID(String containerID) { 35 | this.containerID = containerID; 36 | return this; 37 | } 38 | 39 | /** 40 | * Container's ID in the format 'docker://<container_id>'. 41 | * @return containerID 42 | **/ 43 | @ApiModelProperty(required = true, value = "Container's ID in the format 'docker://'.") 44 | public String getContainerID() { 45 | return containerID; 46 | } 47 | 48 | public void setContainerID(String containerID) { 49 | this.containerID = containerID; 50 | } 51 | 52 | public KruiseAppsV1alpha1ContainerRecreateRequestContext restartCount(Integer restartCount) { 53 | this.restartCount = restartCount; 54 | return this; 55 | } 56 | 57 | /** 58 | * The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC. 59 | * @return restartCount 60 | **/ 61 | @ApiModelProperty(required = true, value = "The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC.") 62 | public Integer getRestartCount() { 63 | return restartCount; 64 | } 65 | 66 | public void setRestartCount(Integer restartCount) { 67 | this.restartCount = restartCount; 68 | } 69 | 70 | 71 | @Override 72 | public boolean equals(Object o) { 73 | if (this == o) { 74 | return true; 75 | } 76 | if (!(o instanceof KruiseAppsV1alpha1ContainerRecreateRequestContext)) { 77 | return false; 78 | } 79 | KruiseAppsV1alpha1ContainerRecreateRequestContext ioKruiseAppsV1alpha1ContainerRecreateRequestSpecStatusContext = (KruiseAppsV1alpha1ContainerRecreateRequestContext) o; 80 | return Objects.equals(this.containerID, ioKruiseAppsV1alpha1ContainerRecreateRequestSpecStatusContext.containerID) && 81 | Objects.equals(this.restartCount, ioKruiseAppsV1alpha1ContainerRecreateRequestSpecStatusContext.restartCount); 82 | } 83 | 84 | @Override 85 | public int hashCode() { 86 | return Objects.hash(containerID, restartCount); 87 | } 88 | 89 | 90 | @Override 91 | public String toString() { 92 | StringBuilder sb = new StringBuilder(); 93 | sb.append("class KruiseAppsV1alpha1ContainerRecreateRequestSpecStatusContext {\n"); 94 | 95 | sb.append(" containerID: ").append(toIndentedString(containerID)).append("\n"); 96 | sb.append(" restartCount: ").append(toIndentedString(restartCount)).append("\n"); 97 | sb.append("}"); 98 | return sb.toString(); 99 | } 100 | 101 | /** 102 | * Convert the given object to string with each line indented by 4 spaces 103 | * (except the first line). 104 | */ 105 | private String toIndentedString(Object o) { 106 | if (o == null) { 107 | return "null"; 108 | } 109 | return o.toString().replace("\n", "\n "); 110 | } 111 | 112 | } 113 | 114 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1TargetReference.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModel; 18 | import io.swagger.annotations.ApiModelProperty; 19 | import java.util.Objects; 20 | import javax.annotation.Generated; 21 | 22 | /** 23 | * TargetReference contains enough information to let you identify an workload for PersistentPodState Selector and TargetReference are mutually exclusive, TargetReference is priority to take effect current only support StatefulSet 24 | */ 25 | @ApiModel(description = "TargetReference contains enough information to let you identify an workload for PersistentPodState Selector and TargetReference are mutually exclusive, TargetReference is priority to take effect current only support StatefulSet") 26 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 27 | public class KruiseAppsV1alpha1TargetReference { 28 | @SerializedName("apiVersion") 29 | private String apiVersion = null; 30 | 31 | @SerializedName("kind") 32 | private String kind = null; 33 | 34 | @SerializedName("name") 35 | private String name = null; 36 | 37 | public KruiseAppsV1alpha1TargetReference apiVersion(String apiVersion) { 38 | this.apiVersion = apiVersion; 39 | return this; 40 | } 41 | 42 | /** 43 | * API version of the referent. 44 | * @return apiVersion 45 | **/ 46 | @ApiModelProperty(required = true, value = "API version of the referent.") 47 | public String getApiVersion() { 48 | return apiVersion; 49 | } 50 | 51 | public void setApiVersion(String apiVersion) { 52 | this.apiVersion = apiVersion; 53 | } 54 | 55 | public KruiseAppsV1alpha1TargetReference kind(String kind) { 56 | this.kind = kind; 57 | return this; 58 | } 59 | 60 | /** 61 | * Kind of the referent. 62 | * @return kind 63 | **/ 64 | @ApiModelProperty(required = true, value = "Kind of the referent.") 65 | public String getKind() { 66 | return kind; 67 | } 68 | 69 | public void setKind(String kind) { 70 | this.kind = kind; 71 | } 72 | 73 | public KruiseAppsV1alpha1TargetReference name(String name) { 74 | this.name = name; 75 | return this; 76 | } 77 | 78 | /** 79 | * Name of the referent. 80 | * @return name 81 | **/ 82 | @ApiModelProperty(required = true, value = "Name of the referent.") 83 | public String getName() { 84 | return name; 85 | } 86 | 87 | public void setName(String name) { 88 | this.name = name; 89 | } 90 | 91 | 92 | @Override 93 | public boolean equals(Object o) { 94 | if (this == o) { 95 | return true; 96 | } 97 | if (!(o instanceof KruiseAppsV1alpha1TargetReference)) { 98 | return false; 99 | } 100 | KruiseAppsV1alpha1TargetReference ioKruiseAppsV1alpha1PersistentPodStateSpecTargetRef = (KruiseAppsV1alpha1TargetReference) o; 101 | return Objects.equals(this.apiVersion, ioKruiseAppsV1alpha1PersistentPodStateSpecTargetRef.apiVersion) && 102 | Objects.equals(this.kind, ioKruiseAppsV1alpha1PersistentPodStateSpecTargetRef.kind) && 103 | Objects.equals(this.name, ioKruiseAppsV1alpha1PersistentPodStateSpecTargetRef.name); 104 | } 105 | 106 | @Override 107 | public int hashCode() { 108 | return Objects.hash(apiVersion, kind, name); 109 | } 110 | 111 | 112 | @Override 113 | public String toString() { 114 | StringBuilder sb = new StringBuilder(); 115 | sb.append("class KruiseAppsV1alpha1PersistentPodStateSpecTargetRef {\n"); 116 | 117 | sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); 118 | sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); 119 | sb.append(" name: ").append(toIndentedString(name)).append("\n"); 120 | sb.append("}"); 121 | return sb.toString(); 122 | } 123 | 124 | /** 125 | * Convert the given object to string with each line indented by 4 spaces 126 | * (except the first line). 127 | */ 128 | private String toIndentedString(Object o) { 129 | if (o == null) { 130 | return "null"; 131 | } 132 | return o.toString().replace("\n", "\n "); 133 | } 134 | 135 | } 136 | 137 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1PersistentPodStateStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModelProperty; 18 | import java.util.HashMap; 19 | import java.util.Map; 20 | import java.util.Objects; 21 | import javax.annotation.Generated; 22 | 23 | /** 24 | * KruiseAppsV1alpha1PersistentPodStateStatus 25 | */ 26 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 27 | public class KruiseAppsV1alpha1PersistentPodStateStatus { 28 | @SerializedName("observedGeneration") 29 | private Long observedGeneration = null; 30 | 31 | @SerializedName("podStates") 32 | private Map podStates = null; 33 | 34 | public KruiseAppsV1alpha1PersistentPodStateStatus observedGeneration(Long observedGeneration) { 35 | this.observedGeneration = observedGeneration; 36 | return this; 37 | } 38 | 39 | /** 40 | * observedGeneration is the most recent generation observed for this PersistentPodState. It corresponds to the PersistentPodState's generation, which is updated on mutation by the API Server. 41 | * @return observedGeneration 42 | **/ 43 | @ApiModelProperty(required = true, value = "observedGeneration is the most recent generation observed for this PersistentPodState. It corresponds to the PersistentPodState's generation, which is updated on mutation by the API Server.") 44 | public Long getObservedGeneration() { 45 | return observedGeneration; 46 | } 47 | 48 | public void setObservedGeneration(Long observedGeneration) { 49 | this.observedGeneration = observedGeneration; 50 | } 51 | 52 | public KruiseAppsV1alpha1PersistentPodStateStatus podStates(Map podStates) { 53 | this.podStates = podStates; 54 | return this; 55 | } 56 | 57 | public KruiseAppsV1alpha1PersistentPodStateStatus putPodStatesItem(String key, KruiseAppsV1alpha1PodState podStatesItem) { 58 | if (this.podStates == null) { 59 | this.podStates = new HashMap(); 60 | } 61 | this.podStates.put(key, podStatesItem); 62 | return this; 63 | } 64 | 65 | /** 66 | * When the pod is ready, record some status information of the pod, such as: labels, annotations, topologies, etc. map[string]PodState -> map[Pod.Name]PodState 67 | * @return podStates 68 | **/ 69 | @ApiModelProperty(value = "When the pod is ready, record some status information of the pod, such as: labels, annotations, topologies, etc. map[string]PodState -> map[Pod.Name]PodState") 70 | public Map getPodStates() { 71 | return podStates; 72 | } 73 | 74 | public void setPodStates(Map podStates) { 75 | this.podStates = podStates; 76 | } 77 | 78 | 79 | @Override 80 | public boolean equals(Object o) { 81 | if (this == o) { 82 | return true; 83 | } 84 | if (!(o instanceof KruiseAppsV1alpha1PersistentPodStateStatus)) { 85 | return false; 86 | } 87 | KruiseAppsV1alpha1PersistentPodStateStatus ioKruiseAppsV1alpha1PersistentPodStateStatus = (KruiseAppsV1alpha1PersistentPodStateStatus) o; 88 | return Objects.equals(this.observedGeneration, ioKruiseAppsV1alpha1PersistentPodStateStatus.observedGeneration) && 89 | Objects.equals(this.podStates, ioKruiseAppsV1alpha1PersistentPodStateStatus.podStates); 90 | } 91 | 92 | @Override 93 | public int hashCode() { 94 | return Objects.hash(observedGeneration, podStates); 95 | } 96 | 97 | 98 | @Override 99 | public String toString() { 100 | StringBuilder sb = new StringBuilder(); 101 | sb.append("class KruiseAppsV1alpha1PersistentPodStateStatus {\n"); 102 | 103 | sb.append(" observedGeneration: ").append(toIndentedString(observedGeneration)).append("\n"); 104 | sb.append(" podStates: ").append(toIndentedString(podStates)).append("\n"); 105 | sb.append("}"); 106 | return sb.toString(); 107 | } 108 | 109 | /** 110 | * Convert the given object to string with each line indented by 4 spaces 111 | * (except the first line). 112 | */ 113 | private String toIndentedString(Object o) { 114 | if (o == null) { 115 | return "null"; 116 | } 117 | return o.toString().replace("\n", "\n "); 118 | } 119 | 120 | } 121 | 122 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1WorkloadSpreadStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModel; 18 | import io.swagger.annotations.ApiModelProperty; 19 | import java.util.ArrayList; 20 | import java.util.List; 21 | import java.util.Objects; 22 | import javax.annotation.Generated; 23 | 24 | /** 25 | * WorkloadSpreadStatus defines the observed state of WorkloadSpread. 26 | */ 27 | @ApiModel(description = "WorkloadSpreadStatus defines the observed state of WorkloadSpread.") 28 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 29 | public class KruiseAppsV1alpha1WorkloadSpreadStatus { 30 | @SerializedName("observedGeneration") 31 | private Long observedGeneration = null; 32 | 33 | @SerializedName("subsetStatuses") 34 | private List subsetStatuses = null; 35 | 36 | public KruiseAppsV1alpha1WorkloadSpreadStatus observedGeneration(Long observedGeneration) { 37 | this.observedGeneration = observedGeneration; 38 | return this; 39 | } 40 | 41 | /** 42 | * ObservedGeneration is the most recent generation observed for this WorkloadSpread. It corresponds to the WorkloadSpread's generation, which is updated on mutation by the API Server. 43 | * @return observedGeneration 44 | **/ 45 | @ApiModelProperty(value = "ObservedGeneration is the most recent generation observed for this WorkloadSpread. It corresponds to the WorkloadSpread's generation, which is updated on mutation by the API Server.") 46 | public Long getObservedGeneration() { 47 | return observedGeneration; 48 | } 49 | 50 | public void setObservedGeneration(Long observedGeneration) { 51 | this.observedGeneration = observedGeneration; 52 | } 53 | 54 | public KruiseAppsV1alpha1WorkloadSpreadStatus subsetStatuses(List subsetStatuses) { 55 | this.subsetStatuses = subsetStatuses; 56 | return this; 57 | } 58 | 59 | public KruiseAppsV1alpha1WorkloadSpreadStatus addSubsetStatusesItem(KruiseAppsV1alpha1WorkloadSpreadSubsetStatus subsetStatusesItem) { 60 | if (this.subsetStatuses == null) { 61 | this.subsetStatuses = new ArrayList(); 62 | } 63 | this.subsetStatuses.add(subsetStatusesItem); 64 | return this; 65 | } 66 | 67 | /** 68 | * Contains the status of each subset. Each element in this array represents one subset 69 | * @return subsetStatuses 70 | **/ 71 | @ApiModelProperty(value = "Contains the status of each subset. Each element in this array represents one subset") 72 | public List getSubsetStatuses() { 73 | return subsetStatuses; 74 | } 75 | 76 | public void setSubsetStatuses(List subsetStatuses) { 77 | this.subsetStatuses = subsetStatuses; 78 | } 79 | 80 | 81 | @Override 82 | public boolean equals(Object o) { 83 | if (this == o) { 84 | return true; 85 | } 86 | if (!(o instanceof KruiseAppsV1alpha1WorkloadSpreadStatus)) { 87 | return false; 88 | } 89 | KruiseAppsV1alpha1WorkloadSpreadStatus ioKruiseAppsV1alpha1WorkloadSpreadStatus = (KruiseAppsV1alpha1WorkloadSpreadStatus) o; 90 | return Objects.equals(this.observedGeneration, ioKruiseAppsV1alpha1WorkloadSpreadStatus.observedGeneration) && 91 | Objects.equals(this.subsetStatuses, ioKruiseAppsV1alpha1WorkloadSpreadStatus.subsetStatuses); 92 | } 93 | 94 | @Override 95 | public int hashCode() { 96 | return Objects.hash(observedGeneration, subsetStatuses); 97 | } 98 | 99 | 100 | @Override 101 | public String toString() { 102 | StringBuilder sb = new StringBuilder(); 103 | sb.append("class KruiseAppsV1alpha1WorkloadSpreadStatus {\n"); 104 | 105 | sb.append(" observedGeneration: ").append(toIndentedString(observedGeneration)).append("\n"); 106 | sb.append(" subsetStatuses: ").append(toIndentedString(subsetStatuses)).append("\n"); 107 | sb.append("}"); 108 | return sb.toString(); 109 | } 110 | 111 | /** 112 | * Convert the given object to string with each line indented by 4 spaces 113 | * (except the first line). 114 | */ 115 | private String toIndentedString(Object o) { 116 | if (o == null) { 117 | return "null"; 118 | } 119 | return o.toString().replace("\n", "\n "); 120 | } 121 | 122 | } 123 | 124 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1AdvancedCronJobStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.kubernetes.client.openapi.models.V1ObjectReference; 18 | import io.swagger.annotations.ApiModel; 19 | import io.swagger.annotations.ApiModelProperty; 20 | import java.util.ArrayList; 21 | import java.util.List; 22 | import java.util.Objects; 23 | import javax.annotation.Generated; 24 | import org.joda.time.DateTime; 25 | 26 | /** 27 | * AdvancedCronJobStatus defines the observed state of AdvancedCronJob 28 | */ 29 | @ApiModel(description = "AdvancedCronJobStatus defines the observed state of AdvancedCronJob") 30 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 31 | public class KruiseAppsV1alpha1AdvancedCronJobStatus { 32 | @SerializedName("active") 33 | private List active = null; 34 | 35 | @SerializedName("lastScheduleTime") 36 | private DateTime lastScheduleTime = null; 37 | 38 | @SerializedName("type") 39 | private String type = null; 40 | 41 | public KruiseAppsV1alpha1AdvancedCronJobStatus active(List active) { 42 | this.active = active; 43 | return this; 44 | } 45 | 46 | public KruiseAppsV1alpha1AdvancedCronJobStatus addActiveItem(V1ObjectReference activeItem) { 47 | if (this.active == null) { 48 | this.active = new ArrayList(); 49 | } 50 | this.active.add(activeItem); 51 | return this; 52 | } 53 | 54 | /** 55 | * A list of pointers to currently running jobs. 56 | * @return active 57 | **/ 58 | @ApiModelProperty(value = "A list of pointers to currently running jobs.") 59 | public List getActive() { 60 | return active; 61 | } 62 | 63 | public void setActive(List active) { 64 | this.active = active; 65 | } 66 | 67 | public KruiseAppsV1alpha1AdvancedCronJobStatus lastScheduleTime(DateTime lastScheduleTime) { 68 | this.lastScheduleTime = lastScheduleTime; 69 | return this; 70 | } 71 | 72 | /** 73 | * Information when was the last time the job was successfully scheduled. 74 | * @return lastScheduleTime 75 | **/ 76 | @ApiModelProperty(value = "Information when was the last time the job was successfully scheduled.") 77 | public DateTime getLastScheduleTime() { 78 | return lastScheduleTime; 79 | } 80 | 81 | public void setLastScheduleTime(DateTime lastScheduleTime) { 82 | this.lastScheduleTime = lastScheduleTime; 83 | } 84 | 85 | public KruiseAppsV1alpha1AdvancedCronJobStatus type(String type) { 86 | this.type = type; 87 | return this; 88 | } 89 | 90 | /** 91 | * Get type 92 | * @return type 93 | **/ 94 | @ApiModelProperty(value = "") 95 | public String getType() { 96 | return type; 97 | } 98 | 99 | public void setType(String type) { 100 | this.type = type; 101 | } 102 | 103 | 104 | @Override 105 | public boolean equals(Object o) { 106 | if (this == o) { 107 | return true; 108 | } 109 | if (!(o instanceof KruiseAppsV1alpha1AdvancedCronJobStatus)) { 110 | return false; 111 | } 112 | KruiseAppsV1alpha1AdvancedCronJobStatus ioKruiseAppsV1alpha1AdvancedCronJobStatus = (KruiseAppsV1alpha1AdvancedCronJobStatus) o; 113 | return Objects.equals(this.active, ioKruiseAppsV1alpha1AdvancedCronJobStatus.active) && 114 | Objects.equals(this.lastScheduleTime, ioKruiseAppsV1alpha1AdvancedCronJobStatus.lastScheduleTime) && 115 | Objects.equals(this.type, ioKruiseAppsV1alpha1AdvancedCronJobStatus.type); 116 | } 117 | 118 | @Override 119 | public int hashCode() { 120 | return Objects.hash(active, lastScheduleTime, type); 121 | } 122 | 123 | 124 | @Override 125 | public String toString() { 126 | StringBuilder sb = new StringBuilder(); 127 | sb.append("class KruiseAppsV1alpha1AdvancedCronJobStatus {\n"); 128 | 129 | sb.append(" active: ").append(toIndentedString(active)).append("\n"); 130 | sb.append(" lastScheduleTime: ").append(toIndentedString(lastScheduleTime)).append("\n"); 131 | sb.append(" type: ").append(toIndentedString(type)).append("\n"); 132 | sb.append("}"); 133 | return sb.toString(); 134 | } 135 | 136 | /** 137 | * Convert the given object to string with each line indented by 4 spaces 138 | * (except the first line). 139 | */ 140 | private String toIndentedString(Object o) { 141 | if (o == null) { 142 | return "null"; 143 | } 144 | return o.toString().replace("\n", "\n "); 145 | } 146 | 147 | } 148 | 149 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1PodProbe.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModelProperty; 18 | import java.util.ArrayList; 19 | import java.util.List; 20 | import java.util.Objects; 21 | import javax.annotation.Generated; 22 | 23 | /** 24 | * KruiseAppsV1alpha1NodePodProbeSpecPodProbes 25 | */ 26 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 27 | public class KruiseAppsV1alpha1PodProbe { 28 | @SerializedName("name") 29 | private String name = null; 30 | 31 | @SerializedName("namespace") 32 | private String namespace = null; 33 | 34 | @SerializedName("probes") 35 | private List probes = null; 36 | 37 | @SerializedName("uid") 38 | private String uid = null; 39 | 40 | public KruiseAppsV1alpha1PodProbe name(String name) { 41 | this.name = name; 42 | return this; 43 | } 44 | 45 | /** 46 | * pod name 47 | * @return name 48 | **/ 49 | @ApiModelProperty(required = true, value = "pod name") 50 | public String getName() { 51 | return name; 52 | } 53 | 54 | public void setName(String name) { 55 | this.name = name; 56 | } 57 | 58 | public KruiseAppsV1alpha1PodProbe namespace(String namespace) { 59 | this.namespace = namespace; 60 | return this; 61 | } 62 | 63 | /** 64 | * pod namespace 65 | * @return namespace 66 | **/ 67 | @ApiModelProperty(required = true, value = "pod namespace") 68 | public String getNamespace() { 69 | return namespace; 70 | } 71 | 72 | public void setNamespace(String namespace) { 73 | this.namespace = namespace; 74 | } 75 | 76 | public KruiseAppsV1alpha1PodProbe probes(List probes) { 77 | this.probes = probes; 78 | return this; 79 | } 80 | 81 | public KruiseAppsV1alpha1PodProbe addProbesItem(KruiseAppsV1alpha1ContainerProbe probesItem) { 82 | if (this.probes == null) { 83 | this.probes = new ArrayList(); 84 | } 85 | this.probes.add(probesItem); 86 | return this; 87 | } 88 | 89 | /** 90 | * Custom container probe, supports Exec, Tcp, and returns the result to Pod yaml 91 | * @return probes 92 | **/ 93 | @ApiModelProperty(value = "Custom container probe, supports Exec, Tcp, and returns the result to Pod yaml") 94 | public List getProbes() { 95 | return probes; 96 | } 97 | 98 | public void setProbes(List probes) { 99 | this.probes = probes; 100 | } 101 | 102 | public KruiseAppsV1alpha1PodProbe uid(String uid) { 103 | this.uid = uid; 104 | return this; 105 | } 106 | 107 | /** 108 | * pod uid 109 | * @return uid 110 | **/ 111 | @ApiModelProperty(required = true, value = "pod uid") 112 | public String getUid() { 113 | return uid; 114 | } 115 | 116 | public void setUid(String uid) { 117 | this.uid = uid; 118 | } 119 | 120 | 121 | @Override 122 | public boolean equals(Object o) { 123 | if (this == o) { 124 | return true; 125 | } 126 | if (!(o instanceof KruiseAppsV1alpha1PodProbe)) { 127 | return false; 128 | } 129 | KruiseAppsV1alpha1PodProbe ioKruiseAppsV1alpha1NodePodProbeSpecPodProbes = (KruiseAppsV1alpha1PodProbe) o; 130 | return Objects.equals(this.name, ioKruiseAppsV1alpha1NodePodProbeSpecPodProbes.name) && 131 | Objects.equals(this.namespace, ioKruiseAppsV1alpha1NodePodProbeSpecPodProbes.namespace) && 132 | Objects.equals(this.probes, ioKruiseAppsV1alpha1NodePodProbeSpecPodProbes.probes) && 133 | Objects.equals(this.uid, ioKruiseAppsV1alpha1NodePodProbeSpecPodProbes.uid); 134 | } 135 | 136 | @Override 137 | public int hashCode() { 138 | return Objects.hash(name, namespace, probes, uid); 139 | } 140 | 141 | 142 | @Override 143 | public String toString() { 144 | StringBuilder sb = new StringBuilder(); 145 | sb.append("class KruiseAppsV1alpha1NodePodProbeSpecPodProbes {\n"); 146 | 147 | sb.append(" name: ").append(toIndentedString(name)).append("\n"); 148 | sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); 149 | sb.append(" probes: ").append(toIndentedString(probes)).append("\n"); 150 | sb.append(" uid: ").append(toIndentedString(uid)).append("\n"); 151 | sb.append("}"); 152 | return sb.toString(); 153 | } 154 | 155 | /** 156 | * Convert the given object to string with each line indented by 4 spaces 157 | * (except the first line). 158 | */ 159 | private String toIndentedString(Object o) { 160 | if (o == null) { 161 | return "null"; 162 | } 163 | return o.toString().replace("\n", "\n "); 164 | } 165 | 166 | } 167 | 168 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1WorkloadSpreadSpec.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModel; 18 | import io.swagger.annotations.ApiModelProperty; 19 | import java.util.ArrayList; 20 | import java.util.List; 21 | import java.util.Objects; 22 | import javax.annotation.Generated; 23 | 24 | /** 25 | * WorkloadSpreadSpec defines the desired state of WorkloadSpread. 26 | */ 27 | @ApiModel(description = "WorkloadSpreadSpec defines the desired state of WorkloadSpread.") 28 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 29 | public class KruiseAppsV1alpha1WorkloadSpreadSpec { 30 | @SerializedName("scheduleStrategy") 31 | private KruiseAppsV1alpha1WorkloadSpreadScheduleStrategy scheduleStrategy = null; 32 | 33 | @SerializedName("subsets") 34 | private List subsets = new ArrayList(); 35 | 36 | @SerializedName("targetRef") 37 | private KruiseAppsV1alpha1TargetReference targetRef = null; 38 | 39 | public KruiseAppsV1alpha1WorkloadSpreadSpec scheduleStrategy(KruiseAppsV1alpha1WorkloadSpreadScheduleStrategy scheduleStrategy) { 40 | this.scheduleStrategy = scheduleStrategy; 41 | return this; 42 | } 43 | 44 | /** 45 | * Get scheduleStrategy 46 | * @return scheduleStrategy 47 | **/ 48 | @ApiModelProperty(value = "") 49 | public KruiseAppsV1alpha1WorkloadSpreadScheduleStrategy getScheduleStrategy() { 50 | return scheduleStrategy; 51 | } 52 | 53 | public void setScheduleStrategy(KruiseAppsV1alpha1WorkloadSpreadScheduleStrategy scheduleStrategy) { 54 | this.scheduleStrategy = scheduleStrategy; 55 | } 56 | 57 | public KruiseAppsV1alpha1WorkloadSpreadSpec subsets(List subsets) { 58 | this.subsets = subsets; 59 | return this; 60 | } 61 | 62 | public KruiseAppsV1alpha1WorkloadSpreadSpec addSubsetsItem(KruiseAppsV1alpha1WorkloadSpreadSubset subsetsItem) { 63 | this.subsets.add(subsetsItem); 64 | return this; 65 | } 66 | 67 | /** 68 | * Subsets describes the pods distribution details between each of subsets. 69 | * @return subsets 70 | **/ 71 | @ApiModelProperty(required = true, value = "Subsets describes the pods distribution details between each of subsets.") 72 | public List getSubsets() { 73 | return subsets; 74 | } 75 | 76 | public void setSubsets(List subsets) { 77 | this.subsets = subsets; 78 | } 79 | 80 | public KruiseAppsV1alpha1WorkloadSpreadSpec targetRef(KruiseAppsV1alpha1TargetReference targetRef) { 81 | this.targetRef = targetRef; 82 | return this; 83 | } 84 | 85 | /** 86 | * Get targetRef 87 | * @return targetRef 88 | **/ 89 | @ApiModelProperty(required = true, value = "") 90 | public KruiseAppsV1alpha1TargetReference getTargetRef() { 91 | return targetRef; 92 | } 93 | 94 | public void setTargetRef(KruiseAppsV1alpha1TargetReference targetRef) { 95 | this.targetRef = targetRef; 96 | } 97 | 98 | 99 | @Override 100 | public boolean equals(Object o) { 101 | if (this == o) { 102 | return true; 103 | } 104 | if (!(o instanceof KruiseAppsV1alpha1WorkloadSpreadSpec)) { 105 | return false; 106 | } 107 | KruiseAppsV1alpha1WorkloadSpreadSpec ioKruiseAppsV1alpha1WorkloadSpreadSpec = (KruiseAppsV1alpha1WorkloadSpreadSpec) o; 108 | return Objects.equals(this.scheduleStrategy, ioKruiseAppsV1alpha1WorkloadSpreadSpec.scheduleStrategy) && 109 | Objects.equals(this.subsets, ioKruiseAppsV1alpha1WorkloadSpreadSpec.subsets) && 110 | Objects.equals(this.targetRef, ioKruiseAppsV1alpha1WorkloadSpreadSpec.targetRef); 111 | } 112 | 113 | @Override 114 | public int hashCode() { 115 | return Objects.hash(scheduleStrategy, subsets, targetRef); 116 | } 117 | 118 | 119 | @Override 120 | public String toString() { 121 | StringBuilder sb = new StringBuilder(); 122 | sb.append("class KruiseAppsV1alpha1WorkloadSpreadSpec {\n"); 123 | 124 | sb.append(" scheduleStrategy: ").append(toIndentedString(scheduleStrategy)).append("\n"); 125 | sb.append(" subsets: ").append(toIndentedString(subsets)).append("\n"); 126 | sb.append(" targetRef: ").append(toIndentedString(targetRef)).append("\n"); 127 | sb.append("}"); 128 | return sb.toString(); 129 | } 130 | 131 | /** 132 | * Convert the given object to string with each line indented by 4 spaces 133 | * (except the first line). 134 | */ 135 | private String toIndentedString(Object o) { 136 | if (o == null) { 137 | return "null"; 138 | } 139 | return o.toString().replace("\n", "\n "); 140 | } 141 | 142 | } 143 | 144 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1PodState.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModelProperty; 18 | import java.util.HashMap; 19 | import java.util.Map; 20 | import java.util.Objects; 21 | import javax.annotation.Generated; 22 | 23 | /** 24 | * KruiseAppsV1alpha1PersistentPodStateStatusPodStates 25 | */ 26 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 27 | public class KruiseAppsV1alpha1PodState { 28 | @SerializedName("annotations") 29 | private Map annotations = null; 30 | 31 | @SerializedName("nodeName") 32 | private String nodeName = null; 33 | 34 | @SerializedName("nodeTopologyLabels") 35 | private Map nodeTopologyLabels = null; 36 | 37 | public KruiseAppsV1alpha1PodState annotations(Map annotations) { 38 | this.annotations = annotations; 39 | return this; 40 | } 41 | 42 | public KruiseAppsV1alpha1PodState putAnnotationsItem(String key, String annotationsItem) { 43 | if (this.annotations == null) { 44 | this.annotations = new HashMap(); 45 | } 46 | this.annotations.put(key, annotationsItem); 47 | return this; 48 | } 49 | 50 | /** 51 | * pod persistent annotations 52 | * @return annotations 53 | **/ 54 | @ApiModelProperty(value = "pod persistent annotations") 55 | public Map getAnnotations() { 56 | return annotations; 57 | } 58 | 59 | public void setAnnotations(Map annotations) { 60 | this.annotations = annotations; 61 | } 62 | 63 | public KruiseAppsV1alpha1PodState nodeName(String nodeName) { 64 | this.nodeName = nodeName; 65 | return this; 66 | } 67 | 68 | /** 69 | * pod.spec.nodeName 70 | * @return nodeName 71 | **/ 72 | @ApiModelProperty(value = "pod.spec.nodeName") 73 | public String getNodeName() { 74 | return nodeName; 75 | } 76 | 77 | public void setNodeName(String nodeName) { 78 | this.nodeName = nodeName; 79 | } 80 | 81 | public KruiseAppsV1alpha1PodState nodeTopologyLabels(Map nodeTopologyLabels) { 82 | this.nodeTopologyLabels = nodeTopologyLabels; 83 | return this; 84 | } 85 | 86 | public KruiseAppsV1alpha1PodState putNodeTopologyLabelsItem(String key, String nodeTopologyLabelsItem) { 87 | if (this.nodeTopologyLabels == null) { 88 | this.nodeTopologyLabels = new HashMap(); 89 | } 90 | this.nodeTopologyLabels.put(key, nodeTopologyLabelsItem); 91 | return this; 92 | } 93 | 94 | /** 95 | * node topology labels key=value for example kubernetes.io/hostname=node-1 96 | * @return nodeTopologyLabels 97 | **/ 98 | @ApiModelProperty(value = "node topology labels key=value for example kubernetes.io/hostname=node-1") 99 | public Map getNodeTopologyLabels() { 100 | return nodeTopologyLabels; 101 | } 102 | 103 | public void setNodeTopologyLabels(Map nodeTopologyLabels) { 104 | this.nodeTopologyLabels = nodeTopologyLabels; 105 | } 106 | 107 | 108 | @Override 109 | public boolean equals(Object o) { 110 | if (this == o) { 111 | return true; 112 | } 113 | if (!(o instanceof KruiseAppsV1alpha1PodState)) { 114 | return false; 115 | } 116 | KruiseAppsV1alpha1PodState ioKruiseAppsV1alpha1PersistentPodStateStatusPodStates = (KruiseAppsV1alpha1PodState) o; 117 | return Objects.equals(this.annotations, ioKruiseAppsV1alpha1PersistentPodStateStatusPodStates.annotations) && 118 | Objects.equals(this.nodeName, ioKruiseAppsV1alpha1PersistentPodStateStatusPodStates.nodeName) && 119 | Objects.equals(this.nodeTopologyLabels, ioKruiseAppsV1alpha1PersistentPodStateStatusPodStates.nodeTopologyLabels); 120 | } 121 | 122 | @Override 123 | public int hashCode() { 124 | return Objects.hash(annotations, nodeName, nodeTopologyLabels); 125 | } 126 | 127 | 128 | @Override 129 | public String toString() { 130 | StringBuilder sb = new StringBuilder(); 131 | sb.append("class KruiseAppsV1alpha1PersistentPodStateStatusPodStates {\n"); 132 | 133 | sb.append(" annotations: ").append(toIndentedString(annotations)).append("\n"); 134 | sb.append(" nodeName: ").append(toIndentedString(nodeName)).append("\n"); 135 | sb.append(" nodeTopologyLabels: ").append(toIndentedString(nodeTopologyLabels)).append("\n"); 136 | sb.append("}"); 137 | return sb.toString(); 138 | } 139 | 140 | /** 141 | * Convert the given object to string with each line indented by 4 spaces 142 | * (except the first line). 143 | */ 144 | private String toIndentedString(Object o) { 145 | if (o == null) { 146 | return "null"; 147 | } 148 | return o.toString().replace("\n", "\n "); 149 | } 150 | 151 | } 152 | 153 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1PodProbeStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModelProperty; 18 | import java.util.ArrayList; 19 | import java.util.List; 20 | import java.util.Objects; 21 | import javax.annotation.Generated; 22 | 23 | /** 24 | * KruiseAppsV1alpha1NodePodProbeStatusPodProbeStatuses 25 | */ 26 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 27 | public class KruiseAppsV1alpha1PodProbeStatus { 28 | @SerializedName("name") 29 | private String name = null; 30 | 31 | @SerializedName("namespace") 32 | private String namespace = null; 33 | 34 | @SerializedName("probeStates") 35 | private List probeStates = null; 36 | 37 | @SerializedName("uid") 38 | private String uid = null; 39 | 40 | public KruiseAppsV1alpha1PodProbeStatus name(String name) { 41 | this.name = name; 42 | return this; 43 | } 44 | 45 | /** 46 | * pod name 47 | * @return name 48 | **/ 49 | @ApiModelProperty(required = true, value = "pod name") 50 | public String getName() { 51 | return name; 52 | } 53 | 54 | public void setName(String name) { 55 | this.name = name; 56 | } 57 | 58 | public KruiseAppsV1alpha1PodProbeStatus namespace(String namespace) { 59 | this.namespace = namespace; 60 | return this; 61 | } 62 | 63 | /** 64 | * pod namespace 65 | * @return namespace 66 | **/ 67 | @ApiModelProperty(required = true, value = "pod namespace") 68 | public String getNamespace() { 69 | return namespace; 70 | } 71 | 72 | public void setNamespace(String namespace) { 73 | this.namespace = namespace; 74 | } 75 | 76 | public KruiseAppsV1alpha1PodProbeStatus probeStates(List probeStates) { 77 | this.probeStates = probeStates; 78 | return this; 79 | } 80 | 81 | public KruiseAppsV1alpha1PodProbeStatus addProbeStatesItem(KruiseAppsV1alpha1ContainerProbeState probeStatesItem) { 82 | if (this.probeStates == null) { 83 | this.probeStates = new ArrayList(); 84 | } 85 | this.probeStates.add(probeStatesItem); 86 | return this; 87 | } 88 | 89 | /** 90 | * pod probe result 91 | * @return probeStates 92 | **/ 93 | @ApiModelProperty(value = "pod probe result") 94 | public List getProbeStates() { 95 | return probeStates; 96 | } 97 | 98 | public void setProbeStates(List probeStates) { 99 | this.probeStates = probeStates; 100 | } 101 | 102 | public KruiseAppsV1alpha1PodProbeStatus uid(String uid) { 103 | this.uid = uid; 104 | return this; 105 | } 106 | 107 | /** 108 | * pod uid 109 | * @return uid 110 | **/ 111 | @ApiModelProperty(required = true, value = "pod uid") 112 | public String getUid() { 113 | return uid; 114 | } 115 | 116 | public void setUid(String uid) { 117 | this.uid = uid; 118 | } 119 | 120 | 121 | @Override 122 | public boolean equals(Object o) { 123 | if (this == o) { 124 | return true; 125 | } 126 | if (!(o instanceof KruiseAppsV1alpha1PodProbeStatus)) { 127 | return false; 128 | } 129 | KruiseAppsV1alpha1PodProbeStatus ioKruiseAppsV1alpha1NodePodProbeStatusPodProbeStatuses = (KruiseAppsV1alpha1PodProbeStatus) o; 130 | return Objects.equals(this.name, ioKruiseAppsV1alpha1NodePodProbeStatusPodProbeStatuses.name) && 131 | Objects.equals(this.namespace, ioKruiseAppsV1alpha1NodePodProbeStatusPodProbeStatuses.namespace) && 132 | Objects.equals(this.probeStates, ioKruiseAppsV1alpha1NodePodProbeStatusPodProbeStatuses.probeStates) && 133 | Objects.equals(this.uid, ioKruiseAppsV1alpha1NodePodProbeStatusPodProbeStatuses.uid); 134 | } 135 | 136 | @Override 137 | public int hashCode() { 138 | return Objects.hash(name, namespace, probeStates, uid); 139 | } 140 | 141 | 142 | @Override 143 | public String toString() { 144 | StringBuilder sb = new StringBuilder(); 145 | sb.append("class KruiseAppsV1alpha1NodePodProbeStatusPodProbeStatuses {\n"); 146 | 147 | sb.append(" name: ").append(toIndentedString(name)).append("\n"); 148 | sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); 149 | sb.append(" probeStates: ").append(toIndentedString(probeStates)).append("\n"); 150 | sb.append(" uid: ").append(toIndentedString(uid)).append("\n"); 151 | sb.append("}"); 152 | return sb.toString(); 153 | } 154 | 155 | /** 156 | * Convert the given object to string with each line indented by 4 spaces 157 | * (except the first line). 158 | */ 159 | private String toIndentedString(Object o) { 160 | if (o == null) { 161 | return "null"; 162 | } 163 | return o.toString().replace("\n", "\n "); 164 | } 165 | 166 | } 167 | 168 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1beta1StatefulSetPersistentVolumeClaimRetentionPolicy.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModel; 18 | import io.swagger.annotations.ApiModelProperty; 19 | import java.util.Objects; 20 | import javax.annotation.Generated; 21 | 22 | /** 23 | * PersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha. 24 | */ 25 | @ApiModel(description = "PersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha.") 26 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 27 | public class KruiseAppsV1beta1StatefulSetPersistentVolumeClaimRetentionPolicy { 28 | @SerializedName("whenDeleted") 29 | private String whenDeleted = null; 30 | 31 | @SerializedName("whenScaled") 32 | private String whenScaled = null; 33 | 34 | public KruiseAppsV1beta1StatefulSetPersistentVolumeClaimRetentionPolicy whenDeleted(String whenDeleted) { 35 | this.whenDeleted = whenDeleted; 36 | return this; 37 | } 38 | 39 | /** 40 | * WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted. 41 | * @return whenDeleted 42 | **/ 43 | @ApiModelProperty(value = "WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted.") 44 | public String getWhenDeleted() { 45 | return whenDeleted; 46 | } 47 | 48 | public void setWhenDeleted(String whenDeleted) { 49 | this.whenDeleted = whenDeleted; 50 | } 51 | 52 | public KruiseAppsV1beta1StatefulSetPersistentVolumeClaimRetentionPolicy whenScaled(String whenScaled) { 53 | this.whenScaled = whenScaled; 54 | return this; 55 | } 56 | 57 | /** 58 | * WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted. 59 | * @return whenScaled 60 | **/ 61 | @ApiModelProperty(value = "WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted.") 62 | public String getWhenScaled() { 63 | return whenScaled; 64 | } 65 | 66 | public void setWhenScaled(String whenScaled) { 67 | this.whenScaled = whenScaled; 68 | } 69 | 70 | 71 | @Override 72 | public boolean equals(Object o) { 73 | if (this == o) { 74 | return true; 75 | } 76 | if (!(o instanceof KruiseAppsV1beta1StatefulSetPersistentVolumeClaimRetentionPolicy)) { 77 | return false; 78 | } 79 | KruiseAppsV1beta1StatefulSetPersistentVolumeClaimRetentionPolicy ioKruiseAppsV1alpha1UnitedDeploymentSpecTemplateAdvancedStatefulSetTemplateSpecPersistentVolumeClaimRetentionPolicy = (KruiseAppsV1beta1StatefulSetPersistentVolumeClaimRetentionPolicy) o; 80 | return Objects.equals(this.whenDeleted, ioKruiseAppsV1alpha1UnitedDeploymentSpecTemplateAdvancedStatefulSetTemplateSpecPersistentVolumeClaimRetentionPolicy.whenDeleted) && 81 | Objects.equals(this.whenScaled, ioKruiseAppsV1alpha1UnitedDeploymentSpecTemplateAdvancedStatefulSetTemplateSpecPersistentVolumeClaimRetentionPolicy.whenScaled); 82 | } 83 | 84 | @Override 85 | public int hashCode() { 86 | return Objects.hash(whenDeleted, whenScaled); 87 | } 88 | 89 | 90 | @Override 91 | public String toString() { 92 | StringBuilder sb = new StringBuilder(); 93 | sb.append("class KruiseAppsV1alpha1UnitedDeploymentSpecTemplateAdvancedStatefulSetTemplateSpecPersistentVolumeClaimRetentionPolicy {\n"); 94 | 95 | sb.append(" whenDeleted: ").append(toIndentedString(whenDeleted)).append("\n"); 96 | sb.append(" whenScaled: ").append(toIndentedString(whenScaled)).append("\n"); 97 | sb.append("}"); 98 | return sb.toString(); 99 | } 100 | 101 | /** 102 | * Convert the given object to string with each line indented by 4 spaces 103 | * (except the first line). 104 | */ 105 | private String toIndentedString(Object o) { 106 | if (o == null) { 107 | return "null"; 108 | } 109 | return o.toString().replace("\n", "\n "); 110 | } 111 | 112 | } 113 | 114 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1ImagePullJobPodSelector.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.kubernetes.client.openapi.models.V1LabelSelectorRequirement; 18 | import io.swagger.annotations.ApiModel; 19 | import io.swagger.annotations.ApiModelProperty; 20 | import java.util.ArrayList; 21 | import java.util.HashMap; 22 | import java.util.List; 23 | import java.util.Map; 24 | import java.util.Objects; 25 | import javax.annotation.Generated; 26 | 27 | /** 28 | * PodSelector is a query over pods that should pull image on nodes of these pods. Mutually exclusive with Selector. 29 | */ 30 | @ApiModel(description = "PodSelector is a query over pods that should pull image on nodes of these pods. Mutually exclusive with Selector.") 31 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 32 | public class KruiseAppsV1alpha1ImagePullJobPodSelector { 33 | @SerializedName("matchExpressions") 34 | private List matchExpressions = null; 35 | 36 | @SerializedName("matchLabels") 37 | private Map matchLabels = null; 38 | 39 | public KruiseAppsV1alpha1ImagePullJobPodSelector matchExpressions(List matchExpressions) { 40 | this.matchExpressions = matchExpressions; 41 | return this; 42 | } 43 | 44 | public KruiseAppsV1alpha1ImagePullJobPodSelector addMatchExpressionsItem(V1LabelSelectorRequirement matchExpressionsItem) { 45 | if (this.matchExpressions == null) { 46 | this.matchExpressions = new ArrayList(); 47 | } 48 | this.matchExpressions.add(matchExpressionsItem); 49 | return this; 50 | } 51 | 52 | /** 53 | * matchExpressions is a list of label selector requirements. The requirements are ANDed. 54 | * @return matchExpressions 55 | **/ 56 | @ApiModelProperty(value = "matchExpressions is a list of label selector requirements. The requirements are ANDed.") 57 | public List getMatchExpressions() { 58 | return matchExpressions; 59 | } 60 | 61 | public void setMatchExpressions(List matchExpressions) { 62 | this.matchExpressions = matchExpressions; 63 | } 64 | 65 | public KruiseAppsV1alpha1ImagePullJobPodSelector matchLabels(Map matchLabels) { 66 | this.matchLabels = matchLabels; 67 | return this; 68 | } 69 | 70 | public KruiseAppsV1alpha1ImagePullJobPodSelector putMatchLabelsItem(String key, String matchLabelsItem) { 71 | if (this.matchLabels == null) { 72 | this.matchLabels = new HashMap(); 73 | } 74 | this.matchLabels.put(key, matchLabelsItem); 75 | return this; 76 | } 77 | 78 | /** 79 | * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. 80 | * @return matchLabels 81 | **/ 82 | @ApiModelProperty(value = "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.") 83 | public Map getMatchLabels() { 84 | return matchLabels; 85 | } 86 | 87 | public void setMatchLabels(Map matchLabels) { 88 | this.matchLabels = matchLabels; 89 | } 90 | 91 | 92 | @Override 93 | public boolean equals(Object o) { 94 | if (this == o) { 95 | return true; 96 | } 97 | if (!(o instanceof KruiseAppsV1alpha1ImagePullJobPodSelector)) { 98 | return false; 99 | } 100 | KruiseAppsV1alpha1ImagePullJobPodSelector ioKruiseAppsV1alpha1ImageListPullJobSpecPodSelector = (KruiseAppsV1alpha1ImagePullJobPodSelector) o; 101 | return Objects.equals(this.matchExpressions, ioKruiseAppsV1alpha1ImageListPullJobSpecPodSelector.matchExpressions) && 102 | Objects.equals(this.matchLabels, ioKruiseAppsV1alpha1ImageListPullJobSpecPodSelector.matchLabels); 103 | } 104 | 105 | @Override 106 | public int hashCode() { 107 | return Objects.hash(matchExpressions, matchLabels); 108 | } 109 | 110 | 111 | @Override 112 | public String toString() { 113 | StringBuilder sb = new StringBuilder(); 114 | sb.append("class KruiseAppsV1alpha1ImageListPullJobSpecPodSelector {\n"); 115 | 116 | sb.append(" matchExpressions: ").append(toIndentedString(matchExpressions)).append("\n"); 117 | sb.append(" matchLabels: ").append(toIndentedString(matchLabels)).append("\n"); 118 | sb.append("}"); 119 | return sb.toString(); 120 | } 121 | 122 | /** 123 | * Convert the given object to string with each line indented by 4 spaces 124 | * (except the first line). 125 | */ 126 | private String toIndentedString(Object o) { 127 | if (o == null) { 128 | return "null"; 129 | } 130 | return o.toString().replace("\n", "\n "); 131 | } 132 | 133 | } 134 | 135 | -------------------------------------------------------------------------------- /src/main/java/io/openkruise/client/models/KruiseAppsV1alpha1AdaptiveWorkloadSpreadStrategy.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Kruise 3 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 4 | * 5 | * OpenAPI spec version: v1.21.1 6 | * 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | 13 | 14 | package io.openkruise.client.models; 15 | 16 | import com.google.gson.annotations.SerializedName; 17 | import io.swagger.annotations.ApiModel; 18 | import io.swagger.annotations.ApiModelProperty; 19 | import java.util.Objects; 20 | import javax.annotation.Generated; 21 | 22 | /** 23 | * Adaptive is used to communicate parameters when Type is AdaptiveWorkloadSpreadScheduleStrategyType. 24 | */ 25 | @ApiModel(description = "Adaptive is used to communicate parameters when Type is AdaptiveWorkloadSpreadScheduleStrategyType.") 26 | @Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-07-21T15:55:09.049+08:00") 27 | public class KruiseAppsV1alpha1AdaptiveWorkloadSpreadStrategy { 28 | @SerializedName("disableSimulationSchedule") 29 | private Boolean disableSimulationSchedule = null; 30 | 31 | @SerializedName("rescheduleCriticalSeconds") 32 | private Integer rescheduleCriticalSeconds = null; 33 | 34 | public KruiseAppsV1alpha1AdaptiveWorkloadSpreadStrategy disableSimulationSchedule(Boolean disableSimulationSchedule) { 35 | this.disableSimulationSchedule = disableSimulationSchedule; 36 | return this; 37 | } 38 | 39 | /** 40 | * DisableSimulationSchedule indicates whether to disable the feature of simulation schedule. Default is false. Webhook can take a simple general predicates to check whether Pod can be scheduled into this subset, but it just considers the Node resource and cannot replace scheduler to do richer predicates practically. 41 | * @return disableSimulationSchedule 42 | **/ 43 | @ApiModelProperty(value = "DisableSimulationSchedule indicates whether to disable the feature of simulation schedule. Default is false. Webhook can take a simple general predicates to check whether Pod can be scheduled into this subset, but it just considers the Node resource and cannot replace scheduler to do richer predicates practically.") 44 | public Boolean isDisableSimulationSchedule() { 45 | return disableSimulationSchedule; 46 | } 47 | 48 | public void setDisableSimulationSchedule(Boolean disableSimulationSchedule) { 49 | this.disableSimulationSchedule = disableSimulationSchedule; 50 | } 51 | 52 | public KruiseAppsV1alpha1AdaptiveWorkloadSpreadStrategy rescheduleCriticalSeconds(Integer rescheduleCriticalSeconds) { 53 | this.rescheduleCriticalSeconds = rescheduleCriticalSeconds; 54 | return this; 55 | } 56 | 57 | /** 58 | * RescheduleCriticalSeconds indicates how long controller will reschedule a schedule failed Pod to the subset that has redundant capacity after the subset where the Pod lives. If a Pod was scheduled failed and still in a unschedulabe status over RescheduleCriticalSeconds duration, the controller will reschedule it to a suitable subset. 59 | * @return rescheduleCriticalSeconds 60 | **/ 61 | @ApiModelProperty(value = "RescheduleCriticalSeconds indicates how long controller will reschedule a schedule failed Pod to the subset that has redundant capacity after the subset where the Pod lives. If a Pod was scheduled failed and still in a unschedulabe status over RescheduleCriticalSeconds duration, the controller will reschedule it to a suitable subset.") 62 | public Integer getRescheduleCriticalSeconds() { 63 | return rescheduleCriticalSeconds; 64 | } 65 | 66 | public void setRescheduleCriticalSeconds(Integer rescheduleCriticalSeconds) { 67 | this.rescheduleCriticalSeconds = rescheduleCriticalSeconds; 68 | } 69 | 70 | 71 | @Override 72 | public boolean equals(Object o) { 73 | if (this == o) { 74 | return true; 75 | } 76 | if (!(o instanceof KruiseAppsV1alpha1AdaptiveWorkloadSpreadStrategy)) { 77 | return false; 78 | } 79 | KruiseAppsV1alpha1AdaptiveWorkloadSpreadStrategy ioKruiseAppsV1alpha1WorkloadSpreadSpecScheduleStrategyAdaptive = (KruiseAppsV1alpha1AdaptiveWorkloadSpreadStrategy) o; 80 | return Objects.equals(this.disableSimulationSchedule, ioKruiseAppsV1alpha1WorkloadSpreadSpecScheduleStrategyAdaptive.disableSimulationSchedule) && 81 | Objects.equals(this.rescheduleCriticalSeconds, ioKruiseAppsV1alpha1WorkloadSpreadSpecScheduleStrategyAdaptive.rescheduleCriticalSeconds); 82 | } 83 | 84 | @Override 85 | public int hashCode() { 86 | return Objects.hash(disableSimulationSchedule, rescheduleCriticalSeconds); 87 | } 88 | 89 | 90 | @Override 91 | public String toString() { 92 | StringBuilder sb = new StringBuilder(); 93 | sb.append("class KruiseAppsV1alpha1WorkloadSpreadSpecScheduleStrategyAdaptive {\n"); 94 | 95 | sb.append(" disableSimulationSchedule: ").append(toIndentedString(disableSimulationSchedule)).append("\n"); 96 | sb.append(" rescheduleCriticalSeconds: ").append(toIndentedString(rescheduleCriticalSeconds)).append("\n"); 97 | sb.append("}"); 98 | return sb.toString(); 99 | } 100 | 101 | /** 102 | * Convert the given object to string with each line indented by 4 spaces 103 | * (except the first line). 104 | */ 105 | private String toIndentedString(Object o) { 106 | if (o == null) { 107 | return "null"; 108 | } 109 | return o.toString().replace("\n", "\n "); 110 | } 111 | 112 | } 113 | 114 | --------------------------------------------------------------------------------