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"`
11 ExpiresAt string `json:"expires_at"`
12 Scopes []string `json:"scopes"`
15 // APIClientAuthorizationList is an arvados#apiClientAuthorizationList resource.
16 type APIClientAuthorizationList struct {
17 Items []APIClientAuthorization `json:"items"`
20 func (aca APIClientAuthorization) TokenV2() string {
21 return "v2/" + aca.UUID + "/" + aca.APIToken