"Fossies" - the Fresh Open Source Software Archive

Member "tacker-2.0.0/tacker/plugins/common_services/common_services_plugin.py" (16 Oct 2019, 1789 Bytes) of package /linux/misc/openstack/tacker-2.0.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. For more information about "common_services_plugin.py" see the Fossies "Dox" file reference documentation.

    1 # Copyright 2016 Brocade Communications System, Inc.
    2 # All Rights Reserved.
    3 #
    4 #
    5 #    Licensed under the Apache License, Version 2.0 (the "License"); you may
    6 #    not use this file except in compliance with the License. You may obtain
    7 #    a copy of the License at
    8 #
    9 #         http://www.apache.org/licenses/LICENSE-2.0
   10 #
   11 #    Unless required by applicable law or agreed to in writing, software
   12 #    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
   13 #    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
   14 #    License for the specific language governing permissions and limitations
   15 #    under the License.
   16 
   17 from tacker.common import log
   18 from tacker.db.common_services import common_services_db_plugin
   19 
   20 
   21 class CommonServicesPlugin(common_services_db_plugin.CommonServicesPluginDb):
   22     """Reference plugin for COMMONSERVICES extension
   23 
   24     Implements the COMMONSERVICES extension and defines public facing APIs for
   25     common utility operations.
   26     """
   27 
   28     supported_extension_aliases = ['CommonServices']
   29 
   30     def __init__(self):
   31         super(CommonServicesPlugin, self).__init__()
   32 
   33     @log.log
   34     def get_event(self, context, event_id, fields=None):
   35         return super(CommonServicesPlugin, self).get_event(context, event_id,
   36                                                       fields)
   37 
   38     @log.log
   39     def get_events(self, context, filters=None, fields=None, sorts=None,
   40                    limit=None, marker_obj=None, page_reverse=False):
   41         return super(CommonServicesPlugin, self).get_events(context, filters,
   42                                                        fields, sorts, limit,
   43                                                        marker_obj,
   44                                                        page_reverse)