|
447 | 447 | "name": { |
448 | 448 | "$ref": "#/components/schemas/instance.name" |
449 | 449 | }, |
| 450 | + "network": { |
| 451 | + "$ref": "#/components/schemas/instance.network" |
| 452 | + }, |
450 | 453 | "replicas": { |
451 | 454 | "$ref": "#/components/schemas/replicas" |
452 | 455 | }, |
|
464 | 467 | } |
465 | 468 | }, |
466 | 469 | "required": [ |
467 | | - "acl", |
468 | 470 | "backupSchedule", |
469 | 471 | "flavorId", |
470 | 472 | "id", |
|
474 | 476 | "retentionDays", |
475 | 477 | "status", |
476 | 478 | "storage", |
477 | | - "version" |
| 479 | + "version", |
| 480 | + "network" |
478 | 481 | ], |
479 | 482 | "type": "object" |
480 | 483 | }, |
|
1026 | 1029 | }, |
1027 | 1030 | "createInstanceRequestPayload": { |
1028 | 1031 | "properties": { |
1029 | | - "acl": { |
1030 | | - "$ref": "#/components/schemas/acl" |
1031 | | - }, |
1032 | 1032 | "backupSchedule": { |
1033 | 1033 | "$ref": "#/components/schemas/backup.schedule" |
1034 | 1034 | }, |
|
1058 | 1058 | } |
1059 | 1059 | }, |
1060 | 1060 | "required": [ |
1061 | | - "acl", |
| 1061 | + "network", |
1062 | 1062 | "backupSchedule", |
1063 | 1063 | "flavorId", |
1064 | 1064 | "name", |
|
1331 | 1331 | "type": "string" |
1332 | 1332 | }, |
1333 | 1333 | "instance.network": { |
1334 | | - "description": "The network configuration of the instance.\n\n⚠️ **Note:** This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected.\n", |
| 1334 | + "description": "The access configuration of the instance", |
1335 | 1335 | "properties": { |
1336 | 1336 | "accessScope": { |
1337 | | - "default": "PUBLIC", |
1338 | | - "description": "The access scope of the instance. It defines if the instance is public or airgapped.", |
1339 | | - "enum": [ |
1340 | | - "PUBLIC", |
1341 | | - "SNA" |
1342 | | - ], |
1343 | | - "type": "string", |
1344 | | - "x-enum-descriptions": [ |
1345 | | - "defines networking for a public instance", |
1346 | | - "defines networking for a private instance" |
1347 | | - ], |
1348 | | - "x-oapi-codegen-extra-tags": { |
1349 | | - "validate": "omitempty,oneof=PUBLIC SNA,instance_accessScope" |
1350 | | - } |
| 1337 | + "$ref": "#/components/schemas/instance.network.accessScope" |
| 1338 | + }, |
| 1339 | + "acl": { |
| 1340 | + "$ref": "#/components/schemas/acl" |
| 1341 | + }, |
| 1342 | + "instanceAddress": { |
| 1343 | + "example": "10.0.0.2", |
| 1344 | + "type": "string" |
| 1345 | + }, |
| 1346 | + "routerAddress": { |
| 1347 | + "example": "10.0.0.1", |
| 1348 | + "type": "string" |
1351 | 1349 | } |
1352 | 1350 | }, |
1353 | 1351 | "required": [ |
1354 | | - "accessScope" |
| 1352 | + "acl" |
1355 | 1353 | ], |
1356 | 1354 | "type": "object" |
1357 | 1355 | }, |
| 1356 | + "instance.network.accessScope": { |
| 1357 | + "default": "PUBLIC", |
| 1358 | + "description": "The access scope of the instance. It defines if the instance is public or airgapped.", |
| 1359 | + "enum": [ |
| 1360 | + "PUBLIC", |
| 1361 | + "SNA" |
| 1362 | + ], |
| 1363 | + "type": "string" |
| 1364 | + }, |
1358 | 1365 | "instance.sort": { |
1359 | 1366 | "enum": [ |
1360 | 1367 | "index.desc", |
|
1579 | 1586 | }, |
1580 | 1587 | "updateInstancePartiallyRequestPayload": { |
1581 | 1588 | "properties": { |
1582 | | - "acl": { |
1583 | | - "$ref": "#/components/schemas/acl.opt" |
1584 | | - }, |
1585 | 1589 | "backupSchedule": { |
1586 | 1590 | "$ref": "#/components/schemas/backup.schedule.opt" |
1587 | 1591 | }, |
|
1591 | 1595 | "name": { |
1592 | 1596 | "$ref": "#/components/schemas/instance.name.opt" |
1593 | 1597 | }, |
| 1598 | + "network": { |
| 1599 | + "$ref": "#/components/schemas/instance.network" |
| 1600 | + }, |
1594 | 1601 | "replicas": { |
1595 | 1602 | "$ref": "#/components/schemas/replicas.opt" |
1596 | 1603 | }, |
|
1608 | 1615 | }, |
1609 | 1616 | "updateInstanceRequestPayload": { |
1610 | 1617 | "properties": { |
1611 | | - "acl": { |
1612 | | - "$ref": "#/components/schemas/acl" |
| 1618 | + "$network": { |
| 1619 | + "$ref": "#/components/schemas/instance.network" |
1613 | 1620 | }, |
1614 | 1621 | "backupSchedule": { |
1615 | 1622 | "$ref": "#/components/schemas/backup.schedule" |
|
1634 | 1641 | } |
1635 | 1642 | }, |
1636 | 1643 | "required": [ |
1637 | | - "acl", |
1638 | 1644 | "backupSchedule", |
1639 | 1645 | "flavorId", |
1640 | 1646 | "name", |
1641 | 1647 | "replicas", |
1642 | 1648 | "retentionDays", |
1643 | 1649 | "storage", |
1644 | | - "version" |
| 1650 | + "version", |
| 1651 | + "network" |
1645 | 1652 | ], |
1646 | 1653 | "type": "object" |
1647 | 1654 | }, |
|
0 commit comments