Skip to content

Commit 108892d

Browse files
OAS Update
1 parent 916a13b commit 108892d

2 files changed

Lines changed: 300 additions & 0 deletions

File tree

‎services/object-storage/v1/object-storage.json‎

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,19 @@
568568
},
569569
"ProjectStatus": {
570570
"properties": {
571+
"labels": {
572+
"additionalProperties": {
573+
"type": "string"
574+
},
575+
"description": "Project labels",
576+
"example": {
577+
"contact": "Bob",
578+
"environment": "development",
579+
"owner": "Alice"
580+
},
581+
"title": "Labels",
582+
"type": "object"
583+
},
571584
"project": {
572585
"description": "Project ID",
573586
"example": "cd5e788d-5b7b-4ab9-a20d-e790205df10b",
@@ -654,6 +667,28 @@
654667
"title": "DefaultRetentionRequest",
655668
"type": "object"
656669
},
670+
"UpdateServicePayload": {
671+
"properties": {
672+
"labels": {
673+
"additionalProperties": {
674+
"type": "string"
675+
},
676+
"description": "Project labels",
677+
"example": {
678+
"contact": "Bob",
679+
"environment": "development",
680+
"owner": "Alice"
681+
},
682+
"title": "Labels",
683+
"type": "object"
684+
}
685+
},
686+
"required": [
687+
"labels"
688+
],
689+
"title": "PutProjectRequest",
690+
"type": "object"
691+
},
657692
"ValidationError": {
658693
"properties": {
659694
"loc": {
@@ -1025,6 +1060,115 @@
10251060
"resource-id-type": "dynamic",
10261061
"resource-type": "project"
10271062
}
1063+
},
1064+
"put": {
1065+
"description": "Update project details.",
1066+
"operationId": "UpdateService",
1067+
"parameters": [
1068+
{
1069+
"description": "STACKIT project ID",
1070+
"in": "path",
1071+
"name": "projectId",
1072+
"required": true,
1073+
"schema": {
1074+
"description": "STACKIT project ID",
1075+
"example": "cd5e788d-5b7b-4ab9-a20d-e790205df10b",
1076+
"title": "Project ID",
1077+
"type": "string"
1078+
}
1079+
}
1080+
],
1081+
"requestBody": {
1082+
"content": {
1083+
"application/json": {
1084+
"schema": {
1085+
"$ref": "#/components/schemas/UpdateServicePayload"
1086+
}
1087+
}
1088+
},
1089+
"required": true
1090+
},
1091+
"responses": {
1092+
"200": {
1093+
"content": {
1094+
"application/json": {
1095+
"schema": {
1096+
"$ref": "#/components/schemas/ProjectStatus"
1097+
}
1098+
}
1099+
},
1100+
"description": "Successful Response"
1101+
},
1102+
"401": {
1103+
"content": {
1104+
"application/json": {
1105+
"schema": {
1106+
"$ref": "#/components/schemas/ErrorMessage"
1107+
}
1108+
}
1109+
},
1110+
"description": "Unauthorized"
1111+
},
1112+
"403": {
1113+
"content": {
1114+
"application/json": {
1115+
"schema": {
1116+
"$ref": "#/components/schemas/ErrorMessage"
1117+
}
1118+
}
1119+
},
1120+
"description": "Forbidden"
1121+
},
1122+
"404": {
1123+
"content": {
1124+
"application/json": {
1125+
"schema": {
1126+
"$ref": "#/components/schemas/ErrorMessage"
1127+
}
1128+
}
1129+
},
1130+
"description": "Not Found"
1131+
},
1132+
"422": {
1133+
"content": {
1134+
"application/json": {
1135+
"schema": {
1136+
"$ref": "#/components/schemas/HTTPValidationError"
1137+
}
1138+
}
1139+
},
1140+
"description": "Validation Error"
1141+
},
1142+
"429": {
1143+
"content": {
1144+
"application/json": {
1145+
"schema": {
1146+
"$ref": "#/components/schemas/RateLimitError"
1147+
}
1148+
}
1149+
},
1150+
"description": "Too Many Requests"
1151+
},
1152+
"500": {
1153+
"content": {
1154+
"application/json": {
1155+
"schema": {
1156+
"$ref": "#/components/schemas/ErrorMessage"
1157+
}
1158+
}
1159+
},
1160+
"description": "Internal Server Error"
1161+
}
1162+
},
1163+
"summary": "Update Project",
1164+
"x-stackit-authorization": {
1165+
"actions": [
1166+
"object-storage.service.update"
1167+
],
1168+
"resource-id": "projectId",
1169+
"resource-id-type": "dynamic",
1170+
"resource-type": "project"
1171+
}
10281172
}
10291173
},
10301174
"/v1/project/{projectId}/access-key": {

‎services/object-storage/v2/object-storage.json‎

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,19 @@
568568
},
569569
"ProjectStatus": {
570570
"properties": {
571+
"labels": {
572+
"additionalProperties": {
573+
"type": "string"
574+
},
575+
"description": "Project labels",
576+
"example": {
577+
"contact": "Bob",
578+
"environment": "development",
579+
"owner": "Alice"
580+
},
581+
"title": "Labels",
582+
"type": "object"
583+
},
571584
"project": {
572585
"description": "Project ID",
573586
"example": "cd5e788d-5b7b-4ab9-a20d-e790205df10b",
@@ -654,6 +667,28 @@
654667
"title": "DefaultRetentionRequest",
655668
"type": "object"
656669
},
670+
"UpdateServicePayload": {
671+
"properties": {
672+
"labels": {
673+
"additionalProperties": {
674+
"type": "string"
675+
},
676+
"description": "Project labels",
677+
"example": {
678+
"contact": "Bob",
679+
"environment": "development",
680+
"owner": "Alice"
681+
},
682+
"title": "Labels",
683+
"type": "object"
684+
}
685+
},
686+
"required": [
687+
"labels"
688+
],
689+
"title": "PutProjectRequest",
690+
"type": "object"
691+
},
657692
"ValidationError": {
658693
"properties": {
659694
"loc": {
@@ -1061,6 +1096,127 @@
10611096
"resource-id-type": "dynamic",
10621097
"resource-type": "project"
10631098
}
1099+
},
1100+
"put": {
1101+
"description": "Update project details.",
1102+
"operationId": "UpdateService",
1103+
"parameters": [
1104+
{
1105+
"description": "STACKIT project ID",
1106+
"in": "path",
1107+
"name": "projectId",
1108+
"required": true,
1109+
"schema": {
1110+
"description": "STACKIT project ID",
1111+
"example": "cd5e788d-5b7b-4ab9-a20d-e790205df10b",
1112+
"title": "Project ID",
1113+
"type": "string"
1114+
}
1115+
},
1116+
{
1117+
"description": "STACKIT Region",
1118+
"in": "path",
1119+
"name": "region",
1120+
"required": true,
1121+
"schema": {
1122+
"description": "STACKIT Region",
1123+
"example": "eu01",
1124+
"title": "STACKIT Region",
1125+
"type": "string"
1126+
}
1127+
}
1128+
],
1129+
"requestBody": {
1130+
"content": {
1131+
"application/json": {
1132+
"schema": {
1133+
"$ref": "#/components/schemas/UpdateServicePayload"
1134+
}
1135+
}
1136+
},
1137+
"required": true
1138+
},
1139+
"responses": {
1140+
"200": {
1141+
"content": {
1142+
"application/json": {
1143+
"schema": {
1144+
"$ref": "#/components/schemas/ProjectStatus"
1145+
}
1146+
}
1147+
},
1148+
"description": "Successful Response"
1149+
},
1150+
"401": {
1151+
"content": {
1152+
"application/json": {
1153+
"schema": {
1154+
"$ref": "#/components/schemas/ErrorMessage"
1155+
}
1156+
}
1157+
},
1158+
"description": "Unauthorized"
1159+
},
1160+
"403": {
1161+
"content": {
1162+
"application/json": {
1163+
"schema": {
1164+
"$ref": "#/components/schemas/ErrorMessage"
1165+
}
1166+
}
1167+
},
1168+
"description": "Forbidden"
1169+
},
1170+
"404": {
1171+
"content": {
1172+
"application/json": {
1173+
"schema": {
1174+
"$ref": "#/components/schemas/ErrorMessage"
1175+
}
1176+
}
1177+
},
1178+
"description": "Not Found"
1179+
},
1180+
"422": {
1181+
"content": {
1182+
"application/json": {
1183+
"schema": {
1184+
"$ref": "#/components/schemas/HTTPValidationError"
1185+
}
1186+
}
1187+
},
1188+
"description": "Validation Error"
1189+
},
1190+
"429": {
1191+
"content": {
1192+
"application/json": {
1193+
"schema": {
1194+
"$ref": "#/components/schemas/RateLimitError"
1195+
}
1196+
}
1197+
},
1198+
"description": "Too Many Requests"
1199+
},
1200+
"500": {
1201+
"content": {
1202+
"application/json": {
1203+
"schema": {
1204+
"$ref": "#/components/schemas/ErrorMessage"
1205+
}
1206+
}
1207+
},
1208+
"description": "Internal Server Error"
1209+
}
1210+
},
1211+
"summary": "Update Project",
1212+
"x-stackit-authorization": {
1213+
"actions": [
1214+
"object-storage.service.update"
1215+
],
1216+
"resource-id": "projectId",
1217+
"resource-id-type": "dynamic",
1218+
"resource-type": "project"
1219+
}
10641220
}
10651221
},
10661222
"/v2/project/{projectId}/regions/{region}/access-key": {

0 commit comments

Comments
 (0)