diff options
author | stark, steven <steven.stark@att.com> | 2020-10-15 12:34:35 -0700 |
---|---|---|
committer | stark, steven <steven.stark@att.com> | 2020-10-15 12:39:49 -0700 |
commit | a0984e365a7c610e9cb91cf73e5d09db2be6df6a (patch) | |
tree | 67b8aaaffb37b56105569f2233672db9e5720cbd /onap-client/onap_client/sdc/catalog/license_model_catalog.py | |
parent | 82f201fb65094aad55b3e46634bad39713387c6e (diff) |
[VVP] VVP onap-client enhancements
Adding capability for custom auth plugin (defaults to basic auth).
During updates to VNF models, resource and policy objects are deletd and recreated.
Issue-ID: VVP-477
Signed-off-by: stark, steven <steven.stark@att.com>
Change-Id: Iba743176167c2b1df185666b08cbd79c6a559c9e
Diffstat (limited to 'onap-client/onap_client/sdc/catalog/license_model_catalog.py')
-rw-r--r-- | onap-client/onap_client/sdc/catalog/license_model_catalog.py | 50 |
1 files changed, 10 insertions, 40 deletions
diff --git a/onap-client/onap_client/sdc/catalog/license_model_catalog.py b/onap-client/onap_client/sdc/catalog/license_model_catalog.py index 0a90ebf..87a9346 100644 --- a/onap-client/onap_client/sdc/catalog/license_model_catalog.py +++ b/onap-client/onap_client/sdc/catalog/license_model_catalog.py @@ -70,10 +70,7 @@ class LicenseModelClient(SDCClient): "license_model_id": ("itemId",), "license_model_version_id": ("version", "id"), }, - "auth": ( - self.global_sdc_username, - self.global_sdc_password, - ), + "auth": self.auth, }, "ADD_KEY_GROUP": { "verb": "POST", @@ -99,10 +96,7 @@ class LicenseModelClient(SDCClient): "X-FromAppId": self.config.application_id, }, "return_data": {"key_group_id": ("value",)}, - "auth": ( - self.global_sdc_username, - self.global_sdc_password, - ), + "auth": self.auth, }, "ADD_ENTITLEMENT_POOL": { "verb": "POST", @@ -128,10 +122,7 @@ class LicenseModelClient(SDCClient): "X-FromAppId": self.config.application_id, }, "return_data": {"entitlement_pool_id": ("value",)}, - "auth": ( - self.global_sdc_username, - self.global_sdc_password, - ), + "auth": self.auth, }, "ADD_FEATURE_GROUP": { "verb": "POST", @@ -158,10 +149,7 @@ class LicenseModelClient(SDCClient): "X-FromAppId": self.config.application_id, }, "return_data": {"feature_group_id": ("value",)}, - "auth": ( - self.global_sdc_username, - self.global_sdc_password, - ), + "auth": self.auth, }, "ADD_LICENSE_AGREEMENT": { "verb": "POST", @@ -183,10 +171,7 @@ class LicenseModelClient(SDCClient): "X-FromAppId": self.config.application_id, }, "return_data": {"license_agreement_id": ("value",)}, - "auth": ( - self.global_sdc_username, - self.global_sdc_password, - ), + "auth": self.auth, }, "SUBMIT_LICENSE_MODEL": { "verb": "PUT", @@ -207,10 +192,7 @@ class LicenseModelClient(SDCClient): "X-TransactionId": str(uuid.uuid4()), "X-FromAppId": self.config.application_id, }, - "auth": ( - self.global_sdc_username, - self.global_sdc_password, - ), + "auth": self.auth, }, "GET_LICENSE_MODEL": { "verb": "GET", @@ -234,10 +216,7 @@ class LicenseModelClient(SDCClient): "license_model_id": ("id",), "description": ("description",), }, - "auth": ( - self.global_sdc_username, - self.global_sdc_password, - ), + "auth": self.auth, }, "GET_LICENSE_MODEL_VERSION_ATTRIBUTE": { "verb": "GET", @@ -256,10 +235,7 @@ class LicenseModelClient(SDCClient): "X-TransactionId": str(uuid.uuid4()), "X-FromAppId": self.config.application_id, }, - "auth": ( - self.global_sdc_username, - self.global_sdc_password, - ), + "auth": self.auth, }, "GET_LICENSE_MODEL_VERSIONS": { "verb": "GET", @@ -278,10 +254,7 @@ class LicenseModelClient(SDCClient): "X-TransactionId": str(uuid.uuid4()), "X-FromAppId": self.config.application_id, }, - "auth": ( - self.global_sdc_username, - self.global_sdc_password, - ), + "auth": self.auth, }, "GET_LICENSE_MODELS": { "verb": "GET", @@ -300,9 +273,6 @@ class LicenseModelClient(SDCClient): "X-FromAppId": self.config.application_id, }, "return_data": {"results": ("results",)}, - "auth": ( - self.global_sdc_username, - self.global_sdc_password, - ), + "auth": self.auth, }, } |