Tweak test script no issue #
[arvados.git] / src / main / java / org / arvados / client / api / client / KeepServicesApiClient.java
1 /*
2  * Copyright (C) The Arvados Authors. All rights reserved.
3  *
4  * SPDX-License-Identifier: AGPL-3.0 OR Apache-2.0
5  *
6  */
7
8 package org.arvados.client.api.client;
9
10 import org.arvados.client.api.model.KeepService;
11 import org.arvados.client.api.model.KeepServiceList;
12 import org.arvados.client.config.ConfigProvider;
13 import org.slf4j.Logger;
14
15 public class KeepServicesApiClient extends BaseStandardApiClient<KeepService, KeepServiceList> {
16
17     private static final String RESOURCE = "keep_services";
18     private final Logger log = org.slf4j.LoggerFactory.getLogger(KeepServicesApiClient.class);
19
20     public KeepServicesApiClient(ConfigProvider config) {
21         super(config);
22     }
23
24     public KeepServiceList accessible() {
25         log.debug("Get list of accessible {}", getType().getSimpleName());
26         return callForList(getNoArgumentMethodRequest("accessible"));
27     }
28
29     @Override
30     String getResource() {
31         return RESOURCE;
32     }
33
34     @Override
35     Class<KeepService> getType() {
36         return KeepService.class;
37     }
38
39     @Override
40     Class<KeepServiceList> getListType() {
41         return KeepServiceList.class;
42     }
43 }