kubernetes_asyncio.client.models.v1alpha3_device_taint_selector 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.v1alpha3_device_taint_selector.V1alpha3DeviceTaintSelector(device=None, device_class_name=None, driver=None, pool=None, selectors=None, local_vars_configuration=None)
Bases:
objectNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech
Do not edit the class manually.
- attribute_map = {'device': 'device', 'device_class_name': 'deviceClassName', 'driver': 'driver', 'pool': 'pool', 'selectors': 'selectors'}
- property device
Gets the device of this V1alpha3DeviceTaintSelector. # noqa: E501
If device is set, only devices with that name are selected. This field corresponds to slice.spec.devices[].name. Setting also driver and pool may be required to avoid ambiguity, but is not required. # noqa: E501
- Returns:
The device of this V1alpha3DeviceTaintSelector. # noqa: E501
- Return type:
str
- property device_class_name
Gets the device_class_name of this V1alpha3DeviceTaintSelector. # noqa: E501
If DeviceClassName is set, the selectors defined there must be satisfied by a device to be selected. This field corresponds to class.metadata.name. # noqa: E501
- Returns:
The device_class_name of this V1alpha3DeviceTaintSelector. # noqa: E501
- Return type:
str
- property driver
Gets the driver of this V1alpha3DeviceTaintSelector. # noqa: E501
If driver is set, only devices from that driver are selected. This fields corresponds to slice.spec.driver. # noqa: E501
- Returns:
The driver of this V1alpha3DeviceTaintSelector. # noqa: E501
- Return type:
str
- openapi_types = {'device': 'str', 'device_class_name': 'str', 'driver': 'str', 'pool': 'str', 'selectors': 'list[V1alpha3DeviceSelector]'}
- property pool
Gets the pool of this V1alpha3DeviceTaintSelector. # noqa: E501
If pool is set, only devices in that pool are selected. Also setting the driver name may be useful to avoid ambiguity when different drivers use the same pool name, but this is not required because selecting pools from different drivers may also be useful, for example when drivers with node-local devices use the node name as their pool name. # noqa: E501
- Returns:
The pool of this V1alpha3DeviceTaintSelector. # noqa: E501
- Return type:
str
- property selectors
Gets the selectors of this V1alpha3DeviceTaintSelector. # noqa: E501
Selectors contains the same selection criteria as a ResourceClaim. Currently, CEL expressions are supported. All of these selectors must be satisfied. # noqa: E501
- Returns:
The selectors of this V1alpha3DeviceTaintSelector. # noqa: E501
- Return type:
list[V1alpha3DeviceSelector]
- to_dict(serialize=False)
Returns the model properties as a dict
- to_str()
Returns the string representation of the model