-
Notifications
You must be signed in to change notification settings - Fork 0
/
service_reference.cr
37 lines (31 loc) · 1.35 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
32
33
34
35
36
37
# 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: false, key: "name", getter: false, setter: false},
namespace: {type: String, nilable: false, key: "namespace", getter: false, setter: false},
path: {type: String, nilable: true, key: "path", getter: false, setter: false},
)]
class Api::Admissionregistration::V1beta1::ServiceReference
include ::JSON::Serializable
include ::JSON::Serializable::Unmapped
include ::YAML::Serializable
include ::YAML::Serializable::Unmapped
# `name` is the name of the service. Required
@[::JSON::Field(key: "name", emit_null: true)]
@[::YAML::Field(key: "name", emit_null: true)]
property name : String
# `namespace` is the namespace of the service. Required
@[::JSON::Field(key: "namespace", emit_null: true)]
@[::YAML::Field(key: "namespace", emit_null: true)]
property namespace : String
# `path` is an optional URL path which will be sent in any request to this service.
@[::JSON::Field(key: "path", emit_null: false)]
@[::YAML::Field(key: "path", emit_null: false)]
property path : String | Nil
def initialize(*, @name : String, @namespace : String, @path : String | Nil = nil)
end
end
end