fixed openapi enrollment_api_keys (#128610)

This commit is contained in:
Julia Bardi 2022-03-28 15:55:42 +02:00 committed by GitHub
parent 2dfc0b9d19
commit 94858d7449
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 60 deletions

View file

@ -1157,7 +1157,7 @@
"schema": {
"type": "array"
},
"name": "agentsIds",
"name": "agentsId",
"in": "query",
"required": true
}
@ -2302,7 +2302,15 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/get_enrollment_api_keys_response"
"type": "object",
"properties": {
"item": {
"$ref": "#/components/schemas/enrollment_api_key"
}
},
"required": [
"item"
]
}
}
}
@ -3586,7 +3594,7 @@
"lens",
"ml-module",
"security-rule",
"csp-rule-template"
"csp_rule_template"
]
},
"elasticsearch_asset_type": {
@ -4152,30 +4160,6 @@
"created_at"
]
},
"get_enrollment_api_keys_response": {
"title": "Bulk install packages response",
"type": "object",
"properties": {
"list": {
"type": "array",
"deprecated": true,
"properties": {
"items": {
"$ref": "#/components/schemas/enrollment_api_key"
}
}
},
"item": {
"type": "array",
"items": {
"$ref": "#/components/schemas/enrollment_api_key"
}
}
},
"required": [
"item"
]
},
"upgrade_diff": {
"title": "Package policy Upgrade dryrun",
"type": "array",

View file

@ -1412,7 +1412,12 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/get_enrollment_api_keys_response'
type: object
properties:
item:
$ref: '#/components/schemas/enrollment_api_key'
required:
- item
operationId: get-enrollment-api-key
delete:
summary: Enrollment API Key - Delete
@ -2613,22 +2618,6 @@ components:
- api_key
- active
- created_at
get_enrollment_api_keys_response:
title: Bulk install packages response
type: object
properties:
list:
type: array
deprecated: true
properties:
items:
$ref: '#/components/schemas/enrollment_api_key'
item:
type: array
items:
$ref: '#/components/schemas/enrollment_api_key'
required:
- item
upgrade_diff:
title: Package policy Upgrade dryrun
type: array

View file

@ -1,15 +0,0 @@
title: Bulk install packages response
type: object
properties:
list:
type: array
deprecated: true
properties:
items:
$ref: ./enrollment_api_key.yaml
item:
type: array
items:
$ref: ./enrollment_api_key.yaml
required:
- item

View file

@ -13,7 +13,12 @@ get:
content:
application/json:
schema:
$ref: ../components/schemas/get_enrollment_api_keys_response.yaml
type: object
properties:
item:
$ref: ../components/schemas/enrollment_api_key.yaml
required:
- item
operationId: get-enrollment-api-key
delete:
summary: Enrollment API Key - Delete