|
424 | 424 | "Policy Collections" |
425 | 425 | ], |
426 | 426 | "summary": "List", |
427 | | - "description": "List all policy collections", |
| 427 | + "description": "List all (or just defaults) policy collections", |
428 | 428 | "operationId": "get_policy_collections_policy_collections_get", |
| 429 | + "parameters": [ |
| 430 | + { |
| 431 | + "required": false, |
| 432 | + "schema": { |
| 433 | + "title": "Only Defaults", |
| 434 | + "type": "boolean", |
| 435 | + "default": false |
| 436 | + }, |
| 437 | + "name": "only_defaults", |
| 438 | + "in": "query" |
| 439 | + } |
| 440 | + ], |
429 | 441 | "responses": { |
430 | 442 | "200": { |
431 | 443 | "description": "Successful Response", |
|
440 | 452 | } |
441 | 453 | } |
442 | 454 | } |
| 455 | + }, |
| 456 | + "422": { |
| 457 | + "description": "Validation Error", |
| 458 | + "content": { |
| 459 | + "application/json": { |
| 460 | + "schema": { |
| 461 | + "$ref": "#/components/schemas/HTTPValidationError" |
| 462 | + } |
| 463 | + } |
| 464 | + } |
443 | 465 | } |
444 | 466 | } |
445 | 467 | }, |
|
564 | 586 | } |
565 | 587 | } |
566 | 588 | } |
| 589 | + }, |
| 590 | + "patch": { |
| 591 | + "tags": [ |
| 592 | + "Policy Collections" |
| 593 | + ], |
| 594 | + "summary": "Update", |
| 595 | + "operationId": "update_policy_collection_policy_collections__name__patch", |
| 596 | + "parameters": [ |
| 597 | + { |
| 598 | + "required": true, |
| 599 | + "schema": { |
| 600 | + "title": "Name", |
| 601 | + "type": "string" |
| 602 | + }, |
| 603 | + "name": "name", |
| 604 | + "in": "path" |
| 605 | + } |
| 606 | + ], |
| 607 | + "requestBody": { |
| 608 | + "content": { |
| 609 | + "application/json": { |
| 610 | + "schema": { |
| 611 | + "$ref": "#/components/schemas/UpdatePolicyCollectionInput" |
| 612 | + } |
| 613 | + } |
| 614 | + }, |
| 615 | + "required": true |
| 616 | + }, |
| 617 | + "responses": { |
| 618 | + "200": { |
| 619 | + "description": "Successful Response", |
| 620 | + "content": { |
| 621 | + "application/json": { |
| 622 | + "schema": {} |
| 623 | + } |
| 624 | + } |
| 625 | + }, |
| 626 | + "422": { |
| 627 | + "description": "Validation Error", |
| 628 | + "content": { |
| 629 | + "application/json": { |
| 630 | + "schema": { |
| 631 | + "$ref": "#/components/schemas/HTTPValidationError" |
| 632 | + } |
| 633 | + } |
| 634 | + } |
| 635 | + } |
| 636 | + } |
567 | 637 | } |
568 | 638 | }, |
569 | 639 | "/policy-collections/{name}/policies": { |
|
1209 | 1279 | }, |
1210 | 1280 | "name": "name", |
1211 | 1281 | "in": "path" |
| 1282 | + }, |
| 1283 | + { |
| 1284 | + "required": false, |
| 1285 | + "schema": { |
| 1286 | + "title": "Include Default Collections", |
| 1287 | + "type": "boolean", |
| 1288 | + "default": false |
| 1289 | + }, |
| 1290 | + "name": "include_default_collections", |
| 1291 | + "in": "query" |
1212 | 1292 | } |
1213 | 1293 | ], |
1214 | 1294 | "responses": { |
|
1357 | 1437 | }, |
1358 | 1438 | "name": "name", |
1359 | 1439 | "in": "path" |
| 1440 | + }, |
| 1441 | + { |
| 1442 | + "required": false, |
| 1443 | + "schema": { |
| 1444 | + "title": "Include Defaults", |
| 1445 | + "type": "boolean", |
| 1446 | + "default": false |
| 1447 | + }, |
| 1448 | + "name": "include_defaults", |
| 1449 | + "in": "query" |
1360 | 1450 | } |
1361 | 1451 | ], |
1362 | 1452 | "responses": { |
|
1522 | 1612 | }, |
1523 | 1613 | "name": "name", |
1524 | 1614 | "in": "path" |
| 1615 | + }, |
| 1616 | + { |
| 1617 | + "required": false, |
| 1618 | + "schema": { |
| 1619 | + "title": "Include Defaults", |
| 1620 | + "type": "boolean", |
| 1621 | + "default": false |
| 1622 | + }, |
| 1623 | + "name": "include_defaults", |
| 1624 | + "in": "query" |
1525 | 1625 | } |
1526 | 1626 | ], |
1527 | 1627 | "responses": { |
|
2082 | 2182 | }, |
2083 | 2183 | "default": [] |
2084 | 2184 | }, |
| 2185 | + "is_default": { |
| 2186 | + "title": "Is Default", |
| 2187 | + "type": "boolean", |
| 2188 | + "default": false |
| 2189 | + }, |
2085 | 2190 | "created_at": { |
2086 | 2191 | "title": "Created At", |
2087 | 2192 | "type": "string", |
|
2114 | 2219 | "type": "string" |
2115 | 2220 | }, |
2116 | 2221 | "default": [] |
| 2222 | + }, |
| 2223 | + "is_default": { |
| 2224 | + "title": "Is Default", |
| 2225 | + "type": "boolean", |
| 2226 | + "default": false |
2117 | 2227 | } |
2118 | 2228 | } |
2119 | 2229 | }, |
|
2194 | 2304 | "added": 0, |
2195 | 2305 | "updated": 0, |
2196 | 2306 | "removed": 0, |
2197 | | - "started_at": "2023-10-11T21:35:58.971771" |
| 2307 | + "started_at": "2023-10-13T19:14:36.359196" |
2198 | 2308 | } |
2199 | 2309 | } |
2200 | 2310 | } |
|
2320 | 2430 | "added": 0, |
2321 | 2431 | "updated": 0, |
2322 | 2432 | "removed": 0, |
2323 | | - "started_at": "2023-10-11T21:35:58.971291" |
| 2433 | + "started_at": "2023-10-13T19:14:36.358730" |
2324 | 2434 | } |
2325 | 2435 | } |
2326 | 2436 | } |
|
2896 | 3006 | } |
2897 | 3007 | } |
2898 | 3008 | }, |
| 3009 | + "UpdatePolicyCollectionInput": { |
| 3010 | + "title": "UpdatePolicyCollectionInput", |
| 3011 | + "type": "object", |
| 3012 | + "properties": { |
| 3013 | + "is_default": { |
| 3014 | + "title": "Is Default", |
| 3015 | + "type": "boolean" |
| 3016 | + }, |
| 3017 | + "policies": { |
| 3018 | + "title": "Policies", |
| 3019 | + "uniqueItems": true, |
| 3020 | + "type": "array", |
| 3021 | + "items": { |
| 3022 | + "type": "string" |
| 3023 | + } |
| 3024 | + } |
| 3025 | + } |
| 3026 | + }, |
2899 | 3027 | "UpdatePolicySource": { |
2900 | 3028 | "title": "UpdatePolicySource", |
2901 | 3029 | "type": "object", |
|
0 commit comments