Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1.25 KB

File metadata and controls

29 lines (22 loc) · 1.25 KB

V1DeviceCapacity

DeviceCapacity describes a quantity associated with a device.

Properties

Name Type Description Notes
request_policy V1CapacityRequestPolicy [optional]
value str Value defines how much of a certain capacity that device has. This field reflects the fixed total capacity and does not change. The consumed amount is tracked separately by scheduler and does not affect this value.

Example

from kubernetes.client.models.v1_device_capacity import V1DeviceCapacity

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

# convert the object into a dict
v1_device_capacity_dict = v1_device_capacity_instance.to_dict()
# create an instance of V1DeviceCapacity from a dict
v1_device_capacity_from_dict = V1DeviceCapacity.from_dict(v1_device_capacity_dict)

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