Esempio n. 1
0
 def convert_with_links(cls, rpc_labels, limit, url=None,
                        expand=False, **kwargs):
     collection = LabelCollection()
     collection.labels = [Label.convert_with_links(p, expand)
                          for p in rpc_labels]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Esempio n. 2
0
 def convert_with_links(cls, rpc_lldp_tlvs, limit, url=None,
                        expand=False, **kwargs):
     collection = LLDPTLVCollection()
     collection.lldp_tlvs = [LLDPTLV.convert_with_links(a, expand)
                             for a in rpc_lldp_tlvs]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Esempio n. 3
0
 def convert_with_links(cls, rpc_dnss, limit, url=None,
                        expand=False, **kwargs):
     collection = DNSCollection()
     collection.idnss = [DNS.convert_with_links(p, expand)
                         for p in rpc_dnss]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
 def convert_with_links(cls, rpc_tiers, limit, url=None,
                        expand=False, **kwargs):
     collection = StorageTierCollection()
     collection.storage_tiers = [StorageTier.convert_with_links(p, expand)
                                 for p in rpc_tiers]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Esempio n. 5
0
 def convert_with_links(cls, rpc_controller_fs, limit, url=None,
                        expand=False, **kwargs):
     collection = ControllerFsCollection()
     collection.controller_fs = [ControllerFs.convert_with_links(p, expand)
                                 for p in rpc_controller_fs]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Esempio n. 6
0
 def convert_with_links(cls, rpc_sensors, limit, url=None,
                        expand=False, **kwargs):
     collection = SensorCollection()
     collection.isensors = [Sensor.convert_with_links(p, expand)
                            for p in rpc_sensors]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Esempio n. 7
0
 def convert_with_links(cls, imemorys, limit, url=None,
                        expand=False, **kwargs):
     collection = MemoryCollection()
     collection.imemorys = [
         Memory.convert_with_links(n, expand) for n in imemorys]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Esempio n. 8
0
 def convert_with_links(cls, rpc_interface_network, limit, url=None,
                        expand=False, **kwargs):
     collection = InterfaceNetworkCollection()
     collection.interface_networks = [InterfaceNetwork.convert_with_links(p, expand)
                                      for p in rpc_interface_network]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Esempio n. 9
0
 def convert_with_links(cls, rpc_routes, limit, url=None,
                        expand=False, **kwargs):
     collection = RouteCollection()
     collection.routes = [Route.convert_with_links(a, expand)
                             for a in rpc_routes]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Esempio n. 10
0
 def convert_with_links(cls, rpc_nodes, limit, url=None,
                        expand=False, **kwargs):
     collection = NodeCollection()
     collection.inodes = [Node.convert_with_links(p, expand)
                          for p in rpc_nodes]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Esempio n. 11
0
 def convert_with_links(cls, rpc_extoams, limit, url=None,
                        expand=False, **kwargs):
     collection = OAMNetworkCollection()
     collection.iextoams = [OAMNetwork.convert_with_links(p, expand)
                            for p in rpc_extoams]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Esempio n. 12
0
 def convert_with_links(cls, rpc_ptps, limit, url=None,
                        expand=False, **kwargs):
     collection = ptpCollection()
     collection.ptps = [PTP.convert_with_links(p, expand)
                         for p in rpc_ptps]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Esempio n. 13
0
 def convert_with_links(cls, rpc_drbdconfigs, limit, url=None,
                        expand=False, **kwargs):
     collection = DRBDConfigCollection()
     collection.drbdconfigs = [DRBDConfig.convert_with_links(p, expand)
                               for p in rpc_drbdconfigs]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Esempio n. 14
0
 def convert_with_links(cls, rpc_ports, limit, url=None,
                        expand=False, **kwargs):
     collection = EthernetPortCollection()
     collection.ethernet_ports = [EthernetPort.convert_with_links(p, expand)
                                 for p in rpc_ports]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Esempio n. 15
0
 def convert_with_links(cls, rpc_certificates, limit, url=None,
                        expand=False, **kwargs):
     collection = CertificateCollection()
     collection.certificates = [Certificate.convert_with_links(p, expand)
                                for p in rpc_certificates]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Esempio n. 16
0
 def convert_with_links(cls, rpc_addresses, limit, url=None,
                        expand=False, **kwargs):
     collection = AddressCollection()
     collection.addresses = [Address.convert_with_links(a, expand)
                             for a in rpc_addresses]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Esempio n. 17
0
 def convert_with_links(cls, icommunity, limit, url=None,
                        expand=False, **kwargs):
     collection = CommunityCollection()
     collection.icommunity = [Community.convert_with_links(ch, expand)
                              for ch in icommunity]
     # url = url or None
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Esempio n. 18
0
 def convert_with_links(cls, isystems, limit, url=None,
                        expand=False, **kwargs):
     collection = SystemCollection()
     collection.isystems = [System.convert_with_links(ch, expand)
                            for ch in isystems]
     # url = url or None
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Esempio n. 19
0
 def convert_with_links(cls, rpc_partitions, limit, url=None,
                        expand=False, **kwargs):
     collection = PartitionCollection()
     collection.partitions = [Partition.convert_with_links(
                                   p, expand)
                          for p in rpc_partitions]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Esempio n. 20
0
 def convert_with_links(cls, rpc_storage_file, limit, url=None,
                        expand=False, **kwargs):
     collection = StorageFileCollection()
     collection.storage_file = \
                              [StorageFile.convert_with_links(p, expand)
          for p in rpc_storage_file]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Esempio n. 21
0
 def convert_with_links(cls, rpc_storage_ceph_external, limit, url=None,
                        expand=False, **kwargs):
     collection = StorageCephExternalCollection()
     collection.storage_ceph_external = \
         [StorageCephExternal.convert_with_links(p, expand)
          for p in rpc_storage_ceph_external]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Esempio n. 22
0
 def convert_with_links(cls, rpc_ceph_mons, limit, url=None,
                        expand=False, **kwargs):
     collection = CephMonCollection()
     collection.ceph_mon = \
         [CephMon.convert_with_links(p, expand)
          for p in rpc_ceph_mons]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Esempio n. 23
0
 def convert_with_links(cls,
                        rpc_networks,
                        limit,
                        url=None,
                        expand=False,
                        **kwargs):
     collection = NetworkCollection()
     collection.networks = [
         Network.convert_with_links(n, expand) for n in rpc_networks
     ]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Esempio n. 24
0
 def convert_with_links(cls,
                        rpc_license,
                        limit,
                        url=None,
                        expand=False,
                        **kwargs):
     collection = LicenseCollection()
     collection.licenses = [
         License.convert_with_links(n, expand) for n in rpc_license
     ]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Esempio n. 25
0
 def convert_with_links(cls,
                        rpc_upgrade,
                        limit,
                        url=None,
                        expand=False,
                        **kwargs):
     collection = UpgradeCollection()
     collection.upgrades = [
         Upgrade.convert_with_links(p, expand) for p in rpc_upgrade
     ]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Esempio n. 26
0
 def convert_with_links(cls,
                        rpc_cluster,
                        limit,
                        url=None,
                        expand=False,
                        **kwargs):
     collection = ClusterCollection()
     collection.clusters = [
         Cluster.convert_with_links(p, expand) for p in rpc_cluster
     ]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Esempio n. 27
0
 def convert_with_links(cls,
                        rpc_storage_backends,
                        limit,
                        url=None,
                        expand=False,
                        **kwargs):
     collection = StorageBackendCollection()
     collection.storage_backends = \
         [StorageBackend.convert_with_links(p, expand)
          for p in rpc_storage_backends]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Esempio n. 28
0
 def convert_with_links(cls,
                        rpc_addrpool,
                        limit,
                        url=None,
                        expand=False,
                        **kwargs):
     collection = AddressPoolCollection()
     collection.addrpools = [
         AddressPool.convert_with_links(p, expand) for p in rpc_addrpool
     ]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Esempio n. 29
0
 def convert_with_links(cls,
                        rpc_ports,
                        limit,
                        url=None,
                        expand=False,
                        **kwargs):
     collection = CPUCollection()
     collection.icpus = [
         CPU.convert_with_links(p, expand) for p in rpc_ports
     ]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection
Esempio n. 30
0
 def convert_with_links(cls,
                        rpc_devices,
                        limit,
                        url=None,
                        expand=False,
                        **kwargs):
     collection = PCIDeviceCollection()
     collection.pci_devices = [
         PCIDevice.convert_with_links(d, expand) for d in rpc_devices
     ]
     collection.next = collection.get_next(limit, url=url, **kwargs)
     return collection