-
Notifications
You must be signed in to change notification settings - Fork 0
/
webhook.cr
29 lines (24 loc) · 1.29 KB
/
webhook.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
# Webhook holds the configuration of the webhook
@[::K8S::Properties(
client_config: {type: Api::Auditregistration::V1alpha1::WebhookClientConfig, nilable: false, key: "clientConfig", getter: false, setter: false},
throttle: {type: Api::Auditregistration::V1alpha1::WebhookThrottleConfig, nilable: true, key: "throttle", getter: false, setter: false},
)]
class Api::Auditregistration::V1alpha1::Webhook
include ::JSON::Serializable
include ::YAML::Serializable
# ClientConfig holds the connection parameters for the webhook required
@[::JSON::Field(key: "clientConfig", emit_null: true)]
@[::YAML::Field(key: "clientConfig", emit_null: true)]
property client_config : Api::Auditregistration::V1alpha1::WebhookClientConfig
# Throttle holds the options for throttling the webhook
@[::JSON::Field(key: "throttle", emit_null: false)]
@[::YAML::Field(key: "throttle", emit_null: false)]
property throttle : Api::Auditregistration::V1alpha1::WebhookThrottleConfig | Nil
def initialize(*, @client_config : Api::Auditregistration::V1alpha1::WebhookClientConfig, @throttle : Api::Auditregistration::V1alpha1::WebhookThrottleConfig | Nil = nil)
end
end
end