Skip to content

Commit

Permalink
fix: depreciate policy action role APIs which can be accessible by IDs (
Browse files Browse the repository at this point in the history
goto#25)

feat: remove unnecessary API for roles, policies and actions
  • Loading branch information
krtkvrm authored May 24, 2023
1 parent 0f123d0 commit a1795af
Showing 1 changed file with 0 additions and 63 deletions.
63 changes: 0 additions & 63 deletions gotocompany/shield/v1beta1/shield.proto
Original file line number Diff line number Diff line change
Expand Up @@ -180,27 +180,6 @@ service ShieldService {
};
}

rpc GetRole(GetRoleRequest) returns (GetRoleResponse) {
option (google.api.http) = {
get: "/v1beta1/roles/{id}",
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Role";
summary: "Get Role by ID";
};
}

rpc UpdateRole(UpdateRoleRequest) returns (UpdateRoleResponse) {
option (google.api.http) = {
put: "/v1beta1/roles/{id}",
body: "body";
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Role";
summary: "Update Role by ID";
};
}

// Organizations
rpc ListOrganizations(ListOrganizationsRequest) returns (ListOrganizationsResponse) {
option (google.api.http) = {
Expand Down Expand Up @@ -330,27 +309,6 @@ service ShieldService {
};
}

rpc GetAction(GetActionRequest) returns (GetActionResponse) {
option (google.api.http) = {
get: "/v1beta1/actions/{id}",
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Action";
summary: "Get Action by ID";
};
}

rpc UpdateAction(UpdateActionRequest) returns (UpdateActionResponse) {
option (google.api.http) = {
put: "/v1beta1/actions/{id}",
body: "body"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Action";
summary: "Update Action by ID";
};
}

// Namespaces
rpc ListNamespaces(ListNamespacesRequest) returns (ListNamespacesResponse) {
option (google.api.http) = {
Expand Down Expand Up @@ -416,27 +374,6 @@ service ShieldService {
};
}

rpc GetPolicy(GetPolicyRequest) returns (GetPolicyResponse) {
option (google.api.http) = {
get: "/v1beta1/policies/{id}",
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Policy";
summary: "Get Policy by ID";
};
}

rpc UpdatePolicy(UpdatePolicyRequest) returns (UpdatePolicyResponse) {
option (google.api.http) = {
put: "/v1beta1/policies/{id}",
body: "body"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Policy";
summary: "Update Policy by ID";
};
}

// Relations--------------------------------------------------------------------
rpc ListRelations(ListRelationsRequest) returns (ListRelationsResponse) {
option (google.api.http) = {
Expand Down

0 comments on commit a1795af

Please sign in to comment.