Merge branch 'wtsi/python-api-timeout' refs #13542
[arvados.git] / sdk / go / arvados / api_client_authorization.go
index b7f9db67d0559524cc7859bdc0a39a303dd9cd5e..ec0239eb37bf0a45bb715b35eab757c6c94850d5 100644 (file)
@@ -1,3 +1,7 @@
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: Apache-2.0
+
 package arvados
 
 // APIClientAuthorization is an arvados#apiClientAuthorization resource.
@@ -10,3 +14,7 @@ type APIClientAuthorization struct {
 type APIClientAuthorizationList struct {
        Items []APIClientAuthorization `json:"items"`
 }
+
+func (aca APIClientAuthorization) TokenV2() string {
+       return "v2/" + aca.UUID + "/" + aca.APIToken
+}