-
Notifications
You must be signed in to change notification settings - Fork 0
/
authentication_v_.clj
45 lines (40 loc) · 1.79 KB
/
authentication_v_.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
(ns kubernetes.api.authentication-v-
(:require [kubernetes.core :refer [call-api check-required-params with-collection-format]])
(:import (java.io File)))
(defn create-authentication-v1-token-review-with-http-info
"
create a TokenReview"
([body ] (create-authentication-v1-token-review-with-http-info body nil))
([body {:keys [dry-run field-manager field-validation pretty ]}]
(call-api "/apis/authentication.k8s.io/v1/tokenreviews" :post
{:path-params {}
:header-params {}
:query-params {"dryRun" dry-run "fieldManager" field-manager "fieldValidation" field-validation "pretty" pretty }
:form-params {}
:body-param body
:content-types ["*/*"]
:accepts ["application/json" "application/yaml" "application/vnd.kubernetes.protobuf"]
:auth-names ["BearerToken"]})))
(defn create-authentication-v1-token-review
"
create a TokenReview"
([body ] (create-authentication-v1-token-review body nil))
([body optional-params]
(:data (create-authentication-v1-token-review-with-http-info body optional-params))))
(defn get-authentication-v1-api-resources-with-http-info
"
get available resources"
[]
(call-api "/apis/authentication.k8s.io/v1/" :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-authentication-v1-api-resources
"
get available resources"
[]
(:data (get-authentication-v1-api-resources-with-http-info)))