-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c7789a4
commit 4cb5c91
Showing
8 changed files
with
251 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
x-pack/plugins/security_solution/common/api/endpoint/actions/isolate_route.gen.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
/* | ||
* NOTICE: Do not edit this file manually. | ||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. | ||
* | ||
* info: | ||
* title: Endpoint Isolate Schema | ||
* version: 2023-10-31 | ||
*/ | ||
|
||
import type { z } from 'zod'; | ||
|
||
import { BaseActionSchema, SuccessResponse } from '../model/schema/common.gen'; | ||
|
||
export type EndpointIsolateRedirectRequestBody = z.infer<typeof EndpointIsolateRedirectRequestBody>; | ||
export const EndpointIsolateRedirectRequestBody = BaseActionSchema; | ||
export type EndpointIsolateRedirectRequestBodyInput = z.input< | ||
typeof EndpointIsolateRedirectRequestBody | ||
>; | ||
|
||
export type EndpointIsolateRedirectResponse = z.infer<typeof EndpointIsolateRedirectResponse>; | ||
export const EndpointIsolateRedirectResponse = SuccessResponse; |
31 changes: 31 additions & 0 deletions
31
x-pack/plugins/security_solution/common/api/endpoint/actions/isolate_route.schema.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
openapi: 3.0.0 | ||
info: | ||
title: Endpoint Isolate Schema | ||
version: '2023-10-31' | ||
paths: | ||
/api/endpoint/isolate: | ||
post: | ||
summary: Permanently redirects to a new location | ||
operationId: EndpointIsolateRedirect | ||
x-codegen-enabled: true | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../model/schema/common.schema.yaml#/components/schemas/BaseActionSchema' | ||
responses: | ||
'308': | ||
description: Permanent Redirect | ||
headers: | ||
Location: | ||
description: Permanently redirects to "/api/endpoint/action/isolate" | ||
schema: | ||
type: string | ||
example: "/api/endpoint/action/isolate" | ||
'200': | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../model/schema/common.schema.yaml#/components/schemas/SuccessResponse' |
31 changes: 31 additions & 0 deletions
31
x-pack/plugins/security_solution/common/api/endpoint/actions/unisolate_route.schema.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
openapi: 3.0.0 | ||
info: | ||
title: Endpoint Unisolate Schema | ||
version: '2023-10-31' | ||
paths: | ||
/api/endpoint/unisolate: | ||
post: | ||
summary: Permanently redirects to a new location | ||
operationId: EndpointUnisolateRedirect | ||
x-codegen-enabled: false | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../model/schema/common.schema.yaml#/components/schemas/BaseActionSchema' | ||
responses: | ||
'308': | ||
description: Permanent Redirect | ||
headers: | ||
Location: | ||
description: Permanently redirects to "/api/endpoint/action/unisolate" | ||
schema: | ||
type: string | ||
example: "/api/endpoint/action/unisolate" | ||
'200': | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../model/schema/common.schema.yaml#/components/schemas/SuccessResponse' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
...urity_solution/common/api/endpoint/protection_updates_note/protection_updates_note.gen.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
/* | ||
* NOTICE: Do not edit this file manually. | ||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. | ||
* | ||
* info: | ||
* title: Endpoint Protection Updates Note Schema | ||
* version: 2023-10-31 | ||
*/ | ||
|
||
import { z } from 'zod'; | ||
|
||
import { ProtectionUpdatesNoteResponse } from '../model/schema/common.gen'; | ||
|
||
export type CreateUpdateProtectionUpdatesNoteRequestParams = z.infer< | ||
typeof CreateUpdateProtectionUpdatesNoteRequestParams | ||
>; | ||
export const CreateUpdateProtectionUpdatesNoteRequestParams = z.object({ | ||
package_policy_id: z.string(), | ||
}); | ||
export type CreateUpdateProtectionUpdatesNoteRequestParamsInput = z.input< | ||
typeof CreateUpdateProtectionUpdatesNoteRequestParams | ||
>; | ||
|
||
export type CreateUpdateProtectionUpdatesNoteRequestBody = z.infer< | ||
typeof CreateUpdateProtectionUpdatesNoteRequestBody | ||
>; | ||
export const CreateUpdateProtectionUpdatesNoteRequestBody = z.object({ | ||
note: z.string().optional(), | ||
}); | ||
export type CreateUpdateProtectionUpdatesNoteRequestBodyInput = z.input< | ||
typeof CreateUpdateProtectionUpdatesNoteRequestBody | ||
>; | ||
|
||
export type CreateUpdateProtectionUpdatesNoteResponse = z.infer< | ||
typeof CreateUpdateProtectionUpdatesNoteResponse | ||
>; | ||
export const CreateUpdateProtectionUpdatesNoteResponse = ProtectionUpdatesNoteResponse; | ||
|
||
export type GetProtectionUpdatesNoteRequestParams = z.infer< | ||
typeof GetProtectionUpdatesNoteRequestParams | ||
>; | ||
export const GetProtectionUpdatesNoteRequestParams = z.object({ | ||
package_policy_id: z.string(), | ||
}); | ||
export type GetProtectionUpdatesNoteRequestParamsInput = z.input< | ||
typeof GetProtectionUpdatesNoteRequestParams | ||
>; | ||
|
||
export type GetProtectionUpdatesNoteResponse = z.infer<typeof GetProtectionUpdatesNoteResponse>; | ||
export const GetProtectionUpdatesNoteResponse = ProtectionUpdatesNoteResponse; |
49 changes: 49 additions & 0 deletions
49
..._solution/common/api/endpoint/protection_updates_note/protection_updates_note.schema.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
openapi: 3.0.0 | ||
info: | ||
title: Endpoint Protection Updates Note Schema | ||
version: '2023-10-31' | ||
paths: | ||
/api/endpoint/protection_updates_note/{package_policy_id}: | ||
get: | ||
summary: Get Protection Updates Note schema | ||
operationId: GetProtectionUpdatesNote | ||
x-codegen-enabled: true | ||
parameters: | ||
- name: package_policy_id | ||
in: path | ||
required: true | ||
schema: | ||
type: string | ||
responses: | ||
'200': | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../model/schema/common.schema.yaml#/components/schemas/ProtectionUpdatesNoteResponse' | ||
post: | ||
summary: Create Update Protection Updates Note schema | ||
operationId: CreateUpdateProtectionUpdatesNote | ||
x-codegen-enabled: true | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
note: | ||
type: string | ||
parameters: | ||
- name: package_policy_id | ||
in: path | ||
required: true | ||
schema: | ||
type: string | ||
responses: | ||
'200': | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../model/schema/common.schema.yaml#/components/schemas/ProtectionUpdatesNoteResponse' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters