struct

Kubernetes::DeviceAttribute

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

DeviceAttribute must have exactly one field set.

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

bool

BoolValue is a true/false value.

Source
bool=(bool : Bool | Nil)

BoolValue is a true/false value.

Source
bools

BoolValues is a non-empty list of true/false values.

Source
bools=(bools : Array(Bool) | Nil)

BoolValues is a non-empty list of true/false values.

Source
bools=(bools : Array(Bool) | Nil)

BoolValues is a non-empty list of true/false values.

Source
bools=(bools : Array(Bool) | Nil)

BoolValues is a non-empty list of true/false values.

Source
int

IntValue is a number.

Source
int=(int : Int64 | Nil)

IntValue is a number.

Source
ints

IntValues is a non-empty list of numbers. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.

Source
ints=(ints : Array(Int64) | Nil)

IntValues is a non-empty list of numbers. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.

Source
ints=(ints : Array(Int64) | Nil)

IntValues is a non-empty list of numbers. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.

Source
ints=(ints : Array(Int64) | Nil)

IntValues is a non-empty list of numbers. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.

Source
string

StringValue is a string. Must not be longer than 64 characters.

Source
string=(string : String | Nil)

StringValue is a string. Must not be longer than 64 characters.

Source
strings

StringValues is a non-empty list of strings. Each string must not be longer than 64 characters. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.

Source
strings=(strings : Array(String) | Nil)

StringValues is a non-empty list of strings. Each string must not be longer than 64 characters. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.

Source
strings=(strings : Array(String) | Nil)

StringValues is a non-empty list of strings. Each string must not be longer than 64 characters. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.

Source
strings=(strings : Array(String) | Nil)

StringValues is a non-empty list of strings. Each string must not be longer than 64 characters. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.

Source
version

VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.

Source
version=(version : String | Nil)

VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.

Source
versions

VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0. Each version string must not be longer than 64 characters. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.

Source
versions=(versions : Array(String) | Nil)

VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0. Each version string must not be longer than 64 characters. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.

Source
versions=(versions : Array(String) | Nil)

VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0. Each version string must not be longer than 64 characters. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.

Source
versions=(versions : Array(String) | Nil)

VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0. Each version string must not be longer than 64 characters. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.

Source

Macros

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

Helper macro for defining fields with automatic camelCase conversion

Source