def get_resources(cls):
        """Returns Ext Resources."""
        exts = []
        parent = dict(member_name="agent",
                      collection_name="agents")
        controller = resource.Resource(HostingDeviceSchedulerController(),
                                       cb_faults.FAULT_MAP)
        exts.append(extensions.ResourceExtension(CFG_AGENT_HOSTING_DEVICES,
                                                 controller, parent))
        parent = dict(member_name=ciscohostingdevicemanager.DEVICE,
                      collection_name=ciscohostingdevicemanager.DEVICES)
        controller = resource.Resource(
            CfgAgentsHandlingHostingDeviceController(), cb_faults.FAULT_MAP)
        exts.append(extensions.ResourceExtension(HOSTING_DEVICE_CFG_AGENTS,
                                                 controller, parent,
                                                 PATH_PREFIX))
        return exts
def get_resources ( cls ) : exts = [ ] parent = dict ( member_name = "agent" , collection_name = "agents" ) controller = resource . Resource ( HostingDeviceSchedulerController ( ) , cb_faults . FAULT_MAP ) exts . append ( extensions . ResourceExtension ( CFG_AGENT_HOSTING_DEVICES , controller , parent ) ) parent = dict ( member_name = ciscohostingdevicemanager . DEVICE , collection_name = ciscohostingdevicemanager . DEVICES ) controller = resource . Resource ( CfgAgentsHandlingHostingDeviceController ( ) , cb_faults . FAULT_MAP ) exts . append ( extensions . ResourceExtension ( HOSTING_DEVICE_CFG_AGENTS , controller , parent , PATH_PREFIX ) ) return exts
Returns Ext Resources.