Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 2.36 KB

File metadata and controls

30 lines (23 loc) · 2.36 KB

V1beta1DeviceCounterConsumption

DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.

Properties

Name Type Description Notes
compatibility_groups List[str] CompatibilityGroups is a list of opaque group names for this counter set consumption. Devices that consume counters from the same counter set may only be allocated at the same time ("co-allocated") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field. An unset field, an explicit nil, and an empty list are equivalent and mean "no groups": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups. Group names are opaque and meaningful only within the publishing driver's pool. The maximum number of groups is 2, and the names must be unique. [optional]
counter_set str CounterSet is the name of the set from which the counters defined will be consumed.
counters Dict[str, V1beta1Counter] Counters defines the counters that will be consumed by the device. The maximum number of counters is 32.

Example

from kubernetes.client.models.v1beta1_device_counter_consumption import V1beta1DeviceCounterConsumption

# TODO update the JSON string below
json = "{}"
# create an instance of V1beta1DeviceCounterConsumption from a JSON string
v1beta1_device_counter_consumption_instance = V1beta1DeviceCounterConsumption.from_json(json)
# print the JSON string representation of the object
print(V1beta1DeviceCounterConsumption.to_json())

# convert the object into a dict
v1beta1_device_counter_consumption_dict = v1beta1_device_counter_consumption_instance.to_dict()
# create an instance of V1beta1DeviceCounterConsumption from a dict
v1beta1_device_counter_consumption_from_dict = V1beta1DeviceCounterConsumption.from_dict(v1beta1_device_counter_consumption_dict)

[Back to Model list] [Back to API list] [Back to README]