...
1extend type Mutation {
2 """
3 addTerminalLabel add a new mapping of label to terminal
4 """
5 addTerminalLabel(terminalLabelParameters: NewTerminalLabelInput!): Boolean!
6 @hasRole(roles: [EDGE_ORG_ADMIN, EDGE_BANNER_ADMIN, EDGE_BANNER_OPERATOR])
7 """
8 addTerminalLabels add a list of labels to terminals
9 """
10 addTerminalLabels(
11 terminalId: String! @hasTerminalAccess(field: "terminalId")
12 labelEdgeIds: [String!]! @hasLabelAccess(field: "labelEdgeIds")
13 ): Boolean!
14 @hasRole(roles: [EDGE_ORG_ADMIN, EDGE_BANNER_ADMIN, EDGE_BANNER_OPERATOR])
15}
16
17extend type Query {
18 """
19 terminalLabels gets the mappings of labels to terminals
20 """
21 terminalLabels(
22 """
23 terminalLabelParameters is the optional paramaeters for get cluster label mappings
24 """
25 terminalLabelParameters: SearchTerminalLabelInput!
26 ): [TerminalLabel]!
27 @hasRole(
28 roles: [
29 EDGE_ORG_ADMIN
30 EDGE_BANNER_ADMIN
31 EDGE_BANNER_OPERATOR
32 EDGE_BANNER_VIEWER
33 ]
34 )
35}
36
37extend type Mutation {
38 """
39 deleteTerminalLabel deletes a terminal label mapping by either terminal id, terminal_label_id or both
40 """
41 deleteTerminalLabel(
42 terminalLabelParameters: SearchTerminalLabelInput!
43 ): Boolean!
44 @hasRole(roles: [EDGE_ORG_ADMIN, EDGE_BANNER_ADMIN, EDGE_BANNER_OPERATOR])
45}
View as plain text