-
Notifications
You must be signed in to change notification settings - Fork 0
/
container_image.cr
31 lines (26 loc) · 1.15 KB
/
container_image.cr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# Describe a container image
@[::K8S::Properties(
names: {type: Array(String), nilable: false, key: "names", getter: false, setter: false},
size_bytes: {type: Int32, nilable: true, key: "sizeBytes", getter: false, setter: false},
)]
class Api::Core::V1::ContainerImage
include ::JSON::Serializable
include ::JSON::Serializable::Unmapped
include ::YAML::Serializable
include ::YAML::Serializable::Unmapped
# Names by which this image is known. e.g. [["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]](["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"])
@[::JSON::Field(key: "names", emit_null: true)]
@[::YAML::Field(key: "names", emit_null: true)]
property names : Array(String)
# The size of the image in bytes.
@[::JSON::Field(key: "sizeBytes", emit_null: false)]
@[::YAML::Field(key: "sizeBytes", emit_null: false)]
property size_bytes : Int32 | Nil
def initialize(*, @names : Array(String), @size_bytes : Int32 | Nil = nil)
end
end
end