diff --git a/management/server/http/api/openapi.yml b/management/server/http/api/openapi.yml index cd6b7cbfb..1f49a67b7 100644 --- a/management/server/http/api/openapi.yml +++ b/management/server/http/api/openapi.yml @@ -765,15 +765,10 @@ components: description: Policy status type: boolean example: true - query: - description: Policy Rego query - type: string - example: "package netbird\\n\\nall[rule] {\\n is_peer_in_any_group([\\\"ch8i4ug6lnn4g9hqv7m0\\\",\\\"ch8i4ug6lnn4g9hqv7m0\\\"])\\n rule := {\\n rules_from_group(\\\"ch8i4ug6lnn4g9hqv7m0\\\", \\\"dst\\\", \\\"accept\\\", \\\"\\\"),\\n rules_from_group(\\\"ch8i4ug6lnn4g9hqv7m0\\\", \\\"src\\\", \\\"accept\\\", \\\"\\\"),\\n }[_][_]\\n}\\n" required: - name - description - enabled - - query PolicyUpdate: allOf: - $ref: '#/components/schemas/PolicyMinimum' diff --git a/management/server/http/api/types.gen.go b/management/server/http/api/types.gen.go index 329c66884..fe71c30db 100644 --- a/management/server/http/api/types.gen.go +++ b/management/server/http/api/types.gen.go @@ -567,9 +567,6 @@ type Policy struct { // Name Policy name identifier Name string `json:"name"` - // Query Policy Rego query - Query string `json:"query"` - // Rules Policy rule object for policy UI editor Rules []PolicyRule `json:"rules"` } @@ -587,9 +584,6 @@ type PolicyMinimum struct { // Name Policy name identifier Name string `json:"name"` - - // Query Policy Rego query - Query string `json:"query"` } // PolicyRule defines model for PolicyRule. @@ -717,9 +711,6 @@ type PolicyUpdate struct { // Name Policy name identifier Name string `json:"name"` - // Query Policy Rego query - Query string `json:"query"` - // Rules Policy rule object for policy UI editor Rules []PolicyRuleUpdate `json:"rules"` }