Skip to content

Commit

Permalink
Fix tabs in service proto file. (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
anekkanti authored Mar 19, 2024
1 parent 4fff2fd commit 5452de3
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions temporal/api/cloud/cloudservice/v1/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
};
}
Expand All @@ -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: "*"
};
}

Expand All @@ -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}",
};
}
Expand Down

0 comments on commit 5452de3

Please sign in to comment.