struct
Kubernetes::Metadata
- Kubernetes::Metadata
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
- Kubernetes::Serializable
- YAML::Serializable
Defined in:
serialization.crConstant Summary
-
DEFAULT_TIME =
::Time.new(seconds: 0, nanoseconds: 0, location: Time::Location::UTC)
Constructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : ::JSON::PullParser)
- .new(name : String, namespace : String = nil, labels : Hash(String, String) = {} of String => String)
- .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
- #annotations : Hash(String, String)
- #labels : Hash(String, String)
- #name : String
- #namespace : String
- #resource_version : String
- #uid : String
Constructor Detail
def self.new(name : String, namespace : String = nil, labels : Hash(String, String) = {} of String => String)
#
def self.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
#
Macro Detail
macro field(name, type = nil, **options, &block)
#
Helper macro for defining fields with automatic camelCase conversion