Remove old-style pathing (#353)
This commit is contained in:
1 parent
c1171e0cc6
commit
41ed95bdec
32 files changed
+631
-9985
No files matched your search
@@ -20,10 +20,6 @@ service AccountService {
|
||||
option (google.api.http) = {
|
||||
get: "/v1/accounts/{id}"
|
||||
response_body: "item"
|
||||
additional_bindings: {
|
||||
get: "/v1/scopes/*/auth-methods/*/accounts/{id}"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Gets a single Account"
|
||||
@@ -37,10 +33,7 @@ service AccountService {
|
||||
rpc ListAccounts(ListAccountsRequest) returns (ListAccountsResponse) {
|
||||
option (google.api.http) = {
|
||||
get: "/v1/accounts"
|
||||
additional_bindings: {
|
||||
get: "/v1/scopes/*/auth-methods/{auth_method_id}/accounts"
|
||||
}
|
||||
};
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Lists all accounts in a specific auth method."
|
||||
};
|
||||
@@ -56,11 +49,6 @@ service AccountService {
|
||||
post: "/v1/accounts"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
additional_bindings: {
|
||||
post: "/v1/scopes/*/auth-methods/{item.auth_method_id}/accounts"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Creates a single account in the provided auth method."
|
||||
@@ -80,11 +68,6 @@ service AccountService {
|
||||
patch: "/v1/accounts/{id}"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
additional_bindings: {
|
||||
patch: "/v1/scopes/*/auth-methods/*/accounts/{id}"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Updates an account."
|
||||
@@ -99,9 +82,6 @@ service AccountService {
|
||||
rpc DeleteAccount(DeleteAccountRequest) returns (DeleteAccountResponse) {
|
||||
option (google.api.http) = {
|
||||
delete: "/v1/accounts/{id}"
|
||||
additional_bindings: {
|
||||
delete: "/v1/scopes/*/auth-methods/*/accounts/{id}"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Deletes an account."
|
||||
@@ -116,11 +96,6 @@ service AccountService {
|
||||
post: "/v1/accounts/{id}:set-password"
|
||||
body: "*"
|
||||
response_body: "item"
|
||||
additional_bindings: {
|
||||
post: "/v1/scopes/*/auth-methods/*/accounts/{id}:set-password"
|
||||
body: "*"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Sets the password for the provided account."
|
||||
@@ -135,11 +110,6 @@ service AccountService {
|
||||
post: "/v1/accounts/{id}:change-password"
|
||||
body: "*"
|
||||
response_body: "item"
|
||||
additional_bindings: {
|
||||
post: "/v1/scopes/*/auth-methods/*/accounts/{id}:change-password"
|
||||
body: "*"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Sets the password for the provided account."
|
||||
|
||||
@@ -18,10 +18,6 @@ service AuthMethodService {
|
||||
option (google.api.http) = {
|
||||
get: "/v1/auth-methods/{id}"
|
||||
response_body: "item"
|
||||
additional_bindings: {
|
||||
get: "/v1/scopes/*/auth-methods/{id}"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Gets a single AuthMethod"
|
||||
@@ -35,9 +31,6 @@ service AuthMethodService {
|
||||
rpc ListAuthMethods(ListAuthMethodsRequest) returns (ListAuthMethodsResponse) {
|
||||
option (google.api.http) = {
|
||||
get: "/v1/auth-methods"
|
||||
additional_bindings: {
|
||||
get: "/v1/scopes/{scope_id}/auth-methods"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Lists all AuthMethods"
|
||||
@@ -54,11 +47,6 @@ service AuthMethodService {
|
||||
post: "/v1/auth-methods"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
additional_bindings: {
|
||||
post: "/v1/scopes/{item.scope_id}/auth-methods"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Creates a single AuthMethod"
|
||||
@@ -78,11 +66,6 @@ service AuthMethodService {
|
||||
patch: "/v1/auth-methods/{id}"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
additional_bindings: {
|
||||
patch: "/v1/scopes/*/auth-methods/{id}"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Updates an AuthMethod"
|
||||
@@ -97,9 +80,6 @@ service AuthMethodService {
|
||||
rpc DeleteAuthMethod(DeleteAuthMethodRequest) returns (DeleteAuthMethodResponse) {
|
||||
option (google.api.http) = {
|
||||
delete: "/v1/auth-methods/{id}"
|
||||
additional_bindings: {
|
||||
delete: "/v1/scopes/*/auth-methods/{id}"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Deletes an AuthMethod"
|
||||
|
||||
@@ -16,11 +16,6 @@ service AuthenticationService {
|
||||
post: "/v1/auth-methods/{auth_method_id}:authenticate"
|
||||
body: "*"
|
||||
response_body: "item"
|
||||
additional_bindings: {
|
||||
post: "/v1/scopes/*/auth-methods/{auth_method_id}:authenticate"
|
||||
body: "*"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Authenticate a user to an scope and retrieve an authentication token."
|
||||
|
||||
@@ -18,10 +18,6 @@ service AuthTokenService {
|
||||
option (google.api.http) = {
|
||||
get: "/v1/auth-tokens/{id}"
|
||||
response_body: "item"
|
||||
additional_bindings: {
|
||||
get: "/v1/scopes/*/auth-tokens/{id}"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Gets a single AuthToken"
|
||||
@@ -35,9 +31,6 @@ service AuthTokenService {
|
||||
rpc ListAuthTokens(ListAuthTokensRequest) returns (ListAuthTokensResponse) {
|
||||
option (google.api.http) = {
|
||||
get: "/v1/auth-tokens"
|
||||
additional_bindings: {
|
||||
get: "/v1/scopes/{scope_id}/auth-tokens"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Lists all AuthTokens"
|
||||
@@ -52,9 +45,6 @@ service AuthTokenService {
|
||||
rpc DeleteAuthToken(DeleteAuthTokenRequest) returns (DeleteAuthTokenResponse) {
|
||||
option (google.api.http) = {
|
||||
delete: "/v1/auth-tokens/{id}"
|
||||
additional_bindings: {
|
||||
delete: "/v1/scopes/*/auth-tokens/{id}"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Deletes an AuthTokens"
|
||||
|
||||
@@ -21,10 +21,6 @@ service GroupService {
|
||||
option (google.api.http) = {
|
||||
get: "/v1/groups/{id}"
|
||||
response_body: "item"
|
||||
additional_bindings: {
|
||||
get: "/v1/scopes/*/groups/{id}"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Gets a single Group"
|
||||
@@ -38,9 +34,6 @@ service GroupService {
|
||||
rpc ListGroups(ListGroupsRequest) returns (ListGroupsResponse) {
|
||||
option (google.api.http) = {
|
||||
get: "/v1/groups"
|
||||
additional_bindings: {
|
||||
get: "/v1/scopes/{scope_id}/groups"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Lists all Groups"
|
||||
@@ -57,11 +50,6 @@ service GroupService {
|
||||
post: "/v1/groups"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
additional_bindings: {
|
||||
post: "/v1/scopes/{item.scope_id}/groups"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Creates a single Group"
|
||||
@@ -81,11 +69,6 @@ service GroupService {
|
||||
patch: "/v1/groups/{id}"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
additional_bindings: {
|
||||
patch: "/v1/scopes/*/groups/{id}"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Updates a Group"
|
||||
@@ -100,9 +83,6 @@ service GroupService {
|
||||
rpc DeleteGroup(DeleteGroupRequest) returns (DeleteGroupResponse) {
|
||||
option (google.api.http) = {
|
||||
delete: "/v1/groups/{id}"
|
||||
additional_bindings: {
|
||||
delete: "/v1/scopes/*/groups/{id}"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Deletes a Group"
|
||||
@@ -118,11 +98,6 @@ service GroupService {
|
||||
post: "/v1/groups/{id}:add-members"
|
||||
body: "*"
|
||||
response_body: "item"
|
||||
additional_bindings: {
|
||||
post: "/v1/scopes/*/groups/{id}:add-members"
|
||||
body: "*"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Adds Users as members to a Group"
|
||||
@@ -139,11 +114,6 @@ service GroupService {
|
||||
post: "/v1/groups/{id}:set-members"
|
||||
body: "*"
|
||||
response_body: "item"
|
||||
additional_bindings: {
|
||||
post: "/v1/scopes/*/groups/{id}:set-members"
|
||||
body: "*"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Set a Group's members to exactly the list of provided in the request, removing any members that are not specified."
|
||||
@@ -159,11 +129,6 @@ service GroupService {
|
||||
post: "/v1/groups/{id}:remove-members"
|
||||
body: "*"
|
||||
response_body: "item"
|
||||
additional_bindings: {
|
||||
post: "/v1/scopes/*/groups/{id}:remove-members"
|
||||
body: "*"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Removes the specified members from a Group."
|
||||
|
||||
@@ -23,10 +23,6 @@ service HostCatalogService {
|
||||
option (google.api.http) = {
|
||||
get: "/v1/host-catalogs/{id}"
|
||||
response_body: "item"
|
||||
additional_bindings: {
|
||||
get: "/v1/scopes/*/host-catalogs/{id}"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Gets a single HostCatalog"
|
||||
@@ -42,9 +38,6 @@ service HostCatalogService {
|
||||
rpc ListHostCatalogs(ListHostCatalogsRequest) returns (ListHostCatalogsResponse) {
|
||||
option (google.api.http) = {
|
||||
get: "/v1/host-catalogs"
|
||||
additional_bindings: {
|
||||
get: "/v1/scopes/{scope_id}/host-catalogs"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Gets a list of HostCatalogs"
|
||||
@@ -61,11 +54,6 @@ service HostCatalogService {
|
||||
post: "/v1/host-catalogs"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
additional_bindings: {
|
||||
post: "/v1/scopes/{item.scope_id}/host-catalogs"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Creates a HostCatalog"
|
||||
@@ -83,11 +71,6 @@ service HostCatalogService {
|
||||
patch: "/v1/host-catalogs/{id}"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
additional_bindings: {
|
||||
patch: "/v1/scopes/*/host-catalogs/{id}"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Updates a HostCatalog"
|
||||
@@ -102,9 +85,6 @@ service HostCatalogService {
|
||||
rpc DeleteHostCatalog(DeleteHostCatalogRequest) returns (DeleteHostCatalogResponse) {
|
||||
option (google.api.http) = {
|
||||
delete: "/v1/host-catalogs/{id}"
|
||||
additional_bindings: {
|
||||
delete: "/v1/scopes/*/host-catalogs/{id}"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Deletes a HostCatalog"
|
||||
|
||||
@@ -18,10 +18,6 @@ service HostService {
|
||||
option (google.api.http) = {
|
||||
get: "/v1/hosts/{id}"
|
||||
response_body: "item"
|
||||
additional_bindings: {
|
||||
get: "/v1/scopes/*/host-catalogs/*/hosts/{id}"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Gets a single Host"
|
||||
@@ -36,9 +32,6 @@ service HostService {
|
||||
rpc ListHosts(ListHostsRequest) returns (ListHostsResponse) {
|
||||
option (google.api.http) = {
|
||||
get: "/v1/hosts"
|
||||
additional_bindings: {
|
||||
get: "/v1/scopes/*/host-catalogs/{host_catalog_id}/hosts"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "List all Hosts for the specified catalog"
|
||||
@@ -55,11 +48,6 @@ service HostService {
|
||||
post: "/v1/hosts"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
additional_bindings: {
|
||||
post: "/v1/scopes/*/host-catalogs/{item.host_catalog_id}/hosts"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Create a single Host"
|
||||
@@ -79,11 +67,6 @@ service HostService {
|
||||
patch: "/v1/hosts/{id}"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
additional_bindings: {
|
||||
patch: "/v1/scopes/*/host-catalogs/*/hosts/{id}"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Update a Host"
|
||||
@@ -98,9 +81,6 @@ service HostService {
|
||||
rpc DeleteHost(DeleteHostRequest) returns (DeleteHostResponse) {
|
||||
option (google.api.http) = {
|
||||
delete: "/v1/hosts/{id}"
|
||||
additional_bindings: {
|
||||
delete: "/v1/scopes/*/host-catalogs/*/hosts/{id}"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Delete a Host"
|
||||
|
||||
@@ -28,10 +28,6 @@ service HostSetService {
|
||||
option (google.api.http) = {
|
||||
get: "/v1/host-sets/{id}"
|
||||
response_body: "item"
|
||||
additional_bindings {
|
||||
get: "/v1/scopes/*/host-catalogs/*/host-sets/{id}"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Get a single HostSet"
|
||||
@@ -46,9 +42,6 @@ service HostSetService {
|
||||
rpc ListHostSets(ListHostSetsRequest) returns (ListHostSetsResponse) {
|
||||
option (google.api.http) = {
|
||||
get: "/v1/host-sets"
|
||||
additional_bindings {
|
||||
get: "/v1/scopes/*/host-catalogs/{host_catalog_id}/host-sets"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "List all HostSets under the specific catalog"
|
||||
@@ -66,11 +59,6 @@ service HostSetService {
|
||||
post: "/v1/host-sets"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
additional_bindings {
|
||||
post: "/v1/scopes/*/host-catalogs/{item.host_catalog_id}/host-sets"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Create a HostSet"
|
||||
@@ -90,11 +78,6 @@ service HostSetService {
|
||||
patch: "/v1/host-sets/{id}"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
additional_bindings: {
|
||||
patch: "/v1/scopes/*/host-catalogs/*/host-sets/{id}"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Update a HostSet"
|
||||
@@ -109,9 +92,6 @@ service HostSetService {
|
||||
rpc DeleteHostSet(DeleteHostSetRequest) returns (DeleteHostSetResponse) {
|
||||
option (google.api.http) = {
|
||||
delete: "/v1/host-sets/{id}"
|
||||
additional_bindings: {
|
||||
delete: "/v1/scopes/*/host-catalogs/*/host-sets/{id}"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Delete a HostSet"
|
||||
@@ -129,11 +109,6 @@ service HostSetService {
|
||||
post: "/v1/host-sets/{id}:add-hosts"
|
||||
body: "*"
|
||||
response_body: "item"
|
||||
additional_bindings: {
|
||||
post: "/v1/scopes/*/host-catalogs/*/host-sets/{id}:add-hosts"
|
||||
body: "*"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Adds existing Hosts to a Host Set."
|
||||
@@ -152,11 +127,6 @@ service HostSetService {
|
||||
post: "/v1/host-sets/{id}:set-hosts"
|
||||
body: "*"
|
||||
response_body: "item"
|
||||
additional_bindings: {
|
||||
post: "/v1/scopes/*/host-catalogs/*/host-sets/{id}:set-hosts"
|
||||
body: "*"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Sets the Hosts on the Host Set."
|
||||
@@ -173,11 +143,6 @@ service HostSetService {
|
||||
post: "/v1/host-sets/{id}:remove-hosts"
|
||||
body: "*"
|
||||
response_body: "item"
|
||||
additional_bindings: {
|
||||
post: "/v1/scopes/*/host-catalogs/*/host-sets/{id}:remove-hosts"
|
||||
body: "*"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Removes Hosts from the Host Set."
|
||||
|
||||
@@ -19,10 +19,6 @@ service RoleService {
|
||||
option (google.api.http) = {
|
||||
get: "/v1/roles/{id}"
|
||||
response_body: "item"
|
||||
additional_bindings {
|
||||
get: "/v1/scopes/*/roles/{id}"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Gets a single Role"
|
||||
@@ -36,9 +32,6 @@ service RoleService {
|
||||
rpc ListRoles(ListRolesRequest) returns (ListRolesResponse) {
|
||||
option (google.api.http) = {
|
||||
get: "/v1/roles"
|
||||
additional_bindings {
|
||||
get: "/v1/scopes/{scope_id}/roles"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Lists all Roles"
|
||||
@@ -55,11 +48,6 @@ service RoleService {
|
||||
post: "/v1/roles"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
additional_bindings {
|
||||
post: "/v1/scopes/{item.scope_id}/roles"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Creates a single Role"
|
||||
@@ -79,11 +67,6 @@ service RoleService {
|
||||
patch: "/v1/roles/{id}"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
additional_bindings {
|
||||
patch: "/v1/scopes/*/roles/{id}"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Updates a Role"
|
||||
@@ -98,9 +81,6 @@ service RoleService {
|
||||
rpc DeleteRole(DeleteRoleRequest) returns (DeleteRoleResponse) {
|
||||
option (google.api.http) = {
|
||||
delete: "/v1/roles/{id}"
|
||||
additional_bindings {
|
||||
delete: "/v1/scopes/*/roles/{id}"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Deletes a Role"
|
||||
@@ -116,11 +96,6 @@ service RoleService {
|
||||
post: "/v1/roles/{id}:add-principals"
|
||||
body: "*"
|
||||
response_body: "item"
|
||||
additional_bindings {
|
||||
post: "/v1/scopes/*/roles/{id}:add-principals"
|
||||
body: "*"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Adds Users and/or Groups to a Role"
|
||||
@@ -138,11 +113,6 @@ service RoleService {
|
||||
post: "/v1/roles/{id}:set-principals"
|
||||
body: "*"
|
||||
response_body: "item"
|
||||
additional_bindings {
|
||||
post: "/v1/scopes/*/roles/{id}:set-principals"
|
||||
body: "*"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Set Users and/or Groups to a Role, removing any principals that are not specified in the request."
|
||||
@@ -159,11 +129,6 @@ service RoleService {
|
||||
post: "/v1/roles/{id}:remove-principals"
|
||||
body: "*"
|
||||
response_body: "item"
|
||||
additional_bindings {
|
||||
post: "/v1/scopes/*/roles/{id}:remove-principals"
|
||||
body: "*"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Removes the specified Users and/or Groups from a Role."
|
||||
@@ -179,11 +144,6 @@ service RoleService {
|
||||
post: "/v1/roles/{id}:add-grants"
|
||||
body: "*"
|
||||
response_body: "item"
|
||||
additional_bindings {
|
||||
post: "/v1/scopes/*/roles/{id}:add-grants"
|
||||
body: "*"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Adds grants to a role"
|
||||
@@ -200,11 +160,6 @@ service RoleService {
|
||||
post: "/v1/roles/{id}:set-grants"
|
||||
body: "*"
|
||||
response_body: "item"
|
||||
additional_bindings {
|
||||
post: "/v1/scopes/*/roles/{id}:set-grants"
|
||||
body: "*"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Set grants for a role, removing any grants that are not specified in the request."
|
||||
@@ -221,11 +176,6 @@ service RoleService {
|
||||
post: "/v1/roles/{id}:remove-grants"
|
||||
body: "*"
|
||||
response_body: "item"
|
||||
additional_bindings {
|
||||
post: "/v1/scopes/*/roles/{id}:remove-grants"
|
||||
body: "*"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Removes grants from a role."
|
||||
|
||||
@@ -19,10 +19,6 @@ service UserService {
|
||||
option (google.api.http) = {
|
||||
get: "/v1/users/{id}"
|
||||
response_body: "item"
|
||||
additional_bindings: {
|
||||
get: "/v1/scopes/*/users/{id}"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Gets a single User"
|
||||
@@ -36,9 +32,6 @@ service UserService {
|
||||
rpc ListUsers(ListUsersRequest) returns (ListUsersResponse) {
|
||||
option (google.api.http) = {
|
||||
get: "/v1/users"
|
||||
additional_bindings: {
|
||||
get: "/v1/scopes/{scope_id}/users"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Lists all Users"
|
||||
@@ -55,11 +48,6 @@ service UserService {
|
||||
post: "/v1/users"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
additional_bindings: {
|
||||
post: "/v1/scopes/{item.scope_id}/users"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Creates a single User"
|
||||
@@ -79,11 +67,6 @@ service UserService {
|
||||
patch: "/v1/users/{id}"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
additional_bindings: {
|
||||
patch: "/v1/scopes/*/users/{id}"
|
||||
body: "item"
|
||||
response_body: "item"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Updates a User"
|
||||
@@ -98,9 +81,6 @@ service UserService {
|
||||
rpc DeleteUser(DeleteUserRequest) returns (DeleteUserResponse) {
|
||||
option (google.api.http) = {
|
||||
delete: "/v1/users/{id}"
|
||||
additional_bindings: {
|
||||
delete: "/v1/scopes/*/users/{id}"
|
||||
}
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
summary: "Deletes a User"
|
||||
|
||||
Reference in new issue
Block a user