diff options
Diffstat (limited to 'onap-client/etc/payloads')
28 files changed, 545 insertions, 0 deletions
diff --git a/onap-client/etc/payloads/aai_create_customer.jinja b/onap-client/etc/payloads/aai_create_customer.jinja new file mode 100644 index 0000000..cbf2b96 --- /dev/null +++ b/onap-client/etc/payloads/aai_create_customer.jinja @@ -0,0 +1,5 @@ +{ + "global-customer-id": "{{customer_name}}", + "subscriber-name": "{{subscriber_name}}", + "subscriber-type": "INFRA" +} diff --git a/onap-client/etc/payloads/action.jinja b/onap-client/etc/payloads/action.jinja new file mode 100644 index 0000000..3ef9f60 --- /dev/null +++ b/onap-client/etc/payloads/action.jinja @@ -0,0 +1,3 @@ +{ + "action": "{{action}}" +}
\ No newline at end of file diff --git a/onap-client/etc/payloads/add_vsp_contributer.jinja b/onap-client/etc/payloads/add_vsp_contributer.jinja new file mode 100644 index 0000000..ac75634 --- /dev/null +++ b/onap-client/etc/payloads/add_vsp_contributer.jinja @@ -0,0 +1 @@ +{"removedUsersIds":[],"addedUsersIds":["{{user_id}}"]}
\ No newline at end of file diff --git a/onap-client/etc/payloads/catalog_resource.jinja b/onap-client/etc/payloads/catalog_resource.jinja new file mode 100644 index 0000000..b051bcb --- /dev/null +++ b/onap-client/etc/payloads/catalog_resource.jinja @@ -0,0 +1,43 @@ +{ + "artifacts": {}, + "toscaArtifacts": {}, + "contactId": "cs0008", + "categories": [ + { + "name": "Generic", + "normalizedName": "generic", + "uniqueId": "resourceNewCategory.generic", + "subcategories": [ + { + "name": "Abstract", + "normalizedName": "abstract", + "uniqueId": "resourceNewCategory.generic.abstract", + "icons": [ + "database" + ] + } + ] + } + ], + "description": "vendor software product", + "icon": "defaulticon", + "componentInstancesProperties": {}, + "componentInstancesAttributes": {}, + "name": "{{vnf_name}}", + "tags": [ + "{{vnf_name}}" + ], + "capabilities": {}, + "requirements": {}, + "deploymentArtifacts": {}, + "componentType": "RESOURCE", + "vendorName": "{{vendor_name}}", + "vendorRelease": "1.0", + "componentInstances": [], + "properties": [], + "attributes": [], + "groups": [], + "resourceType": "{{resource_type}}", + "csarUUID": "{{software_product_id}}", + "csarVersion": "1.0" +}
\ No newline at end of file diff --git a/onap-client/etc/payloads/catalog_service.jinja b/onap-client/etc/payloads/catalog_service.jinja new file mode 100644 index 0000000..51aec40 --- /dev/null +++ b/onap-client/etc/payloads/catalog_service.jinja @@ -0,0 +1,45 @@ +{ + "artifacts": {}, + "toscaArtifacts": {}, + "contactId": "{{contact_id}}", + "categories": [ + { + "name": "{{category_name}}", + "normalizedName": "{{category_name_lower}}", + "uniqueId": "{{category_id}}", + "icons": [ + "{{category_name_icon}}" + ], + "subcategories": null, + "version": null, + "ownerId": null, + "empty": false, + "type": null + } + ], + "description": "{{description}}", + "icon": "defaulticon", + "componentInstancesProperties": {}, + "componentInstancesAttributes": {}, + "name": "{{service_name}}", + "tags": [ + "{{tag}}", + "{{service_name}}" + ], + "capabilities": {}, + "requirements": {}, + "deploymentArtifacts": {}, + "componentType": "SERVICE", + "projectCode": "{{project_code}}", + "componentInstances": [], + "properties": [], + "attributes": [], + "forwardingPaths": {}, + "ecompGeneratedNaming": {{ecomp_generated_naming}}, + "serviceApiArtifacts": {}, + "instantiationType": "{{instantiation_type}}", + "environmentContext": "{{environment_context}}", + "serviceType": "{{service_type}}", + "serviceRole": "{{service_role}}", + "namingPolicy": "{{naming_policy}}" +}
\ No newline at end of file diff --git a/onap-client/etc/payloads/catalog_service_property.jinja b/onap-client/etc/payloads/catalog_service_property.jinja new file mode 100644 index 0000000..584002a --- /dev/null +++ b/onap-client/etc/payloads/catalog_service_property.jinja @@ -0,0 +1,40 @@ +[ +{ + "uniqueId": "{{unique_id}}", + "type": "{{property_type}}", + "required": false, + "definition": false, + "defaultValue": null, + "description": null, + "schema": null, + "password": false, + "name": "{{input_name}}", + "value": "{{input_value}}", + "label": null, + "hidden": false, + "immutable": false, + "inputPath": null, + "status": null, + "inputId": null, + "instanceUniqueId": null, + "propertyId": null, + "parentPropertyType": null, + "subPropertyInputPath": null, + "annotations": null, + "parentUniqueId": "{{parent_unique_id}}", + "getInputValues": null, + "isDeclaredListInput": false, + "getPolicyValues": null, + "constraints": null, + "inputs": null, + "properties": null, + {% if schema_type != "" %} + "schemaType": "{{schema_type}}", + {% endif %} + "schemaProperty": null, + "getInputProperty": false, + "version": null, + "ownerId": "{{owner_id}}", + "empty": false +} +]
\ No newline at end of file diff --git a/onap-client/etc/payloads/catalog_vnf_group.jinja b/onap-client/etc/payloads/catalog_vnf_group.jinja new file mode 100644 index 0000000..99d8dcb --- /dev/null +++ b/onap-client/etc/payloads/catalog_vnf_group.jinja @@ -0,0 +1,3 @@ +[ + "{{instance_id}}" +] diff --git a/onap-client/etc/payloads/catalog_vnf_group_property.jinja b/onap-client/etc/payloads/catalog_vnf_group_property.jinja new file mode 100644 index 0000000..0211add --- /dev/null +++ b/onap-client/etc/payloads/catalog_vnf_group_property.jinja @@ -0,0 +1,26 @@ +[ + { + "constraints": null, + "defaultValue": null, + "description": "{{description}}", + "name": "{{property_name}}", + "parentUniqueId": "{{parent_unique_id}}", + "password": false, + "required": true, + "schema": { + "property": {} + }, + "schemaType": null, + "type": "{{property_type}}", + "uniqueId": "{{unique_id}}", + "value": "{{property_default_value}}", + "definition": false, + "getInputValues": null, + "parentPropertyType": null, + "subPropertyInputPath": null, + "getPolicyValues": null, + "inputPath": null, + "valueUniqueUid": null, + "ownerId": "{{owner_id}}" + } +]
\ No newline at end of file diff --git a/onap-client/etc/payloads/catalog_vnf_input.jinja b/onap-client/etc/payloads/catalog_vnf_input.jinja new file mode 100644 index 0000000..1bb129a --- /dev/null +++ b/onap-client/etc/payloads/catalog_vnf_input.jinja @@ -0,0 +1,24 @@ +[ + { + "defaultValue": "{{input_default_value}}", + "description": null, + "name": "{{input_name}}", + "parentUniqueId": "{{input_parent_unique_id}}", + "password": false, + "required": false, + "schema": { + "property": {} + }, + "type": "string", + "uniqueId": "{{input_unique_id}}", + "value": null, + "definition": false, + "getInputValues": null, + "instanceUniqueId": null, + "propertyId": null, + "properties": null, + "inputs": null, + "ownerId": "{{input_owner_id}}", + "inputPath": null + } +]
\ No newline at end of file diff --git a/onap-client/etc/payloads/catalog_vnf_policy.jinja b/onap-client/etc/payloads/catalog_vnf_policy.jinja new file mode 100644 index 0000000..f89fcdd --- /dev/null +++ b/onap-client/etc/payloads/catalog_vnf_policy.jinja @@ -0,0 +1,13 @@ +[ + { + "type": "component_Instances", + "uniqueIds": [ + {% for id in instance_ids %} + "{{id}}" + {% if loop.index < loop.length %} + , + {% endif %} + {% endfor %} + ] + } +] diff --git a/onap-client/etc/payloads/catalog_vnf_policy_property.jinja b/onap-client/etc/payloads/catalog_vnf_policy_property.jinja new file mode 100644 index 0000000..57ba2b1 --- /dev/null +++ b/onap-client/etc/payloads/catalog_vnf_policy_property.jinja @@ -0,0 +1,24 @@ +[ + { + "defaultValue": null, + "description": "{{description}}", + "name": "{{property_name}}", + "parentUniqueId": null, + "password": false, + "required": true, + "schema": { + "property": {} + }, + "schemaType": null, + "type": "{{property_type}}", + "uniqueId": "{{unique_id}}", + "value": "{{property_default_value}}", + "definition": true, + "getInputValues": null, + "parentPropertyType": null, + "subPropertyInputPath": null, + "getPolicyValues": null, + "inputPath": null, + "ownerId": null + } +]
\ No newline at end of file diff --git a/onap-client/etc/payloads/catalog_vnf_property.jinja b/onap-client/etc/payloads/catalog_vnf_property.jinja new file mode 100644 index 0000000..cebc0a8 --- /dev/null +++ b/onap-client/etc/payloads/catalog_vnf_property.jinja @@ -0,0 +1,20 @@ +[ + { + "constraints": [], + "name": "{{property_name}}", + "parentUniqueId": "{{parent_unique_id}}", + "password": false, + "required": false, + "schema": {"property": {}}, + {% if schema_type != "" %} + "schemaType": "{{schema_type}}", + {% endif %} + "type": "{{property_type}}", + "uniqueId": "{{unique_id}}", + "value": "{{property_default_value}}", + "definition": false, + "toscaPresentation": { + "ownerId": "{{owner_id}}" + } + } +]
\ No newline at end of file diff --git a/onap-client/etc/payloads/entitlement_pool.jinja b/onap-client/etc/payloads/entitlement_pool.jinja new file mode 100644 index 0000000..4ca68dd --- /dev/null +++ b/onap-client/etc/payloads/entitlement_pool.jinja @@ -0,0 +1,13 @@ +{ + "name": "{{entitlement_pool_name}}", + "description": "vendor entitlement pool", + "thresholdValue": "100", + "thresholdUnits": "Percentage", + "time": { + "choice": "", + "other": "" + }, + "startDate": "{{license_start_date}}", + "expiryDate": "{{license_end_date}}", + "manufacturerReferenceNumber": "111111" +}
\ No newline at end of file diff --git a/onap-client/etc/payloads/feature_group.jinja b/onap-client/etc/payloads/feature_group.jinja new file mode 100644 index 0000000..cc3fec1 --- /dev/null +++ b/onap-client/etc/payloads/feature_group.jinja @@ -0,0 +1,11 @@ +{ + "name": "{{feature_group_name}}", + "description": "vendor feature group", + "partNumber": "123abc456", + "addedLicenseKeyGroupsIds": [ + "{{key_group_id}}" + ], + "addedEntitlementPoolsIds": [ + "{{entitlement_pool_id}}" + ] +}
\ No newline at end of file diff --git a/onap-client/etc/payloads/key_group.jinja b/onap-client/etc/payloads/key_group.jinja new file mode 100644 index 0000000..e58639b --- /dev/null +++ b/onap-client/etc/payloads/key_group.jinja @@ -0,0 +1,10 @@ +{ + "name": "{{key_group_name}}", + "description": "vendor license key group", + "type": "Universal", + "thresholdValue": "100", + "thresholdUnits": "Percentage", + "startDate": "{{license_start_date}}", + "expiryDate": "{{license_end_date}}", + "manufacturerReferenceNumber": "11111" +}
\ No newline at end of file diff --git a/onap-client/etc/payloads/license_agreement.jinja b/onap-client/etc/payloads/license_agreement.jinja new file mode 100644 index 0000000..66776f4 --- /dev/null +++ b/onap-client/etc/payloads/license_agreement.jinja @@ -0,0 +1,12 @@ +{ + "name": "{{license_agreement_name}}", + "description": "vendor license agreement", + "requirementsAndConstrains": "abcdef", + "licenseTerm": { + "choice": "Fixed_Term", + "other": "" + }, + "addedFeatureGroupsIds": [ + "{{feature_group_id}}" + ] +}
\ No newline at end of file diff --git a/onap-client/etc/payloads/license_model.jinja b/onap-client/etc/payloads/license_model.jinja new file mode 100644 index 0000000..27fe266 --- /dev/null +++ b/onap-client/etc/payloads/license_model.jinja @@ -0,0 +1,5 @@ +{ + "vendorName": "{{vendor_name}}", + "description": "vendor license model", + "iconRef": "icon" +}
\ No newline at end of file diff --git a/onap-client/etc/payloads/resource_instance.jinja b/onap-client/etc/payloads/resource_instance.jinja new file mode 100644 index 0000000..c2c279c --- /dev/null +++ b/onap-client/etc/payloads/resource_instance.jinja @@ -0,0 +1,10 @@ +{ + "uniqueId": "{{catalog_resource_id}}{{milli_timestamp}}", + "posX": {{posX}}, + "posY": {{posY}}, + "name": "{{catalog_resource_name}}", + "componentVersion": "1.0", + "originType": "{{originType}}", + "icon": "defaulticon", + "componentUid": "{{catalog_resource_id}}" +}
\ No newline at end of file diff --git a/onap-client/etc/payloads/resource_instance_vnf.jinja b/onap-client/etc/payloads/resource_instance_vnf.jinja new file mode 100644 index 0000000..78bcf70 --- /dev/null +++ b/onap-client/etc/payloads/resource_instance_vnf.jinja @@ -0,0 +1,10 @@ +{ + "uniqueId": "{{new_catalog_resource_id}}{{milli_timestamp}}", + "posX": {{posX}}, + "posY": {{posY}}, + "name": "{{new_catalog_resource_name}}", + "componentVersion": "1.0", + "originType": "{{originType}}", + "icon": "defaulticon", + "componentUid": "{{new_catalog_resource_id}}" +}
\ No newline at end of file diff --git a/onap-client/etc/payloads/so_create_module.jinja b/onap-client/etc/payloads/so_create_module.jinja new file mode 100644 index 0000000..263a3a9 --- /dev/null +++ b/onap-client/etc/payloads/so_create_module.jinja @@ -0,0 +1,55 @@ +{ + "requestDetails": { + "requestInfo": { + "instanceName": "{{module_instance_name}}", + "source": "VID", + "suppressRollback": false, + "requestorId": "test" + }, + "modelInfo": { + "modelType": "vfModule", + "modelInvariantId": "{{model_invariant_id}}", + "modelVersionId": "{{model_version_id}}", + "modelName": "{{model_name}}", + "modelVersion": "{{model_version}}", + "modelCustomizationId": "{{model_customization_id}}", + "modelCustomizationName": "{{model_name}} 0" + }, + "requestParameters": { + "userParams": [], + "testApi": "{{api_type}}", + "usePreload": true + }, + "cloudConfiguration": { + "tenantId": "{{tenant_id}}", + "cloudOwner": "{{cloud_owner}}", + "lcpCloudRegionId": "{{cloud_region}}" + }, + "relatedInstanceList": [{ + "relatedInstance": { + "instanceId": "{{service_instance_id}}", + "modelInfo": { + "modelType": "service", + "modelName": "{{service_model_name}}", + "modelInvariantId": "{{service_model_invariant_id}}", + "modelVersion": "{{service_model_version}}", + "modelVersionId": "{{service_model_version_id}}" + } + } + }, + { + "relatedInstance": { + "instanceId": "{{vnf_instance_id}}", + "modelInfo": { + "modelType": "vnf", + "modelName": "{{vnf_model_name}}", + "modelInvariantId": "{{vnf_model_invariant_id}}", + "modelVersion": "{{vnf_model_version}}", + "modelVersionId": "{{vnf_model_version_id}}", + "modelCustomizationId": "{{vnf_model_customization_id}}", + "modelCustomizationName": "{{vnf_model_name}} 0" + } + } + }] + } +}
\ No newline at end of file diff --git a/onap-client/etc/payloads/so_delete_module.jinja b/onap-client/etc/payloads/so_delete_module.jinja new file mode 100644 index 0000000..f97ce10 --- /dev/null +++ b/onap-client/etc/payloads/so_delete_module.jinja @@ -0,0 +1,22 @@ + { + "requestDetails": { + "requestInfo": { + "source": "VID", + "requestorId": "cs0008" + }, + "modelInfo": { + "modelType": "vfModule", + "modelInvariantId": "{{module_invariant_id}}", + "modelName": "{{module_name}}", + "modelVersion": "{{module_version}}" + }, + "requestParameters": { + "testApi": "{{api_type}}" + }, + "cloudConfiguration": { + "lcpCloudRegionId": "{{cloud_region}}", + "tenantId": "{{tenant_id}}", + "cloudOwner": "{{cloud_owner}}" + } + } + }
\ No newline at end of file diff --git a/onap-client/etc/payloads/so_delete_service.jinja b/onap-client/etc/payloads/so_delete_service.jinja new file mode 100644 index 0000000..21bcc7f --- /dev/null +++ b/onap-client/etc/payloads/so_delete_service.jinja @@ -0,0 +1,22 @@ + { + "requestDetails": { + "requestInfo": { + "source": "VID", + "requestorId": "cs0008" + }, + "modelInfo": { + "modelType": "vnf", + "modelInvariantId": "{{service_invariant_id}}", + "modelName": "{{service_name}}", + "modelVersion": "{{service_version}}" + }, + "requestParameters": { + "testApi": "{{api_type}}" + }, + "cloudConfiguration": { + "cloudOwner": "CloudOwner", + "lcpCloudRegionId": "None", + "tenantId": "NoTenant" + } + } + }
\ No newline at end of file diff --git a/onap-client/etc/payloads/so_delete_vnf.jinja b/onap-client/etc/payloads/so_delete_vnf.jinja new file mode 100644 index 0000000..c39ac28 --- /dev/null +++ b/onap-client/etc/payloads/so_delete_vnf.jinja @@ -0,0 +1,22 @@ + { + "requestDetails": { + "requestInfo": { + "source": "VID", + "requestorId": "cs0008" + }, + "modelInfo": { + "modelType": "vnf", + "modelInvariantId": "{{vnf_invariant_id}}", + "modelName": "{{vnf_name}}", + "modelVersion": "{{vnf_version}}" + }, + "requestParameters": { + "testApi": "{{api_type}}" + }, + "cloudConfiguration": { + "lcpCloudRegionId": "{{cloud_region}}", + "tenantId": "{{tenant_id}}", + "cloudOwner": "{{cloud_owner}}" + } + } + }
\ No newline at end of file diff --git a/onap-client/etc/payloads/so_service_instance.jinja b/onap-client/etc/payloads/so_service_instance.jinja new file mode 100644 index 0000000..abdfe84 --- /dev/null +++ b/onap-client/etc/payloads/so_service_instance.jinja @@ -0,0 +1,37 @@ +{ + "requestDetails": { + "requestInfo": { + "instanceName": "{{service_instance_name}}", + "source": "onap_client", + "suppressRollback": false, + "requestorId": "{{requestor_id}}" + }, + "modelInfo": { + "modelType": "service", + "modelInvariantId": "{{model_invariant_id}}", + "modelVersionId": "{{model_version_id}}", + "modelName": "{{model_name}}", + "modelVersion": "{{model_version}}" + }, + "cloudConfiguration": { + "tenantId": "{{tenant_id}}", + "cloudOwner": "{{cloud_owner}}", + "lcpCloudRegionId": "{{cloud_region}}" + }, + "requestParameters": { + "userParams": [], + "testApi": "{{api_type}}", + "subscriptionServiceType": "{{service_type}}", + "aLaCarte": true + }, + "subscriberInfo": { + "globalSubscriberId": "{{customer_id}}" + }, + "project": { + "projectName": "{{project_name}}" + }, + "owningEntity": { + "owningEntityId": "{{owning_entity_id}}" + } + } +}
\ No newline at end of file diff --git a/onap-client/etc/payloads/so_vnf_instance.jinja b/onap-client/etc/payloads/so_vnf_instance.jinja new file mode 100644 index 0000000..4419847 --- /dev/null +++ b/onap-client/etc/payloads/so_vnf_instance.jinja @@ -0,0 +1,48 @@ +{ + "requestDetails": { + "requestInfo": { + "instanceName": "{{vnf_instance_name}}", + "source": "VID", + "suppressRollback": false, + "requestorId": "{{requestor_id}}", + "productFamilyId": "1234" + }, + "modelInfo": { + "modelType": "vnf", + "modelInvariantId": "{{model_invariant_id}}", + "modelVersionId": "{{model_version_id}}", + "modelName": "{{model_name}}", + "modelVersion": "{{model_version}}", + "modelCustomizationId": "{{model_customization_id}}", + "modelCustomizationName": "{{model_name}} 0" + }, + "requestParameters": { + "userParams": [], + "aLaCarte": true, + "testApi": "{{api_type}}" + }, + "cloudConfiguration": { + "tenantId": "{{tenant_id}}", + "cloudOwner": "{{cloud_owner}}", + "lcpCloudRegionId": "{{cloud_region}}" + }, + "lineOfBusiness": { + "lineOfBusinessName": "{{line_of_business}}" + }, + "platform": { + "platformName": "{{platform}}" + }, + "relatedInstanceList": [{ + "relatedInstance": { + "instanceId": "{{service_instance_id}}", + "modelInfo": { + "modelType": "service", + "modelName": "{{service_model_name}}", + "modelInvariantId": "{{service_model_invariant_id}}", + "modelVersion": "{{service_model_version}}", + "modelVersionId": "{{service_model_version_id}}" + } + } + }] + } +}
\ No newline at end of file diff --git a/onap-client/etc/payloads/software_product.jinja b/onap-client/etc/payloads/software_product.jinja new file mode 100644 index 0000000..e7bb590 --- /dev/null +++ b/onap-client/etc/payloads/software_product.jinja @@ -0,0 +1,17 @@ +{ + "name": "{{software_product_name}}", + "description": "{{description}}", + "category": "resourceNewCategory.{{category}}", + "subCategory": "resourceNewCategory.{{category}}.{{sub_category}}", + "onboardingMethod" : "NetworkPackage", + "licensingVersion": "{{license_model_version_id}}", + "vendorName": "{{vendor_name}}", + "vendorId": "{{license_model_id}}", + "icon": "icon", + "licensingData": { + "licenseAgreement": "{{license_agreement_id}}", + "featureGroups": [ + "{{feature_group_id}}" + ] + } +}
\ No newline at end of file diff --git a/onap-client/etc/payloads/user_remarks.jinja b/onap-client/etc/payloads/user_remarks.jinja new file mode 100644 index 0000000..ea01a24 --- /dev/null +++ b/onap-client/etc/payloads/user_remarks.jinja @@ -0,0 +1 @@ +{"userRemarks":"{{user_remarks}}"}
\ No newline at end of file diff --git a/onap-client/etc/payloads/vid_maintenance.jinja b/onap-client/etc/payloads/vid_maintenance.jinja new file mode 100644 index 0000000..1672140 --- /dev/null +++ b/onap-client/etc/payloads/vid_maintenance.jinja @@ -0,0 +1,3 @@ +{ + "options": ["{{name}}"] +}
\ No newline at end of file |