struct

Kubernetes::GroupVersionForDiscovery

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

GroupVersion contains the "group/version" and "version" string of a version. It is made a struct to keep extensibility.

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

group_version

groupVersion specifies the API group and version in the form "group/version"

Source
group_version=(group_version : String | Nil)

groupVersion specifies the API group and version in the form "group/version"

Source
version

version specifies the version in the form of "version". This is to save the clients the trouble of splitting the GroupVersion.

Source
version=(version : String | Nil)

version specifies the version in the form of "version". This is to save the clients the trouble of splitting the GroupVersion.

Source

Macros

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

Helper macro for defining fields with automatic camelCase conversion

Source