Skip to content

Commit 7651289

Browse files
OAS Update
1 parent c08c6c8 commit 7651289

2 files changed

Lines changed: 144 additions & 0 deletions

File tree

‎services/sfs/v1/sfs.json‎

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
{
22
"components": {
33
"responses": {
4+
"ConflictError": {
5+
"content": {
6+
"application/problem+json": {
7+
"schema": {
8+
"$ref": "#/components/schemas/ConflictError"
9+
}
10+
}
11+
},
12+
"description": "The request conflicts with the current state of the resource."
13+
},
414
"InternalServerError": {
515
"content": {
616
"application/problem+json": {
@@ -33,6 +43,44 @@
3343
}
3444
},
3545
"schemas": {
46+
"ConflictError": {
47+
"description": "Conflict error response",
48+
"example": {
49+
"detail": "resource pool 'test-rp' already exists",
50+
"error_description": "An error occurred",
51+
"status_code": 409,
52+
"type": "storage.stackit.cloud/conflict"
53+
},
54+
"properties": {
55+
"detail": {
56+
"description": "Human-readable explanation of the specific problem",
57+
"example": "resource pool 'test-rp' already exists",
58+
"type": "string"
59+
},
60+
"error_description": {
61+
"description": "Human-readable string of the error that occurred",
62+
"example": "An error occurred",
63+
"type": "string"
64+
},
65+
"status_code": {
66+
"description": "The HTTP status code",
67+
"example": 409,
68+
"type": "integer"
69+
},
70+
"type": {
71+
"description": "URI Uniquely identifies the error type. It will be in the format of storage.stackit.cloud/\u003cerror-type\u003e e.g. storage.stackit.cloud/conflict",
72+
"example": "storage.stackit.cloud/conflict",
73+
"type": "string"
74+
}
75+
},
76+
"required": [
77+
"detail",
78+
"error_description",
79+
"status_code",
80+
"type"
81+
],
82+
"type": "object"
83+
},
3684
"CreateResourcePoolPayload": {
3785
"properties": {
3886
"availabilityZone": {
@@ -1275,6 +1323,9 @@
12751323
"401": {
12761324
"$ref": "#/components/responses/UnauthorizedError"
12771325
},
1326+
"409": {
1327+
"$ref": "#/components/responses/ConflictError"
1328+
},
12781329
"500": {
12791330
"$ref": "#/components/responses/InternalServerError"
12801331
}
@@ -1337,6 +1388,9 @@
13371388
"401": {
13381389
"$ref": "#/components/responses/UnauthorizedError"
13391390
},
1391+
"409": {
1392+
"$ref": "#/components/responses/ConflictError"
1393+
},
13401394
"500": {
13411395
"$ref": "#/components/responses/InternalServerError"
13421396
}
@@ -1467,6 +1521,9 @@
14671521
"401": {
14681522
"$ref": "#/components/responses/UnauthorizedError"
14691523
},
1524+
"409": {
1525+
"$ref": "#/components/responses/ConflictError"
1526+
},
14701527
"500": {
14711528
"$ref": "#/components/responses/InternalServerError"
14721529
}
@@ -1599,6 +1656,9 @@
15991656
"401": {
16001657
"$ref": "#/components/responses/UnauthorizedError"
16011658
},
1659+
"409": {
1660+
"$ref": "#/components/responses/ConflictError"
1661+
},
16021662
"500": {
16031663
"$ref": "#/components/responses/InternalServerError"
16041664
}
@@ -1947,6 +2007,9 @@
19472007
"401": {
19482008
"$ref": "#/components/responses/UnauthorizedError"
19492009
},
2010+
"409": {
2011+
"$ref": "#/components/responses/ConflictError"
2012+
},
19502013
"500": {
19512014
"$ref": "#/components/responses/InternalServerError"
19522015
}
@@ -2017,6 +2080,9 @@
20172080
"401": {
20182081
"$ref": "#/components/responses/UnauthorizedError"
20192082
},
2083+
"409": {
2084+
"$ref": "#/components/responses/ConflictError"
2085+
},
20202086
"500": {
20212087
"$ref": "#/components/responses/InternalServerError"
20222088
}
@@ -2279,6 +2345,9 @@
22792345
"401": {
22802346
"$ref": "#/components/responses/UnauthorizedError"
22812347
},
2348+
"409": {
2349+
"$ref": "#/components/responses/ConflictError"
2350+
},
22822351
"500": {
22832352
"$ref": "#/components/responses/InternalServerError"
22842353
}
@@ -2728,6 +2797,9 @@
27282797
},
27292798
"description": "OK"
27302799
},
2800+
"409": {
2801+
"$ref": "#/components/responses/ConflictError"
2802+
},
27312803
"default": {
27322804
"content": {
27332805
"application/json": {
@@ -2822,6 +2894,9 @@
28222894
},
28232895
"description": "OK"
28242896
},
2897+
"409": {
2898+
"$ref": "#/components/responses/ConflictError"
2899+
},
28252900
"default": {
28262901
"content": {
28272902
"application/json": {

‎services/sfs/v1beta/sfs.json‎

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
{
22
"components": {
33
"responses": {
4+
"ConflictError": {
5+
"content": {
6+
"application/problem+json": {
7+
"schema": {
8+
"$ref": "#/components/schemas/ConflictError"
9+
}
10+
}
11+
},
12+
"description": "The request conflicts with the current state of the resource."
13+
},
414
"InternalServerError": {
515
"content": {
616
"application/problem+json": {
@@ -33,6 +43,44 @@
3343
}
3444
},
3545
"schemas": {
46+
"ConflictError": {
47+
"description": "Conflict error response",
48+
"example": {
49+
"detail": "resource pool 'test-rp' already exists",
50+
"error_description": "An error occurred",
51+
"status_code": 409,
52+
"type": "storage.stackit.cloud/conflict"
53+
},
54+
"properties": {
55+
"detail": {
56+
"description": "Human-readable explanation of the specific problem",
57+
"example": "resource pool 'test-rp' already exists",
58+
"type": "string"
59+
},
60+
"error_description": {
61+
"description": "Human-readable string of the error that occurred",
62+
"example": "An error occurred",
63+
"type": "string"
64+
},
65+
"status_code": {
66+
"description": "The HTTP status code",
67+
"example": 409,
68+
"type": "integer"
69+
},
70+
"type": {
71+
"description": "URI Uniquely identifies the error type. It will be in the format of storage.stackit.cloud/\u003cerror-type\u003e e.g. storage.stackit.cloud/conflict",
72+
"example": "storage.stackit.cloud/conflict",
73+
"type": "string"
74+
}
75+
},
76+
"required": [
77+
"detail",
78+
"error_description",
79+
"status_code",
80+
"type"
81+
],
82+
"type": "object"
83+
},
3684
"CreateResourcePoolPayload": {
3785
"properties": {
3886
"availabilityZone": {
@@ -1027,6 +1075,9 @@
10271075
"401": {
10281076
"$ref": "#/components/responses/UnauthorizedError"
10291077
},
1078+
"409": {
1079+
"$ref": "#/components/responses/ConflictError"
1080+
},
10301081
"500": {
10311082
"$ref": "#/components/responses/InternalServerError"
10321083
}
@@ -1089,6 +1140,9 @@
10891140
"401": {
10901141
"$ref": "#/components/responses/UnauthorizedError"
10911142
},
1143+
"409": {
1144+
"$ref": "#/components/responses/ConflictError"
1145+
},
10921146
"500": {
10931147
"$ref": "#/components/responses/InternalServerError"
10941148
}
@@ -1219,6 +1273,9 @@
12191273
"401": {
12201274
"$ref": "#/components/responses/UnauthorizedError"
12211275
},
1276+
"409": {
1277+
"$ref": "#/components/responses/ConflictError"
1278+
},
12221279
"500": {
12231280
"$ref": "#/components/responses/InternalServerError"
12241281
}
@@ -1351,6 +1408,9 @@
13511408
"401": {
13521409
"$ref": "#/components/responses/UnauthorizedError"
13531410
},
1411+
"409": {
1412+
"$ref": "#/components/responses/ConflictError"
1413+
},
13541414
"500": {
13551415
"$ref": "#/components/responses/InternalServerError"
13561416
}
@@ -1699,6 +1759,9 @@
16991759
"401": {
17001760
"$ref": "#/components/responses/UnauthorizedError"
17011761
},
1762+
"409": {
1763+
"$ref": "#/components/responses/ConflictError"
1764+
},
17021765
"500": {
17031766
"$ref": "#/components/responses/InternalServerError"
17041767
}
@@ -1769,6 +1832,9 @@
17691832
"401": {
17701833
"$ref": "#/components/responses/UnauthorizedError"
17711834
},
1835+
"409": {
1836+
"$ref": "#/components/responses/ConflictError"
1837+
},
17721838
"500": {
17731839
"$ref": "#/components/responses/InternalServerError"
17741840
}
@@ -1953,6 +2019,9 @@
19532019
"401": {
19542020
"$ref": "#/components/responses/UnauthorizedError"
19552021
},
2022+
"409": {
2023+
"$ref": "#/components/responses/ConflictError"
2024+
},
19562025
"500": {
19572026
"$ref": "#/components/responses/InternalServerError"
19582027
}

0 commit comments

Comments
 (0)