Skip to content

Commit

Permalink
[CI] Auto-commit changed files from 'yarn openapi:generate'
Browse files Browse the repository at this point in the history
  • Loading branch information
kibanamachine committed Sep 17, 2024
1 parent 45ab456 commit 122d3ef
Showing 1 changed file with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function SecuritySolutionApiProvider({ getService }: FtrProviderContext)

return {
/**
* Creates an endpoint list or does nothing if the list already exists
* Create an endpoint exception list, which groups endpoint exception list items. If an endpoint exception list already exists, an empty response is returned.
*/
createEndpointList() {
return supertest
Expand All @@ -40,6 +40,9 @@ export function SecuritySolutionApiProvider({ getService }: FtrProviderContext)
.set(ELASTIC_HTTP_VERSION_HEADER, '2023-10-31')
.set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana');
},
/**
* Create an endpoint exception list item, and associate it with the endpoint exception list.
*/
createEndpointListItem(props: CreateEndpointListItemProps) {
return supertest
.post('/api/endpoint_list/items')
Expand All @@ -48,6 +51,9 @@ export function SecuritySolutionApiProvider({ getService }: FtrProviderContext)
.set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana')
.send(props.body as object);
},
/**
* Delete an endpoint exception list item using the `id` or `item_id` field.
*/
deleteEndpointListItem(props: DeleteEndpointListItemProps) {
return supertest
.delete('/api/endpoint_list/items')
Expand All @@ -56,6 +62,9 @@ export function SecuritySolutionApiProvider({ getService }: FtrProviderContext)
.set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana')
.query(props.query);
},
/**
* Get a list of all endpoint exception list items.
*/
findEndpointListItems(props: FindEndpointListItemsProps) {
return supertest
.get('/api/endpoint_list/items/_find')
Expand All @@ -64,6 +73,9 @@ export function SecuritySolutionApiProvider({ getService }: FtrProviderContext)
.set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana')
.query(props.query);
},
/**
* Get the details of an endpoint exception list item using the `id` or `item_id` field.
*/
readEndpointListItem(props: ReadEndpointListItemProps) {
return supertest
.get('/api/endpoint_list/items')
Expand All @@ -72,6 +84,9 @@ export function SecuritySolutionApiProvider({ getService }: FtrProviderContext)
.set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana')
.query(props.query);
},
/**
* Update an endpoint exception list item using the `id` or `item_id` field.
*/
updateEndpointListItem(props: UpdateEndpointListItemProps) {
return supertest
.put('/api/endpoint_list/items')
Expand Down

0 comments on commit 122d3ef

Please sign in to comment.