Debian Codegraph @

neutron_lib/api/definitions/vpn_flavors.py

raw
1 # Copyright 2017 Eayun, Inc.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License"); you may
4 # not use this file except in compliance with the License. You may obtain
5 # a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 # License for the specific language governing permissions and limitations
13 # under the License.
14 #
15
16 from neutron_lib.api.definitions import flavors
17 from neutron_lib.api.definitions import vpn
18
19 FLAVOR_ID = 'flavor_id'
20
21 ALIAS = 'vpn-flavors'
22 IS_SHIM_EXTENSION = False
23 IS_STANDARD_ATTR_EXTENSION = False
24 NAME = 'VPN Service Flavor Extension'
25 DESCRIPTION = 'Flavor support for vpnservices.'
26 UPDATED_TIMESTAMP = '2017-04-19T00:00:00-00:00'
27 API_PREFIX = '/vpn'
28 RESOURCE_NAME = vpn.VPNSERVICE
29 COLLECTION_NAME = vpn.VPNSERVICES
30 RESOURCE_ATTRIBUTE_MAP = {
31 COLLECTION_NAME: {
32 FLAVOR_ID: {'allow_post': True, 'allow_put': False,
33 'validate': {'type:uuid_or_none': None},
34 'is_visible': True, 'default': None}
35 },
36 }
37 SUB_RESOURCE_ATTRIBUTE_MAP = {}
38 ACTION_MAP = {}
39 REQUIRED_EXTENSIONS = [vpn.ALIAS]
40 OPTIONAL_EXTENSIONS = [flavors.ALIAS]
41 ACTION_STATUS = {}