Skip to content

Commit

Permalink
[infra-proxy-service] Update Role API
Browse files Browse the repository at this point in the history
Signed-off-by: Vivek Singh <[email protected]>
  • Loading branch information
Vivek Singh committed Jun 1, 2020
1 parent 770a03f commit f9cbc8d
Show file tree
Hide file tree
Showing 15 changed files with 1,056 additions and 202 deletions.
234 changes: 136 additions & 98 deletions api/external/infra_proxy/infra_proxy.pb.go

Large diffs are not rendered by default.

158 changes: 158 additions & 0 deletions api/external/infra_proxy/infra_proxy.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions api/external/infra_proxy/infra_proxy.pb.policy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions api/external/infra_proxy/infra_proxy.proto
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@ service InfraProxy {
option (chef.automate.api.iam.policy).resource = "infra:infraServers:{server_id}:orgs:{org_id}:roles";
option (chef.automate.api.iam.policy).action = "infra:infraServers:update";
};
rpc UpdateRole (infra_proxy.request.UpdateRole) returns (infra_proxy.response.Role) {
option (google.api.http).put = "/api/v0/infra/servers/{server_id}/orgs/{org_id}/roles/{name}";
option (google.api.http).body = "*";
option (chef.automate.api.iam.policy).resource = "infra:infraServers:{server_id}:orgs:{org_id}:roles";
option (chef.automate.api.iam.policy).action = "infra:infraServers:update";
};

rpc GetClients (infra_proxy.request.Clients) returns (infra_proxy.response.Clients) {
option (google.api.http).get = "/api/v0/infra/servers/{server_id}/orgs/{org_id}/clients";
Expand Down
88 changes: 88 additions & 0 deletions api/external/infra_proxy/infra_proxy.swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f9cbc8d

Please sign in to comment.