summaryrefslogtreecommitdiffstats
path: root/core/sliapi/provider/pom.xml
blob: d4d7873f70d4c5070611b76f3c7f217740c3e435 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>org.onap.ccsdk.parent</groupId>
        <artifactId>binding-parent</artifactId>
        <version>2.2.3</version>
        <relativePath/>
    </parent>

    <groupId>org.onap.ccsdk.sli.core</groupId>
    <artifactId>sliapi-provider</artifactId>
    <version>1.3.3</version>
    <packaging>bundle</packaging>

    <name>ccsdk-sli-core :: ${project.artifactId}</name>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.onap.ccsdk.sli.core</groupId>
                <artifactId>dblib-provider</artifactId>
                <version>${project.version}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.opendaylight.mdsal</groupId>
            <artifactId>mdsal-binding-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.opendaylight.mdsal</groupId>
            <artifactId>mdsal-binding-dom-adapter</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.opendaylight.mdsal</groupId>
            <artifactId>yang-binding</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.opendaylight.controller</groupId>
            <artifactId>sal-common-util</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.opendaylight.yangtools</groupId>
            <artifactId>yang-data-impl</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.osgi</groupId>
            <artifactId>org.osgi.core</artifactId>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>org.onap.ccsdk.sli.core</groupId>
            <artifactId>sliapi-model-yang</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.onap.ccsdk.sli.core</groupId>
            <artifactId>sli-common</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.onap.ccsdk.sli.core</groupId>
            <artifactId>sli-provider</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.onap.ccsdk.sli.core</groupId>
            <artifactId>sli-provider-base</artifactId>
            <version>${project.version}</version>
        </dependency>

        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.derby</groupId>
            <artifactId>derby</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <environmentVariables>
                        <MYSQL_USER>dummyUser</MYSQL_USER>
                        <MYSQL_PASSWORD>dummyPassword</MYSQL_PASSWORD>
                        <MYSQL_DATABASE>dummyDatabase</MYSQL_DATABASE>
                    </environmentVariables>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
pan class="p">) statusDescription = serializers.CharField( help_text="Description of job", required=False, allow_null=True) errorCode = serializers.CharField( help_text="Error code of job", required=False, allow_blank=True) responseId = serializers.IntegerField( help_text="Response index of job", required=True, allow_null=False) class JobDescriptorSerializer(serializers.Serializer): status = serializers.CharField( help_text="Status of job", required=True, allow_null=False) progress = serializers.IntegerField( help_text="Progress of job", required=True, allow_null=False) statusDescription = serializers.CharField( help_text="Description of job", required=False, allow_null=True) errorCode = serializers.CharField( help_text="Error code of job", required=False, allow_blank=True) responseId = serializers.IntegerField( help_text="Response index of job", required=True, allow_null=False) responseHistoryList = JobHistorySerializer( help_text="History of job", many=True) class JobQueryRespSerializer(serializers.Serializer): jobId = serializers.CharField( help_text="UUID of job", required=True, allow_null=False) responseDescriptor = JobDescriptorSerializer( help_text="Descriptor of job", required=False) class GrantVmlistSerializer(serializers.Serializer): VMNumber = serializers.CharField( help_text="VMNumber", max_length=255, required=False, allow_null=True) VMFlavor = serializers.CharField( help_text="VMFlavor", max_length=255, required=False, allow_null=True) vimid = serializers.CharField( help_text="vimid", max_length=255, required=True, allow_blank=True) tenant = serializers.CharField( help_text="tenant", max_length=255, required=False, allow_blank=True) class GrantReqSerializer(serializers.Serializer): nfvoid = serializers.CharField( help_text="nfvoid", max_length=255, required=True, allow_null=True) vnfmid = serializers.CharField( help_text="vnfmid", max_length=255, required=True, allow_null=True) vimid = serializers.CharField( help_text="vimid", max_length=255, required=True, allow_null=True) tenant = serializers.CharField( help_text="tenant", max_length=255, required=False, allow_blank=True) vnfinstanceid = serializers.CharField( help_text="vnfinstanceid", max_length=255, required=False, allow_null=True) operationright = serializers.CharField( help_text="operationright", max_length=255, required=False, allow_null=True) vmlist = GrantVmlistSerializer( help_text='vmlist', required=False, many=True) exvimidlist = serializers.ListSerializer( help_text='exvimidlist', child=serializers.CharField(allow_null=True), required=False) class GrantRespSerializer(serializers.Serializer): vimid = serializers.CharField( help_text="vimid", max_length=255, required=True, allow_null=True) tenant = serializers.CharField( help_text="tenant", max_length=255, required=True, allow_null=True) class VMIDlistSerializer(serializers.Serializer): VMID = serializers.CharField( help_text="VMID", max_length=255, required=False, allow_null=True) VMName = serializers.CharField( help_text="VMName", max_length=255, required=False, allow_null=True) vimid = serializers.CharField( help_text="vimid", max_length=255, required=False, allow_null=True) tenant = serializers.CharField( help_text="tenant", max_length=255, required=False, allow_null=True) class NotifyVmlistSerializer(serializers.Serializer): VMNumber = serializers.CharField( help_text="VMNumber", max_length=255, required=False, allow_null=True) vdutype = serializers.CharField( help_text="vdutype", max_length=255, required=False, allow_null=True) VMFlavor = serializers.CharField( help_text="VMFlavor", max_length=255, required=False, allow_null=True) VMIDlist = serializers.ListSerializer( help_text='VMIDlist', child=VMIDlistSerializer(help_text='VMIDlist', required=True, allow_null=True), required=False, allow_null=True) class NotifyReqSerializer(serializers.Serializer): nfvoid = serializers.CharField( help_text="nfvoid", max_length=255, required=True, allow_null=True) vnfmid = serializers.CharField( help_text="vnfmid", max_length=255, required=True, allow_null=True) vimid = serializers.CharField( help_text="vimid", max_length=255, required=True, allow_null=True) timestamp = serializers.CharField( help_text="timestamp", max_length=255, required=False, allow_blank=True) vnfinstanceid = serializers.CharField( help_text="vnfinstanceid", max_length=255, required=False, allow_null=True) eventtype = serializers.CharField( help_text="eventtype", max_length=255, required=False, allow_null=True) vmlist = NotifyVmlistSerializer( help_text='vmlist', required=False, many=True) extension = serializers.DictField( help_text="extension", child=serializers.DictField(allow_null=True), required=False, allow_null=True) affectedcp = serializers.ListSerializer( help_text='affectedcp', child=serializers.DictField(allow_null=True), required=False) affectedvirtuallink = serializers.ListSerializer( help_text='affectedvirtuallink', child=serializers.DictField(allow_null=True), required=False) class ScaleReqSerializer(serializers.Serializer): type = serializers.CharField( help_text="type", max_length=255, required=True, allow_null=True) aspectId = serializers.CharField( help_text="aspectId", max_length=255, required=True, allow_null=True) numberOfSteps = serializers.CharField( help_text="numberOfSteps", max_length=255, required=True, allow_null=True) additionalParam = serializers.DictField( help_text="additionalParam", child=serializers.DictField(allow_null=True), required=False, allow_null=True) class AffectedvmSerializer(serializers.Serializer): extention = serializers.CharField( help_text="extention", max_length=255, required=True, allow_blank=True) vmid = serializers.CharField( help_text="vmid", max_length=255, required=True, allow_null=True) changtype = serializers.CharField( help_text="changtype", max_length=255, required=True, allow_null=True) vduid = serializers.CharField( help_text="vduid", max_length=255, required=True, allow_null=True) vmname = serializers.CharField( help_text="vmname", max_length=255, required=True, allow_null=True) flavour = serializers.DictField( help_text="flavour", child=serializers.CharField(allow_blank=True), required=False, allow_null=True) class HealReqSerializer(serializers.Serializer): action = serializers.CharField( help_text="action", max_length=255, required=True, allow_null=False) lifecycleoperation = serializers.CharField( help_text="lifecycleoperation", max_length=255, required=True, allow_null=False) isgrace = serializers.CharField( help_text="isgrace", max_length=255, required=False, allow_null=True) affectedvm = serializers.ListSerializer( help_text='affectedvm', child=AffectedvmSerializer(help_text='affectedvm', required=True, allow_null=True), required=True, allow_null=True) class InstScaleHealRespSerializer(serializers.Serializer): jobId = serializers.CharField( help_text="jobid", max_length=255, required=True, allow_null=True) vnfInstanceId = serializers.CharField( help_text="nfInstanceId", max_length=255, required=True, allow_null=True)