diff options
author | 2018-08-30 14:31:15 +0530 | |
---|---|---|
committer | 2018-08-31 15:16:27 +0530 | |
commit | 8f75d6276d4f1a8c5e9da1c77f2def362db11596 (patch) | |
tree | daa400fbaea33dc1fde44820b82a9add5509644a /lcm/lcm/pub | |
parent | 610d88959fde44f8efefe10007c67150bc69f1db (diff) |
Add subscriptions API to GVNFM
Issue-ID: VFC-999
Change-Id: I5efb5fb080f25614f805e054584f3f771d8ab302
Signed-off-by: Bharath Thiruveedula<bharath.thiruveedula@verizon.com>
depends-on: Ic3cfcfaf09701b363720ccacdf9eaaef3aafd9d8
Diffstat (limited to 'lcm/lcm/pub')
-rw-r--r-- | lcm/lcm/pub/database/models.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lcm/lcm/pub/database/models.py b/lcm/lcm/pub/database/models.py index e54fae2b..4f4fc9f2 100644 --- a/lcm/lcm/pub/database/models.py +++ b/lcm/lcm/pub/database/models.py @@ -293,3 +293,20 @@ class CPInstModel(models.Model): relatedvl = models.CharField(db_column='RELATEDVL', max_length=255, blank=True, null=True) relatedcp = models.CharField(db_column='RELATEDCP', max_length=255, blank=True, null=True) relatedport = models.CharField(db_column='RELATEDPORT', max_length=255, blank=True, null=True) + + +class SubscriptionModel(models.Model): + class Meta: + db_table = 'SUBSCRIPTION' + subscription_id = models.CharField(db_column='SUBSCRIPTIONID', max_length=255, primary_key=True) + callback_uri = models.CharField(db_column='CALLBACKURI', max_length=255) + auth_info = models.TextField(db_column='AUTHINFO', max_length=20000, blank=True, null=True) + notification_types = models.TextField(db_column='NOTIFICATIONTYPES', + null=True) + operation_types = models.TextField(db_column='OPERATIONTYPES', + null=True) + operation_states = models.TextField(db_column='OPERATIONSTATES', + null=True) + vnf_instance_filter = models.TextField(db_column='VNFINSTANCEFILTER', + null=True) + links = models.TextField(db_column='LINKS', max_length=20000) |