...
1extend type Query {
2 """
3 operatorInterventionRoleMappings is used to view all oi mappings between edge roles and privileges
4 """
5 operatorInterventionRoleMappings(
6 """
7 roles is an optional parameter that allows filtering the output to a specific
8 set of roles
9 """
10 roles: [String!]
11 ): [OiRoleMapping]
12 @hasRole(
13 roles: [
14 EDGE_OI_ADMIN
15 EDGE_SUPER_USER
16 EDGE_L4
17 EDGE_L3
18 EDGE_L2
19 EDGE_L1
20 ]
21 )
22
23 """
24 operatorInterventionCommands is used to view all commands available to edge users. optional parameter commands will be used to retrieve just those specific commands.
25 """
26 operatorInterventionCommands(
27 commands: [OperatorInterventionCommandInput!]
28 ): [Command]
29 @hasRole(
30 roles: [
31 EDGE_OI_ADMIN
32 EDGE_SUPER_USER
33 EDGE_L4
34 EDGE_L3
35 EDGE_L2
36 EDGE_L1
37 ]
38 )
39
40 """
41 operatorInterventionPrivileges is used to view all privileges availabe to edge users. optional parameter privileges will be used to retrieve just those specific privileges.
42 """
43 operatorInterventionPrivileges(
44 privileges: [OperatorInterventionPrivilegeInput!]
45 ): [Privilege!]
46 @hasRole(
47 roles: [
48 EDGE_OI_ADMIN
49 EDGE_SUPER_USER
50 EDGE_L4
51 EDGE_L3
52 EDGE_L2
53 EDGE_L1
54 ]
55 )
56
57 """
58 operatorInterventionRules is used to view all commands availabe to the edge users. optional parameter privileges will be used to retrieve rules associated to a specific privilege.
59 """
60 operatorInterventionRules(
61 privileges: [OperatorInterventionPrivilegeInput!]
62 ): [Rule!]
63 @hasRole(
64 roles: [
65 EDGE_OI_ADMIN
66 EDGE_SUPER_USER
67 EDGE_L4
68 EDGE_L3
69 EDGE_L2
70 EDGE_L1
71 ]
72 )
73
74}
75
76# Mutation returns generated.MutationResolver implementation.
77extend type Mutation {
78 """
79 updateOperatorInterventionRoleMappings allows adding new role mappings for the oi solution
80 """
81 updateOperatorInterventionRoleMappings(
82 roleMappings: [UpdateOperatorInterventionRoleMappingInput]
83 ): UpdateOperatorInterventionRoleMappingResponse
84 @hasRole(
85 roles: [
86 EDGE_OI_ADMIN
87 ]
88 )
89
90 """
91 deleteOperatorInterventionRoleMapping allows deleting role mappings for the oi solution
92 """
93 deleteOperatorInterventionRoleMapping(
94 mapping: DeleteOperatorInterventionMappingInput!
95 ): DeleteOperatorInterventionResponse
96 @hasRole(
97 roles: [
98 EDGE_OI_ADMIN
99 ]
100 )
101
102 """
103 Add commands
104 """
105 createOperatorInterventionCommands(
106 commands: [OperatorInterventionCommandInput!]
107 ): CreateOperatorInterventionCommandResponse!
108 @hasRole(
109 roles: [
110 EDGE_OI_ADMIN
111 ]
112 )
113
114 """
115 Delete a command
116 """
117 deleteOperatorInterventionCommand(
118 command: OperatorInterventionCommandInput!
119 ): DeleteOperatorInterventionCommandResponse!
120 @hasRole(
121 roles: [
122 EDGE_OI_ADMIN
123 ]
124 )
125
126 """
127 Delete a privilege
128 """
129 deleteOperatorInterventionPrivilege(
130 privilege: OperatorInterventionPrivilegeInput!
131 ): DeleteOperatorInterventionPrivilegeResponse!
132 @hasRole(
133 roles: [
134 EDGE_OI_ADMIN
135 ]
136 )
137
138 """
139 Mutation to add a privilege.
140 """
141 createOperatorInterventionPrivileges(
142 privileges: [OperatorInterventionPrivilegeInput!]
143 ): CreateOperatorInterventionPrivilegeResponse!
144 @hasRole(
145 roles: [
146 EDGE_OI_ADMIN
147 ]
148 )
149
150 """
151 Mutation to update or add a rule.
152 """
153 updateOperatorInterventionRules(
154 rules: [UpdateOperatorInterventionRuleInput!]
155 ): UpdateOperatorInterventionRuleResponse!
156 @hasRole(
157 roles: [
158 EDGE_OI_ADMIN
159 ]
160 )
161
162 """
163 Mutation to delete a rule.
164 """
165 deleteCommandFromOperatorInterventionRule(
166 rule: DeleteOperatorInterventionRuleInput!
167 ): DeleteOperatorInterventionRuleResponse!
168 @hasRole(
169 roles: [
170 EDGE_OI_ADMIN
171 ]
172 )
173
174}
View as plain text