resource.v1beta1.device
"Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set."
Index
Fields
fn withName
withName(name)
"Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label."
obj basic
"BasicDevice defines one device instance."
fn basic.withAttributes
withAttributes(attributes)
"Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.\n\nThe maximum number of attributes and capacities combined is 32."
fn basic.withAttributesMixin
withAttributesMixin(attributes)
"Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.\n\nThe maximum number of attributes and capacities combined is 32."
Note: This function appends passed data to existing values
fn basic.withCapacity
withCapacity(capacity)
"Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.\n\nThe maximum number of attributes and capacities combined is 32."
fn basic.withCapacityMixin
withCapacityMixin(capacity)
"Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.\n\nThe maximum number of attributes and capacities combined is 32."
Note: This function appends passed data to existing values