Skip to content

Commit df50af2

Browse files
OAS Update
1 parent 410f799 commit df50af2

File tree

1 file changed

+118
-5
lines changed

1 file changed

+118
-5
lines changed

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

Lines changed: 118 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,27 @@
7272
"traceId": "885bef8bbc18649c",
7373
"type": "UNAUTHORIZED_ERROR"
7474
}
75+
},
76+
"unprocessableEntityError": {
77+
"summary": "Unprocessable Entity",
78+
"value": {
79+
"code": 422,
80+
"message": "KMS_PARAMS_INVALID",
81+
"traceId": "885bef8bbc18649c",
82+
"type": "UNPROCESSABLE_ENTITY_ERROR"
83+
}
84+
},
85+
"validationError": {
86+
"summary": "Validation Error",
87+
"value": {
88+
"code": 422,
89+
"validation": [
90+
{
91+
"field": "name",
92+
"message": "this field is required"
93+
}
94+
]
95+
}
7596
}
7697
},
7798
"parameters": {
@@ -282,6 +303,16 @@
282303
],
283304
"type": "object"
284305
},
306+
"CreateInstanceUnprocessableEntity": {
307+
"oneOf": [
308+
{
309+
"$ref": "#/components/schemas/Error"
310+
},
311+
{
312+
"$ref": "#/components/schemas/ValidationError"
313+
}
314+
]
315+
},
285316
"CreateUserResponse": {
286317
"properties": {
287318
"connectionString": {
@@ -986,12 +1017,18 @@
9861017
"backupSchedule": {
9871018
"$ref": "#/components/schemas/backup.schedule"
9881019
},
1020+
"encryption": {
1021+
"$ref": "#/components/schemas/instance.encryption"
1022+
},
9891023
"flavorId": {
9901024
"$ref": "#/components/schemas/flavor.flavorId"
9911025
},
9921026
"name": {
9931027
"$ref": "#/components/schemas/instance.name"
9941028
},
1029+
"network": {
1030+
"$ref": "#/components/schemas/instance.network"
1031+
},
9951032
"replicas": {
9961033
"$ref": "#/components/schemas/replicas"
9971034
},
@@ -1215,6 +1252,49 @@
12151252
],
12161253
"type": "object"
12171254
},
1255+
"instance.encryption": {
1256+
"description": "The configuration for instance's volume and backup storage encryption.\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",
1257+
"properties": {
1258+
"kekKeyId": {
1259+
"description": "The encryption-key key identifier",
1260+
"example": "48e3f816-3e38-44bb-bbff-22e05f0567de",
1261+
"type": "string",
1262+
"x-oapi-codegen-extra-tags": {
1263+
"validate": "required,uuid_rfc4122"
1264+
}
1265+
},
1266+
"kekKeyRingId": {
1267+
"description": "The encryption-key keyring identifier",
1268+
"example": "48e3f816-3e38-44bb-bbff-22e05f0567de",
1269+
"type": "string",
1270+
"x-oapi-codegen-extra-tags": {
1271+
"validate": "required,uuid_rfc4122"
1272+
}
1273+
},
1274+
"kekKeyVersion": {
1275+
"description": "The encryption-key version",
1276+
"example": "1",
1277+
"type": "string",
1278+
"x-oapi-codegen-extra-tags": {
1279+
"validate": "required"
1280+
}
1281+
},
1282+
"serviceAccount": {
1283+
"example": "[email protected]",
1284+
"type": "string",
1285+
"x-oapi-codegen-extra-tags": {
1286+
"validate": "required,email"
1287+
}
1288+
}
1289+
},
1290+
"required": [
1291+
"serviceAccount",
1292+
"kekKeyRingId",
1293+
"kekKeyId",
1294+
"kekKeyVersion"
1295+
],
1296+
"type": "object"
1297+
},
12181298
"instance.id": {
12191299
"description": "The ID of the instance.",
12201300
"example": "df727477-8991-486c-a3ed-d11d9d9beb1c",
@@ -1235,6 +1315,31 @@
12351315
"example": "postgres-instance",
12361316
"type": "string"
12371317
},
1318+
"instance.network": {
1319+
"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",
1320+
"properties": {
1321+
"accessScope": {
1322+
"default": "PUBLIC",
1323+
"description": "The access scope of the instance. It defines if the instance is public or airgapped.",
1324+
"enum": [
1325+
"PUBLIC",
1326+
"SNA"
1327+
],
1328+
"type": "string",
1329+
"x-enum-descriptions": [
1330+
"defines networking for a public instance",
1331+
"defines networking for a private instance"
1332+
],
1333+
"x-oapi-codegen-extra-tags": {
1334+
"validate": "omitempty,oneof=PUBLIC SNA,instance_accessScope"
1335+
}
1336+
}
1337+
},
1338+
"required": [
1339+
"accessScope"
1340+
],
1341+
"type": "object"
1342+
},
12381343
"instance.sort": {
12391344
"enum": [
12401345
"index.desc",
@@ -1267,15 +1372,15 @@
12671372
"type": "object"
12681373
},
12691374
"instance.version": {
1270-
"description": "The Postgres version used for the instance. See [Versions Endpoint](/v3alpha1/projects/{projectId}/regions/{region}/versions) for supported version parameters.",
1375+
"description": "The Postgres version used for the instance. See [Versions Endpoint](/documentation/postgres-flex-service/version/v3alpha1#tag/Version) for supported version parameters.",
12711376
"type": "string"
12721377
},
12731378
"instance.version.update": {
1274-
"description": "The Postgres version used for the instance. See [Versions Endpoint](/v3alpha1/projects/{projectId}/regions/{region}/versions) for supported version parameters.",
1379+
"description": "The Postgres version used for the instance. See [Versions Endpoint](/documentation/postgres-flex-service/version/v3alpha1#tag/Version) for supported version parameters.",
12751380
"type": "string"
12761381
},
12771382
"instance.version.update.opt": {
1278-
"description": "The Postgres version used for the instance. See [Versions Endpoint](/v3alpha1/projects/{projectId}/regions/{region}/versions) for supported version parameters.",
1383+
"description": "The Postgres version used for the instance. See [Versions Endpoint](/documentation/postgres-flex-service/version/v3alpha1#tag/Version) for supported version parameters.",
12791384
"type": "string"
12801385
},
12811386
"pointInTimeRecoveryRequestPayload": {
@@ -2034,12 +2139,20 @@
20342139
"422": {
20352140
"content": {
20362141
"application/json": {
2142+
"examples": {
2143+
"unprocessableEntityError": {
2144+
"$ref": "#/components/examples/unprocessableEntityError"
2145+
},
2146+
"validationError": {
2147+
"$ref": "#/components/examples/validationError"
2148+
}
2149+
},
20372150
"schema": {
2038-
"$ref": "#/components/schemas/ValidationError"
2151+
"$ref": "#/components/schemas/CreateInstanceUnprocessableEntity"
20392152
}
20402153
}
20412154
},
2042-
"description": "Request failed due to body validation"
2155+
"description": "Unprocessable entity"
20432156
},
20442157
"500": {
20452158
"content": {

0 commit comments

Comments
 (0)