Replace trust center alias with resource alias in console API
Drop the setTrustCenterAlias and removeTrustCenterAlias mutations and the alias field on Audit in favor of generic setResourceAlias and removeResourceAlias mutations backed by the resourcealias service. Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
30
pkg/server/api/console/v1/graphql/resource_alias.graphql
Normal file
30
pkg/server/api/console/v1/graphql/resource_alias.graphql
Normal file
@@ -0,0 +1,30 @@
|
||||
type ResourceAlias {
|
||||
resourceId: ID!
|
||||
alias: String!
|
||||
}
|
||||
|
||||
input SetResourceAliasInput {
|
||||
resourceId: ID!
|
||||
alias: String!
|
||||
}
|
||||
|
||||
input RemoveResourceAliasInput {
|
||||
resourceId: ID!
|
||||
}
|
||||
|
||||
type SetResourceAliasPayload {
|
||||
resourceAlias: ResourceAlias!
|
||||
}
|
||||
|
||||
type RemoveResourceAliasPayload {
|
||||
deletedResourceId: ID!
|
||||
}
|
||||
|
||||
extend type Mutation {
|
||||
setResourceAlias(
|
||||
input: SetResourceAliasInput!
|
||||
): SetResourceAliasPayload!
|
||||
removeResourceAlias(
|
||||
input: RemoveResourceAliasInput!
|
||||
): RemoveResourceAliasPayload!
|
||||
}
|
||||
Reference in New Issue
Block a user