Skip to content

Commit de86434

Browse files
OAS Update
1 parent 38a1b02 commit de86434

File tree

1 file changed

+80
-30
lines changed

1 file changed

+80
-30
lines changed

services/scf/v1/scf.json

Lines changed: 80 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,7 @@
44
"CreateOrgRolePayload": {
55
"properties": {
66
"type": {
7-
"enum": [
8-
"organization_user",
9-
"organization_auditor",
10-
"organization_manager",
11-
"organization_billing_manager"
12-
],
13-
"title": "Organization Role to assign",
14-
"type": "string"
7+
"$ref": "#/components/schemas/OrgRoleType"
158
},
169
"userGuid": {
1710
"$ref": "#/components/schemas/UserId"
@@ -124,7 +117,22 @@
124117
],
125118
"type": "object"
126119
},
127-
"OrgManagerCreateResponse": {
120+
"OrgManagerDeleteResponse": {
121+
"properties": {
122+
"message": {
123+
"example": "deleted",
124+
"maxLength": 1024,
125+
"pattern": "^[a-zA-Z0-9/_]+$",
126+
"title": "human readable message",
127+
"type": "string"
128+
}
129+
},
130+
"required": [
131+
"message"
132+
],
133+
"type": "object"
134+
},
135+
"OrgManagerResponse": {
128136
"properties": {
129137
"createdAt": {
130138
"example": "2024-10-28T07:07:54.52Z",
@@ -177,22 +185,18 @@
177185
],
178186
"type": "object"
179187
},
180-
"OrgManagerDeleteResponse": {
188+
"OrgRoleCreateBffRequest": {
181189
"properties": {
182-
"message": {
183-
"example": "deleted",
184-
"maxLength": 1024,
185-
"pattern": "^[a-zA-Z0-9/_]+$",
186-
"title": "human readable message",
187-
"type": "string"
190+
"type": {
191+
"$ref": "#/components/schemas/OrgRoleType"
188192
}
189193
},
190194
"required": [
191-
"message"
195+
"type"
192196
],
193197
"type": "object"
194198
},
195-
"OrgRoleCreateResponse": {
199+
"OrgRoleResponse": {
196200
"properties": {
197201
"guid": {
198202
"$ref": "#/components/schemas/RoleId"
@@ -208,17 +212,31 @@
208212
},
209213
"region": {
210214
"$ref": "#/components/schemas/Region"
215+
},
216+
"type": {
217+
"$ref": "#/components/schemas/OrgRoleType"
211218
}
212219
},
213220
"required": [
214221
"guid",
215222
"orgId",
216223
"projectId",
217224
"region",
218-
"platformId"
225+
"platformId",
226+
"type"
219227
],
220228
"type": "object"
221229
},
230+
"OrgRoleType": {
231+
"enum": [
232+
"organization_user",
233+
"organization_auditor",
234+
"organization_manager",
235+
"organization_billing_manager"
236+
],
237+
"title": "Organization Role to assign",
238+
"type": "string"
239+
},
222240
"OrgStatus": {
223241
"description": "The organization's status. The status value starts with `deleting` when a deleting request is in progress. The status value starts with `delete_failed` when the deletion failed. The status value can be different from `deleting` and `delete_failed`. Additional details can be provided in the future. ",
224242
"example": "deleting",
@@ -841,6 +859,31 @@
841859
"minLength": 1,
842860
"type": "string"
843861
},
862+
"SpaceRoleCreateBffRequest": {
863+
"properties": {
864+
"type": {
865+
"$ref": "#/components/schemas/SpaceRoleType"
866+
}
867+
},
868+
"required": [
869+
"type"
870+
],
871+
"type": "object"
872+
},
873+
"SpaceRoleCreateBffResponse": {
874+
"properties": {
875+
"orgRole": {
876+
"$ref": "#/components/schemas/OrgRoleResponse"
877+
},
878+
"spaceRole": {
879+
"$ref": "#/components/schemas/SpaceRoleCreateResponse"
880+
}
881+
},
882+
"required": [
883+
"spaceRole"
884+
],
885+
"type": "object"
886+
},
844887
"SpaceRoleCreateResponse": {
845888
"properties": {
846889
"guid": {
@@ -860,6 +903,9 @@
860903
},
861904
"spaceId": {
862905
"$ref": "#/components/schemas/SpaceId"
906+
},
907+
"type": {
908+
"$ref": "#/components/schemas/SpaceRoleType"
863909
}
864910
},
865911
"required": [
@@ -868,10 +914,21 @@
868914
"spaceId",
869915
"projectId",
870916
"region",
871-
"platformId"
917+
"platformId",
918+
"type"
872919
],
873920
"type": "object"
874921
},
922+
"SpaceRoleType": {
923+
"enum": [
924+
"space_auditor",
925+
"space_developer",
926+
"space_manager",
927+
"space_supporter"
928+
],
929+
"title": "Space Role to assign",
930+
"type": "string"
931+
},
875932
"SpacesList": {
876933
"properties": {
877934
"pagination": {
@@ -1009,14 +1066,7 @@
10091066
"createSpaceRolePayload": {
10101067
"properties": {
10111068
"type": {
1012-
"enum": [
1013-
"space_auditor",
1014-
"space_developer",
1015-
"space_manager",
1016-
"space_supporter"
1017-
],
1018-
"title": "Space Role to assign",
1019-
"type": "string"
1069+
"$ref": "#/components/schemas/SpaceRoleType"
10201070
},
10211071
"userGuid": {
10221072
"$ref": "#/components/schemas/UserId"
@@ -1864,7 +1914,7 @@
18641914
"content": {
18651915
"application/json": {
18661916
"schema": {
1867-
"$ref": "#/components/schemas/OrgManagerCreateResponse"
1917+
"$ref": "#/components/schemas/OrgManagerResponse"
18681918
}
18691919
}
18701920
},
@@ -2316,7 +2366,7 @@
23162366
"content": {
23172367
"application/json": {
23182368
"schema": {
2319-
"$ref": "#/components/schemas/OrgRoleCreateResponse"
2369+
"$ref": "#/components/schemas/OrgRoleResponse"
23202370
}
23212371
}
23222372
},

0 commit comments

Comments
 (0)