-
Notifications
You must be signed in to change notification settings - Fork 0
/
service_reference.cr
31 lines (26 loc) · 1.04 KB
/
service_reference.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
# ServiceReference holds a reference to Service.legacy.k8s.io
@[::K8S::Properties(
name: {type: String, nilable: true, key: "name", getter: false, setter: false},
namespace: {type: String, nilable: true, key: "namespace", getter: false, setter: false},
)]
class KubeAggregator::Apis::Apiregistration::V1::ServiceReference
include ::JSON::Serializable
include ::JSON::Serializable::Unmapped
include ::YAML::Serializable
include ::YAML::Serializable::Unmapped
# Name is the name of the service
@[::JSON::Field(key: "name", emit_null: false)]
@[::YAML::Field(key: "name", emit_null: false)]
property name : String | Nil
# Namespace is the namespace of the service
@[::JSON::Field(key: "namespace", emit_null: false)]
@[::YAML::Field(key: "namespace", emit_null: false)]
property namespace : String | Nil
def initialize(*, @name : String | Nil = nil, @namespace : String | Nil = nil)
end
end
end