|
35873 | 35873 | }
|
35874 | 35874 | ]
|
35875 | 35875 | },
|
| 35876 | + "/oapi/v1/namespaces/{namespace}/subjectrulesreviews": { |
| 35877 | + "post": { |
| 35878 | + "description": "create a SubjectRulesReview", |
| 35879 | + "consumes": [ |
| 35880 | + "*/*" |
| 35881 | + ], |
| 35882 | + "produces": [ |
| 35883 | + "application/json", |
| 35884 | + "application/yaml", |
| 35885 | + "application/vnd.kubernetes.protobuf" |
| 35886 | + ], |
| 35887 | + "schemes": [ |
| 35888 | + "https" |
| 35889 | + ], |
| 35890 | + "operationId": "createNamespacedSubjectRulesReview", |
| 35891 | + "responses": { |
| 35892 | + "200": { |
| 35893 | + "description": "OK", |
| 35894 | + "schema": { |
| 35895 | + "$ref": "#/definitions/v1.SubjectRulesReview" |
| 35896 | + } |
| 35897 | + } |
| 35898 | + } |
| 35899 | + }, |
| 35900 | + "parameters": [ |
| 35901 | + { |
| 35902 | + "name": "body", |
| 35903 | + "in": "body", |
| 35904 | + "required": true, |
| 35905 | + "schema": { |
| 35906 | + "$ref": "#/definitions/v1.SubjectRulesReview" |
| 35907 | + } |
| 35908 | + }, |
| 35909 | + { |
| 35910 | + "uniqueItems": true, |
| 35911 | + "type": "string", |
| 35912 | + "description": "object name and auth scope, such as for teams and projects", |
| 35913 | + "name": "namespace", |
| 35914 | + "in": "path", |
| 35915 | + "required": true |
| 35916 | + }, |
| 35917 | + { |
| 35918 | + "uniqueItems": true, |
| 35919 | + "type": "string", |
| 35920 | + "description": "If 'true', then the output is pretty printed.", |
| 35921 | + "name": "pretty", |
| 35922 | + "in": "query" |
| 35923 | + } |
| 35924 | + ] |
| 35925 | + }, |
35876 | 35926 | "/oapi/v1/namespaces/{namespace}/templates": {
|
35877 | 35927 | "get": {
|
35878 | 35928 | "description": "list or watch objects of kind Template",
|
|
38980 | 39030 | }
|
38981 | 39031 | ]
|
38982 | 39032 | },
|
| 39033 | + "/oapi/v1/subjectrulesreviews": { |
| 39034 | + "post": { |
| 39035 | + "description": "create a SubjectRulesReview", |
| 39036 | + "consumes": [ |
| 39037 | + "*/*" |
| 39038 | + ], |
| 39039 | + "produces": [ |
| 39040 | + "application/json", |
| 39041 | + "application/yaml", |
| 39042 | + "application/vnd.kubernetes.protobuf" |
| 39043 | + ], |
| 39044 | + "schemes": [ |
| 39045 | + "https" |
| 39046 | + ], |
| 39047 | + "operationId": "createSubjectRulesReviewForAllNamespaces", |
| 39048 | + "responses": { |
| 39049 | + "200": { |
| 39050 | + "description": "OK", |
| 39051 | + "schema": { |
| 39052 | + "$ref": "#/definitions/v1.SubjectRulesReview" |
| 39053 | + } |
| 39054 | + } |
| 39055 | + } |
| 39056 | + }, |
| 39057 | + "parameters": [ |
| 39058 | + { |
| 39059 | + "name": "body", |
| 39060 | + "in": "body", |
| 39061 | + "required": true, |
| 39062 | + "schema": { |
| 39063 | + "$ref": "#/definitions/v1.SubjectRulesReview" |
| 39064 | + } |
| 39065 | + }, |
| 39066 | + { |
| 39067 | + "uniqueItems": true, |
| 39068 | + "type": "string", |
| 39069 | + "description": "If 'true', then the output is pretty printed.", |
| 39070 | + "name": "pretty", |
| 39071 | + "in": "query" |
| 39072 | + } |
| 39073 | + ] |
| 39074 | + }, |
38983 | 39075 | "/oapi/v1/templates": {
|
38984 | 39076 | "get": {
|
38985 | 39077 | "description": "list or watch objects of kind Template",
|
|
52018 | 52110 | }
|
52019 | 52111 | }
|
52020 | 52112 | },
|
| 52113 | + "v1.SubjectRulesReview": { |
| 52114 | + "description": "SubjectRulesReview is a resource you can create to determine which actions another user can perform in a namespace", |
| 52115 | + "required": [ |
| 52116 | + "spec" |
| 52117 | + ], |
| 52118 | + "properties": { |
| 52119 | + "apiVersion": { |
| 52120 | + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/release-1.4/docs/devel/api-conventions.md#resources", |
| 52121 | + "type": "string" |
| 52122 | + }, |
| 52123 | + "kind": { |
| 52124 | + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/release-1.4/docs/devel/api-conventions.md#types-kinds", |
| 52125 | + "type": "string" |
| 52126 | + }, |
| 52127 | + "spec": { |
| 52128 | + "$ref": "#/definitions/v1.SubjectRulesReviewSpec" |
| 52129 | + }, |
| 52130 | + "status": { |
| 52131 | + "$ref": "#/definitions/v1.SubjectRulesReviewStatus" |
| 52132 | + } |
| 52133 | + } |
| 52134 | + }, |
| 52135 | + "v1.SubjectRulesReviewSpec": { |
| 52136 | + "description": "SubjectRulesReviewSpec adds information about how to conduct the check", |
| 52137 | + "required": [ |
| 52138 | + "user", |
| 52139 | + "groups", |
| 52140 | + "scopes" |
| 52141 | + ], |
| 52142 | + "properties": { |
| 52143 | + "groups": { |
| 52144 | + "description": "Groups is optional. Groups is the list of groups to which the User belongs. At least one of User and Groups must be specified.", |
| 52145 | + "type": "array", |
| 52146 | + "items": { |
| 52147 | + "type": "string" |
| 52148 | + } |
| 52149 | + }, |
| 52150 | + "scopes": { |
| 52151 | + "description": "Scopes to use for the evaluation. Empty means \"use the unscoped (full) permissions of the user/groups\".", |
| 52152 | + "type": "array", |
| 52153 | + "items": { |
| 52154 | + "type": "string" |
| 52155 | + } |
| 52156 | + }, |
| 52157 | + "user": { |
| 52158 | + "description": "User is optional. At least one of User and Groups must be specified.", |
| 52159 | + "type": "string" |
| 52160 | + } |
| 52161 | + } |
| 52162 | + }, |
52021 | 52163 | "v1.SubjectRulesReviewStatus": {
|
52022 | 52164 | "description": "SubjectRulesReviewStatus is contains the result of a rules check",
|
52023 | 52165 | "required": [
|
|
0 commit comments