|
4 | 4 | "CreateOrgRolePayload": { |
5 | 5 | "properties": { |
6 | 6 | "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" |
15 | 8 | }, |
16 | 9 | "userGuid": { |
17 | 10 | "$ref": "#/components/schemas/UserId" |
|
124 | 117 | ], |
125 | 118 | "type": "object" |
126 | 119 | }, |
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": { |
128 | 136 | "properties": { |
129 | 137 | "createdAt": { |
130 | 138 | "example": "2024-10-28T07:07:54.52Z", |
|
177 | 185 | ], |
178 | 186 | "type": "object" |
179 | 187 | }, |
180 | | - "OrgManagerDeleteResponse": { |
| 188 | + "OrgRoleCreateBffRequest": { |
181 | 189 | "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" |
188 | 192 | } |
189 | 193 | }, |
190 | 194 | "required": [ |
191 | | - "message" |
| 195 | + "type" |
192 | 196 | ], |
193 | 197 | "type": "object" |
194 | 198 | }, |
195 | | - "OrgRoleCreateResponse": { |
| 199 | + "OrgRoleResponse": { |
196 | 200 | "properties": { |
197 | 201 | "guid": { |
198 | 202 | "$ref": "#/components/schemas/RoleId" |
|
208 | 212 | }, |
209 | 213 | "region": { |
210 | 214 | "$ref": "#/components/schemas/Region" |
| 215 | + }, |
| 216 | + "type": { |
| 217 | + "$ref": "#/components/schemas/OrgRoleType" |
211 | 218 | } |
212 | 219 | }, |
213 | 220 | "required": [ |
214 | 221 | "guid", |
215 | 222 | "orgId", |
216 | 223 | "projectId", |
217 | 224 | "region", |
218 | | - "platformId" |
| 225 | + "platformId", |
| 226 | + "type" |
219 | 227 | ], |
220 | 228 | "type": "object" |
221 | 229 | }, |
| 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 | + }, |
222 | 240 | "OrgStatus": { |
223 | 241 | "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. ", |
224 | 242 | "example": "deleting", |
|
841 | 859 | "minLength": 1, |
842 | 860 | "type": "string" |
843 | 861 | }, |
| 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 | + }, |
844 | 887 | "SpaceRoleCreateResponse": { |
845 | 888 | "properties": { |
846 | 889 | "guid": { |
|
860 | 903 | }, |
861 | 904 | "spaceId": { |
862 | 905 | "$ref": "#/components/schemas/SpaceId" |
| 906 | + }, |
| 907 | + "type": { |
| 908 | + "$ref": "#/components/schemas/SpaceRoleType" |
863 | 909 | } |
864 | 910 | }, |
865 | 911 | "required": [ |
|
868 | 914 | "spaceId", |
869 | 915 | "projectId", |
870 | 916 | "region", |
871 | | - "platformId" |
| 917 | + "platformId", |
| 918 | + "type" |
872 | 919 | ], |
873 | 920 | "type": "object" |
874 | 921 | }, |
| 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 | + }, |
875 | 932 | "SpacesList": { |
876 | 933 | "properties": { |
877 | 934 | "pagination": { |
|
1009 | 1066 | "createSpaceRolePayload": { |
1010 | 1067 | "properties": { |
1011 | 1068 | "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" |
1020 | 1070 | }, |
1021 | 1071 | "userGuid": { |
1022 | 1072 | "$ref": "#/components/schemas/UserId" |
|
1864 | 1914 | "content": { |
1865 | 1915 | "application/json": { |
1866 | 1916 | "schema": { |
1867 | | - "$ref": "#/components/schemas/OrgManagerCreateResponse" |
| 1917 | + "$ref": "#/components/schemas/OrgManagerResponse" |
1868 | 1918 | } |
1869 | 1919 | } |
1870 | 1920 | }, |
|
2316 | 2366 | "content": { |
2317 | 2367 | "application/json": { |
2318 | 2368 | "schema": { |
2319 | | - "$ref": "#/components/schemas/OrgRoleCreateResponse" |
| 2369 | + "$ref": "#/components/schemas/OrgRoleResponse" |
2320 | 2370 | } |
2321 | 2371 | } |
2322 | 2372 | }, |
|
0 commit comments