SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes.
| Name | Type | Description | Notes |
|---|---|---|---|
| rules | List[V1SuccessPolicyRule] | 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 "SuccessCriteriaMet" 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. |
from kubernetes.client.models.v1_success_policy import V1SuccessPolicy
# TODO update the JSON string below
json = "{}"
# create an instance of V1SuccessPolicy from a JSON string
v1_success_policy_instance = V1SuccessPolicy.from_json(json)
# print the JSON string representation of the object
print(V1SuccessPolicy.to_json())
# convert the object into a dict
v1_success_policy_dict = v1_success_policy_instance.to_dict()
# create an instance of V1SuccessPolicy from a dict
v1_success_policy_from_dict = V1SuccessPolicy.from_dict(v1_success_policy_dict)