693aba163a697e14a29a028336ced7b97eefc82a
[vfc/gvnfm/vnflcm.git] / lcm / lcm / nf / serializers / vnfc_cp_info.py
1
2 from rest_framework import serializers
3
4 from cp_protocol_info import CpProtocolInfoSerializer
5
6
7 class VnfcCpInfoSerializer(serializers.Serializer):
8     id = serializers.CharField(
9         help_text="Identifier of the external CP instance and the related information instance.",
10         max_length=255,
11         required=True,
12         allow_null=False,
13         allow_blank=False)
14     cpdId = serializers.CharField(
15         help_text="Identifier of the external CPD, VnfExtCpd, in the VNFD.",
16         max_length=255,
17         required=True,
18         allow_null=False,
19         allow_blank=False)
20     vnfExtCpId = serializers.CharField(
21         help_text="When the VNFC CP is exposed as external CP of the VNF, the identifier of this external VNF CP.",
22         required=False,
23         max_length=255,
24         allow_null=True,
25         allow_blank=True)
26     cpProtocolInfo = CpProtocolInfoSerializer(
27         help_text="Network protocol information for this CP.",
28         many=True,
29         required=False,
30         allow_null=True)
31     vnfLinkPortId = serializers.CharField(
32         help_text="Identifier of the vnfLinkPorts structure in the vnfVirtualLinkResourceInfo structure.",
33         max_length=255,
34         required=True,
35         allow_null=False,
36         allow_blank=False)