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
groupVersion specifies the API group and version in the form "group/version"
version
version specifies the version in the form of "version". This is to save the clients the trouble of splitting the GroupVersion.
Macros
field(name, type = nil, **options, &block)
Helper macro for defining fields with automatic camelCase conversion