kubernetes.client.models.v1_job_spec module

Kubernetes

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: release-1.36 Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.

class kubernetes.client.models.v1_job_spec.V1JobSpec(*, active_deadline_seconds: Annotated[int, Strict(strict=True)] | None = None, backoff_limit: Annotated[int, Strict(strict=True)] | None = None, backoff_limit_per_index: Annotated[int, Strict(strict=True)] | None = None, completion_mode: Annotated[str, Strict(strict=True)] | None = None, completions: Annotated[int, Strict(strict=True)] | None = None, managed_by: Annotated[str, Strict(strict=True)] | None = None, manual_selector: Annotated[bool, Strict(strict=True)] | None = None, max_failed_indexes: Annotated[int, Strict(strict=True)] | None = None, parallelism: Annotated[int, Strict(strict=True)] | None = None, pod_failure_policy: V1PodFailurePolicy | None = None, pod_replacement_policy: Annotated[str, Strict(strict=True)] | None = None, selector: V1LabelSelector | None = None, success_policy: V1SuccessPolicy | None = None, suspend: Annotated[bool, Strict(strict=True)] | None = None, template: V1PodTemplateSpec, ttl_seconds_after_finished: Annotated[int, Strict(strict=True)] | None = None)

Bases: BaseModel

JobSpec describes how the job execution will look like.

Attributes:
openapi_types (dict): The key is attribute name

and the value is attribute type.

attribute_map (dict): The key is attribute name

and the value is json key in definition.

active_deadline_seconds: StrictInt | None
attribute_map: ClassVar[Dict[str, str]] = {'active_deadline_seconds': 'activeDeadlineSeconds', 'backoff_limit': 'backoffLimit', 'backoff_limit_per_index': 'backoffLimitPerIndex', 'completion_mode': 'completionMode', 'completions': 'completions', 'managed_by': 'managedBy', 'manual_selector': 'manualSelector', 'max_failed_indexes': 'maxFailedIndexes', 'parallelism': 'parallelism', 'pod_failure_policy': 'podFailurePolicy', 'pod_replacement_policy': 'podReplacementPolicy', 'selector': 'selector', 'success_policy': 'successPolicy', 'suspend': 'suspend', 'template': 'template', 'ttl_seconds_after_finished': 'ttlSecondsAfterFinished'}
backoff_limit: StrictInt | None
backoff_limit_per_index: StrictInt | None
completion_mode: StrictStr | None
completions: StrictInt | None
classmethod from_dict(obj: Dict[str, Any] | None) Self | None

Create an instance of V1JobSpec from a dict

classmethod from_json(json_str: str) Self | None

Create an instance of V1JobSpec from a JSON string

managed_by: StrictStr | None
manual_selector: StrictBool | None
max_failed_indexes: StrictInt | None
model_config = {'extra': 'forbid', 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

openapi_types: ClassVar[Dict[str, str]] = {'active_deadline_seconds': 'int', 'backoff_limit': 'int', 'backoff_limit_per_index': 'int', 'completion_mode': 'str', 'completions': 'int', 'managed_by': 'str', 'manual_selector': 'bool', 'max_failed_indexes': 'int', 'parallelism': 'int', 'pod_failure_policy': 'V1PodFailurePolicy', 'pod_replacement_policy': 'str', 'selector': 'V1LabelSelector', 'success_policy': 'V1SuccessPolicy', 'suspend': 'bool', 'template': 'V1PodTemplateSpec', 'ttl_seconds_after_finished': 'int'}
parallelism: StrictInt | None
pod_failure_policy: V1PodFailurePolicy | None
pod_replacement_policy: StrictStr | None
selector: V1LabelSelector | None
success_policy: V1SuccessPolicy | None
suspend: StrictBool | None
template: V1PodTemplateSpec
to_dict(serialize: bool = False) Dict[str, Any]

Return all declared model fields using public or wire names.

to_json() str

Returns the JSON representation of the model using alias

to_str() str

Returns the string representation of the model

ttl_seconds_after_finished: StrictInt | None