kubernetes_asyncio.client.models.v1beta1_resource_slice_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_resource_slice_spec.V1beta1ResourceSliceSpec(all_nodes=None, devices=None, driver=None, node_name=None, node_selector=None, per_device_node_selection=None, pool=None, shared_counters=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.
- property all_nodes
Gets the all_nodes of this V1beta1ResourceSliceSpec. # noqa: E501
AllNodes indicates that all nodes have access to the resources in the pool. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. # noqa: E501
- Returns:
The all_nodes of this V1beta1ResourceSliceSpec. # noqa: E501
- Return type:
bool
- attribute_map = {'all_nodes': 'allNodes', 'devices': 'devices', 'driver': 'driver', 'node_name': 'nodeName', 'node_selector': 'nodeSelector', 'per_device_node_selection': 'perDeviceNodeSelection', 'pool': 'pool', 'shared_counters': 'sharedCounters'}
- property devices
Gets the devices of this V1beta1ResourceSliceSpec. # noqa: E501
Devices lists some or all of the devices in this pool. Must not have more than 128 entries. # noqa: E501
- Returns:
The devices of this V1beta1ResourceSliceSpec. # noqa: E501
- Return type:
list[V1beta1Device]
- property driver
Gets the driver of this V1beta1ResourceSliceSpec. # noqa: E501
Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable. # noqa: E501
- Returns:
The driver of this V1beta1ResourceSliceSpec. # noqa: E501
- Return type:
str
- property node_name
Gets the node_name of this V1beta1ResourceSliceSpec. # noqa: E501
NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node. This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable. # noqa: E501
- Returns:
The node_name of this V1beta1ResourceSliceSpec. # noqa: E501
- Return type:
str
- property node_selector
Gets the node_selector of this V1beta1ResourceSliceSpec. # noqa: E501
- Returns:
The node_selector of this V1beta1ResourceSliceSpec. # noqa: E501
- Return type:
- openapi_types = {'all_nodes': 'bool', 'devices': 'list[V1beta1Device]', 'driver': 'str', 'node_name': 'str', 'node_selector': 'V1NodeSelector', 'per_device_node_selection': 'bool', 'pool': 'V1beta1ResourcePool', 'shared_counters': 'list[V1beta1CounterSet]'}
- property per_device_node_selection
Gets the per_device_node_selection of this V1beta1ResourceSliceSpec. # noqa: E501
PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. # noqa: E501
- Returns:
The per_device_node_selection of this V1beta1ResourceSliceSpec. # noqa: E501
- Return type:
bool
- property pool
Gets the pool of this V1beta1ResourceSliceSpec. # noqa: E501
- Returns:
The pool of this V1beta1ResourceSliceSpec. # noqa: E501
- Return type:
Gets the shared_counters of this V1beta1ResourceSliceSpec. # noqa: E501
SharedCounters defines a list of counter sets, each of which has a name and a list of counters available. The names of the SharedCounters must be unique in the ResourceSlice. The maximum number of SharedCounters is 32. # noqa: E501
- Returns:
The shared_counters of this V1beta1ResourceSliceSpec. # noqa: E501
- Return type:
list[V1beta1CounterSet]
- to_dict(serialize=False)
Returns the model properties as a dict
- to_str()
Returns the string representation of the model