@grafana/openapi 13.2.0-28557667463 → 13.2.0-28630731574

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -63,1570 +63,318 @@
63
63
  }
64
64
  }
65
65
  },
66
- "/externalgroupmappings": {
66
+ "/searchExternalGroupMappings": {
67
+ "post": {
68
+ "tags": ["Search"],
69
+ "description": "Returns the team UIDs that map to any of the provided external group IDs.",
70
+ "operationId": "searchExternalGroupMappings",
71
+ "parameters": [
72
+ {
73
+ "name": "limit",
74
+ "in": "query",
75
+ "description": "number of results to return",
76
+ "schema": {
77
+ "type": "integer",
78
+ "format": "int64"
79
+ },
80
+ "example": 30
81
+ },
82
+ {
83
+ "name": "page",
84
+ "in": "query",
85
+ "description": "page number (starting from 1)",
86
+ "schema": {
87
+ "type": "integer",
88
+ "format": "int64"
89
+ },
90
+ "example": 1
91
+ },
92
+ {
93
+ "name": "offset",
94
+ "in": "query",
95
+ "description": "number of results to skip",
96
+ "schema": {
97
+ "type": "integer",
98
+ "format": "int64"
99
+ },
100
+ "example": 0
101
+ }
102
+ ],
103
+ "requestBody": {
104
+ "content": {
105
+ "application/json": {
106
+ "schema": {
107
+ "type": "object",
108
+ "properties": {
109
+ "externalGroups": {
110
+ "type": "array",
111
+ "items": {
112
+ "type": "string"
113
+ }
114
+ }
115
+ }
116
+ }
117
+ }
118
+ }
119
+ },
120
+ "responses": {
121
+ "403": {
122
+ "description": "Forbidden"
123
+ },
124
+ "default": {
125
+ "description": "Default OK response",
126
+ "content": {
127
+ "application/json": {
128
+ "schema": {}
129
+ }
130
+ }
131
+ }
132
+ }
133
+ }
134
+ },
135
+ "/searchTeams": {
67
136
  "get": {
68
- "tags": ["ExternalGroupMapping"],
69
- "description": "list or watch objects of kind ExternalGroupMapping",
70
- "operationId": "listExternalGroupMapping",
137
+ "tags": ["Search"],
138
+ "description": "Team search",
71
139
  "parameters": [
72
140
  {
73
- "name": "continue",
141
+ "name": "query",
74
142
  "in": "query",
75
- "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.",
143
+ "description": "team name query string (fuzzy/partial match). Mutually exclusive with title.",
76
144
  "schema": {
77
- "type": "string",
78
- "uniqueItems": true
145
+ "type": "string"
79
146
  }
80
147
  },
81
148
  {
82
- "name": "fieldSelector",
149
+ "name": "title",
83
150
  "in": "query",
84
- "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.",
151
+ "description": "exact match on team name. Mutually exclusive with query.",
85
152
  "schema": {
86
- "type": "string",
87
- "uniqueItems": true
153
+ "type": "string"
88
154
  }
89
155
  },
90
156
  {
91
- "name": "labelSelector",
157
+ "name": "uid",
92
158
  "in": "query",
93
- "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.",
159
+ "description": "filter by team UIDs. Mutually exclusive with teamId.",
94
160
  "schema": {
95
- "type": "string",
96
- "uniqueItems": true
161
+ "type": "array",
162
+ "items": {
163
+ "type": "string"
164
+ }
165
+ }
166
+ },
167
+ {
168
+ "name": "teamId",
169
+ "in": "query",
170
+ "description": "filter by legacy team IDs. Deprecated: use uid instead. Mutually exclusive with uid.",
171
+ "deprecated": true,
172
+ "schema": {
173
+ "type": "array",
174
+ "items": {
175
+ "type": "integer",
176
+ "format": "int64"
177
+ }
97
178
  }
98
179
  },
99
180
  {
100
181
  "name": "limit",
101
182
  "in": "query",
102
- "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.",
183
+ "description": "limit the number of results",
103
184
  "schema": {
104
185
  "type": "integer",
105
- "uniqueItems": true
186
+ "format": "int64"
106
187
  }
107
188
  },
108
189
  {
109
- "name": "resourceVersion",
190
+ "name": "offset",
110
191
  "in": "query",
111
- "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset",
192
+ "description": "start the query at the given offset",
112
193
  "schema": {
113
- "type": "string",
114
- "uniqueItems": true
194
+ "type": "integer",
195
+ "format": "int64"
115
196
  }
116
197
  },
117
198
  {
118
- "name": "timeoutSeconds",
199
+ "name": "page",
119
200
  "in": "query",
120
- "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.",
201
+ "description": "page number to start from",
121
202
  "schema": {
122
203
  "type": "integer",
123
- "uniqueItems": true
204
+ "format": "int64"
124
205
  }
125
206
  },
126
207
  {
127
- "name": "watch",
208
+ "name": "membercount",
128
209
  "in": "query",
129
- "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.",
210
+ "description": "when true, includes member count for each team in the response",
130
211
  "schema": {
131
- "type": "boolean",
132
- "uniqueItems": true
212
+ "type": "boolean"
213
+ }
214
+ },
215
+ {
216
+ "name": "accesscontrol",
217
+ "in": "query",
218
+ "description": "when true, includes access control metadata in the response",
219
+ "schema": {
220
+ "type": "boolean"
221
+ }
222
+ },
223
+ {
224
+ "name": "sort",
225
+ "in": "query",
226
+ "description": "sortable field",
227
+ "schema": {
228
+ "type": "string"
229
+ },
230
+ "examples": {
231
+ "": {
232
+ "summary": "default sorting"
233
+ },
234
+ "-email": {
235
+ "summary": "email descending",
236
+ "value": "-email"
237
+ },
238
+ "-title": {
239
+ "summary": "title descending",
240
+ "value": "-title"
241
+ },
242
+ "email": {
243
+ "summary": "email ascending",
244
+ "value": "email"
245
+ },
246
+ "title": {
247
+ "summary": "title ascending",
248
+ "value": "title"
249
+ }
133
250
  }
134
251
  }
135
252
  ],
136
253
  "responses": {
137
254
  "200": {
138
- "description": "OK",
139
255
  "content": {
140
256
  "application/json": {
141
- "schema": {
142
- "$ref": "#/components/schemas/ExternalGroupMappingList"
143
- }
144
- },
145
- "application/json;stream=watch": {
146
- "schema": {
147
- "$ref": "#/components/schemas/ExternalGroupMappingList"
148
- }
149
- },
150
- "application/yaml": {
151
- "schema": {
152
- "$ref": "#/components/schemas/ExternalGroupMappingList"
153
- }
257
+ "schema": {}
154
258
  }
155
259
  }
156
260
  }
157
- },
158
- "x-kubernetes-action": "list",
159
- "x-kubernetes-group-version-kind": {
160
- "group": "iam.grafana.app",
161
- "version": "v0alpha1",
162
- "kind": "ExternalGroupMapping"
163
261
  }
164
- },
165
- "post": {
166
- "tags": ["ExternalGroupMapping"],
167
- "description": "create an ExternalGroupMapping",
168
- "operationId": "createExternalGroupMapping",
262
+ }
263
+ },
264
+ "/searchUsers": {
265
+ "get": {
266
+ "tags": ["Search"],
267
+ "description": "User search",
268
+ "operationId": "getSearchUsers",
169
269
  "parameters": [
170
270
  {
171
- "name": "dryRun",
271
+ "name": "query",
172
272
  "in": "query",
173
- "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
174
273
  "schema": {
175
- "type": "string",
176
- "uniqueItems": true
274
+ "type": "string"
177
275
  }
178
276
  },
179
277
  {
180
- "name": "fieldManager",
278
+ "name": "limit",
181
279
  "in": "query",
182
- "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.",
280
+ "description": "number of results to return",
183
281
  "schema": {
184
- "type": "string",
185
- "uniqueItems": true
186
- }
282
+ "type": "integer",
283
+ "format": "int64"
284
+ },
285
+ "example": 30
187
286
  },
188
287
  {
189
- "name": "fieldValidation",
288
+ "name": "page",
190
289
  "in": "query",
191
- "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.",
290
+ "description": "page number (starting from 1)",
192
291
  "schema": {
193
- "type": "string",
194
- "uniqueItems": true
195
- }
196
- }
197
- ],
198
- "requestBody": {
199
- "content": {
200
- "application/json": {
201
- "schema": {
202
- "$ref": "#/components/schemas/ExternalGroupMapping"
203
- }
292
+ "type": "integer",
293
+ "format": "int64"
204
294
  },
205
- "application/yaml": {
206
- "schema": {
207
- "$ref": "#/components/schemas/ExternalGroupMapping"
208
- }
209
- }
210
- },
211
- "required": true
212
- },
213
- "responses": {
214
- "200": {
215
- "description": "OK",
216
- "content": {
217
- "application/json": {
218
- "schema": {
219
- "$ref": "#/components/schemas/ExternalGroupMapping"
220
- }
221
- },
222
- "application/yaml": {
223
- "schema": {
224
- "$ref": "#/components/schemas/ExternalGroupMapping"
225
- }
226
- }
227
- }
228
- },
229
- "201": {
230
- "description": "Created",
231
- "content": {
232
- "application/json": {
233
- "schema": {
234
- "$ref": "#/components/schemas/ExternalGroupMapping"
235
- }
236
- },
237
- "application/yaml": {
238
- "schema": {
239
- "$ref": "#/components/schemas/ExternalGroupMapping"
240
- }
241
- }
242
- }
243
- },
244
- "202": {
245
- "description": "Accepted",
246
- "content": {
247
- "application/json": {
248
- "schema": {
249
- "$ref": "#/components/schemas/ExternalGroupMapping"
250
- }
251
- },
252
- "application/yaml": {
253
- "schema": {
254
- "$ref": "#/components/schemas/ExternalGroupMapping"
255
- }
256
- }
257
- }
258
- }
259
- },
260
- "x-kubernetes-action": "post",
261
- "x-kubernetes-group-version-kind": {
262
- "group": "iam.grafana.app",
263
- "version": "v0alpha1",
264
- "kind": "ExternalGroupMapping"
265
- }
266
- },
267
- "parameters": [
268
- {
269
- "name": "pretty",
270
- "in": "query",
271
- "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).",
272
- "schema": {
273
- "type": "string",
274
- "uniqueItems": true
275
- }
276
- }
277
- ]
278
- },
279
- "/externalgroupmappings/{name}": {
280
- "get": {
281
- "tags": ["ExternalGroupMapping"],
282
- "description": "read the specified ExternalGroupMapping",
283
- "operationId": "getExternalGroupMapping",
284
- "responses": {
285
- "200": {
286
- "description": "OK",
287
- "content": {
288
- "application/json": {
289
- "schema": {
290
- "$ref": "#/components/schemas/ExternalGroupMapping"
291
- }
292
- },
293
- "application/yaml": {
294
- "schema": {
295
- "$ref": "#/components/schemas/ExternalGroupMapping"
296
- }
297
- }
298
- }
299
- }
300
- },
301
- "x-kubernetes-action": "get",
302
- "x-kubernetes-group-version-kind": {
303
- "group": "iam.grafana.app",
304
- "version": "v0alpha1",
305
- "kind": "ExternalGroupMapping"
306
- }
307
- },
308
- "put": {
309
- "tags": ["ExternalGroupMapping"],
310
- "description": "replace the specified ExternalGroupMapping",
311
- "operationId": "replaceExternalGroupMapping",
312
- "parameters": [
313
- {
314
- "name": "dryRun",
315
- "in": "query",
316
- "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
317
- "schema": {
318
- "type": "string",
319
- "uniqueItems": true
320
- }
321
- },
322
- {
323
- "name": "fieldManager",
324
- "in": "query",
325
- "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.",
326
- "schema": {
327
- "type": "string",
328
- "uniqueItems": true
295
+ "example": 1
296
+ },
297
+ {
298
+ "name": "offset",
299
+ "in": "query",
300
+ "description": "number of results to skip",
301
+ "schema": {
302
+ "type": "integer",
303
+ "format": "int64"
304
+ },
305
+ "example": 0
306
+ },
307
+ {
308
+ "name": "accesscontrol",
309
+ "in": "query",
310
+ "description": "when true, includes access control metadata in the response",
311
+ "schema": {
312
+ "type": "boolean"
329
313
  }
330
314
  },
331
315
  {
332
- "name": "fieldValidation",
316
+ "name": "sort",
333
317
  "in": "query",
334
- "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.",
318
+ "description": "sortable field",
335
319
  "schema": {
336
- "type": "string",
337
- "uniqueItems": true
338
- }
339
- }
340
- ],
341
- "requestBody": {
342
- "content": {
343
- "application/json": {
344
- "schema": {
345
- "$ref": "#/components/schemas/ExternalGroupMapping"
346
- }
320
+ "type": "string"
347
321
  },
348
- "application/yaml": {
349
- "schema": {
350
- "$ref": "#/components/schemas/ExternalGroupMapping"
351
- }
352
- }
353
- },
354
- "required": true
355
- },
356
- "responses": {
357
- "200": {
358
- "description": "OK",
359
- "content": {
360
- "application/json": {
361
- "schema": {
362
- "$ref": "#/components/schemas/ExternalGroupMapping"
363
- }
322
+ "examples": {
323
+ "": {
324
+ "summary": "default sorting"
364
325
  },
365
- "application/yaml": {
366
- "schema": {
367
- "$ref": "#/components/schemas/ExternalGroupMapping"
368
- }
369
- }
370
- }
371
- },
372
- "201": {
373
- "description": "Created",
374
- "content": {
375
- "application/json": {
376
- "schema": {
377
- "$ref": "#/components/schemas/ExternalGroupMapping"
378
- }
326
+ "-email": {
327
+ "summary": "email descending",
328
+ "value": "-email"
379
329
  },
380
- "application/yaml": {
381
- "schema": {
382
- "$ref": "#/components/schemas/ExternalGroupMapping"
383
- }
384
- }
385
- }
386
- }
387
- },
388
- "x-kubernetes-action": "put",
389
- "x-kubernetes-group-version-kind": {
390
- "group": "iam.grafana.app",
391
- "version": "v0alpha1",
392
- "kind": "ExternalGroupMapping"
393
- }
394
- },
395
- "delete": {
396
- "tags": ["ExternalGroupMapping"],
397
- "description": "delete an ExternalGroupMapping",
398
- "operationId": "deleteExternalGroupMapping",
399
- "parameters": [
400
- {
401
- "name": "dryRun",
402
- "in": "query",
403
- "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
404
- "schema": {
405
- "type": "string",
406
- "uniqueItems": true
407
- }
408
- },
409
- {
410
- "name": "gracePeriodSeconds",
411
- "in": "query",
412
- "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.",
413
- "schema": {
414
- "type": "integer",
415
- "uniqueItems": true
416
- }
417
- },
418
- {
419
- "name": "ignoreStoreReadErrorWithClusterBreakingPotential",
420
- "in": "query",
421
- "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it",
422
- "schema": {
423
- "type": "boolean",
424
- "uniqueItems": true
425
- }
426
- },
427
- {
428
- "name": "orphanDependents",
429
- "in": "query",
430
- "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.",
431
- "schema": {
432
- "type": "boolean",
433
- "uniqueItems": true
434
- }
435
- },
436
- {
437
- "name": "propagationPolicy",
438
- "in": "query",
439
- "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.",
440
- "schema": {
441
- "type": "string",
442
- "uniqueItems": true
443
- }
444
- }
445
- ],
446
- "responses": {
447
- "200": {
448
- "description": "OK",
449
- "content": {
450
- "application/json": {
451
- "schema": {
452
- "$ref": "#/components/schemas/Status"
453
- }
330
+ "-lastSeenAt": {
331
+ "summary": "last seen at descending",
332
+ "value": "-lastSeenAt"
454
333
  },
455
- "application/yaml": {
456
- "schema": {
457
- "$ref": "#/components/schemas/Status"
458
- }
459
- }
460
- }
461
- },
462
- "202": {
463
- "description": "Accepted",
464
- "content": {
465
- "application/json": {
466
- "schema": {
467
- "$ref": "#/components/schemas/Status"
468
- }
334
+ "-login": {
335
+ "summary": "login descending",
336
+ "value": "-login"
469
337
  },
470
- "application/yaml": {
471
- "schema": {
472
- "$ref": "#/components/schemas/Status"
473
- }
474
- }
475
- }
476
- }
477
- },
478
- "x-kubernetes-action": "delete",
479
- "x-kubernetes-group-version-kind": {
480
- "group": "iam.grafana.app",
481
- "version": "v0alpha1",
482
- "kind": "ExternalGroupMapping"
483
- }
484
- },
485
- "patch": {
486
- "tags": ["ExternalGroupMapping"],
487
- "description": "partially update the specified ExternalGroupMapping",
488
- "operationId": "updateExternalGroupMapping",
489
- "parameters": [
490
- {
491
- "name": "dryRun",
492
- "in": "query",
493
- "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
494
- "schema": {
495
- "type": "string",
496
- "uniqueItems": true
497
- }
498
- },
499
- {
500
- "name": "fieldManager",
501
- "in": "query",
502
- "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).",
503
- "schema": {
504
- "type": "string",
505
- "uniqueItems": true
506
- }
507
- },
508
- {
509
- "name": "fieldValidation",
510
- "in": "query",
511
- "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.",
512
- "schema": {
513
- "type": "string",
514
- "uniqueItems": true
515
- }
516
- },
517
- {
518
- "name": "force",
519
- "in": "query",
520
- "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.",
521
- "schema": {
522
- "type": "boolean",
523
- "uniqueItems": true
524
- }
525
- }
526
- ],
527
- "requestBody": {
528
- "content": {
529
- "application/apply-patch+yaml": {
530
- "schema": {
531
- "$ref": "#/components/schemas/Patch"
532
- }
533
- },
534
- "application/json-patch+json": {
535
- "schema": {
536
- "$ref": "#/components/schemas/Patch"
537
- }
538
- },
539
- "application/merge-patch+json": {
540
- "schema": {
541
- "$ref": "#/components/schemas/Patch"
542
- }
543
- },
544
- "application/strategic-merge-patch+json": {
545
- "schema": {
546
- "$ref": "#/components/schemas/Patch"
547
- }
548
- }
549
- },
550
- "required": true
551
- },
552
- "responses": {
553
- "200": {
554
- "description": "OK",
555
- "content": {
556
- "application/json": {
557
- "schema": {
558
- "$ref": "#/components/schemas/ExternalGroupMapping"
559
- }
560
- },
561
- "application/yaml": {
562
- "schema": {
563
- "$ref": "#/components/schemas/ExternalGroupMapping"
564
- }
565
- }
566
- }
567
- },
568
- "201": {
569
- "description": "Created",
570
- "content": {
571
- "application/json": {
572
- "schema": {
573
- "$ref": "#/components/schemas/ExternalGroupMapping"
574
- }
575
- },
576
- "application/yaml": {
577
- "schema": {
578
- "$ref": "#/components/schemas/ExternalGroupMapping"
579
- }
580
- }
581
- }
582
- }
583
- },
584
- "x-kubernetes-action": "patch",
585
- "x-kubernetes-group-version-kind": {
586
- "group": "iam.grafana.app",
587
- "version": "v0alpha1",
588
- "kind": "ExternalGroupMapping"
589
- }
590
- },
591
- "parameters": [
592
- {
593
- "name": "name",
594
- "in": "path",
595
- "description": "name of the ExternalGroupMapping",
596
- "required": true,
597
- "schema": {
598
- "type": "string",
599
- "uniqueItems": true
600
- }
601
- },
602
- {
603
- "name": "pretty",
604
- "in": "query",
605
- "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).",
606
- "schema": {
607
- "type": "string",
608
- "uniqueItems": true
609
- }
610
- }
611
- ]
612
- },
613
- "/searchExternalGroupMappings": {
614
- "post": {
615
- "tags": ["Search"],
616
- "description": "Returns the team UIDs that map to any of the provided external group IDs.",
617
- "operationId": "searchExternalGroupMappings",
618
- "parameters": [
619
- {
620
- "name": "limit",
621
- "in": "query",
622
- "description": "number of results to return",
623
- "schema": {
624
- "type": "integer",
625
- "format": "int64"
626
- },
627
- "example": 30
628
- },
629
- {
630
- "name": "page",
631
- "in": "query",
632
- "description": "page number (starting from 1)",
633
- "schema": {
634
- "type": "integer",
635
- "format": "int64"
636
- },
637
- "example": 1
638
- },
639
- {
640
- "name": "offset",
641
- "in": "query",
642
- "description": "number of results to skip",
643
- "schema": {
644
- "type": "integer",
645
- "format": "int64"
646
- },
647
- "example": 0
648
- }
649
- ],
650
- "requestBody": {
651
- "content": {
652
- "application/json": {
653
- "schema": {
654
- "type": "object",
655
- "properties": {
656
- "externalGroups": {
657
- "type": "array",
658
- "items": {
659
- "type": "string"
660
- }
661
- }
662
- }
663
- }
664
- }
665
- }
666
- },
667
- "responses": {
668
- "403": {
669
- "description": "Forbidden"
670
- },
671
- "default": {
672
- "description": "Default OK response",
673
- "content": {
674
- "application/json": {
675
- "schema": {}
676
- }
677
- }
678
- }
679
- }
680
- }
681
- },
682
- "/searchTeams": {
683
- "get": {
684
- "tags": ["Search"],
685
- "description": "Team search",
686
- "parameters": [
687
- {
688
- "name": "query",
689
- "in": "query",
690
- "description": "team name query string (fuzzy/partial match). Mutually exclusive with title.",
691
- "schema": {
692
- "type": "string"
693
- }
694
- },
695
- {
696
- "name": "title",
697
- "in": "query",
698
- "description": "exact match on team name. Mutually exclusive with query.",
699
- "schema": {
700
- "type": "string"
701
- }
702
- },
703
- {
704
- "name": "uid",
705
- "in": "query",
706
- "description": "filter by team UIDs. Mutually exclusive with teamId.",
707
- "schema": {
708
- "type": "array",
709
- "items": {
710
- "type": "string"
711
- }
712
- }
713
- },
714
- {
715
- "name": "teamId",
716
- "in": "query",
717
- "description": "filter by legacy team IDs. Deprecated: use uid instead. Mutually exclusive with uid.",
718
- "deprecated": true,
719
- "schema": {
720
- "type": "array",
721
- "items": {
722
- "type": "integer",
723
- "format": "int64"
724
- }
725
- }
726
- },
727
- {
728
- "name": "limit",
729
- "in": "query",
730
- "description": "limit the number of results",
731
- "schema": {
732
- "type": "integer",
733
- "format": "int64"
734
- }
735
- },
736
- {
737
- "name": "offset",
738
- "in": "query",
739
- "description": "start the query at the given offset",
740
- "schema": {
741
- "type": "integer",
742
- "format": "int64"
743
- }
744
- },
745
- {
746
- "name": "page",
747
- "in": "query",
748
- "description": "page number to start from",
749
- "schema": {
750
- "type": "integer",
751
- "format": "int64"
752
- }
753
- },
754
- {
755
- "name": "membercount",
756
- "in": "query",
757
- "description": "when true, includes member count for each team in the response",
758
- "schema": {
759
- "type": "boolean"
760
- }
761
- },
762
- {
763
- "name": "accesscontrol",
764
- "in": "query",
765
- "description": "when true, includes access control metadata in the response",
766
- "schema": {
767
- "type": "boolean"
768
- }
769
- },
770
- {
771
- "name": "sort",
772
- "in": "query",
773
- "description": "sortable field",
774
- "schema": {
775
- "type": "string"
776
- },
777
- "examples": {
778
- "": {
779
- "summary": "default sorting"
780
- },
781
- "-email": {
782
- "summary": "email descending",
783
- "value": "-email"
784
- },
785
- "-title": {
786
- "summary": "title descending",
787
- "value": "-title"
788
- },
789
- "email": {
790
- "summary": "email ascending",
791
- "value": "email"
792
- },
793
- "title": {
794
- "summary": "title ascending",
795
- "value": "title"
796
- }
797
- }
798
- }
799
- ],
800
- "responses": {
801
- "200": {
802
- "content": {
803
- "application/json": {
804
- "schema": {}
805
- }
806
- }
807
- }
808
- }
809
- }
810
- },
811
- "/searchUsers": {
812
- "get": {
813
- "tags": ["Search"],
814
- "description": "User search",
815
- "operationId": "getSearchUsers",
816
- "parameters": [
817
- {
818
- "name": "query",
819
- "in": "query",
820
- "schema": {
821
- "type": "string"
822
- }
823
- },
824
- {
825
- "name": "limit",
826
- "in": "query",
827
- "description": "number of results to return",
828
- "schema": {
829
- "type": "integer",
830
- "format": "int64"
831
- },
832
- "example": 30
833
- },
834
- {
835
- "name": "page",
836
- "in": "query",
837
- "description": "page number (starting from 1)",
838
- "schema": {
839
- "type": "integer",
840
- "format": "int64"
841
- },
842
- "example": 1
843
- },
844
- {
845
- "name": "offset",
846
- "in": "query",
847
- "description": "number of results to skip",
848
- "schema": {
849
- "type": "integer",
850
- "format": "int64"
851
- },
852
- "example": 0
853
- },
854
- {
855
- "name": "accesscontrol",
856
- "in": "query",
857
- "description": "when true, includes access control metadata in the response",
858
- "schema": {
859
- "type": "boolean"
860
- }
861
- },
862
- {
863
- "name": "sort",
864
- "in": "query",
865
- "description": "sortable field",
866
- "schema": {
867
- "type": "string"
868
- },
869
- "examples": {
870
- "": {
871
- "summary": "default sorting"
872
- },
873
- "-email": {
874
- "summary": "email descending",
875
- "value": "-email"
876
- },
877
- "-lastSeenAt": {
878
- "summary": "last seen at descending",
879
- "value": "-lastSeenAt"
880
- },
881
- "-login": {
882
- "summary": "login descending",
883
- "value": "-login"
884
- },
885
- "-title": {
886
- "summary": "title descending",
887
- "value": "-title"
888
- },
889
- "email": {
890
- "summary": "email ascending",
891
- "value": "email"
892
- },
893
- "lastSeenAt": {
894
- "summary": "last seen at ascending",
895
- "value": "lastSeenAt"
896
- },
897
- "login": {
898
- "summary": "login ascending",
899
- "value": "login"
900
- },
901
- "title": {
902
- "summary": "title ascending",
903
- "value": "title"
904
- }
905
- }
906
- }
907
- ],
908
- "responses": {
909
- "default": {
910
- "description": "Default OK response",
911
- "content": {
912
- "application/json": {
913
- "schema": {}
914
- }
915
- }
916
- }
917
- }
918
- }
919
- },
920
- "/serviceaccounts": {
921
- "get": {
922
- "tags": ["ServiceAccount"],
923
- "description": "list objects of kind ServiceAccount",
924
- "operationId": "listServiceAccount",
925
- "parameters": [
926
- {
927
- "name": "continue",
928
- "in": "query",
929
- "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.",
930
- "schema": {
931
- "type": "string",
932
- "uniqueItems": true
933
- }
934
- },
935
- {
936
- "name": "fieldSelector",
937
- "in": "query",
938
- "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.",
939
- "schema": {
940
- "type": "string",
941
- "uniqueItems": true
942
- }
943
- },
944
- {
945
- "name": "labelSelector",
946
- "in": "query",
947
- "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.",
948
- "schema": {
949
- "type": "string",
950
- "uniqueItems": true
951
- }
952
- },
953
- {
954
- "name": "limit",
955
- "in": "query",
956
- "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.",
957
- "schema": {
958
- "type": "integer",
959
- "uniqueItems": true
960
- }
961
- },
962
- {
963
- "name": "resourceVersion",
964
- "in": "query",
965
- "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset",
966
- "schema": {
967
- "type": "string",
968
- "uniqueItems": true
969
- }
970
- },
971
- {
972
- "name": "timeoutSeconds",
973
- "in": "query",
974
- "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.",
975
- "schema": {
976
- "type": "integer",
977
- "uniqueItems": true
978
- }
979
- },
980
- {
981
- "name": "watch",
982
- "in": "query",
983
- "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.",
984
- "schema": {
985
- "type": "boolean",
986
- "uniqueItems": true
987
- }
988
- }
989
- ],
990
- "responses": {
991
- "200": {
992
- "description": "OK",
993
- "content": {
994
- "application/json": {
995
- "schema": {
996
- "$ref": "#/components/schemas/ServiceAccountList"
997
- }
998
- },
999
- "application/json;stream=watch": {
1000
- "schema": {
1001
- "$ref": "#/components/schemas/ServiceAccountList"
1002
- }
1003
- },
1004
- "application/yaml": {
1005
- "schema": {
1006
- "$ref": "#/components/schemas/ServiceAccountList"
1007
- }
1008
- }
1009
- }
1010
- }
1011
- },
1012
- "x-kubernetes-action": "list",
1013
- "x-kubernetes-group-version-kind": {
1014
- "group": "iam.grafana.app",
1015
- "version": "v0alpha1",
1016
- "kind": "ServiceAccount"
1017
- }
1018
- },
1019
- "post": {
1020
- "tags": ["ServiceAccount"],
1021
- "description": "create a ServiceAccount",
1022
- "operationId": "createServiceAccount",
1023
- "parameters": [
1024
- {
1025
- "name": "dryRun",
1026
- "in": "query",
1027
- "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
1028
- "schema": {
1029
- "type": "string",
1030
- "uniqueItems": true
1031
- }
1032
- },
1033
- {
1034
- "name": "fieldManager",
1035
- "in": "query",
1036
- "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.",
1037
- "schema": {
1038
- "type": "string",
1039
- "uniqueItems": true
1040
- }
1041
- },
1042
- {
1043
- "name": "fieldValidation",
1044
- "in": "query",
1045
- "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.",
1046
- "schema": {
1047
- "type": "string",
1048
- "uniqueItems": true
1049
- }
1050
- }
1051
- ],
1052
- "requestBody": {
1053
- "content": {
1054
- "application/json": {
1055
- "schema": {
1056
- "$ref": "#/components/schemas/ServiceAccount"
1057
- }
1058
- },
1059
- "application/yaml": {
1060
- "schema": {
1061
- "$ref": "#/components/schemas/ServiceAccount"
1062
- }
1063
- }
1064
- },
1065
- "required": true
1066
- },
1067
- "responses": {
1068
- "200": {
1069
- "description": "OK",
1070
- "content": {
1071
- "application/json": {
1072
- "schema": {
1073
- "$ref": "#/components/schemas/ServiceAccount"
1074
- }
1075
- },
1076
- "application/yaml": {
1077
- "schema": {
1078
- "$ref": "#/components/schemas/ServiceAccount"
1079
- }
1080
- }
1081
- }
1082
- },
1083
- "201": {
1084
- "description": "Created",
1085
- "content": {
1086
- "application/json": {
1087
- "schema": {
1088
- "$ref": "#/components/schemas/ServiceAccount"
1089
- }
1090
- },
1091
- "application/yaml": {
1092
- "schema": {
1093
- "$ref": "#/components/schemas/ServiceAccount"
1094
- }
1095
- }
1096
- }
1097
- },
1098
- "202": {
1099
- "description": "Accepted",
1100
- "content": {
1101
- "application/json": {
1102
- "schema": {
1103
- "$ref": "#/components/schemas/ServiceAccount"
1104
- }
1105
- },
1106
- "application/yaml": {
1107
- "schema": {
1108
- "$ref": "#/components/schemas/ServiceAccount"
1109
- }
1110
- }
1111
- }
1112
- }
1113
- },
1114
- "x-kubernetes-action": "post",
1115
- "x-kubernetes-group-version-kind": {
1116
- "group": "iam.grafana.app",
1117
- "version": "v0alpha1",
1118
- "kind": "ServiceAccount"
1119
- }
1120
- },
1121
- "parameters": [
1122
- {
1123
- "name": "pretty",
1124
- "in": "query",
1125
- "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).",
1126
- "schema": {
1127
- "type": "string",
1128
- "uniqueItems": true
1129
- }
1130
- }
1131
- ]
1132
- },
1133
- "/serviceaccounts/{name}": {
1134
- "get": {
1135
- "tags": ["ServiceAccount"],
1136
- "description": "read the specified ServiceAccount",
1137
- "operationId": "getServiceAccount",
1138
- "responses": {
1139
- "200": {
1140
- "description": "OK",
1141
- "content": {
1142
- "application/json": {
1143
- "schema": {
1144
- "$ref": "#/components/schemas/ServiceAccount"
1145
- }
1146
- },
1147
- "application/yaml": {
1148
- "schema": {
1149
- "$ref": "#/components/schemas/ServiceAccount"
1150
- }
1151
- }
1152
- }
1153
- }
1154
- },
1155
- "x-kubernetes-action": "get",
1156
- "x-kubernetes-group-version-kind": {
1157
- "group": "iam.grafana.app",
1158
- "version": "v0alpha1",
1159
- "kind": "ServiceAccount"
1160
- }
1161
- },
1162
- "put": {
1163
- "tags": ["ServiceAccount"],
1164
- "description": "replace the specified ServiceAccount",
1165
- "operationId": "replaceServiceAccount",
1166
- "parameters": [
1167
- {
1168
- "name": "dryRun",
1169
- "in": "query",
1170
- "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
1171
- "schema": {
1172
- "type": "string",
1173
- "uniqueItems": true
1174
- }
1175
- },
1176
- {
1177
- "name": "fieldManager",
1178
- "in": "query",
1179
- "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.",
1180
- "schema": {
1181
- "type": "string",
1182
- "uniqueItems": true
1183
- }
1184
- },
1185
- {
1186
- "name": "fieldValidation",
1187
- "in": "query",
1188
- "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.",
1189
- "schema": {
1190
- "type": "string",
1191
- "uniqueItems": true
1192
- }
1193
- }
1194
- ],
1195
- "requestBody": {
1196
- "content": {
1197
- "application/json": {
1198
- "schema": {
1199
- "$ref": "#/components/schemas/ServiceAccount"
1200
- }
1201
- },
1202
- "application/yaml": {
1203
- "schema": {
1204
- "$ref": "#/components/schemas/ServiceAccount"
1205
- }
1206
- }
1207
- },
1208
- "required": true
1209
- },
1210
- "responses": {
1211
- "200": {
1212
- "description": "OK",
1213
- "content": {
1214
- "application/json": {
1215
- "schema": {
1216
- "$ref": "#/components/schemas/ServiceAccount"
1217
- }
1218
- },
1219
- "application/yaml": {
1220
- "schema": {
1221
- "$ref": "#/components/schemas/ServiceAccount"
1222
- }
1223
- }
1224
- }
1225
- },
1226
- "201": {
1227
- "description": "Created",
1228
- "content": {
1229
- "application/json": {
1230
- "schema": {
1231
- "$ref": "#/components/schemas/ServiceAccount"
1232
- }
1233
- },
1234
- "application/yaml": {
1235
- "schema": {
1236
- "$ref": "#/components/schemas/ServiceAccount"
1237
- }
1238
- }
1239
- }
1240
- }
1241
- },
1242
- "x-kubernetes-action": "put",
1243
- "x-kubernetes-group-version-kind": {
1244
- "group": "iam.grafana.app",
1245
- "version": "v0alpha1",
1246
- "kind": "ServiceAccount"
1247
- }
1248
- },
1249
- "delete": {
1250
- "tags": ["ServiceAccount"],
1251
- "description": "delete a ServiceAccount",
1252
- "operationId": "deleteServiceAccount",
1253
- "parameters": [
1254
- {
1255
- "name": "dryRun",
1256
- "in": "query",
1257
- "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
1258
- "schema": {
1259
- "type": "string",
1260
- "uniqueItems": true
1261
- }
1262
- },
1263
- {
1264
- "name": "gracePeriodSeconds",
1265
- "in": "query",
1266
- "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.",
1267
- "schema": {
1268
- "type": "integer",
1269
- "uniqueItems": true
1270
- }
1271
- },
1272
- {
1273
- "name": "ignoreStoreReadErrorWithClusterBreakingPotential",
1274
- "in": "query",
1275
- "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it",
1276
- "schema": {
1277
- "type": "boolean",
1278
- "uniqueItems": true
1279
- }
1280
- },
1281
- {
1282
- "name": "orphanDependents",
1283
- "in": "query",
1284
- "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.",
1285
- "schema": {
1286
- "type": "boolean",
1287
- "uniqueItems": true
1288
- }
1289
- },
1290
- {
1291
- "name": "propagationPolicy",
1292
- "in": "query",
1293
- "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.",
1294
- "schema": {
1295
- "type": "string",
1296
- "uniqueItems": true
1297
- }
1298
- }
1299
- ],
1300
- "responses": {
1301
- "200": {
1302
- "description": "OK",
1303
- "content": {
1304
- "application/json": {
1305
- "schema": {
1306
- "$ref": "#/components/schemas/Status"
1307
- }
1308
- },
1309
- "application/yaml": {
1310
- "schema": {
1311
- "$ref": "#/components/schemas/Status"
1312
- }
1313
- }
1314
- }
1315
- },
1316
- "202": {
1317
- "description": "Accepted",
1318
- "content": {
1319
- "application/json": {
1320
- "schema": {
1321
- "$ref": "#/components/schemas/Status"
1322
- }
1323
- },
1324
- "application/yaml": {
1325
- "schema": {
1326
- "$ref": "#/components/schemas/Status"
1327
- }
1328
- }
1329
- }
1330
- }
1331
- },
1332
- "x-kubernetes-action": "delete",
1333
- "x-kubernetes-group-version-kind": {
1334
- "group": "iam.grafana.app",
1335
- "version": "v0alpha1",
1336
- "kind": "ServiceAccount"
1337
- }
1338
- },
1339
- "patch": {
1340
- "tags": ["ServiceAccount"],
1341
- "description": "partially update the specified ServiceAccount",
1342
- "operationId": "updateServiceAccount",
1343
- "parameters": [
1344
- {
1345
- "name": "dryRun",
1346
- "in": "query",
1347
- "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
1348
- "schema": {
1349
- "type": "string",
1350
- "uniqueItems": true
1351
- }
1352
- },
1353
- {
1354
- "name": "fieldManager",
1355
- "in": "query",
1356
- "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).",
1357
- "schema": {
1358
- "type": "string",
1359
- "uniqueItems": true
1360
- }
1361
- },
1362
- {
1363
- "name": "fieldValidation",
1364
- "in": "query",
1365
- "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.",
1366
- "schema": {
1367
- "type": "string",
1368
- "uniqueItems": true
1369
- }
1370
- },
1371
- {
1372
- "name": "force",
1373
- "in": "query",
1374
- "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.",
1375
- "schema": {
1376
- "type": "boolean",
1377
- "uniqueItems": true
1378
- }
1379
- }
1380
- ],
1381
- "requestBody": {
1382
- "content": {
1383
- "application/apply-patch+yaml": {
1384
- "schema": {
1385
- "$ref": "#/components/schemas/Patch"
1386
- }
1387
- },
1388
- "application/json-patch+json": {
1389
- "schema": {
1390
- "$ref": "#/components/schemas/Patch"
1391
- }
1392
- },
1393
- "application/merge-patch+json": {
1394
- "schema": {
1395
- "$ref": "#/components/schemas/Patch"
1396
- }
1397
- },
1398
- "application/strategic-merge-patch+json": {
1399
- "schema": {
1400
- "$ref": "#/components/schemas/Patch"
1401
- }
1402
- }
1403
- },
1404
- "required": true
1405
- },
1406
- "responses": {
1407
- "200": {
1408
- "description": "OK",
1409
- "content": {
1410
- "application/json": {
1411
- "schema": {
1412
- "$ref": "#/components/schemas/ServiceAccount"
1413
- }
338
+ "-title": {
339
+ "summary": "title descending",
340
+ "value": "-title"
1414
341
  },
1415
- "application/yaml": {
1416
- "schema": {
1417
- "$ref": "#/components/schemas/ServiceAccount"
1418
- }
1419
- }
1420
- }
1421
- },
1422
- "201": {
1423
- "description": "Created",
1424
- "content": {
1425
- "application/json": {
1426
- "schema": {
1427
- "$ref": "#/components/schemas/ServiceAccount"
1428
- }
342
+ "email": {
343
+ "summary": "email ascending",
344
+ "value": "email"
1429
345
  },
1430
- "application/yaml": {
1431
- "schema": {
1432
- "$ref": "#/components/schemas/ServiceAccount"
1433
- }
1434
- }
1435
- }
1436
- }
1437
- },
1438
- "x-kubernetes-action": "patch",
1439
- "x-kubernetes-group-version-kind": {
1440
- "group": "iam.grafana.app",
1441
- "version": "v0alpha1",
1442
- "kind": "ServiceAccount"
1443
- }
1444
- },
1445
- "parameters": [
1446
- {
1447
- "name": "name",
1448
- "in": "path",
1449
- "description": "name of the ServiceAccount",
1450
- "required": true,
1451
- "schema": {
1452
- "type": "string",
1453
- "uniqueItems": true
1454
- }
1455
- },
1456
- {
1457
- "name": "pretty",
1458
- "in": "query",
1459
- "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).",
1460
- "schema": {
1461
- "type": "string",
1462
- "uniqueItems": true
1463
- }
1464
- }
1465
- ]
1466
- },
1467
- "/serviceaccounts/{name}/tokens": {
1468
- "get": {
1469
- "tags": ["ServiceAccount"],
1470
- "description": "connect GET requests to tokens of ServiceAccount",
1471
- "operationId": "getServiceAccountTokens",
1472
- "parameters": [
1473
- {
1474
- "name": "limit",
1475
- "in": "query",
1476
- "description": "maximum number of tokens to return in a single page",
1477
- "schema": {
1478
- "type": "integer",
1479
- "format": "int64"
1480
- }
1481
- },
1482
- {
1483
- "name": "continue",
1484
- "in": "query",
1485
- "description": "continue token returned by a previous list response to fetch the next page",
1486
- "schema": {
1487
- "type": "string"
1488
- }
1489
- }
1490
- ],
1491
- "responses": {
1492
- "200": {
1493
- "description": "OK",
1494
- "content": {
1495
- "application/json": {
1496
- "schema": {
1497
- "$ref": "#/components/schemas/ListServiceAccountTokensBody"
1498
- }
1499
- }
1500
- }
1501
- }
1502
- },
1503
- "x-kubernetes-action": "connect",
1504
- "x-kubernetes-group-version-kind": {
1505
- "group": "iam.grafana.app",
1506
- "version": "v0alpha1",
1507
- "kind": "ListServiceAccountTokensResponse"
1508
- }
1509
- },
1510
- "post": {
1511
- "tags": ["ServiceAccount"],
1512
- "description": "connect POST requests to tokens of ServiceAccount",
1513
- "operationId": "createServiceAccountTokens",
1514
- "requestBody": {
1515
- "content": {
1516
- "application/json": {
1517
- "schema": {
1518
- "$ref": "#/components/schemas/CreateServiceAccountTokenRequestBody"
1519
- }
1520
- }
1521
- }
1522
- },
1523
- "responses": {
1524
- "201": {
1525
- "description": "Token created",
1526
- "content": {
1527
- "application/json": {
1528
- "schema": {
1529
- "$ref": "#/components/schemas/CreateServiceAccountTokenBody"
1530
- }
1531
- }
1532
- }
1533
- }
1534
- },
1535
- "x-kubernetes-action": "connect",
1536
- "x-kubernetes-group-version-kind": {
1537
- "group": "iam.grafana.app",
1538
- "version": "v0alpha1",
1539
- "kind": "ListServiceAccountTokensResponse"
1540
- }
1541
- },
1542
- "parameters": [
1543
- {
1544
- "name": "name",
1545
- "in": "path",
1546
- "description": "name of the ServiceAccount",
1547
- "required": true,
1548
- "schema": {
1549
- "type": "string",
1550
- "uniqueItems": true
1551
- }
1552
- }
1553
- ]
1554
- },
1555
- "/serviceaccounts/{name}/tokens/{tokenName}": {
1556
- "get": {
1557
- "tags": ["ServiceAccount"],
1558
- "description": "connect GET requests to tokens of ServiceAccount",
1559
- "operationId": "getServiceAccountTokensWithPath",
1560
- "responses": {
1561
- "200": {
1562
- "description": "OK",
1563
- "content": {
1564
- "application/json": {
1565
- "schema": {
1566
- "$ref": "#/components/schemas/GetServiceAccountTokenBody"
1567
- }
1568
- }
1569
- }
1570
- }
1571
- },
1572
- "x-kubernetes-action": "connect",
1573
- "x-kubernetes-group-version-kind": {
1574
- "group": "iam.grafana.app",
1575
- "version": "v0alpha1",
1576
- "kind": "ListServiceAccountTokensResponse"
1577
- }
1578
- },
1579
- "delete": {
1580
- "tags": ["ServiceAccount"],
1581
- "description": "connect DELETE requests to tokens of ServiceAccount",
1582
- "operationId": "deleteServiceAccountTokensWithPath",
346
+ "lastSeenAt": {
347
+ "summary": "last seen at ascending",
348
+ "value": "lastSeenAt"
349
+ },
350
+ "login": {
351
+ "summary": "login ascending",
352
+ "value": "login"
353
+ },
354
+ "title": {
355
+ "summary": "title ascending",
356
+ "value": "title"
357
+ }
358
+ }
359
+ }
360
+ ],
1583
361
  "responses": {
1584
- "200": {
1585
- "description": "OK",
362
+ "default": {
363
+ "description": "Default OK response",
1586
364
  "content": {
1587
365
  "application/json": {
1588
- "schema": {
1589
- "$ref": "#/components/schemas/DeleteServiceAccountTokenBody"
1590
- }
366
+ "schema": {}
1591
367
  }
1592
368
  }
1593
369
  }
1594
- },
1595
- "x-kubernetes-action": "connect",
1596
- "x-kubernetes-group-version-kind": {
1597
- "group": "iam.grafana.app",
1598
- "version": "v0alpha1",
1599
- "kind": "ListServiceAccountTokensResponse"
1600
- }
1601
- },
1602
- "parameters": [
1603
- {
1604
- "name": "name",
1605
- "in": "path",
1606
- "description": "name of the ServiceAccount",
1607
- "required": true,
1608
- "schema": {
1609
- "type": "string",
1610
- "uniqueItems": true
1611
- }
1612
- },
1613
- {
1614
- "name": "tokenName",
1615
- "in": "path",
1616
- "description": "name of the token to operate on",
1617
- "required": true,
1618
- "schema": {
1619
- "type": "string",
1620
- "uniqueItems": true
1621
- }
1622
370
  }
1623
- ]
371
+ }
1624
372
  },
1625
- "/teambindings": {
373
+ "/serviceaccounts": {
1626
374
  "get": {
1627
- "tags": ["TeamBinding"],
1628
- "description": "list or watch objects of kind TeamBinding",
1629
- "operationId": "listTeamBinding",
375
+ "tags": ["ServiceAccount"],
376
+ "description": "list objects of kind ServiceAccount",
377
+ "operationId": "listServiceAccount",
1630
378
  "parameters": [
1631
379
  {
1632
380
  "name": "continue",
@@ -1698,17 +446,17 @@
1698
446
  "content": {
1699
447
  "application/json": {
1700
448
  "schema": {
1701
- "$ref": "#/components/schemas/TeamBindingList"
449
+ "$ref": "#/components/schemas/ServiceAccountList"
1702
450
  }
1703
451
  },
1704
452
  "application/json;stream=watch": {
1705
453
  "schema": {
1706
- "$ref": "#/components/schemas/TeamBindingList"
454
+ "$ref": "#/components/schemas/ServiceAccountList"
1707
455
  }
1708
456
  },
1709
457
  "application/yaml": {
1710
458
  "schema": {
1711
- "$ref": "#/components/schemas/TeamBindingList"
459
+ "$ref": "#/components/schemas/ServiceAccountList"
1712
460
  }
1713
461
  }
1714
462
  }
@@ -1718,13 +466,13 @@
1718
466
  "x-kubernetes-group-version-kind": {
1719
467
  "group": "iam.grafana.app",
1720
468
  "version": "v0alpha1",
1721
- "kind": "TeamBinding"
469
+ "kind": "ServiceAccount"
1722
470
  }
1723
471
  },
1724
472
  "post": {
1725
- "tags": ["TeamBinding"],
1726
- "description": "create a TeamBinding",
1727
- "operationId": "createTeamBinding",
473
+ "tags": ["ServiceAccount"],
474
+ "description": "create a ServiceAccount",
475
+ "operationId": "createServiceAccount",
1728
476
  "parameters": [
1729
477
  {
1730
478
  "name": "dryRun",
@@ -1758,12 +506,12 @@
1758
506
  "content": {
1759
507
  "application/json": {
1760
508
  "schema": {
1761
- "$ref": "#/components/schemas/TeamBinding"
509
+ "$ref": "#/components/schemas/ServiceAccount"
1762
510
  }
1763
511
  },
1764
512
  "application/yaml": {
1765
513
  "schema": {
1766
- "$ref": "#/components/schemas/TeamBinding"
514
+ "$ref": "#/components/schemas/ServiceAccount"
1767
515
  }
1768
516
  }
1769
517
  },
@@ -1775,12 +523,12 @@
1775
523
  "content": {
1776
524
  "application/json": {
1777
525
  "schema": {
1778
- "$ref": "#/components/schemas/TeamBinding"
526
+ "$ref": "#/components/schemas/ServiceAccount"
1779
527
  }
1780
528
  },
1781
529
  "application/yaml": {
1782
530
  "schema": {
1783
- "$ref": "#/components/schemas/TeamBinding"
531
+ "$ref": "#/components/schemas/ServiceAccount"
1784
532
  }
1785
533
  }
1786
534
  }
@@ -1790,12 +538,12 @@
1790
538
  "content": {
1791
539
  "application/json": {
1792
540
  "schema": {
1793
- "$ref": "#/components/schemas/TeamBinding"
541
+ "$ref": "#/components/schemas/ServiceAccount"
1794
542
  }
1795
543
  },
1796
544
  "application/yaml": {
1797
545
  "schema": {
1798
- "$ref": "#/components/schemas/TeamBinding"
546
+ "$ref": "#/components/schemas/ServiceAccount"
1799
547
  }
1800
548
  }
1801
549
  }
@@ -1805,12 +553,12 @@
1805
553
  "content": {
1806
554
  "application/json": {
1807
555
  "schema": {
1808
- "$ref": "#/components/schemas/TeamBinding"
556
+ "$ref": "#/components/schemas/ServiceAccount"
1809
557
  }
1810
558
  },
1811
559
  "application/yaml": {
1812
560
  "schema": {
1813
- "$ref": "#/components/schemas/TeamBinding"
561
+ "$ref": "#/components/schemas/ServiceAccount"
1814
562
  }
1815
563
  }
1816
564
  }
@@ -1820,7 +568,7 @@
1820
568
  "x-kubernetes-group-version-kind": {
1821
569
  "group": "iam.grafana.app",
1822
570
  "version": "v0alpha1",
1823
- "kind": "TeamBinding"
571
+ "kind": "ServiceAccount"
1824
572
  }
1825
573
  },
1826
574
  "parameters": [
@@ -1835,23 +583,23 @@
1835
583
  }
1836
584
  ]
1837
585
  },
1838
- "/teambindings/{name}": {
586
+ "/serviceaccounts/{name}": {
1839
587
  "get": {
1840
- "tags": ["TeamBinding"],
1841
- "description": "read the specified TeamBinding",
1842
- "operationId": "getTeamBinding",
588
+ "tags": ["ServiceAccount"],
589
+ "description": "read the specified ServiceAccount",
590
+ "operationId": "getServiceAccount",
1843
591
  "responses": {
1844
592
  "200": {
1845
593
  "description": "OK",
1846
594
  "content": {
1847
595
  "application/json": {
1848
596
  "schema": {
1849
- "$ref": "#/components/schemas/TeamBinding"
597
+ "$ref": "#/components/schemas/ServiceAccount"
1850
598
  }
1851
599
  },
1852
600
  "application/yaml": {
1853
601
  "schema": {
1854
- "$ref": "#/components/schemas/TeamBinding"
602
+ "$ref": "#/components/schemas/ServiceAccount"
1855
603
  }
1856
604
  }
1857
605
  }
@@ -1861,13 +609,13 @@
1861
609
  "x-kubernetes-group-version-kind": {
1862
610
  "group": "iam.grafana.app",
1863
611
  "version": "v0alpha1",
1864
- "kind": "TeamBinding"
612
+ "kind": "ServiceAccount"
1865
613
  }
1866
614
  },
1867
615
  "put": {
1868
- "tags": ["TeamBinding"],
1869
- "description": "replace the specified TeamBinding",
1870
- "operationId": "replaceTeamBinding",
616
+ "tags": ["ServiceAccount"],
617
+ "description": "replace the specified ServiceAccount",
618
+ "operationId": "replaceServiceAccount",
1871
619
  "parameters": [
1872
620
  {
1873
621
  "name": "dryRun",
@@ -1901,12 +649,12 @@
1901
649
  "content": {
1902
650
  "application/json": {
1903
651
  "schema": {
1904
- "$ref": "#/components/schemas/TeamBinding"
652
+ "$ref": "#/components/schemas/ServiceAccount"
1905
653
  }
1906
654
  },
1907
655
  "application/yaml": {
1908
656
  "schema": {
1909
- "$ref": "#/components/schemas/TeamBinding"
657
+ "$ref": "#/components/schemas/ServiceAccount"
1910
658
  }
1911
659
  }
1912
660
  },
@@ -1918,12 +666,12 @@
1918
666
  "content": {
1919
667
  "application/json": {
1920
668
  "schema": {
1921
- "$ref": "#/components/schemas/TeamBinding"
669
+ "$ref": "#/components/schemas/ServiceAccount"
1922
670
  }
1923
671
  },
1924
672
  "application/yaml": {
1925
673
  "schema": {
1926
- "$ref": "#/components/schemas/TeamBinding"
674
+ "$ref": "#/components/schemas/ServiceAccount"
1927
675
  }
1928
676
  }
1929
677
  }
@@ -1933,12 +681,12 @@
1933
681
  "content": {
1934
682
  "application/json": {
1935
683
  "schema": {
1936
- "$ref": "#/components/schemas/TeamBinding"
684
+ "$ref": "#/components/schemas/ServiceAccount"
1937
685
  }
1938
686
  },
1939
687
  "application/yaml": {
1940
688
  "schema": {
1941
- "$ref": "#/components/schemas/TeamBinding"
689
+ "$ref": "#/components/schemas/ServiceAccount"
1942
690
  }
1943
691
  }
1944
692
  }
@@ -1948,13 +696,13 @@
1948
696
  "x-kubernetes-group-version-kind": {
1949
697
  "group": "iam.grafana.app",
1950
698
  "version": "v0alpha1",
1951
- "kind": "TeamBinding"
699
+ "kind": "ServiceAccount"
1952
700
  }
1953
701
  },
1954
702
  "delete": {
1955
- "tags": ["TeamBinding"],
1956
- "description": "delete a TeamBinding",
1957
- "operationId": "deleteTeamBinding",
703
+ "tags": ["ServiceAccount"],
704
+ "description": "delete a ServiceAccount",
705
+ "operationId": "deleteServiceAccount",
1958
706
  "parameters": [
1959
707
  {
1960
708
  "name": "dryRun",
@@ -2023,135 +771,292 @@
2023
771
  "content": {
2024
772
  "application/json": {
2025
773
  "schema": {
2026
- "$ref": "#/components/schemas/Status"
2027
- }
2028
- },
2029
- "application/yaml": {
2030
- "schema": {
2031
- "$ref": "#/components/schemas/Status"
774
+ "$ref": "#/components/schemas/Status"
775
+ }
776
+ },
777
+ "application/yaml": {
778
+ "schema": {
779
+ "$ref": "#/components/schemas/Status"
780
+ }
781
+ }
782
+ }
783
+ }
784
+ },
785
+ "x-kubernetes-action": "delete",
786
+ "x-kubernetes-group-version-kind": {
787
+ "group": "iam.grafana.app",
788
+ "version": "v0alpha1",
789
+ "kind": "ServiceAccount"
790
+ }
791
+ },
792
+ "patch": {
793
+ "tags": ["ServiceAccount"],
794
+ "description": "partially update the specified ServiceAccount",
795
+ "operationId": "updateServiceAccount",
796
+ "parameters": [
797
+ {
798
+ "name": "dryRun",
799
+ "in": "query",
800
+ "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
801
+ "schema": {
802
+ "type": "string",
803
+ "uniqueItems": true
804
+ }
805
+ },
806
+ {
807
+ "name": "fieldManager",
808
+ "in": "query",
809
+ "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).",
810
+ "schema": {
811
+ "type": "string",
812
+ "uniqueItems": true
813
+ }
814
+ },
815
+ {
816
+ "name": "fieldValidation",
817
+ "in": "query",
818
+ "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.",
819
+ "schema": {
820
+ "type": "string",
821
+ "uniqueItems": true
822
+ }
823
+ },
824
+ {
825
+ "name": "force",
826
+ "in": "query",
827
+ "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.",
828
+ "schema": {
829
+ "type": "boolean",
830
+ "uniqueItems": true
831
+ }
832
+ }
833
+ ],
834
+ "requestBody": {
835
+ "content": {
836
+ "application/apply-patch+yaml": {
837
+ "schema": {
838
+ "$ref": "#/components/schemas/Patch"
839
+ }
840
+ },
841
+ "application/json-patch+json": {
842
+ "schema": {
843
+ "$ref": "#/components/schemas/Patch"
844
+ }
845
+ },
846
+ "application/merge-patch+json": {
847
+ "schema": {
848
+ "$ref": "#/components/schemas/Patch"
849
+ }
850
+ },
851
+ "application/strategic-merge-patch+json": {
852
+ "schema": {
853
+ "$ref": "#/components/schemas/Patch"
854
+ }
855
+ }
856
+ },
857
+ "required": true
858
+ },
859
+ "responses": {
860
+ "200": {
861
+ "description": "OK",
862
+ "content": {
863
+ "application/json": {
864
+ "schema": {
865
+ "$ref": "#/components/schemas/ServiceAccount"
866
+ }
867
+ },
868
+ "application/yaml": {
869
+ "schema": {
870
+ "$ref": "#/components/schemas/ServiceAccount"
871
+ }
872
+ }
873
+ }
874
+ },
875
+ "201": {
876
+ "description": "Created",
877
+ "content": {
878
+ "application/json": {
879
+ "schema": {
880
+ "$ref": "#/components/schemas/ServiceAccount"
881
+ }
882
+ },
883
+ "application/yaml": {
884
+ "schema": {
885
+ "$ref": "#/components/schemas/ServiceAccount"
886
+ }
887
+ }
888
+ }
889
+ }
890
+ },
891
+ "x-kubernetes-action": "patch",
892
+ "x-kubernetes-group-version-kind": {
893
+ "group": "iam.grafana.app",
894
+ "version": "v0alpha1",
895
+ "kind": "ServiceAccount"
896
+ }
897
+ },
898
+ "parameters": [
899
+ {
900
+ "name": "name",
901
+ "in": "path",
902
+ "description": "name of the ServiceAccount",
903
+ "required": true,
904
+ "schema": {
905
+ "type": "string",
906
+ "uniqueItems": true
907
+ }
908
+ },
909
+ {
910
+ "name": "pretty",
911
+ "in": "query",
912
+ "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).",
913
+ "schema": {
914
+ "type": "string",
915
+ "uniqueItems": true
916
+ }
917
+ }
918
+ ]
919
+ },
920
+ "/serviceaccounts/{name}/tokens": {
921
+ "get": {
922
+ "tags": ["ServiceAccount"],
923
+ "description": "connect GET requests to tokens of ServiceAccount",
924
+ "operationId": "getServiceAccountTokens",
925
+ "parameters": [
926
+ {
927
+ "name": "limit",
928
+ "in": "query",
929
+ "description": "maximum number of tokens to return in a single page",
930
+ "schema": {
931
+ "type": "integer",
932
+ "format": "int64"
933
+ }
934
+ },
935
+ {
936
+ "name": "continue",
937
+ "in": "query",
938
+ "description": "continue token returned by a previous list response to fetch the next page",
939
+ "schema": {
940
+ "type": "string"
941
+ }
942
+ }
943
+ ],
944
+ "responses": {
945
+ "200": {
946
+ "description": "OK",
947
+ "content": {
948
+ "application/json": {
949
+ "schema": {
950
+ "$ref": "#/components/schemas/ListServiceAccountTokensBody"
2032
951
  }
2033
952
  }
2034
953
  }
2035
954
  }
2036
955
  },
2037
- "x-kubernetes-action": "delete",
956
+ "x-kubernetes-action": "connect",
2038
957
  "x-kubernetes-group-version-kind": {
2039
958
  "group": "iam.grafana.app",
2040
959
  "version": "v0alpha1",
2041
- "kind": "TeamBinding"
960
+ "kind": "ListServiceAccountTokensResponse"
2042
961
  }
2043
962
  },
2044
- "patch": {
2045
- "tags": ["TeamBinding"],
2046
- "description": "partially update the specified TeamBinding",
2047
- "operationId": "updateTeamBinding",
2048
- "parameters": [
2049
- {
2050
- "name": "dryRun",
2051
- "in": "query",
2052
- "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
2053
- "schema": {
2054
- "type": "string",
2055
- "uniqueItems": true
2056
- }
2057
- },
2058
- {
2059
- "name": "fieldManager",
2060
- "in": "query",
2061
- "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).",
2062
- "schema": {
2063
- "type": "string",
2064
- "uniqueItems": true
2065
- }
2066
- },
2067
- {
2068
- "name": "fieldValidation",
2069
- "in": "query",
2070
- "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.",
2071
- "schema": {
2072
- "type": "string",
2073
- "uniqueItems": true
2074
- }
2075
- },
2076
- {
2077
- "name": "force",
2078
- "in": "query",
2079
- "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.",
2080
- "schema": {
2081
- "type": "boolean",
2082
- "uniqueItems": true
2083
- }
2084
- }
2085
- ],
963
+ "post": {
964
+ "tags": ["ServiceAccount"],
965
+ "description": "connect POST requests to tokens of ServiceAccount",
966
+ "operationId": "createServiceAccountTokens",
2086
967
  "requestBody": {
2087
968
  "content": {
2088
- "application/apply-patch+yaml": {
2089
- "schema": {
2090
- "$ref": "#/components/schemas/Patch"
2091
- }
2092
- },
2093
- "application/json-patch+json": {
2094
- "schema": {
2095
- "$ref": "#/components/schemas/Patch"
2096
- }
2097
- },
2098
- "application/merge-patch+json": {
969
+ "application/json": {
2099
970
  "schema": {
2100
- "$ref": "#/components/schemas/Patch"
971
+ "$ref": "#/components/schemas/CreateServiceAccountTokenRequestBody"
2101
972
  }
2102
- },
2103
- "application/strategic-merge-patch+json": {
2104
- "schema": {
2105
- "$ref": "#/components/schemas/Patch"
973
+ }
974
+ }
975
+ },
976
+ "responses": {
977
+ "201": {
978
+ "description": "Token created",
979
+ "content": {
980
+ "application/json": {
981
+ "schema": {
982
+ "$ref": "#/components/schemas/CreateServiceAccountTokenBody"
983
+ }
2106
984
  }
2107
985
  }
2108
- },
2109
- "required": true
986
+ }
2110
987
  },
988
+ "x-kubernetes-action": "connect",
989
+ "x-kubernetes-group-version-kind": {
990
+ "group": "iam.grafana.app",
991
+ "version": "v0alpha1",
992
+ "kind": "ListServiceAccountTokensResponse"
993
+ }
994
+ },
995
+ "parameters": [
996
+ {
997
+ "name": "name",
998
+ "in": "path",
999
+ "description": "name of the ServiceAccount",
1000
+ "required": true,
1001
+ "schema": {
1002
+ "type": "string",
1003
+ "uniqueItems": true
1004
+ }
1005
+ }
1006
+ ]
1007
+ },
1008
+ "/serviceaccounts/{name}/tokens/{tokenName}": {
1009
+ "get": {
1010
+ "tags": ["ServiceAccount"],
1011
+ "description": "connect GET requests to tokens of ServiceAccount",
1012
+ "operationId": "getServiceAccountTokensWithPath",
2111
1013
  "responses": {
2112
1014
  "200": {
2113
1015
  "description": "OK",
2114
1016
  "content": {
2115
1017
  "application/json": {
2116
1018
  "schema": {
2117
- "$ref": "#/components/schemas/TeamBinding"
2118
- }
2119
- },
2120
- "application/yaml": {
2121
- "schema": {
2122
- "$ref": "#/components/schemas/TeamBinding"
1019
+ "$ref": "#/components/schemas/GetServiceAccountTokenBody"
2123
1020
  }
2124
1021
  }
2125
1022
  }
2126
- },
2127
- "201": {
2128
- "description": "Created",
1023
+ }
1024
+ },
1025
+ "x-kubernetes-action": "connect",
1026
+ "x-kubernetes-group-version-kind": {
1027
+ "group": "iam.grafana.app",
1028
+ "version": "v0alpha1",
1029
+ "kind": "ListServiceAccountTokensResponse"
1030
+ }
1031
+ },
1032
+ "delete": {
1033
+ "tags": ["ServiceAccount"],
1034
+ "description": "connect DELETE requests to tokens of ServiceAccount",
1035
+ "operationId": "deleteServiceAccountTokensWithPath",
1036
+ "responses": {
1037
+ "200": {
1038
+ "description": "OK",
2129
1039
  "content": {
2130
1040
  "application/json": {
2131
1041
  "schema": {
2132
- "$ref": "#/components/schemas/TeamBinding"
2133
- }
2134
- },
2135
- "application/yaml": {
2136
- "schema": {
2137
- "$ref": "#/components/schemas/TeamBinding"
1042
+ "$ref": "#/components/schemas/DeleteServiceAccountTokenBody"
2138
1043
  }
2139
1044
  }
2140
1045
  }
2141
1046
  }
2142
1047
  },
2143
- "x-kubernetes-action": "patch",
1048
+ "x-kubernetes-action": "connect",
2144
1049
  "x-kubernetes-group-version-kind": {
2145
1050
  "group": "iam.grafana.app",
2146
1051
  "version": "v0alpha1",
2147
- "kind": "TeamBinding"
1052
+ "kind": "ListServiceAccountTokensResponse"
2148
1053
  }
2149
1054
  },
2150
1055
  "parameters": [
2151
1056
  {
2152
1057
  "name": "name",
2153
1058
  "in": "path",
2154
- "description": "name of the TeamBinding",
1059
+ "description": "name of the ServiceAccount",
2155
1060
  "required": true,
2156
1061
  "schema": {
2157
1062
  "type": "string",
@@ -2159,9 +1064,10 @@
2159
1064
  }
2160
1065
  },
2161
1066
  {
2162
- "name": "pretty",
2163
- "in": "query",
2164
- "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).",
1067
+ "name": "tokenName",
1068
+ "in": "path",
1069
+ "description": "name of the token to operate on",
1070
+ "required": true,
2165
1071
  "schema": {
2166
1072
  "type": "string",
2167
1073
  "uniqueItems": true
@@ -4031,30 +2937,13 @@
4031
2937
  "type": "string"
4032
2938
  },
4033
2939
  "metadata": {
4034
- "default": {},
4035
- "allOf": [
4036
- {
4037
- "$ref": "#/components/schemas/ObjectMeta"
4038
- }
4039
- ]
2940
+ "default": {}
4040
2941
  },
4041
2942
  "spec": {
4042
2943
  "description": "Spec is the spec of the ExternalGroupMapping",
4043
- "default": {},
4044
- "allOf": [
4045
- {
4046
- "$ref": "#/components/schemas/ExternalGroupMappingSpec"
4047
- }
4048
- ]
4049
- }
4050
- },
4051
- "x-kubernetes-group-version-kind": [
4052
- {
4053
- "group": "iam.grafana.app",
4054
- "kind": "ExternalGroupMapping",
4055
- "version": "v0alpha1"
2944
+ "default": {}
4056
2945
  }
4057
- ]
2946
+ }
4058
2947
  },
4059
2948
  "ExternalGroupMappingList": {
4060
2949
  "type": "object",
@@ -4067,12 +2956,7 @@
4067
2956
  "items": {
4068
2957
  "type": "array",
4069
2958
  "items": {
4070
- "default": {},
4071
- "allOf": [
4072
- {
4073
- "$ref": "#/components/schemas/ExternalGroupMapping"
4074
- }
4075
- ]
2959
+ "default": {}
4076
2960
  }
4077
2961
  },
4078
2962
  "kind": {
@@ -4080,21 +2964,9 @@
4080
2964
  "type": "string"
4081
2965
  },
4082
2966
  "metadata": {
4083
- "default": {},
4084
- "allOf": [
4085
- {
4086
- "$ref": "#/components/schemas/ListMeta"
4087
- }
4088
- ]
4089
- }
4090
- },
4091
- "x-kubernetes-group-version-kind": [
4092
- {
4093
- "group": "iam.grafana.app",
4094
- "kind": "ExternalGroupMappingList",
4095
- "version": "v0alpha1"
2967
+ "default": {}
4096
2968
  }
4097
- ]
2969
+ }
4098
2970
  },
4099
2971
  "ExternalGroupMappingSpec": {
4100
2972
  "type": "object",
@@ -4105,12 +2977,7 @@
4105
2977
  "default": ""
4106
2978
  },
4107
2979
  "teamRef": {
4108
- "default": {},
4109
- "allOf": [
4110
- {
4111
- "$ref": "#/components/schemas/ExternalGroupMappingTeamRef"
4112
- }
4113
- ]
2980
+ "default": {}
4114
2981
  }
4115
2982
  }
4116
2983
  },
@@ -5284,30 +4151,13 @@
5284
4151
  "type": "string"
5285
4152
  },
5286
4153
  "metadata": {
5287
- "default": {},
5288
- "allOf": [
5289
- {
5290
- "$ref": "#/components/schemas/ObjectMeta"
5291
- }
5292
- ]
4154
+ "default": {}
5293
4155
  },
5294
4156
  "spec": {
5295
4157
  "description": "Spec is the spec of the TeamBinding",
5296
- "default": {},
5297
- "allOf": [
5298
- {
5299
- "$ref": "#/components/schemas/TeamBindingSpec"
5300
- }
5301
- ]
5302
- }
5303
- },
5304
- "x-kubernetes-group-version-kind": [
5305
- {
5306
- "group": "iam.grafana.app",
5307
- "kind": "TeamBinding",
5308
- "version": "v0alpha1"
4158
+ "default": {}
5309
4159
  }
5310
- ]
4160
+ }
5311
4161
  },
5312
4162
  "TeamBindingList": {
5313
4163
  "type": "object",
@@ -5320,12 +4170,7 @@
5320
4170
  "items": {
5321
4171
  "type": "array",
5322
4172
  "items": {
5323
- "default": {},
5324
- "allOf": [
5325
- {
5326
- "$ref": "#/components/schemas/TeamBinding"
5327
- }
5328
- ]
4173
+ "default": {}
5329
4174
  }
5330
4175
  },
5331
4176
  "kind": {
@@ -5333,21 +4178,9 @@
5333
4178
  "type": "string"
5334
4179
  },
5335
4180
  "metadata": {
5336
- "default": {},
5337
- "allOf": [
5338
- {
5339
- "$ref": "#/components/schemas/ListMeta"
5340
- }
5341
- ]
5342
- }
5343
- },
5344
- "x-kubernetes-group-version-kind": [
5345
- {
5346
- "group": "iam.grafana.app",
5347
- "kind": "TeamBindingList",
5348
- "version": "v0alpha1"
4181
+ "default": {}
5349
4182
  }
5350
- ]
4183
+ }
5351
4184
  },
5352
4185
  "TeamBindingSpec": {
5353
4186
  "type": "object",
@@ -5363,20 +4196,10 @@
5363
4196
  "default": ""
5364
4197
  },
5365
4198
  "subject": {
5366
- "default": {},
5367
- "allOf": [
5368
- {
5369
- "$ref": "#/components/schemas/TeamBindingspecSubject"
5370
- }
5371
- ]
4199
+ "default": {}
5372
4200
  },
5373
4201
  "teamRef": {
5374
- "default": {},
5375
- "allOf": [
5376
- {
5377
- "$ref": "#/components/schemas/TeamBindingTeamRef"
5378
- }
5379
- ]
4202
+ "default": {}
5380
4203
  }
5381
4204
  }
5382
4205
  },