From 5452de384c8ec6bc025d6a7ca039d24333495ebd Mon Sep 17 00:00:00 2001 From: Abhinav Nekkanti <10552725+anekkanti@users.noreply.github.com> Date: Tue, 19 Mar 2024 10:32:26 -0700 Subject: [PATCH] Fix tabs in service proto file. (#18) --- .../api/cloud/cloudservice/v1/service.proto | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/temporal/api/cloud/cloudservice/v1/service.proto b/temporal/api/cloud/cloudservice/v1/service.proto index 00f1815..61fc67d 100644 --- a/temporal/api/cloud/cloudservice/v1/service.proto +++ b/temporal/api/cloud/cloudservice/v1/service.proto @@ -10,14 +10,14 @@ import "google/api/annotations.proto"; service CloudService { // Gets all known users rpc GetUsers(GetUsersRequest) returns (GetUsersResponse) { - option (google.api.http) = { + option (google.api.http) = { get: "/api/v1/users", }; } // Get a user rpc GetUser(GetUserRequest) returns (GetUserResponse) { - option (google.api.http) = { + option (google.api.http) = { get: "/api/v1/users/{user_id}", }; } @@ -26,30 +26,30 @@ service CloudService { rpc CreateUser(CreateUserRequest) returns (CreateUserResponse) { option (google.api.http) = { post: "/api/v1/users", - body: "*" + body: "*" }; } // Update a user rpc UpdateUser(UpdateUserRequest) returns (UpdateUserResponse) { - option (google.api.http) = { + option (google.api.http) = { post: "/api/v1/users/{user_id}", - body: "*" + body: "*" }; } // Delete a user rpc DeleteUser(DeleteUserRequest) returns (DeleteUserResponse) { - option (google.api.http) = { + option (google.api.http) = { delete: "/api/v1/users/{user_id}", }; } // Set a user's access to a namespace rpc SetUserNamespaceAccess(SetUserNamespaceAccessRequest) returns (SetUserNamespaceAccessResponse) { - option (google.api.http) = { + option (google.api.http) = { post: "/api/v1/namespaces/{namespace}/users/{user_id}/access", - body: "*" + body: "*" }; } @@ -62,59 +62,59 @@ service CloudService { // Create a new namespace rpc CreateNamespace (CreateNamespaceRequest) returns (CreateNamespaceResponse) { - option (google.api.http) = { + option (google.api.http) = { post: "/api/v1/namespaces", - body: "*" + body: "*" }; } // Get all namespaces rpc GetNamespaces (GetNamespacesRequest) returns (GetNamespacesResponse) { - option (google.api.http) = { + option (google.api.http) = { get: "/api/v1/namespaces", }; } // Get a namespace rpc GetNamespace (GetNamespaceRequest) returns (GetNamespaceResponse) { - option (google.api.http) = { + option (google.api.http) = { get: "/api/v1/namespaces/{namespace}", }; } // Update a namespace rpc UpdateNamespace (UpdateNamespaceRequest) returns (UpdateNamespaceResponse) { - option (google.api.http) = { + option (google.api.http) = { post: "/api/v1/namespaces/{namespace}", - body: "*" + body: "*" }; } // Rename an existing customer search attribute rpc RenameCustomSearchAttribute (RenameCustomSearchAttributeRequest) returns (RenameCustomSearchAttributeResponse) { - option (google.api.http) = { + option (google.api.http) = { post: "/api/v1/namespaces/{namespace}/rename-custom-search-attribute", - body: "*" + body: "*" }; } // Delete a namespace rpc DeleteNamespace (DeleteNamespaceRequest) returns (DeleteNamespaceResponse) { - option (google.api.http) = { + option (google.api.http) = { delete: "/api/v1/namespaces/{namespace}", }; } // Get all regions rpc GetRegions (GetRegionsRequest) returns (GetRegionsResponse) { - option (google.api.http) = { + option (google.api.http) = { get: "/api/v1/regions", }; } // Get a region rpc GetRegion (GetRegionRequest) returns (GetRegionResponse) { - option (google.api.http) = { + option (google.api.http) = { get: "/api/v1/regions/{region}", }; }