Skip to content

Commit 6c1e4f8

Browse files
OAS Update
1 parent 16cf355 commit 6c1e4f8

File tree

1 file changed

+36
-29
lines changed

1 file changed

+36
-29
lines changed

services/postgres-flex/v3alpha1/postgres-flex.json

Lines changed: 36 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,9 @@
447447
"name": {
448448
"$ref": "#/components/schemas/instance.name"
449449
},
450+
"network": {
451+
"$ref": "#/components/schemas/instance.network"
452+
},
450453
"replicas": {
451454
"$ref": "#/components/schemas/replicas"
452455
},
@@ -464,7 +467,6 @@
464467
}
465468
},
466469
"required": [
467-
"acl",
468470
"backupSchedule",
469471
"flavorId",
470472
"id",
@@ -474,7 +476,8 @@
474476
"retentionDays",
475477
"status",
476478
"storage",
477-
"version"
479+
"version",
480+
"network"
478481
],
479482
"type": "object"
480483
},
@@ -1026,9 +1029,6 @@
10261029
},
10271030
"createInstanceRequestPayload": {
10281031
"properties": {
1029-
"acl": {
1030-
"$ref": "#/components/schemas/acl"
1031-
},
10321032
"backupSchedule": {
10331033
"$ref": "#/components/schemas/backup.schedule"
10341034
},
@@ -1058,7 +1058,7 @@
10581058
}
10591059
},
10601060
"required": [
1061-
"acl",
1061+
"network",
10621062
"backupSchedule",
10631063
"flavorId",
10641064
"name",
@@ -1331,30 +1331,37 @@
13311331
"type": "string"
13321332
},
13331333
"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",
13351335
"properties": {
13361336
"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"
13511349
}
13521350
},
13531351
"required": [
1354-
"accessScope"
1352+
"acl"
13551353
],
13561354
"type": "object"
13571355
},
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+
},
13581365
"instance.sort": {
13591366
"enum": [
13601367
"index.desc",
@@ -1579,9 +1586,6 @@
15791586
},
15801587
"updateInstancePartiallyRequestPayload": {
15811588
"properties": {
1582-
"acl": {
1583-
"$ref": "#/components/schemas/acl.opt"
1584-
},
15851589
"backupSchedule": {
15861590
"$ref": "#/components/schemas/backup.schedule.opt"
15871591
},
@@ -1591,6 +1595,9 @@
15911595
"name": {
15921596
"$ref": "#/components/schemas/instance.name.opt"
15931597
},
1598+
"network": {
1599+
"$ref": "#/components/schemas/instance.network"
1600+
},
15941601
"replicas": {
15951602
"$ref": "#/components/schemas/replicas.opt"
15961603
},
@@ -1608,8 +1615,8 @@
16081615
},
16091616
"updateInstanceRequestPayload": {
16101617
"properties": {
1611-
"acl": {
1612-
"$ref": "#/components/schemas/acl"
1618+
"$network": {
1619+
"$ref": "#/components/schemas/instance.network"
16131620
},
16141621
"backupSchedule": {
16151622
"$ref": "#/components/schemas/backup.schedule"
@@ -1634,14 +1641,14 @@
16341641
}
16351642
},
16361643
"required": [
1637-
"acl",
16381644
"backupSchedule",
16391645
"flavorId",
16401646
"name",
16411647
"replicas",
16421648
"retentionDays",
16431649
"storage",
1644-
"version"
1650+
"version",
1651+
"network"
16451652
],
16461653
"type": "object"
16471654
},

0 commit comments

Comments
 (0)