help_text="VNF software version to match.",
max_length=255,
required=True,
- allow_null=False)
+ allow_null=False
+ )
vnfdVersions = serializers.ListField(
child=serializers.CharField(),
help_text="Match VNF packages that contain "
"VNF products with certain VNFD versions",
required=False,
- allow_null=False)
+ allow_null=False
+ )
class vnfProductsSerializer(serializers.Serializer):
help_text="Name of the VNF product to match.",
max_length=255,
required=True,
- allow_null=False)
+ allow_null=False
+ )
versions = VersionSerializer(
help_text="match VNF packages that contain "
"VNF products with certain versions",
help_text="Name of the VNFprovider to match.",
max_length=255,
required=True,
- allow_null=False)
+ allow_null=False
+ )
vnfProducts = vnfProductsSerializer(
help_text="match VNF packages that contain "
"VNF products with certain product names, "
class PkgmNotificationsFilter(serializers.Serializer):
notificationTypes = serializers.ListField(
- child=serializers.ChoiceField(required=True, choices=NOTIFICATION_TYPES),
+ child=serializers.ChoiceField(
+ required=True,
+ choices=NOTIFICATION_TYPES
+ ),
help_text="Match particular notification types",
allow_null=False,
- required=False)
+ required=False
+ )
vnfProductsFromProviders = vnfProductsProvidersSerializer(
help_text="Match VNF packages that contain "
"VNF products from certain providers.",
help_text="Match VNF packages with a VNFD identifier"
"listed in the attribute",
required=False,
- allow_null=False)
+ allow_null=False
+ )
vnfPkgId = serializers.ListField(
child=serializers.UUIDField(),
help_text="Match VNF packages with a VNFD identifier"
"listed in the attribute",
required=False,
- allow_null=False)
+ allow_null=False
+ )
operationalState = serializers.ListField(
- child=serializers.ChoiceField(required=True, choices=PackageOperationalStateType),
+ child=serializers.ChoiceField(
+ required=True,
+ choices=PackageOperationalStateType
+ ),
help_text="Operational state of the VNF package.",
allow_null=False,
- required=False)
+ required=False
+ )
usageState = serializers.ListField(
- child=serializers.ChoiceField(required=True, choices=PackageUsageStateType),
+ child=serializers.ChoiceField(
+ required=True,
+ choices=PackageUsageStateType
+ ),
help_text="Operational state of the VNF package.",
allow_null=False,
- required=False)
+ required=False
+ )
help_text="Identifier of the software image.",
required=True,
allow_null=False,
- allow_blank=False)
+ allow_blank=False
+ )
name = serializers.CharField(
help_text="Name of the software image.",
required=True,
allow_null=True,
- allow_blank=False)
+ allow_blank=False
+ )
provider = serializers.CharField(
help_text="Provider of the software image.",
required=True,
allow_null=True,
- allow_blank=False)
+ allow_blank=False
+ )
version = serializers.CharField(
help_text="Version of the software image.",
required=True,
allow_null=True,
- allow_blank=False)
+ allow_blank=False
+ )
checksum = ChecksumSerializer(
help_text="Checksum of the software image file.",
required=True,
- allow_null=False, )
+ allow_null=False
+ )
containerFormat = serializers.ChoiceField(
help_text="terminationType: Indicates whether forceful or graceful termination is requested.",
choices=["AKI", "AMI", "ARI", "BARE", "DOCKER", "OVA", "OVF"],
required=True,
- allow_null=True)
+ allow_null=True
+ )
diskFormat = serializers.ChoiceField(
help_text="Disk format of a software image is the format of the underlying disk image.",
choices=["AKI", "AMI", "ARI", "ISO", "QCOW2", "RAW", "VDI", "VHD", "VHDX", "VMDK"],
required=True,
- allow_null=True)
+ allow_null=True
+ )
createdAt = serializers.DateTimeField(
help_text="Time when this software image was created.",
required=True,
format=None,
- input_formats=None)
+ input_formats=None
+ )
minDisk = serializers.IntegerField(
help_text="The minimal disk for this software image in bytes.",
required=True,
- allow_null=True)
+ allow_null=True
+ )
minRam = serializers.IntegerField(
help_text="The minimal RAM for this software image in bytes.",
required=True,
)
userMetadata = serializers.DictField(
help_text="User-defined data.",
- child=serializers.CharField(help_text="KeyValue Pairs", allow_blank=True),
+ child=serializers.CharField(
+ help_text="KeyValue Pairs",
+ allow_blank=True
+ ),
required=False,
- allow_null=True)
+ allow_null=True
+ )
imagePath = serializers.CharField(
help_text="Path in the VNF package.",
required=True,
allow_null=True,
- allow_blank=False)
+ allow_blank=False
+ )
help_text="URI of the referenced resource.",
required=True,
allow_null=False,
- allow_blank=False)
+ allow_blank=False
+ )
class Meta:
ref_name = 'VNF_SUBSCRIPTION_LINKSERIALIZER'
self = LinkSerializer(
help_text="URI of this resource.",
required=True,
- allow_null=False)
+ allow_null=False
+ )
class PkgmSubscriptionRequestSerializer(serializers.Serializer):
help_text="Callback URI to send"
"the notification",
required=True,
- allow_null=False)
+ allow_null=False
+ )
authentication = subscription_auth_data.SubscriptionAuthenticationSerializer(
help_text="Authentication parameters to configure the use of "
"authorization when sending notifications corresponding to"
id = serializers.UUIDField(
help_text="Identifier of this subscription resource.",
required=True,
- allow_null=False)
+ allow_null=False
+ )
callbackUri = serializers.URLField(
help_text="The URI of the endpoint to send the notification to.",
required=True,
- allow_null=False)
+ allow_null=False
+ )
_links = LinkSelfSerializer(
help_text="Links to resources related to this resource.",
required=True,
- allow_null=False)
+ allow_null=False
+ )
filter = vnf_pkg_notifications.PkgmNotificationsFilter(
help_text="Filter settings for this subscription, "