|
280 | 280 | "type": { |
281 | 281 | "description": "Describes in which state the api was when the error happened.", |
282 | 282 | "example": "INTERNAL_ERROR", |
283 | | - "type": "string", |
284 | | - "x-go-custom-tag": "validate:\"required,errorType\"" |
| 283 | + "type": "string" |
285 | 284 | } |
286 | 285 | }, |
287 | 286 | "required": [ |
|
428 | 427 | }, |
429 | 428 | "GetInstanceResponse": { |
430 | 429 | "properties": { |
431 | | - "acl": { |
432 | | - "$ref": "#/components/schemas/acl" |
433 | | - }, |
434 | 430 | "backupSchedule": { |
435 | 431 | "$ref": "#/components/schemas/backup.schedule" |
436 | 432 | }, |
|
472 | 468 | } |
473 | 469 | }, |
474 | 470 | "required": [ |
475 | | - "acl", |
476 | 471 | "backupSchedule", |
477 | 472 | "flavorId", |
478 | 473 | "id", |
|
1001 | 996 | }, |
1002 | 997 | "type": "array" |
1003 | 998 | }, |
1004 | | - "acl.deprecated": { |
1005 | | - "deprecated": true, |
1006 | | - "description": "List of IPV4 cidr.", |
1007 | | - "example": [ |
1008 | | - "198.51.100.0/24" |
1009 | | - ], |
1010 | | - "items": { |
1011 | | - "description": "A IPV4 cidr.", |
1012 | | - "example": "198.51.100.0/24", |
1013 | | - "type": "string" |
1014 | | - }, |
1015 | | - "type": "array" |
1016 | | - }, |
1017 | | - "acl.opt": { |
1018 | | - "description": "List of IPV4 cidr.", |
1019 | | - "example": [ |
1020 | | - "198.51.100.0/24" |
1021 | | - ], |
1022 | | - "items": { |
1023 | | - "description": "A IPV4 cidr.", |
1024 | | - "example": "198.51.100.0/24", |
1025 | | - "type": "string" |
1026 | | - }, |
1027 | | - "type": "array" |
1028 | | - }, |
1029 | 999 | "backup.completionTime": { |
1030 | 1000 | "description": "The time when the backup was completed in RFC3339 format.", |
1031 | 1001 | "example": "2023-12-14T23:25:03Z", |
|
1156 | 1126 | }, |
1157 | 1127 | "createInstanceRequestPayload": { |
1158 | 1128 | "properties": { |
1159 | | - "acl": { |
1160 | | - "$ref": "#/components/schemas/acl.deprecated" |
1161 | | - }, |
1162 | 1129 | "backupSchedule": { |
1163 | 1130 | "$ref": "#/components/schemas/backup.schedule" |
1164 | 1131 | }, |
|
1176 | 1143 | "properties": { |
1177 | 1144 | "accessScope": { |
1178 | 1145 | "$ref": "#/components/schemas/instance.network.accessScope" |
| 1146 | + }, |
| 1147 | + "acl": { |
| 1148 | + "$ref": "#/components/schemas/acl" |
1179 | 1149 | } |
1180 | 1150 | }, |
| 1151 | + "required": [ |
| 1152 | + "acl" |
| 1153 | + ], |
1181 | 1154 | "type": "object", |
1182 | 1155 | "x-oapi-codegen-extra-tags": { |
1183 | | - "validate": "omitempty" |
| 1156 | + "validate": "required" |
1184 | 1157 | } |
1185 | 1158 | }, |
1186 | 1159 | "retentionDays": { |
|
1194 | 1167 | } |
1195 | 1168 | }, |
1196 | 1169 | "required": [ |
1197 | | - "acl", |
1198 | 1170 | "backupSchedule", |
1199 | 1171 | "flavorId", |
1200 | 1172 | "name", |
1201 | 1173 | "storage", |
1202 | 1174 | "version", |
1203 | | - "retentionDays" |
| 1175 | + "retentionDays", |
| 1176 | + "network" |
1204 | 1177 | ], |
1205 | 1178 | "type": "object" |
1206 | 1179 | }, |
|
1721 | 1694 | }, |
1722 | 1695 | "updateInstancePartiallyRequestPayload": { |
1723 | 1696 | "properties": { |
1724 | | - "acl": { |
1725 | | - "$ref": "#/components/schemas/acl.opt" |
1726 | | - }, |
1727 | 1697 | "backupSchedule": { |
1728 | 1698 | "$ref": "#/components/schemas/backup.schedule.opt" |
1729 | 1699 | }, |
|
1733 | 1703 | "name": { |
1734 | 1704 | "$ref": "#/components/schemas/instance.name.opt" |
1735 | 1705 | }, |
| 1706 | + "network": { |
| 1707 | + "description": "the network configuration of the instance.", |
| 1708 | + "properties": { |
| 1709 | + "accessScope": { |
| 1710 | + "$ref": "#/components/schemas/instance.network.accessScope" |
| 1711 | + }, |
| 1712 | + "acl": { |
| 1713 | + "$ref": "#/components/schemas/acl" |
| 1714 | + } |
| 1715 | + }, |
| 1716 | + "type": "object", |
| 1717 | + "x-oapi-codegen-extra-tags": { |
| 1718 | + "validate": "omitempty" |
| 1719 | + } |
| 1720 | + }, |
1736 | 1721 | "replicas": { |
1737 | 1722 | "$ref": "#/components/schemas/replicas.opt" |
1738 | 1723 | }, |
|
1750 | 1735 | }, |
1751 | 1736 | "updateInstanceRequestPayload": { |
1752 | 1737 | "properties": { |
1753 | | - "acl": { |
1754 | | - "$ref": "#/components/schemas/acl" |
1755 | | - }, |
1756 | 1738 | "backupSchedule": { |
1757 | 1739 | "$ref": "#/components/schemas/backup.schedule" |
1758 | 1740 | }, |
|
1762 | 1744 | "name": { |
1763 | 1745 | "$ref": "#/components/schemas/instance.name" |
1764 | 1746 | }, |
| 1747 | + "network": { |
| 1748 | + "description": "the network configuration of the instance.", |
| 1749 | + "properties": { |
| 1750 | + "accessScope": { |
| 1751 | + "$ref": "#/components/schemas/instance.network.accessScope" |
| 1752 | + }, |
| 1753 | + "acl": { |
| 1754 | + "$ref": "#/components/schemas/acl" |
| 1755 | + } |
| 1756 | + }, |
| 1757 | + "required": [ |
| 1758 | + "acl" |
| 1759 | + ], |
| 1760 | + "type": "object", |
| 1761 | + "x-oapi-codegen-extra-tags": { |
| 1762 | + "validate": "required" |
| 1763 | + } |
| 1764 | + }, |
1765 | 1765 | "replicas": { |
1766 | 1766 | "$ref": "#/components/schemas/replicas" |
1767 | 1767 | }, |
|
1776 | 1776 | } |
1777 | 1777 | }, |
1778 | 1778 | "required": [ |
1779 | | - "acl", |
1780 | 1779 | "backupSchedule", |
1781 | 1780 | "flavorId", |
1782 | 1781 | "name", |
1783 | 1782 | "replicas", |
1784 | 1783 | "storage", |
1785 | 1784 | "version", |
1786 | | - "retentionDays" |
| 1785 | + "retentionDays", |
| 1786 | + "network" |
1787 | 1787 | ], |
1788 | 1788 | "type": "object" |
1789 | 1789 | }, |
|
0 commit comments