Class V1SuccessPolicy
java.lang.Object
io.kubernetes.client.openapi.models.V1SuccessPolicy
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-23T13:45:09.091597Z[Etc/UTC]")
public class V1SuccessPolicy
extends Object
SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRulesItem(V1SuccessPolicyRule rulesItem) booleanstatic V1SuccessPolicyCreate an instance of V1SuccessPolicy given an JSON stringgetRules()rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`.inthashCode()rules(List<V1SuccessPolicyRule> rules) voidsetRules(List<V1SuccessPolicyRule> rules) toJson()Convert an instance of V1SuccessPolicy to an JSON stringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_RULES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1SuccessPolicy
public V1SuccessPolicy()
-
-
Method Details
-
rules
-
addRulesItem
-
getRules
rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \"SucceededCriteriaMet\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \"Complete\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.- Returns:
- rules
-
setRules
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to V1SuccessPolicy
-
fromJson
Create an instance of V1SuccessPolicy given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1SuccessPolicy
- Throws:
IOException- if the JSON string is invalid with respect to V1SuccessPolicy
-
toJson
Convert an instance of V1SuccessPolicy to an JSON string- Returns:
- JSON string
-