struct
Kubernetes::DeviceAttribute
- Kubernetes::DeviceAttribute
- Struct
- Value
- Object
Overview
DeviceAttribute must have exactly one field set.
Included Modules
- JSON::Serializable
- Kubernetes::Serializable
- YAML::Serializable
Defined in:
generated/models/io_k8s_api_resource_v1.crgenerated/models/io_k8s_api_resource_v1beta1.cr
generated/models/io_k8s_api_resource_v1beta2.cr
Constructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .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)
Macro Summary
-
field(name, type = nil, **options, &block)
Helper macro for defining fields with automatic camelCase conversion
Instance Method Summary
-
#bool : Bool | Nil
BoolValue is a true/false value.
-
#bool=(bool : Bool | Nil)
BoolValue is a true/false value.
-
#int : Int64 | Nil
IntValue is a number.
-
#int=(int : Int64 | Nil)
IntValue is a number.
-
#string : String | Nil
StringValue is a string.
-
#string=(string : String | Nil)
StringValue is a string.
-
#version : String | Nil
VersionValue is a semantic version according to semver.org spec 2.0.0.
-
#version=(version : String | Nil)
VersionValue is a semantic version according to semver.org spec 2.0.0.
Constructor Detail
Macro Detail
Helper macro for defining fields with automatic camelCase conversion
Instance Method Detail
StringValue is a string. Must not be longer than 64 characters.
VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.
VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.