-
Notifications
You must be signed in to change notification settings - Fork 0
/
authorization_v_beta_.clj
115 lines (104 loc) · 5.39 KB
/
authorization_v_beta_.clj
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
(ns kubernetes.api.authorization-v-beta-
(:require [kubernetes.core :refer [call-api check-required-params with-collection-format]])
(:import (java.io File)))
(defn create-authorization-v1beta1-namespaced-local-subject-access-review-with-http-info
"
create a LocalSubjectAccessReview"
([namespace body ] (create-authorization-v1beta1-namespaced-local-subject-access-review-with-http-info namespace body nil))
([namespace body {:keys [dry-run include-uninitialized pretty ]}]
(check-required-params namespace body)
(call-api "/apis/authorization.k8s.io/v1beta1/namespaces/{namespace}/localsubjectaccessreviews" :post
{:path-params {"namespace" namespace }
:header-params {}
:query-params {"dryRun" dry-run "includeUninitialized" include-uninitialized "pretty" pretty }
:form-params {}
:body-param body
:content-types ["*/*"]
:accepts ["application/json" "application/yaml" "application/vnd.kubernetes.protobuf"]
:auth-names ["BearerToken"]})))
(defn create-authorization-v1beta1-namespaced-local-subject-access-review
"
create a LocalSubjectAccessReview"
([namespace body ] (create-authorization-v1beta1-namespaced-local-subject-access-review namespace body nil))
([namespace body optional-params]
(:data (create-authorization-v1beta1-namespaced-local-subject-access-review-with-http-info namespace body optional-params))))
(defn create-authorization-v1beta1-self-subject-access-review-with-http-info
"
create a SelfSubjectAccessReview"
([body ] (create-authorization-v1beta1-self-subject-access-review-with-http-info body nil))
([body {:keys [dry-run include-uninitialized pretty ]}]
(check-required-params body)
(call-api "/apis/authorization.k8s.io/v1beta1/selfsubjectaccessreviews" :post
{:path-params {}
:header-params {}
:query-params {"dryRun" dry-run "includeUninitialized" include-uninitialized "pretty" pretty }
:form-params {}
:body-param body
:content-types ["*/*"]
:accepts ["application/json" "application/yaml" "application/vnd.kubernetes.protobuf"]
:auth-names ["BearerToken"]})))
(defn create-authorization-v1beta1-self-subject-access-review
"
create a SelfSubjectAccessReview"
([body ] (create-authorization-v1beta1-self-subject-access-review body nil))
([body optional-params]
(:data (create-authorization-v1beta1-self-subject-access-review-with-http-info body optional-params))))
(defn create-authorization-v1beta1-self-subject-rules-review-with-http-info
"
create a SelfSubjectRulesReview"
([body ] (create-authorization-v1beta1-self-subject-rules-review-with-http-info body nil))
([body {:keys [dry-run include-uninitialized pretty ]}]
(check-required-params body)
(call-api "/apis/authorization.k8s.io/v1beta1/selfsubjectrulesreviews" :post
{:path-params {}
:header-params {}
:query-params {"dryRun" dry-run "includeUninitialized" include-uninitialized "pretty" pretty }
:form-params {}
:body-param body
:content-types ["*/*"]
:accepts ["application/json" "application/yaml" "application/vnd.kubernetes.protobuf"]
:auth-names ["BearerToken"]})))
(defn create-authorization-v1beta1-self-subject-rules-review
"
create a SelfSubjectRulesReview"
([body ] (create-authorization-v1beta1-self-subject-rules-review body nil))
([body optional-params]
(:data (create-authorization-v1beta1-self-subject-rules-review-with-http-info body optional-params))))
(defn create-authorization-v1beta1-subject-access-review-with-http-info
"
create a SubjectAccessReview"
([body ] (create-authorization-v1beta1-subject-access-review-with-http-info body nil))
([body {:keys [dry-run include-uninitialized pretty ]}]
(check-required-params body)
(call-api "/apis/authorization.k8s.io/v1beta1/subjectaccessreviews" :post
{:path-params {}
:header-params {}
:query-params {"dryRun" dry-run "includeUninitialized" include-uninitialized "pretty" pretty }
:form-params {}
:body-param body
:content-types ["*/*"]
:accepts ["application/json" "application/yaml" "application/vnd.kubernetes.protobuf"]
:auth-names ["BearerToken"]})))
(defn create-authorization-v1beta1-subject-access-review
"
create a SubjectAccessReview"
([body ] (create-authorization-v1beta1-subject-access-review body nil))
([body optional-params]
(:data (create-authorization-v1beta1-subject-access-review-with-http-info body optional-params))))
(defn get-authorization-v1beta1-api-resources-with-http-info
"
get available resources"
[]
(call-api "/apis/authorization.k8s.io/v1beta1/" :get
{:path-params {}
:header-params {}
:query-params {}
:form-params {}
:content-types ["application/json" "application/yaml" "application/vnd.kubernetes.protobuf"]
:accepts ["application/json" "application/yaml" "application/vnd.kubernetes.protobuf"]
:auth-names ["BearerToken"]}))
(defn get-authorization-v1beta1-api-resources
"
get available resources"
[]
(:data (get-authorization-v1beta1-api-resources-with-http-info)))