-
Notifications
You must be signed in to change notification settings - Fork 0
/
persistent_volume_claim_template.cr
29 lines (24 loc) · 1.45 KB
/
persistent_volume_claim_template.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
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.
@[::K8S::Properties(
metadata: {type: Apimachinery::Apis::Meta::V1::ObjectMeta, nilable: true, key: "metadata", getter: false, setter: false},
spec: {type: Api::Core::V1::PersistentVolumeClaimSpec, nilable: false, key: "spec", getter: false, setter: false},
)]
class Api::Core::V1::PersistentVolumeClaimTemplate
include ::JSON::Serializable
include ::YAML::Serializable
# May contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.
@[::JSON::Field(key: "metadata", emit_null: false)]
@[::YAML::Field(key: "metadata", emit_null: false)]
property metadata : Apimachinery::Apis::Meta::V1::ObjectMeta | Nil
# The specification for the PersistentVolumeClaim. The entire content is copied unchanged into the PVC that gets created from this template. The same fields as in a PersistentVolumeClaim are also valid here.
@[::JSON::Field(key: "spec", emit_null: true)]
@[::YAML::Field(key: "spec", emit_null: true)]
property spec : Api::Core::V1::PersistentVolumeClaimSpec
def initialize(*, @spec : Api::Core::V1::PersistentVolumeClaimSpec, @metadata : Apimachinery::Apis::Meta::V1::ObjectMeta | Nil = nil)
end
end
end