summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/models
diff options
context:
space:
mode:
authorandre.schmid <andre.schmid@est.tech>2021-08-16 17:08:17 +0100
committerMichael Morris <michael.morris@est.tech>2021-08-20 11:21:08 +0000
commit502c354da7b9f649d3b9e6a00c159a2ad53e7b1f (patch)
tree8a49353909674455a107f459b9ba6440637f093c /catalog-ui/src/app/models
parentb886cdecf766a51f8c74953d2f0b8187b9e32cab (diff)
Select a Model when Importing a VSP
Change-Id: I7537af4c7279636de7e450ec398210ace376eade Issue-ID: SDC-3670 Signed-off-by: andre.schmid <andre.schmid@est.tech>
Diffstat (limited to 'catalog-ui/src/app/models')
-rw-r--r--catalog-ui/src/app/models/component-metadata.ts2
-rw-r--r--catalog-ui/src/app/models/components/resource.ts3
-rw-r--r--catalog-ui/src/app/models/csar-component.ts2
3 files changed, 7 insertions, 0 deletions
diff --git a/catalog-ui/src/app/models/component-metadata.ts b/catalog-ui/src/app/models/component-metadata.ts
index 1cbecda2b3..351ae4a79b 100644
--- a/catalog-ui/src/app/models/component-metadata.ts
+++ b/catalog-ui/src/app/models/component-metadata.ts
@@ -126,6 +126,7 @@ export class ComponentMetadata implements IComponentMetadata {
public resourceType: string;
public csarUUID: string;
public csarVersion: string;
+ public csarVersionId: string;
public derivedList: string[];
public vendorName: string;
public vendorRelease: string;
@@ -134,6 +135,7 @@ export class ComponentMetadata implements IComponentMetadata {
public csarPackageType: string;
public packageId: string;
public iconSprite: string;
+ public models: string[];
// Service only
public serviceFunction: string;
diff --git a/catalog-ui/src/app/models/components/resource.ts b/catalog-ui/src/app/models/components/resource.ts
index 733f2ff9d1..267a8b4bd6 100644
--- a/catalog-ui/src/app/models/components/resource.ts
+++ b/catalog-ui/src/app/models/components/resource.ts
@@ -47,6 +47,7 @@ export class Resource extends Component {
// Onboarding parameters
public csarUUID:string;
public csarVersion:string;
+ public csarVersionId: string;
public csarPackageType:string;
public packageId:string;
@@ -61,6 +62,7 @@ export class Resource extends Component {
this.resourceType = component.resourceType;
this.csarUUID = component.csarUUID;
this.csarVersion = component.csarVersion;
+ this.csarVersionId = component.csarVersionId;
this.resourceVendorModelNumber = component.resourceVendorModelNumber;
this.filterTerm = this.name + ' ' + this.description + ' ' + (this.tags ? this.tags.toString() : '') + ' ' + this.version + ' ' + this.resourceType;
if (component.categories && component.categories[0] && component.categories[0].subcategories && component.categories[0].subcategories[0]) {
@@ -82,6 +84,7 @@ export class Resource extends Component {
this.resourceType = componentMetadata.resourceType;
this.csarUUID = componentMetadata.csarUUID;
this.csarVersion = componentMetadata.csarVersion;
+ this.csarVersionId = componentMetadata.csarVersionId;
this.derivedFrom = componentMetadata.derivedFrom;
this.resourceVendorModelNumber = componentMetadata.resourceVendorModelNumber;
this.setComponentDisplayData();
diff --git a/catalog-ui/src/app/models/csar-component.ts b/catalog-ui/src/app/models/csar-component.ts
index cb89f0ba5e..e388550ccb 100644
--- a/catalog-ui/src/app/models/csar-component.ts
+++ b/catalog-ui/src/app/models/csar-component.ts
@@ -25,6 +25,7 @@ export interface ICsarComponent {
description:string;
vspName:string;
version:string;
+ versionId:string;
packageId:string;
category:string;
subCategory:string
@@ -32,5 +33,6 @@ export interface ICsarComponent {
packageType:string;
resourceType:string;
vendorRelease:string;
+ models: Array<string>;
}