Beispiel #1
0
 def convert_with_links(services, limit, url=None, fields=None, **kwargs):
     collection = ServiceCollection()
     collection.services = [
         Service.convert_with_links(n, fields=fields) for n in services
     ]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Beispiel #2
0
 def convert_with_links(plugins, limit, url=None, fields=None, **kwargs):
     collection = PluginCollection()
     collection.plugins = [
         Plugin.convert_with_links(n, fields=fields) for n in plugins
     ]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Beispiel #3
0
 def convert_with_links(ports, limit, url=None, fields=None, **kwargs):
     collection = PortCollection()
     collection.ports = [
         Port.convert_with_links(n, fields=fields) for n in ports
     ]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Beispiel #4
0
 def convert_with_links(fleets, limit, url=None, fields=None, **kwargs):
     collection = FleetCollection()
     collection.fleets = [
         Fleet.convert_with_links(n, fields=fields) for n in fleets
     ]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Beispiel #5
0
 def convert_with_links(boards, limit, url=None, fields=None, **kwargs):
     collection = BoardCollection()
     collection.boards = [
         Board.convert_with_links(n, fields=fields) for n in boards
     ]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Beispiel #6
0
 def convert_with_locates(nodes, limit, url=None, expand=False, **kwargs):
     collection = NodeCollection()
     collection.nodes = [
         Node.convert_with_locates(n, expand) for n in nodes
     ]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
 def convert_with_links(EnabledWebservices, limit, url=None, fields=None,
                        **kwargs):
     collection = EnabledWebserviceCollection()
     collection.EnabledWebservices = [
         EnabledWebservice.convert_with_links(n, fields=fields)
         for n in EnabledWebservices]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Beispiel #8
0
 def convert_with_links(fleets, limit, url=None, fields=None, **kwargs):
     collection = FleetCollection()
     collection.fleets = [Fleet.convert_with_links(n, fields=fields)
                          for n in fleets]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Beispiel #9
0
 def convert_with_links(plugins, limit, url=None, fields=None, **kwargs):
     collection = PluginCollection()
     collection.plugins = [Plugin.convert_with_links(n, fields=fields)
                           for n in plugins]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Beispiel #10
0
 def convert_with_links(boards, limit, url=None, fields=None, **kwargs):
     collection = BoardCollection()
     collection.boards = [Board.convert_with_links(n, fields=fields)
                          for n in boards]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Beispiel #11
0
 def convert_with_links(ports, limit, url=None, fields=None, **kwargs):
     collection = PortCollection()
     collection.ports = [Port.convert_with_links(n, fields=fields)
                         for n in ports]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection