From 2f9aac868868be8c757f9e0c5c97bdbea5edb977 Mon Sep 17 00:00:00 2001 From: Alex Tideman Date: Fri, 27 Jun 2025 09:33:28 -0500 Subject: [PATCH] Add http routes for add/remove search attributes ;5u --- temporal/api/operatorservice/v1/service.proto | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/temporal/api/operatorservice/v1/service.proto b/temporal/api/operatorservice/v1/service.proto index bcf5ab04b..34927601a 100644 --- a/temporal/api/operatorservice/v1/service.proto +++ b/temporal/api/operatorservice/v1/service.proto @@ -25,12 +25,26 @@ service OperatorService { // Returns ALREADY_EXISTS status code if a Search Attribute with any of the specified names already exists // Returns INTERNAL status code with temporal.api.errordetails.v1.SystemWorkflowFailure in Error Details if registration process fails, rpc AddSearchAttributes (AddSearchAttributesRequest) returns (AddSearchAttributesResponse) { + option (google.api.http) = { + post: "/cluster/namespaces/{namespace}/search-attributes" + body: "*" + additional_bindings { + post: "/api/v1/namespaces/{namespace}/search-attributes" + body: "*" + } + }; } // RemoveSearchAttributes removes custom search attributes. // // Returns NOT_FOUND status code if a Search Attribute with any of the specified names is not registered rpc RemoveSearchAttributes (RemoveSearchAttributesRequest) returns (RemoveSearchAttributesResponse) { + option (google.api.http) = { + delete: "/cluster/namespaces/{namespace}/search-attributes" + additional_bindings { + delete: "/api/v1/namespaces/{namespace}/search-attributes" + } + }; } // ListSearchAttributes returns comprehensive information about search attributes.