struct

Kubernetes::DeviceAllocationResult

Inherits YAML::Serializable < JSON::Serializable < Kubernetes::Serializable < Struct < Value < Object

DeviceAllocationResult is the result of allocating devices.

Constructors

new(pull : ::JSON::PullParser)
new(*, __pull_for_json_serializable pull : ::JSON::PullParser)
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)

Instance methods

config

This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag. This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters.

Source
config=(config : Array(DeviceAllocationConfiguration) | Nil)

This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag. This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters.

Source
config=(config : Array(DeviceAllocationConfiguration) | Nil)

This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag. This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters.

Source
config=(config : Array(DeviceAllocationConfiguration) | Nil)

This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag. This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters.

Source
results

Results lists all allocated devices.

Source
results=(results : Array(DeviceRequestAllocationResult) | Nil)

Results lists all allocated devices.

Source
results=(results : Array(DeviceRequestAllocationResult) | Nil)

Results lists all allocated devices.

Source
results=(results : Array(DeviceRequestAllocationResult) | Nil)

Results lists all allocated devices.

Source

Macros

field(name, type = nil, **options, &block)

Helper macro for defining fields with automatic camelCase conversion

Source