-
Notifications
You must be signed in to change notification settings - Fork 0
/
policy.cr
29 lines (24 loc) · 1.02 KB
/
policy.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
# Policy defines the configuration of how audit events are logged
@[::K8S::Properties(
level: {type: String, nilable: false, key: "level", getter: false, setter: false},
stages: {type: Array(String), nilable: true, key: "stages", getter: false, setter: false},
)]
class Api::Auditregistration::V1alpha1::Policy
include ::JSON::Serializable
include ::YAML::Serializable
# The Level that all requests are recorded at. available options: None, Metadata, Request, RequestResponse required
@[::JSON::Field(key: "level", emit_null: true)]
@[::YAML::Field(key: "level", emit_null: true)]
property level : String
# Stages is a list of stages for which events are created.
@[::JSON::Field(key: "stages", emit_null: false)]
@[::YAML::Field(key: "stages", emit_null: false)]
property stages : Array(String) | Nil
def initialize(*, @level : String, @stages : Array | Nil = nil)
end
end
end