kubernetes_asyncio.client.models.v1_replica_set_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_replica_set_spec.V1ReplicaSetSpec(min_ready_seconds=None, replicas=None, selector=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', 'replicas': 'replicas', 'selector': 'selector', 'template': 'template'}
property min_ready_seconds

Gets the min_ready_seconds of this V1ReplicaSetSpec. # 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 V1ReplicaSetSpec. # noqa: E501

Return type:

int

openapi_types = {'min_ready_seconds': 'int', 'replicas': 'int', 'selector': 'V1LabelSelector', 'template': 'V1PodTemplateSpec'}
property replicas

Gets the replicas of this V1ReplicaSetSpec. # noqa: E501

Replicas is the number of desired pods. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset # noqa: E501

Returns:

The replicas of this V1ReplicaSetSpec. # noqa: E501

Return type:

int

property selector

Gets the selector of this V1ReplicaSetSpec. # noqa: E501

Returns:

The selector of this V1ReplicaSetSpec. # noqa: E501

Return type:

V1LabelSelector

property template

Gets the template of this V1ReplicaSetSpec. # noqa: E501

Returns:

The template of this V1ReplicaSetSpec. # 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