-
Notifications
You must be signed in to change notification settings - Fork 0
/
audit_sink_spec.cr
29 lines (24 loc) · 1.15 KB
/
audit_sink_spec.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
# AuditSinkSpec holds the spec for the audit sink
@[::K8S::Properties(
policy: {type: Api::Auditregistration::V1alpha1::Policy, nilable: false, key: "policy", getter: false, setter: false},
webhook: {type: Api::Auditregistration::V1alpha1::Webhook, nilable: false, key: "webhook", getter: false, setter: false},
)]
class Api::Auditregistration::V1alpha1::AuditSinkSpec
include ::JSON::Serializable
include ::YAML::Serializable
# Policy defines the policy for selecting which events should be sent to the webhook required
@[::JSON::Field(key: "policy", emit_null: true)]
@[::YAML::Field(key: "policy", emit_null: true)]
property policy : Api::Auditregistration::V1alpha1::Policy
# Webhook to send events required
@[::JSON::Field(key: "webhook", emit_null: true)]
@[::YAML::Field(key: "webhook", emit_null: true)]
property webhook : Api::Auditregistration::V1alpha1::Webhook
def initialize(*, @policy : Api::Auditregistration::V1alpha1::Policy, @webhook : Api::Auditregistration::V1alpha1::Webhook)
end
end
end