示例#1
0
 def detail(self, req):
     """Returns a detailed list of snapshots available to manage."""
     context = req.environ['cinder.context']
     context.authorize(policy.LIST_MANAGEABLE_POLICY)
     return resource_common_manage.get_manageable_resources(
         req, True, self.volume_api.get_manageable_snapshots,
         self._list_manageable_view)
 def detail(self, req):
     """Returns a detailed list of volumes available to manage."""
     context = req.environ['cinder.context']
     context.authorize(policy.LIST_MANAGEABLE_POLICY)
     return resource_common_manage.get_manageable_resources(
         req, True, self.volume_api.get_manageable_volumes,
         self._list_manageable_view)
示例#3
0
 def detail(self, req):
     """Returns a detailed list of volumes available to manage."""
     context = req.environ['cinder.context']
     authorize_list_manageable(context)
     return resource_common_manage.get_manageable_resources(
         req, True, self.volume_api.get_manageable_volumes,
         self._list_manageable_view)
示例#4
0
 def index(self, req):
     """Returns a summary list of snapshots available to manage."""
     context = req.environ['cinder.context']
     context.authorize(policy.LIST_MANAGEABLE_POLICY)
     return resource_common_manage.get_manageable_resources(
         req, False, self.volume_api.get_manageable_snapshots,
         self._list_manageable_view)
示例#5
0
 def detail(self, req):
     """Returns a detailed list of volumes available to manage."""
     context = req.environ['cinder.context']
     authorize_list_manageable(context)
     return resource_common_manage.get_manageable_resources(
         req, True, self.volume_api.get_manageable_volumes,
         self._list_manageable_view)
示例#6
0
 def index(self, req):
     """Returns a summary list of snapshots available to manage."""
     context = req.environ["cinder.context"]
     authorize_list_manageable(context)
     return resource_common_manage.get_manageable_resources(
         req, False, self.volume_api.get_manageable_snapshots, self._list_manageable_view
     )
 def index(self, req):
     """Returns a summary list of snapshots available to manage."""
     context = req.environ['cinder.context']
     authorize_list_manageable(context)
     return resource_common_manage.get_manageable_resources(
         req, False, self.volume_api.get_manageable_snapshots,
         self._list_manageable_view)
示例#8
0
 def index(self, req):
     """Returns a summary list of volumes available to manage."""
     context = req.environ['cinder.context']
     context.authorize(policy.LIST_MANAGEABLE_POLICY)
     return resource_common_manage.get_manageable_resources(
         req, False, self.volume_api.get_manageable_volumes,
         self._list_manageable_view)