Fixing Group SAML Links API for the show and remove methods (#3474)

This commit is contained in:
Justin Dalrymple 2023-11-22 13:38:55 -05:00 committed by GitHub
parent 8501ca5191
commit ed67b46d08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,12 +48,11 @@ export class GroupSAMLLinks<C extends boolean = false> extends BaseResource<C> {
samlGroupName: string,
options?: Sudo & ShowExpanded<E>,
): Promise<GitlabAPIResponse<void, C, E, void>> {
return RequestHelper.del()(this, endpoint`groups/${groupId}/saml_group_links`, {
searchParams: {
samlGroupName,
},
...options,
});
return RequestHelper.del()(
this,
endpoint`groups/${groupId}/saml_group_links/${samlGroupName}`,
options,
);
}
show<E extends boolean = false>(
@ -63,11 +62,8 @@ export class GroupSAMLLinks<C extends boolean = false> extends BaseResource<C> {
): Promise<GitlabAPIResponse<SAMLGroupSchema, C, E, void>> {
return RequestHelper.get<SAMLGroupSchema>()(
this,
endpoint`groups/${groupId}/saml_group_links`,
{
samlGroupName,
...options,
},
endpoint`groups/${groupId}/saml_group_links/${samlGroupName}`,
options,
);
}
}