Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update error responses for roles v2 endpoints #252

Merged
merged 1 commit into from
Apr 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.0.0b1",
"regenerated": "2020-04-23 17:08:23.456288",
"spec_repo_commit": "1445ecd"
"regenerated": "2020-04-23 18:33:52.021207",
"spec_repo_commit": "6d8b10b"
},
"v2": {
"apigentools_version": "1.0.0b1",
"regenerated": "2020-04-23 17:08:28.766933",
"spec_repo_commit": "1445ecd"
"regenerated": "2020-04-23 18:33:57.233422",
"spec_repo_commit": "6d8b10b"
}
}
}
3 changes: 2 additions & 1 deletion api_docs/v2/RolesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,6 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad Request | - |
| **403** | Authentication error | - |


Expand Down Expand Up @@ -854,6 +853,7 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad Request | - |
| **403** | Authentication error | - |
| **404** | Not found | - |

Expand Down Expand Up @@ -938,6 +938,7 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad Request | - |
| **403** | Authentication error | - |
| **404** | Not found | - |

Expand Down
6 changes: 4 additions & 2 deletions src/main/java/com/datadog/api/v2/client/api/RolesApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,6 @@ public APIlistRolesRequest filter(String filter) {
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> OK </td><td> - </td></tr>
<tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
<tr><td> 403 </td><td> Authentication error </td><td> - </td></tr>
</table>

Expand All @@ -1037,7 +1036,6 @@ public RolesResponse execute() throws ApiException {
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> OK </td><td> - </td></tr>
<tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
<tr><td> 403 </td><td> Authentication error </td><td> - </td></tr>
</table>

Expand Down Expand Up @@ -1130,6 +1128,7 @@ public APIremovePermissionFromRoleRequest body(RelationshipToPermission body) {
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> OK </td><td> - </td></tr>
<tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
<tr><td> 403 </td><td> Authentication error </td><td> - </td></tr>
<tr><td> 404 </td><td> Not found </td><td> - </td></tr>
</table>
Expand All @@ -1148,6 +1147,7 @@ public PermissionsResponse execute() throws ApiException {
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> OK </td><td> - </td></tr>
<tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
<tr><td> 403 </td><td> Authentication error </td><td> - </td></tr>
<tr><td> 404 </td><td> Not found </td><td> - </td></tr>
</table>
Expand Down Expand Up @@ -1242,6 +1242,7 @@ public APIremoveUserFromRoleRequest body(RelationshipToUser body) {
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> OK </td><td> - </td></tr>
<tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
<tr><td> 403 </td><td> Authentication error </td><td> - </td></tr>
<tr><td> 404 </td><td> Not found </td><td> - </td></tr>
</table>
Expand All @@ -1260,6 +1261,7 @@ public UsersResponse execute() throws ApiException {
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> OK </td><td> - </td></tr>
<tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
<tr><td> 403 </td><td> Authentication error </td><td> - </td></tr>
<tr><td> 404 </td><td> Not found </td><td> - </td></tr>
</table>
Expand Down
18 changes: 12 additions & 6 deletions src/main/java/com/datadog/api/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1027,12 +1027,6 @@ paths:
schema:
$ref: '#/components/schemas/RolesResponse'
description: OK
'400':
content:
applcation/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Bad Request
'403':
content:
applcation/json:
Expand Down Expand Up @@ -1184,6 +1178,12 @@ paths:
schema:
$ref: '#/components/schemas/PermissionsResponse'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Bad Request
'403':
content:
application/json:
Expand Down Expand Up @@ -1285,6 +1285,12 @@ paths:
schema:
$ref: '#/components/schemas/UsersResponse'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Bad Request
'403':
content:
application/json:
Expand Down