Update project maturity status
[multicloud/azure.git] / azure / aria / aria-extension-cloudify / src / aria / extensions / aria_extension_tosca / __init__.py
1 # Licensed to the Apache Software Foundation (ASF) under one or more
2 # contributor license agreements.  See the NOTICE file distributed with
3 # this work for additional information regarding copyright ownership.
4 # The ASF licenses this file to You under the Apache License, Version 2.0
5 # (the "License"); you may not use this file except in compliance with
6 # the License.  You may obtain 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,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 import os.path
17
18 from aria import extension
19
20 from .simple_v1_0 import ToscaSimplePresenter1_0
21 from .simple_nfv_v1_0 import ToscaSimpleNfvPresenter1_0
22
23
24 @extension.parser
25 class ParserExtensions(object):
26
27     @staticmethod
28     def presenter_class():
29         return ToscaSimplePresenter1_0, ToscaSimpleNfvPresenter1_0
30
31     @staticmethod
32     def specification_package():
33         return 'aria_extension_tosca'
34
35     @staticmethod
36     def specification_url():
37         return {
38             'yaml-1.1': 'http://yaml.org',
39             'tosca-simple-1.0': 'http://docs.oasis-open.org/tosca/TOSCA-Simple-Profile-YAML/v1.0/'
40                                 'cos01/TOSCA-Simple-Profile-YAML-v1.0-cos01.html',
41             'tosca-simple-nfv-1.0': 'http://docs.oasis-open.org/tosca/tosca-nfv/v1.0/'
42                                     'tosca-nfv-v1.0.html'
43         }
44
45     @staticmethod
46     def uri_loader_prefix():
47         the_dir = os.path.dirname(__file__)
48         return os.path.join(the_dir, 'profiles')
49
50
51 MODULES = (
52     'simple_v1_0',
53     'simple_nfv_v1_0')
54
55 __all__ = (
56     'MODULES',)