kubernetes_asyncio.client.models.v1beta1_device_class_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.v1beta1_device_class_spec.V1beta1DeviceClassSpec(config=None, extended_resource_name=None, selectors=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 = {'config': 'config', 'extended_resource_name': 'extendedResourceName', 'selectors': 'selectors'}
property config

Gets the config of this V1beta1DeviceClassSpec. # noqa: E501

Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver. They are passed to the driver, but are not considered while allocating the claim. # noqa: E501

Returns:

The config of this V1beta1DeviceClassSpec. # noqa: E501

Return type:

list[V1beta1DeviceClassConfiguration]

property extended_resource_name

Gets the extended_resource_name of this V1beta1DeviceClassSpec. # noqa: E501

ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod’s extended resource requests. It has the same format as the name of a pod’s extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod’s extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is an alpha field. # noqa: E501

Returns:

The extended_resource_name of this V1beta1DeviceClassSpec. # noqa: E501

Return type:

str

openapi_types = {'config': 'list[V1beta1DeviceClassConfiguration]', 'extended_resource_name': 'str', 'selectors': 'list[V1beta1DeviceSelector]'}
property selectors

Gets the selectors of this V1beta1DeviceClassSpec. # noqa: E501

Each selector must be satisfied by a device which is claimed via this class. # noqa: E501

Returns:

The selectors of this V1beta1DeviceClassSpec. # noqa: E501

Return type:

list[V1beta1DeviceSelector]

to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model