1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: Apache-2.0
7 // APIClientAuthorization is an arvados#apiClientAuthorization resource.
8 type APIClientAuthorization struct {
9 UUID string `json:"uuid"`
10 APIToken string `json:"api_token"`
13 // APIClientAuthorizationList is an arvados#apiClientAuthorizationList resource.
14 type APIClientAuthorizationList struct {
15 Items []APIClientAuthorization `json:"items"`
18 func (aca APIClientAuthorization) TokenV2() string {
19 return "v2/" + aca.UUID + "/" + aca.APIToken