Exemplo n.º 1
0
 def get_all_by_project(
     cls, context, project_id, search_opts, marker=None, limit=None, sort_keys=None, sort_dirs=None, offset=None
 ):
     snapshots = db.snapshot_get_all_by_project(
         context, project_id, search_opts, marker, limit, sort_keys, sort_dirs, offset
     )
     return base.obj_make_list(context, cls(context), objects.Snapshot, snapshots, expected_attrs=["metadata"])
Exemplo n.º 2
0
 def get_all_by_project(cls, context, project_id):
     snapshots = db.snapshot_get_all_by_project(context, project_id)
     return base.obj_make_list(context,
                               cls(context),
                               objects.Snapshot,
                               snapshots,
                               expected_attrs=['metadata'])
Exemplo n.º 3
0
 def get_all_by_project(cls, context, project_id, search_opts, marker=None,
                        limit=None, sort_keys=None, sort_dirs=None,
                        offset=None):
     snapshots = db.snapshot_get_all_by_project(
         context, project_id, search_opts, marker, limit, sort_keys,
         sort_dirs, offset)
     expected_attrs = Snapshot._get_expected_attrs(context)
     return base.obj_make_list(context, cls(context), objects.Snapshot,
                               snapshots, expected_attrs=expected_attrs)
Exemplo n.º 4
0
 def get_all_by_project(cls, context, project_id, search_opts):
     snapshots = db.snapshot_get_all_by_project(context, project_id,
                                                search_opts)
     return base.obj_make_list(context, cls(context), objects.Snapshot,
                               snapshots, expected_attrs=['metadata'])
Exemplo n.º 5
0
 def get_all_by_project(cls, context, project_id):
     snapshots = db.snapshot_get_all_by_project(context, project_id)
     return base.obj_make_list(context, cls(context), objects.Snapshot, snapshots, expected_attrs=["metadata"])