Debian Codegraph @

cloudkitty_tempest_plugin/config.py

raw
1 # Copyright 2017 Objectif Libre
2 # All Rights Reserved.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License"); you may
5 # not use this file except in compliance with the License. You may obtain
6 # a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 # License for the specific language governing permissions and limitations
14 # under the License.
15
16 from oslo_config import cfg
17
18 rating_group = cfg.OptGroup(name='rating_plugin',
19 title='Rating Service Options')
20
21 RatingGroup = [
22 cfg.StrOpt('service_name',
23 default='rating',
24 help="Service name of the Rating service."),
25 cfg.StrOpt('user_name',
26 default='cloudkitty',
27 help="User name for the Rating service."),
28 cfg.StrOpt('endpoint_type',
29 default='publicURL',
30 choices=['public', 'admin', 'internal',
31 'publicURL', 'adminURL', 'internalURL'],
32 help="The endpoint type to use for the rating service."),
33 ]