-
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.
[Fleet] Simplified package policy create API, enriching default values (
#119739) (#120576) * simplified api, enriching default values * removed comment * reverted changes in common models * fixed handlers test * separated create schema * fixed test * removed throwing error * getting package info from registry only * fix type * fix test and new tests * simplified update api * updated open api spec * fixed compiled_input * added policy_template enrich Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Julia Bardi <[email protected]>
- Loading branch information
1 parent
8f57ac7
commit ef882c2
Showing
11 changed files
with
743 additions
and
83 deletions.
There are no files selected for viewing
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
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
55 changes: 52 additions & 3 deletions
55
x-pack/plugins/fleet/common/openapi/components/schemas/update_package_policy.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 |
---|---|---|
@@ -1,7 +1,56 @@ | ||
title: Update package policy | ||
allOf: | ||
- type: object | ||
type: object | ||
description: '' | ||
properties: | ||
version: | ||
type: string | ||
enabled: | ||
type: boolean | ||
package: | ||
type: object | ||
properties: | ||
name: | ||
type: string | ||
version: | ||
type: string | ||
- $ref: ./new_package_policy.yaml | ||
title: | ||
type: string | ||
required: | ||
- name | ||
- title | ||
- version | ||
namespace: | ||
type: string | ||
output_id: | ||
type: string | ||
inputs: | ||
type: array | ||
items: | ||
type: object | ||
properties: | ||
type: | ||
type: string | ||
enabled: | ||
type: boolean | ||
processors: | ||
type: array | ||
items: | ||
type: string | ||
streams: | ||
type: array | ||
items: {} | ||
config: | ||
type: object | ||
vars: | ||
type: object | ||
required: | ||
- type | ||
- enabled | ||
- streams | ||
policy_id: | ||
type: string | ||
name: | ||
type: string | ||
description: | ||
type: string | ||
required: |
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
Oops, something went wrong.