DeviceCapacity describes a quantity associated with a device.
| 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. |
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)