Raritan PX2/PX3 JSON-RPC API: pdu-json-rpc-api/idl/OutletGroupManager.idl Source File

Raritan PX2/PX3 JSON-RPC API

OutletGroupManager.idl
1 /* SPDX-License-Identifier: BSD-3-Clause */
2 /*
3 * Copyright 2018 Raritan Inc. All rights reserved.
4 */
5
6 #ifndef __PDUMODEL_OUTLETGROUPMANAGER_IDL__
7 #define __PDUMODEL_OUTLETGROUPMANAGER_IDL__
8
9 #include <Outlet.idl>
10 #include <OutletGroup.idl>
11
12 module pdumodel {
13
14 /** Main PDU interface */
15 interface OutletGroupManager_1_0_1 {
16 constant int ERR_INVALID_ARGUMENT = 1;
17 constant int ERR_NO_SUCH_ID = 2;
18 constant int ERR_MAX_GROUP_COUNT_REACHED = 3;
19
20 valueobject GroupCreatedEvent extends event.UserEvent {
21 int id;
22 int uniqueId;
23 OutletGroup_1_0_1 group;
24 OutletGroup_1_0_1.Settings settings;
25 };
26
27 valueobject GroupDeletedEvent extends event.UserEvent {
28 int id;
29 int uniqueId;
30 OutletGroup_1_0_1.Settings settings;
31 };
32
33 int createGroup(in string name, in vector<Outlet_2_1_5> members, out OutletGroup_1_0_1 group);
34
35 map<int, OutletGroup_1_0_1> getAllGroups();
36 int getGroup(in int id, out OutletGroup_1_0_1 group);
37
38 int deleteGroup(in int id);
39 };
40 }
41
42 #endif
pdumodel::OutletGroup_1_0_1
Main PDU interface.
Definition: OutletGroup.idl:15
pdumodel::OutletGroup_1_0_1::Settings
Definition: OutletGroup.idl:23
pdumodel::OutletGroupManager_1_0_1
Main PDU interface.
Definition: OutletGroupManager.idl:15
pdumodel
PDU Model.
Definition: Ade.idl:12