def list(self, request, context):
    (params, metadata) = self.parse_request(request, context)
    with self.locator.get_service('NetworkTypeService', metadata) as ntype_service:
        (ntype_vos, total_count) = ntype_service.list(params)
        return self.locator.get_info('NetworkTypesInfo', ntype_vos, total_count, minimal=self.get_minimal(params))
def list(self, request, context):
    (params, metadata) = self.parse_request(request, context)
    with self.locator.get_service('NetworkTypeService', metadata) as ntype_service:
        (ntype_vos, total_count) = ntype_service.list(params)
        return self.locator.get_info('NetworkTypesInfo', ntype_vos, total_count, minimal=self.get_minimal(params))