|
530 | 530 | "writeOnly": true |
531 | 531 | }, |
532 | 532 | "source": { |
533 | | - "oneOf": [ |
534 | | - { |
535 | | - "$ref": "#/components/schemas/VolumeSourceImage" |
536 | | - }, |
| 533 | + "allOf": [ |
537 | 534 | { |
538 | | - "$ref": "#/components/schemas/VolumeSourceVolume" |
| 535 | + "$ref": "#/components/schemas/BootVolumeSource" |
539 | 536 | } |
540 | 537 | ], |
541 | 538 | "writeOnly": true |
|
547 | 544 | ], |
548 | 545 | "type": "object" |
549 | 546 | }, |
| 547 | + "BootVolumeSource": { |
| 548 | + "description": "The source object of a boot volume.", |
| 549 | + "properties": { |
| 550 | + "id": { |
| 551 | + "$ref": "#/components/schemas/UUID" |
| 552 | + }, |
| 553 | + "type": { |
| 554 | + "$ref": "#/components/schemas/BootVolumeSourceTypes" |
| 555 | + } |
| 556 | + }, |
| 557 | + "required": [ |
| 558 | + "type", |
| 559 | + "id" |
| 560 | + ], |
| 561 | + "type": "object" |
| 562 | + }, |
| 563 | + "BootVolumeSourceTypes": { |
| 564 | + "description": "The source types of a boot volume.", |
| 565 | + "type": "string" |
| 566 | + }, |
550 | 567 | "CIDR": { |
551 | 568 | "description": "Classless Inter-Domain Routing (CIDR).", |
552 | 569 | "example": "192.168.0.0/24", |
|
867 | 884 | ], |
868 | 885 | "readOnly": true |
869 | 886 | }, |
| 887 | + "errorMessage": { |
| 888 | + "allOf": [ |
| 889 | + { |
| 890 | + "$ref": "#/components/schemas/errorMessage" |
| 891 | + } |
| 892 | + ], |
| 893 | + "readOnly": true |
| 894 | + }, |
870 | 895 | "id": { |
871 | 896 | "allOf": [ |
872 | 897 | { |
|
894 | 919 | "$ref": "#/components/schemas/Labels" |
895 | 920 | }, |
896 | 921 | "launchedAt": { |
897 | | - "example": "2023-09-22T11:39:48.205Z", |
898 | | - "format": "date-time", |
899 | | - "readOnly": true, |
900 | | - "type": "string" |
| 922 | + "allOf": [ |
| 923 | + { |
| 924 | + "$ref": "#/components/schemas/LaunchedAt" |
| 925 | + } |
| 926 | + ], |
| 927 | + "readOnly": true |
901 | 928 | }, |
902 | 929 | "machineType": { |
903 | 930 | "allOf": [ |
|
1059 | 1086 | "$ref": "#/components/schemas/SizeInGB" |
1060 | 1087 | }, |
1061 | 1088 | "source": { |
1062 | | - "oneOf": [ |
1063 | | - { |
1064 | | - "$ref": "#/components/schemas/VolumeSourceImage" |
1065 | | - }, |
1066 | | - { |
1067 | | - "$ref": "#/components/schemas/VolumeSourceVolume" |
1068 | | - }, |
1069 | | - { |
1070 | | - "$ref": "#/components/schemas/VolumeSourceSnapshot" |
1071 | | - }, |
1072 | | - { |
1073 | | - "$ref": "#/components/schemas/VolumeSourceBackup" |
1074 | | - } |
1075 | | - ] |
| 1089 | + "$ref": "#/components/schemas/VolumeSource" |
1076 | 1090 | }, |
1077 | 1091 | "status": { |
1078 | 1092 | "allOf": [ |
|
1123 | 1137 | "type": "integer" |
1124 | 1138 | }, |
1125 | 1139 | "msg": { |
1126 | | - "example": "Project not found", |
1127 | | - "type": "string" |
| 1140 | + "$ref": "#/components/schemas/errorMessage" |
1128 | 1141 | } |
1129 | 1142 | }, |
1130 | 1143 | "required": [ |
|
1153 | 1166 | "code": { |
1154 | 1167 | "description": "ICMP code. Can be set if the protocol is ICMP.", |
1155 | 1168 | "example": 0, |
| 1169 | + "format": "int64", |
1156 | 1170 | "maximum": 255, |
1157 | 1171 | "minimum": 0, |
1158 | 1172 | "type": "integer" |
1159 | 1173 | }, |
1160 | 1174 | "type": { |
1161 | 1175 | "description": "ICMP type. Can be set if the protocol is ICMP.", |
1162 | 1176 | "example": 8, |
| 1177 | + "format": "int64", |
1163 | 1178 | "maximum": 255, |
1164 | 1179 | "minimum": 0, |
1165 | 1180 | "type": "integer" |
|
1228 | 1243 | "format": "json", |
1229 | 1244 | "type": "object" |
1230 | 1245 | }, |
| 1246 | + "LaunchedAt": { |
| 1247 | + "description": "Date-time when resource was launched.", |
| 1248 | + "example": "2023-09-22T11:39:48Z", |
| 1249 | + "format": "date-time", |
| 1250 | + "type": "string" |
| 1251 | + }, |
1231 | 1252 | "MAC": { |
1232 | 1253 | "description": "Object that represents an MAC address.", |
1233 | 1254 | "example": "00:80:41:ae:fd:7e", |
|
1616 | 1637 | "max": { |
1617 | 1638 | "description": "The maximum port number. Should be greater or equal to the minimum.", |
1618 | 1639 | "example": 22, |
| 1640 | + "format": "int64", |
1619 | 1641 | "maximum": 65535, |
1620 | 1642 | "minimum": 0, |
1621 | 1643 | "type": "integer" |
1622 | 1644 | }, |
1623 | 1645 | "min": { |
1624 | 1646 | "description": "The minimum port number. Should be less or equal to the minimum.", |
1625 | 1647 | "example": 22, |
| 1648 | + "format": "int64", |
1626 | 1649 | "maximum": 65535, |
1627 | 1650 | "minimum": 0, |
1628 | 1651 | "type": "integer" |
|
1705 | 1728 | "Protocol": { |
1706 | 1729 | "description": "The protocol number which the rule should match.", |
1707 | 1730 | "example": 1, |
| 1731 | + "format": "int64", |
1708 | 1732 | "maximum": 255, |
1709 | 1733 | "minimum": 0, |
1710 | 1734 | "type": "integer" |
|
2132 | 2156 | ], |
2133 | 2157 | "readOnly": true |
2134 | 2158 | }, |
| 2159 | + "errorMessage": { |
| 2160 | + "allOf": [ |
| 2161 | + { |
| 2162 | + "$ref": "#/components/schemas/errorMessage" |
| 2163 | + } |
| 2164 | + ], |
| 2165 | + "readOnly": true |
| 2166 | + }, |
2135 | 2167 | "id": { |
2136 | 2168 | "allOf": [ |
2137 | 2169 | { |
|
2159 | 2191 | "$ref": "#/components/schemas/Labels" |
2160 | 2192 | }, |
2161 | 2193 | "launchedAt": { |
2162 | | - "example": "2023-09-22T11:39:48.205Z", |
2163 | | - "format": "date-time", |
2164 | | - "readOnly": true, |
2165 | | - "type": "string" |
| 2194 | + "allOf": [ |
| 2195 | + { |
| 2196 | + "$ref": "#/components/schemas/LaunchedAt" |
| 2197 | + } |
| 2198 | + ], |
| 2199 | + "readOnly": true |
2166 | 2200 | }, |
2167 | 2201 | "machineType": { |
2168 | 2202 | "allOf": [ |
|
2461 | 2495 | "SizeInGB": { |
2462 | 2496 | "description": "Size in Gigabyte.", |
2463 | 2497 | "example": 1337, |
| 2498 | + "format": "int64", |
2464 | 2499 | "type": "integer" |
2465 | 2500 | }, |
2466 | 2501 | "Stateful": { |
|
2745 | 2780 | "$ref": "#/components/schemas/SizeInGB" |
2746 | 2781 | }, |
2747 | 2782 | "source": { |
2748 | | - "oneOf": [ |
2749 | | - { |
2750 | | - "$ref": "#/components/schemas/VolumeSourceImage" |
2751 | | - }, |
2752 | | - { |
2753 | | - "$ref": "#/components/schemas/VolumeSourceVolume" |
2754 | | - }, |
2755 | | - { |
2756 | | - "$ref": "#/components/schemas/VolumeSourceSnapshot" |
2757 | | - }, |
2758 | | - { |
2759 | | - "$ref": "#/components/schemas/VolumeSourceBackup" |
2760 | | - } |
2761 | | - ] |
| 2783 | + "$ref": "#/components/schemas/VolumeSource" |
2762 | 2784 | }, |
2763 | 2785 | "status": { |
2764 | 2786 | "allOf": [ |
|
2876 | 2898 | ], |
2877 | 2899 | "type": "object" |
2878 | 2900 | }, |
2879 | | - "VolumeSourceBackup": { |
2880 | | - "description": "The volume source type to generate a new volume based on a existing Backup.", |
| 2901 | + "VolumeSource": { |
| 2902 | + "description": "The source object of a volume.", |
2881 | 2903 | "properties": { |
2882 | | - "backupId": { |
2883 | | - "$ref": "#/components/schemas/UUID" |
2884 | | - } |
2885 | | - }, |
2886 | | - "required": [ |
2887 | | - "backupId" |
2888 | | - ], |
2889 | | - "type": "object" |
2890 | | - }, |
2891 | | - "VolumeSourceImage": { |
2892 | | - "description": "The volume source type to generate a new volume based on an image.", |
2893 | | - "properties": { |
2894 | | - "imageId": { |
2895 | | - "$ref": "#/components/schemas/UUID" |
2896 | | - } |
2897 | | - }, |
2898 | | - "required": [ |
2899 | | - "imageId" |
2900 | | - ], |
2901 | | - "type": "object" |
2902 | | - }, |
2903 | | - "VolumeSourceSnapshot": { |
2904 | | - "description": "The volume source type to generate a new volume based on a existing Snapshot.", |
2905 | | - "properties": { |
2906 | | - "snapshotId": { |
| 2904 | + "id": { |
2907 | 2905 | "$ref": "#/components/schemas/UUID" |
| 2906 | + }, |
| 2907 | + "type": { |
| 2908 | + "$ref": "#/components/schemas/VolumeSourceTypes" |
2908 | 2909 | } |
2909 | 2910 | }, |
2910 | 2911 | "required": [ |
2911 | | - "snapshotId" |
| 2912 | + "type", |
| 2913 | + "id" |
2912 | 2914 | ], |
2913 | 2915 | "type": "object" |
2914 | 2916 | }, |
2915 | | - "VolumeSourceVolume": { |
2916 | | - "description": "The volume source type to generate a new volume by cloning an existing one.", |
2917 | | - "properties": { |
2918 | | - "volumeId": { |
2919 | | - "$ref": "#/components/schemas/UUID" |
2920 | | - } |
2921 | | - }, |
2922 | | - "required": [ |
2923 | | - "volumeId" |
2924 | | - ], |
2925 | | - "type": "object" |
| 2917 | + "VolumeSourceTypes": { |
| 2918 | + "description": "The source types of a volume.", |
| 2919 | + "type": "string" |
2926 | 2920 | }, |
2927 | 2921 | "VolumeStatus": { |
2928 | 2922 | "description": "The status of a volume object.", |
2929 | 2923 | "example": "ATTACHED", |
2930 | 2924 | "type": "string" |
2931 | 2925 | }, |
| 2926 | + "errorMessage": { |
| 2927 | + "description": "An error message.", |
| 2928 | + "example": "Project not found", |
| 2929 | + "type": "string" |
| 2930 | + }, |
2932 | 2931 | "v1NetworkGateway": { |
2933 | 2932 | "allOf": [ |
2934 | 2933 | { |
|
4731 | 4730 | "length": { |
4732 | 4731 | "default": 2000, |
4733 | 4732 | "description": "Set to 0 to retrieve the complete log.", |
| 4733 | + "format": "int64", |
4734 | 4734 | "minimum": 0, |
4735 | 4735 | "type": "integer" |
4736 | 4736 | } |
|
0 commit comments