mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-19 08:46:38 +00:00
implement posture checks update and request validation
This commit is contained in:
@@ -784,8 +784,11 @@ components:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/PolicyRuleUpdate'
|
||||
postureCheck:
|
||||
$ref: '#/components/schemas/PostureCheck'
|
||||
required:
|
||||
- rules
|
||||
- PostureCheck
|
||||
Policy:
|
||||
allOf:
|
||||
- $ref: '#/components/schemas/PolicyMinimum'
|
||||
@@ -796,11 +799,11 @@ components:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/PolicyRule'
|
||||
PostureCheck:
|
||||
postureCheck:
|
||||
$ref: '#/components/schemas/PostureCheck'
|
||||
required:
|
||||
- rules
|
||||
- PostureCheck
|
||||
- postureCheck
|
||||
RouteRequest:
|
||||
type: object
|
||||
properties:
|
||||
|
||||
@@ -567,9 +567,6 @@ type PersonalAccessTokenRequest struct {
|
||||
|
||||
// Policy defines model for Policy.
|
||||
type Policy struct {
|
||||
// PostureCheck Policy poster check
|
||||
PostureCheck PostureCheck `json:"PostureCheck"`
|
||||
|
||||
// Description Policy friendly description
|
||||
Description string `json:"description"`
|
||||
|
||||
@@ -582,6 +579,9 @@ type Policy struct {
|
||||
// Name Policy name identifier
|
||||
Name string `json:"name"`
|
||||
|
||||
// PostureCheck Policy poster check
|
||||
PostureCheck PostureCheck `json:"postureCheck"`
|
||||
|
||||
// Query Policy Rego query
|
||||
Query string `json:"query"`
|
||||
|
||||
@@ -732,6 +732,9 @@ type PolicyUpdate struct {
|
||||
// Name Policy name identifier
|
||||
Name string `json:"name"`
|
||||
|
||||
// PostureCheck Policy poster check
|
||||
PostureCheck *PostureCheck `json:"postureCheck,omitempty"`
|
||||
|
||||
// Query Policy Rego query
|
||||
Query string `json:"query"`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user