-
Notifications
You must be signed in to change notification settings - Fork 0
/
service_reference.cr
35 lines (29 loc) · 1.37 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
# 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},
port: {type: Int32, nilable: true, key: "port", getter: false, setter: false},
)]
class KubeAggregator::Apis::Apiregistration::V1::ServiceReference
include ::JSON::Serializable
include ::YAML::Serializable
# 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
# If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).
@[::JSON::Field(key: "port", emit_null: false)]
@[::YAML::Field(key: "port", emit_null: false)]
property port : Int32 | Nil
def initialize(*, @name : String | Nil = nil, @namespace : String | Nil = nil, @port : Int32 | Nil = nil)
end
end
end