Skip to content

Commit 31b8992

Browse files
OAS Update
1 parent 43ed99f commit 31b8992

File tree

1 file changed

+168
-27
lines changed

1 file changed

+168
-27
lines changed

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

Lines changed: 168 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,33 @@
422422
],
423423
"type": "object"
424424
},
425+
"GetDatabase": {
426+
"properties": {
427+
"id": {
428+
"$ref": "#/components/schemas/database.id"
429+
},
430+
"name": {
431+
"$ref": "#/components/schemas/database.name"
432+
},
433+
"owner": {
434+
"$ref": "#/components/schemas/database.owner"
435+
}
436+
},
437+
"required": [
438+
"id",
439+
"name",
440+
"owner"
441+
],
442+
"type": "object"
443+
},
444+
"GetDatabaseResponse": {
445+
"properties": {
446+
"database": {
447+
"$ref": "#/components/schemas/GetDatabase"
448+
}
449+
},
450+
"type": "object"
451+
},
425452
"GetFlavorsResponse": {
426453
"properties": {
427454
"flavors": {
@@ -1998,7 +2025,7 @@
19982025
}
19992026
}
20002027
},
2001-
"description": "User is not allowed to perform this operation or credentials are not correct"
2028+
"description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct"
20022029
},
20032030
"403": {
20042031
"content": {
@@ -2132,7 +2159,7 @@
21322159
}
21332160
}
21342161
},
2135-
"description": "User is not allowed to perform this operation or credentials are not correct"
2162+
"description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct"
21362163
},
21372164
"403": {
21382165
"content": {
@@ -2251,7 +2278,7 @@
22512278
}
22522279
}
22532280
},
2254-
"description": "User is not allowed to perform this operation or credentials are not correct"
2281+
"description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct"
22552282
},
22562283
"403": {
22572284
"content": {
@@ -2375,7 +2402,7 @@
23752402
}
23762403
}
23772404
},
2378-
"description": "User is not allowed to perform this operation or credentials are not correct"
2405+
"description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct"
23792406
},
23802407
"403": {
23812408
"content": {
@@ -2501,7 +2528,7 @@
25012528
}
25022529
}
25032530
},
2504-
"description": "User is not allowed to perform this operation or credentials are not correct"
2531+
"description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct"
25052532
},
25062533
"403": {
25072534
"content": {
@@ -2616,7 +2643,7 @@
26162643
}
26172644
}
26182645
},
2619-
"description": "User is not allowed to perform this operation or credentials are not correct"
2646+
"description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct"
26202647
},
26212648
"403": {
26222649
"content": {
@@ -2756,7 +2783,7 @@
27562783
}
27572784
}
27582785
},
2759-
"description": "User is not allowed to perform this operation or credentials are not correct"
2786+
"description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct"
27602787
},
27612788
"403": {
27622789
"content": {
@@ -2903,7 +2930,7 @@
29032930
}
29042931
}
29052932
},
2906-
"description": "User is not allowed to perform this operation or credentials are not correct"
2933+
"description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct"
29072934
},
29082935
"403": {
29092936
"content": {
@@ -3041,7 +3068,7 @@
30413068
}
30423069
}
30433070
},
3044-
"description": "User is not allowed to perform this operation or credentials are not correct"
3071+
"description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct"
30453072
},
30463073
"403": {
30473074
"content": {
@@ -3182,7 +3209,7 @@
31823209
}
31833210
}
31843211
},
3185-
"description": "User is not allowed to perform this operation or credentials are not correct"
3212+
"description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct"
31863213
},
31873214
"403": {
31883215
"content": {
@@ -3320,7 +3347,7 @@
33203347
}
33213348
}
33223349
},
3323-
"description": "User is not allowed to perform this operation or credentials are not correct"
3350+
"description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct"
33243351
},
33253352
"403": {
33263353
"content": {
@@ -3458,7 +3485,7 @@
34583485
}
34593486
}
34603487
},
3461-
"description": "User is not allowed to perform this operation or credentials are not correct"
3488+
"description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct"
34623489
},
34633490
"403": {
34643491
"content": {
@@ -3595,7 +3622,7 @@
35953622
}
35963623
}
35973624
},
3598-
"description": "User is not allowed to perform this operation or credentials are not correct"
3625+
"description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct"
35993626
},
36003627
"403": {
36013628
"content": {
@@ -3717,7 +3744,7 @@
37173744
}
37183745
}
37193746
},
3720-
"description": "User is not allowed to perform this operation or credentials are not correct"
3747+
"description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct"
37213748
},
37223749
"403": {
37233750
"content": {
@@ -3851,7 +3878,7 @@
38513878
}
38523879
}
38533880
},
3854-
"description": "User is not allowed to perform this operation or credentials are not correct"
3881+
"description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct"
38553882
},
38563883
"403": {
38573884
"content": {
@@ -3909,6 +3936,120 @@
39093936
"resource-type": "project"
39103937
}
39113938
},
3939+
"get": {
3940+
"description": "Get information about a specific database in an instance.",
3941+
"operationId": "getDatabaseRequest",
3942+
"parameters": [
3943+
{
3944+
"$ref": "#/components/parameters/project"
3945+
},
3946+
{
3947+
"$ref": "#/components/parameters/region"
3948+
},
3949+
{
3950+
"$ref": "#/components/parameters/instance"
3951+
},
3952+
{
3953+
"$ref": "#/components/parameters/database"
3954+
}
3955+
],
3956+
"responses": {
3957+
"200": {
3958+
"content": {
3959+
"application/json": {
3960+
"schema": {
3961+
"$ref": "#/components/schemas/GetDatabaseResponse"
3962+
}
3963+
}
3964+
},
3965+
"description": "OK: The response contains the properties of the database."
3966+
},
3967+
"400": {
3968+
"content": {
3969+
"application/json": {
3970+
"examples": {
3971+
"badRequestError": {
3972+
"$ref": "#/components/examples/badRequestError"
3973+
}
3974+
},
3975+
"schema": {
3976+
"$ref": "#/components/schemas/Error"
3977+
}
3978+
}
3979+
},
3980+
"description": "Bad Request"
3981+
},
3982+
"401": {
3983+
"content": {
3984+
"application/json": {
3985+
"examples": {
3986+
"unauthorizedError": {
3987+
"$ref": "#/components/examples/unauthorizedError"
3988+
}
3989+
},
3990+
"schema": {
3991+
"$ref": "#/components/schemas/Error"
3992+
}
3993+
}
3994+
},
3995+
"description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct"
3996+
},
3997+
"403": {
3998+
"content": {
3999+
"application/json": {
4000+
"examples": {
4001+
"forbiddenError": {
4002+
"$ref": "#/components/examples/forbiddenError"
4003+
}
4004+
},
4005+
"schema": {
4006+
"$ref": "#/components/schemas/Error"
4007+
}
4008+
}
4009+
},
4010+
"description": "Forbidden: No access for the requested resource."
4011+
},
4012+
"404": {
4013+
"content": {
4014+
"application/json": {
4015+
"examples": {
4016+
"notFoundError": {
4017+
"$ref": "#/components/examples/notFoundError"
4018+
}
4019+
},
4020+
"schema": {
4021+
"$ref": "#/components/schemas/Error"
4022+
}
4023+
}
4024+
},
4025+
"description": "Not found: The requested resource was not found."
4026+
},
4027+
"500": {
4028+
"content": {
4029+
"application/json": {
4030+
"examples": {
4031+
"internalServerError": {
4032+
"$ref": "#/components/examples/internalServerError"
4033+
}
4034+
},
4035+
"schema": {
4036+
"$ref": "#/components/schemas/Error"
4037+
}
4038+
}
4039+
},
4040+
"description": "Internal Server Error: An internal occurred while processing the request. Please contact the support or try again later."
4041+
}
4042+
},
4043+
"summary": "Get Specific Database",
4044+
"x-stackit-authorization": {
4045+
"actions": [
4046+
"postgres-flex.database.get"
4047+
],
4048+
"resource-id": "projectId",
4049+
"resource-id-type": "dynamic",
4050+
"resource-type": "project"
4051+
}
4052+
},
39124053
"patch": {
39134054
"description": "Update a database partially in an instance.",
39144055
"operationId": "updateDatabasePartiallyRequest",
@@ -3976,7 +4117,7 @@
39764117
}
39774118
}
39784119
},
3979-
"description": "User is not allowed to perform this operation or credentials are not correct"
4120+
"description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct"
39804121
},
39814122
"403": {
39824123
"content": {
@@ -4111,7 +4252,7 @@
41114252
}
41124253
}
41134254
},
4114-
"description": "User is not allowed to perform this operation or credentials are not correct"
4255+
"description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct"
41154256
},
41164257
"403": {
41174258
"content": {
@@ -4245,7 +4386,7 @@
42454386
}
42464387
}
42474388
},
4248-
"description": "User is not allowed to perform this operation or credentials are not correct"
4389+
"description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct"
42494390
},
42504391
"403": {
42514392
"content": {
@@ -4383,7 +4524,7 @@
43834524
}
43844525
}
43854526
},
4386-
"description": "User is not allowed to perform this operation or credentials are not correct"
4527+
"description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct"
43874528
},
43884529
"403": {
43894530
"content": {
@@ -4505,7 +4646,7 @@
45054646
}
45064647
}
45074648
},
4508-
"description": "User is not allowed to perform this operation or credentials are not correct"
4649+
"description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct"
45094650
},
45104651
"403": {
45114652
"content": {
@@ -4627,7 +4768,7 @@
46274768
}
46284769
}
46294770
},
4630-
"description": "User is not allowed to perform this operation or credentials are not correct"
4771+
"description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct"
46314772
},
46324773
"403": {
46334774
"content": {
@@ -4746,7 +4887,7 @@
47464887
}
47474888
}
47484889
},
4749-
"description": "User is not allowed to perform this operation or credentials are not correct"
4890+
"description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct"
47504891
},
47514892
"403": {
47524893
"content": {
@@ -4860,7 +5001,7 @@
48605001
}
48615002
}
48625003
},
4863-
"description": "User is not allowed to perform this operation or credentials are not correct"
5004+
"description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct"
48645005
},
48655006
"403": {
48665007
"content": {
@@ -4977,7 +5118,7 @@
49775118
}
49785119
}
49795120
},
4980-
"description": "User is not allowed to perform this operation or credentials are not correct"
5121+
"description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct"
49815122
},
49825123
"403": {
49835124
"content": {
@@ -5105,7 +5246,7 @@
51055246
}
51065247
}
51075248
},
5108-
"description": "User is not allowed to perform this operation or credentials are not correct"
5249+
"description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct"
51095250
},
51105251
"403": {
51115252
"content": {
@@ -5231,7 +5372,7 @@
52315372
}
52325373
}
52335374
},
5234-
"description": "User is not allowed to perform this operation or credentials are not correct"
5375+
"description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct"
52355376
},
52365377
"403": {
52375378
"content": {
@@ -5351,7 +5492,7 @@
53515492
}
53525493
}
53535494
},
5354-
"description": "User is not allowed to perform this operation or credentials are not correct"
5495+
"description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct"
53555496
},
53565497
"403": {
53575498
"content": {

0 commit comments

Comments
 (0)