Did I find the right examples for you? yes no

All Samples(12)  |  Call(12)  |  Derive(0)  |  Import(0)

src/p/y/python-ironicclient-0.1.4/ironicclient/v1/node.py   python-ironicclient(Download)
 
        if not filters:
            return self._list(self._path(), "nodes")
        else:
            path = '?' + '&'.join(filters)
            return self._list(self._path(path), "nodes")
 
    def list_ports(self, node_id):
        path = "%s/ports" % node_id
        return self._list(self._path(path), "ports")
    def get(self, node_id):
        try:
            return self._list(self._path(node_id))[0]
        except IndexError:
            return None
 
    def get_by_instance_uuid(self, instance_uuid):
        path = "?instance_uuid=%s" % instance_uuid
        nodes = self._list(self._path(path), 'nodes')

src/p/y/python-ironicclient-0.1.4/ironicclient/v1/chassis.py   python-ironicclient(Download)
    def list(self):
        return self._list(self._path(), "chassis")
 
    def list_nodes(self, chassis_id):
        path = "%s/nodes" % chassis_id
        return self._list(self._path(path), "nodes")
 
    def get(self, chassis_id):
        try:
            return self._list(self._path(chassis_id))[0]

src/p/y/python-ironicclient-0.1.4/ironicclient/v1/port.py   python-ironicclient(Download)
    def list(self):
        return self._list(self._path(), "ports")
 
    def get(self, port_id):
        try:
            return self._list(self._path(port_id))[0]

src/p/y/python-ironicclient-0.1.4/ironicclient/v1/driver.py   python-ironicclient(Download)
    def list(self):
        return self._list('/v1/drivers', "drivers")
 
    def get(self, driver_name):
        try:
            return self._list('/v1/drivers/%s' % driver_name)[0]