|
657 | 657 |
|
658 | 658 | "gpus": {
|
659 | 659 | "id": "#/definitions/gpus",
|
660 |
| - "type": "array", |
661 |
| - "items": { |
662 |
| - "type": "object", |
663 |
| - "properties": { |
664 |
| - "capabilities": {"$ref": "#/definitions/list_of_strings"}, |
665 |
| - "count": {"type": ["string", "integer"]}, |
666 |
| - "device_ids": {"$ref": "#/definitions/list_of_strings"}, |
667 |
| - "driver":{"type": "string"}, |
668 |
| - "options":{"$ref": "#/definitions/list_or_dict"} |
669 |
| - }, |
670 |
| - "additionalProperties": false, |
671 |
| - "patternProperties": {"^x-": {}} |
672 |
| - } |
| 660 | + "oneOf": [ |
| 661 | + {"type": "string", "enum": ["all"]}, |
| 662 | + {"type": "array", |
| 663 | + "items": { |
| 664 | + "type": "object", |
| 665 | + "properties": { |
| 666 | + "capabilities": {"$ref": "#/definitions/list_of_strings"}, |
| 667 | + "count": {"type": ["string", "integer"]}, |
| 668 | + "device_ids": {"$ref": "#/definitions/list_of_strings"}, |
| 669 | + "driver":{"type": "string"}, |
| 670 | + "options":{"$ref": "#/definitions/list_or_dict"} |
| 671 | + } |
| 672 | + }, |
| 673 | + "additionalProperties": false, |
| 674 | + "patternProperties": {"^x-": {}} |
| 675 | + } |
| 676 | + ] |
673 | 677 | },
|
674 | 678 |
|
675 | 679 | "include": {
|
|
743 | 747 | "patternProperties": {"^x-": {}}
|
744 | 748 | },
|
745 | 749 | "internal": {"type": ["boolean", "string"]},
|
| 750 | + "enable_ipv4": {"type": ["boolean", "string"]}, |
746 | 751 | "enable_ipv6": {"type": ["boolean", "string"]},
|
747 | 752 | "attachable": {"type": ["boolean", "string"]},
|
748 | 753 | "labels": {"$ref": "#/definitions/list_or_dict"}
|
|
0 commit comments