Kubernetes::Metadata
Inherits YAML::Serializable < JSON::Serializable < Kubernetes::Serializable < Struct < Value < Object
Constants
DEFAULT_TIME = ::Time.new(seconds: 0, nanoseconds: 0, location: Time::Location::UTC)
Constructors
new(pull : ::JSON::PullParser)
new(name : String, namespace : String = nil, labels : Hash(String, String) = {} of String => String)
Sourcenew(*, __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
annotations
labels
name
namespace
resource_version
uid
Macros
field(name, type = nil, **options, &block)
Helper macro for defining fields with automatic camelCase conversion