예제 #1
0
 def convert_with_links(cls, service_groups, limit, url=None,
                        expand=False, **kwargs):
     collection = ServiceGroupCollection()
     collection.service_groups = [
                 ServiceGroup.convert_with_links(ch, expand)
                 for ch in service_groups]
     url = url or None
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
예제 #2
0
 def convert_with_links(cls, nodes, limit, url=None,
                        expand=False, **kwargs):
     collection = NodesCollection()
     collection.nodes = [
         Nodes.convert_with_links(ch, expand)
         for ch in nodes]
     url = url or None
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
예제 #3
0
 def convert_with_links(cls, sm_sda, limit, url=None,
                        expand=False, **kwargs):
     collection = SmSdaCollection()
     collection.sm_sda = [
         SmSda.convert_with_links(ch, expand)
         for ch in sm_sda]
     url = url or None
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection