From 750299f48fe67a6ac1f900e1b374f92ab351016f Mon Sep 17 00:00:00 2001 From: hkang1 Date: Tue, 19 Nov 2024 11:55:23 -0700 Subject: [PATCH] fix: add back in token code that is needed --- proto/src/determined/api/v1/api.proto | 35 +++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/proto/src/determined/api/v1/api.proto b/proto/src/determined/api/v1/api.proto index e6d8993426e..fc5a464674c 100644 --- a/proto/src/determined/api/v1/api.proto +++ b/proto/src/determined/api/v1/api.proto @@ -2842,4 +2842,39 @@ service Determined { tags: "Alpha" }; } + + // Create and get a user's access token + rpc PostAccessToken(PostAccessTokenRequest) + returns (PostAccessTokenResponse) { + option (google.api.http) = { + post: "/api/v1/tokens", + body: "*" + }; + option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + tags: "Tokens" + }; + } + + // Get a list of all access token records. + rpc GetAccessTokens(GetAccessTokensRequest) + returns (GetAccessTokensResponse) { + option (google.api.http) = { + get: "/api/v1/tokens" + }; + option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + tags: "Tokens" + }; + } + + // Patch an access token's mutable fields. + rpc PatchAccessToken(PatchAccessTokenRequest) + returns (PatchAccessTokenResponse) { + option (google.api.http) = { + patch: "/api/v1/tokens/{token_id}" + body: "*" + }; + option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + tags: "Tokens" + }; + } }