kubernetes.aio.client.models.v1beta2_device_taint module

Kubernetes

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

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

class kubernetes.aio.client.models.v1beta2_device_taint.V1beta2DeviceTaint(effect=None, key=None, time_added=None, value=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 = {'effect': 'effect', 'key': 'key', 'time_added': 'timeAdded', 'value': 'value'}
property effect

Gets the effect of this V1beta2DeviceTaint. # noqa: E501

The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are None, NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. More effects may get added in the future. Consumers must treat unknown effects like None. # noqa: E501

Returns:

The effect of this V1beta2DeviceTaint. # noqa: E501

Return type:

str

property key

Gets the key of this V1beta2DeviceTaint. # noqa: E501

The taint key to be applied to a device. Must be a label name. # noqa: E501

Returns:

The key of this V1beta2DeviceTaint. # noqa: E501

Return type:

str

openapi_types = {'effect': 'str', 'key': 'str', 'time_added': 'datetime', 'value': 'str'}
property time_added

Gets the time_added of this V1beta2DeviceTaint. # noqa: E501

TimeAdded represents the time at which the taint was added or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set. In addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule). # noqa: E501

Returns:

The time_added of this V1beta2DeviceTaint. # noqa: E501

Return type:

datetime

to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model

property value

Gets the value of this V1beta2DeviceTaint. # noqa: E501

The taint value corresponding to the taint key. Must be a label value. # noqa: E501

Returns:

The value of this V1beta2DeviceTaint. # noqa: E501

Return type:

str