Skip to content

Commit c41410f

Browse files
OAS Update
1 parent 9bb313d commit c41410f

File tree

1 file changed

+30
-15
lines changed

1 file changed

+30
-15
lines changed

services/iaas/v2alpha1/iaas.json

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@
268268
},
269269
"default": {
270270
"default": true,
271-
"description": "This is the default routing table for this area. It can't be deleted and is used if the user does not specify it otherwise.",
271+
"description": "This is the default routing table. It can't be deleted and is used if the user does not specify it otherwise.",
272272
"readOnly": true,
273273
"type": "boolean"
274274
},
@@ -430,6 +430,14 @@
430430
"CreateNetworkPayload": {
431431
"description": "Object that represents the request body for a network create.",
432432
"properties": {
433+
"dhcp": {
434+
"allOf": [
435+
{
436+
"$ref": "#/components/schemas/DHCP"
437+
}
438+
],
439+
"default": true
440+
},
433441
"ipv4": {
434442
"$ref": "#/components/schemas/CreateNetworkIPv4"
435443
},
@@ -460,6 +468,11 @@
460468
"format": "date-time",
461469
"type": "string"
462470
},
471+
"DHCP": {
472+
"description": "Enable or disable DHCP for a network.",
473+
"example": true,
474+
"type": "boolean"
475+
},
463476
"Description": {
464477
"description": "Description Object. Allows string up to 255 Characters.",
465478
"example": "cool description dude. Wanna play some Snakeybus?",
@@ -576,7 +589,7 @@
576589
"type": "array"
577590
},
578591
"Network": {
579-
"description": "Object that represents a network.",
592+
"description": "Object that represents a network. If no routing table is specified, the default routing table is used.",
580593
"properties": {
581594
"createdAt": {
582595
"allOf": [
@@ -586,6 +599,9 @@
586599
],
587600
"readOnly": true
588601
},
602+
"dhcp": {
603+
"$ref": "#/components/schemas/DHCP"
604+
},
589605
"id": {
590606
"$ref": "#/components/schemas/UUID"
591607
},
@@ -628,22 +644,18 @@
628644
"type": "object"
629645
},
630646
"NetworkGatewayIPv4": {
631-
"allOf": [
632-
{
633-
"$ref": "#/components/schemas/IPv4"
634-
}
635-
],
636647
"description": "The IPv4 gateway of a network. If not specified the first IP of the network will be assigned as the gateway. If 'null' is sent, then the network doesn't have a gateway.",
637-
"nullable": true
648+
"example": "10.1.2.1",
649+
"nullable": true,
650+
"pattern": "^\\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\\s*$",
651+
"type": "string"
638652
},
639653
"NetworkGatewayIPv6": {
640-
"allOf": [
641-
{
642-
"$ref": "#/components/schemas/IPv6"
643-
}
644-
],
645654
"description": "The IPv6 gateway of a network. If not specified the first IP of the network will be assigned as the gateway. If 'null' is sent, then the network doesn't have a gateway.",
646-
"nullable": true
655+
"example": "2001:db8:0:8d3:0:8a2e:70:1",
656+
"nullable": true,
657+
"pattern": "^\\s*((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))(%.+)?\\s*$",
658+
"type": "string"
647659
},
648660
"NetworkIPv4": {
649661
"description": "Object that represents the IPv4 part of a network.",
@@ -789,6 +801,9 @@
789801
"PartialUpdateNetworkPayload": {
790802
"description": "Object that represents the request body for a network update.",
791803
"properties": {
804+
"dhcp": {
805+
"$ref": "#/components/schemas/DHCP"
806+
},
792807
"ipv4": {
793808
"$ref": "#/components/schemas/UpdateNetworkIPv4Body"
794809
},
@@ -949,7 +964,7 @@
949964
},
950965
"default": {
951966
"default": true,
952-
"description": "This is the default routing table for this area. It can't be deleted and is used if the user does not specify it otherwise.",
967+
"description": "This is the default routing table. It can't be deleted and is used if the user does not specify it otherwise.",
953968
"readOnly": true,
954969
"type": "boolean"
955970
},

0 commit comments

Comments
 (0)