-
Notifications
You must be signed in to change notification settings - Fork 0
/
http_ingress_path.cr
29 lines (24 loc) · 1.78 KB
/
http_ingress_path.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
# HTTPIngressPath associates a path regex with a backend. Incoming urls matching the path are forwarded to the backend.
@[::K8S::Properties(
backend: {type: Api::Extensions::V1beta1::IngressBackend, nilable: false, key: "backend", getter: false, setter: false},
path: {type: String, nilable: true, key: "path", getter: false, setter: false},
)]
class Api::Extensions::V1beta1::HTTPIngressPath
include ::JSON::Serializable
include ::YAML::Serializable
# Backend defines the referenced service endpoint to which the traffic will be forwarded to.
@[::JSON::Field(key: "backend", emit_null: true)]
@[::YAML::Field(key: "backend", emit_null: true)]
property backend : Api::Extensions::V1beta1::IngressBackend
# Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the [egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend.](egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend.)
@[::JSON::Field(key: "path", emit_null: false)]
@[::YAML::Field(key: "path", emit_null: false)]
property path : String | Nil
def initialize(*, @backend : Api::Extensions::V1beta1::IngressBackend, @path : String | Nil = nil)
end
end
end