1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { AxiosInstance } from "axios";
6 import { CommonResourceService } from "services/common-service/common-resource-service";
7 import { UserResource } from "models/user";
8 import { ApiActions } from "services/api/api-actions";
10 export class UserService extends CommonResourceService<UserResource> {
11 constructor(serverApi: AxiosInstance, actions: ApiActions) {
12 super(serverApi, "users", actions);
15 activate(uuid: string) {
16 return CommonResourceService.defaultResponse(
18 .post(this.resourceType + `/${uuid}/activate`),
23 unsetup(uuid: string) {
24 return CommonResourceService.defaultResponse(
26 .post(this.resourceType + `/${uuid}/unsetup`),