kubernetes_asyncio.client.models.v1_deployment_spec module

Kubernetes

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

The version of the OpenAPI document: v1.34.3 Generated by: https://openapi-generator.tech

class kubernetes_asyncio.client.models.v1_deployment_spec.V1DeploymentSpec(min_ready_seconds=None, paused=None, progress_deadline_seconds=None, replicas=None, revision_history_limit=None, selector=None, strategy=None, template=None, local_vars_configuration=None)

Bases: object

NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech

Do not edit the class manually.

attribute_map = {'min_ready_seconds': 'minReadySeconds', 'paused': 'paused', 'progress_deadline_seconds': 'progressDeadlineSeconds', 'replicas': 'replicas', 'revision_history_limit': 'revisionHistoryLimit', 'selector': 'selector', 'strategy': 'strategy', 'template': 'template'}
property min_ready_seconds

Gets the min_ready_seconds of this V1DeploymentSpec. # noqa: E501

Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) # noqa: E501

Returns:

The min_ready_seconds of this V1DeploymentSpec. # noqa: E501

Return type:

int

openapi_types = {'min_ready_seconds': 'int', 'paused': 'bool', 'progress_deadline_seconds': 'int', 'replicas': 'int', 'revision_history_limit': 'int', 'selector': 'V1LabelSelector', 'strategy': 'V1DeploymentStrategy', 'template': 'V1PodTemplateSpec'}
property paused

Gets the paused of this V1DeploymentSpec. # noqa: E501

Indicates that the deployment is paused. # noqa: E501

Returns:

The paused of this V1DeploymentSpec. # noqa: E501

Return type:

bool

property progress_deadline_seconds

Gets the progress_deadline_seconds of this V1DeploymentSpec. # noqa: E501

The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. # noqa: E501

Returns:

The progress_deadline_seconds of this V1DeploymentSpec. # noqa: E501

Return type:

int

property replicas

Gets the replicas of this V1DeploymentSpec. # noqa: E501

Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. # noqa: E501

Returns:

The replicas of this V1DeploymentSpec. # noqa: E501

Return type:

int

property revision_history_limit

Gets the revision_history_limit of this V1DeploymentSpec. # noqa: E501

The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. # noqa: E501

Returns:

The revision_history_limit of this V1DeploymentSpec. # noqa: E501

Return type:

int

property selector

Gets the selector of this V1DeploymentSpec. # noqa: E501

Returns:

The selector of this V1DeploymentSpec. # noqa: E501

Return type:

V1LabelSelector

property strategy

Gets the strategy of this V1DeploymentSpec. # noqa: E501

Returns:

The strategy of this V1DeploymentSpec. # noqa: E501

Return type:

V1DeploymentStrategy

property template

Gets the template of this V1DeploymentSpec. # noqa: E501

Returns:

The template of this V1DeploymentSpec. # noqa: E501

Return type:

V1PodTemplateSpec

to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model