extend type Query { """ operatorInterventionRoleMappings is used to view all oi mappings between edge roles and privileges """ operatorInterventionRoleMappings( """ roles is an optional parameter that allows filtering the output to a specific set of roles """ roles: [String!] ): [OiRoleMapping] @hasRole( roles: [ EDGE_OI_ADMIN EDGE_SUPER_USER EDGE_L4 EDGE_L3 EDGE_L2 EDGE_L1 ] ) """ operatorInterventionCommands is used to view all commands available to edge users. optional parameter commands will be used to retrieve just those specific commands. """ operatorInterventionCommands( commands: [OperatorInterventionCommandInput!] ): [Command] @hasRole( roles: [ EDGE_OI_ADMIN EDGE_SUPER_USER EDGE_L4 EDGE_L3 EDGE_L2 EDGE_L1 ] ) """ operatorInterventionPrivileges is used to view all privileges availabe to edge users. optional parameter privileges will be used to retrieve just those specific privileges. """ operatorInterventionPrivileges( privileges: [OperatorInterventionPrivilegeInput!] ): [Privilege!] @hasRole( roles: [ EDGE_OI_ADMIN EDGE_SUPER_USER EDGE_L4 EDGE_L3 EDGE_L2 EDGE_L1 ] ) """ 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. """ operatorInterventionRules( privileges: [OperatorInterventionPrivilegeInput!] ): [Rule!] @hasRole( roles: [ EDGE_OI_ADMIN EDGE_SUPER_USER EDGE_L4 EDGE_L3 EDGE_L2 EDGE_L1 ] ) } # Mutation returns generated.MutationResolver implementation. extend type Mutation { """ updateOperatorInterventionRoleMappings allows adding new role mappings for the oi solution """ updateOperatorInterventionRoleMappings( roleMappings: [UpdateOperatorInterventionRoleMappingInput] ): UpdateOperatorInterventionRoleMappingResponse @hasRole( roles: [ EDGE_OI_ADMIN ] ) """ deleteOperatorInterventionRoleMapping allows deleting role mappings for the oi solution """ deleteOperatorInterventionRoleMapping( mapping: DeleteOperatorInterventionMappingInput! ): DeleteOperatorInterventionResponse @hasRole( roles: [ EDGE_OI_ADMIN ] ) """ Add commands """ createOperatorInterventionCommands( commands: [OperatorInterventionCommandInput!] ): CreateOperatorInterventionCommandResponse! @hasRole( roles: [ EDGE_OI_ADMIN ] ) """ Delete a command """ deleteOperatorInterventionCommand( command: OperatorInterventionCommandInput! ): DeleteOperatorInterventionCommandResponse! @hasRole( roles: [ EDGE_OI_ADMIN ] ) """ Delete a privilege """ deleteOperatorInterventionPrivilege( privilege: OperatorInterventionPrivilegeInput! ): DeleteOperatorInterventionPrivilegeResponse! @hasRole( roles: [ EDGE_OI_ADMIN ] ) """ Mutation to add a privilege. """ createOperatorInterventionPrivileges( privileges: [OperatorInterventionPrivilegeInput!] ): CreateOperatorInterventionPrivilegeResponse! @hasRole( roles: [ EDGE_OI_ADMIN ] ) """ Mutation to update or add a rule. """ updateOperatorInterventionRules( rules: [UpdateOperatorInterventionRuleInput!] ): UpdateOperatorInterventionRuleResponse! @hasRole( roles: [ EDGE_OI_ADMIN ] ) """ Mutation to delete a rule. """ deleteCommandFromOperatorInterventionRule( rule: DeleteOperatorInterventionRuleInput! ): DeleteOperatorInterventionRuleResponse! @hasRole( roles: [ EDGE_OI_ADMIN ] ) }