String resourceName;
String resourceInvariantUUID;
String resourceVersion;
- String resoucreType;
+ String resourceType;
String resourceUUID;
List<ArtifactAssetStructure> artifacts;
}
public ResourceInstanceAssetStructure(String resourceInstanceName, String resourceName,
- String resourceInvariantUUID, String resourceVersion, String resoucreType, String resourceUUID,
+ String resourceInvariantUUID, String resourceVersion, String resourceType, String resourceUUID,
List<ArtifactAssetStructure> artifacts) {
super();
this.resourceInstanceName = resourceInstanceName;
this.resourceName = resourceName;
this.resourceInvariantUUID = resourceInvariantUUID;
this.resourceVersion = resourceVersion;
- this.resoucreType = resoucreType;
+ this.resourceType = resourceType;
this.resourceUUID = resourceUUID;
this.artifacts = artifacts;
}
this.resourceVersion = resourceVersion;
}
- public String getResoucreType() {
- return resoucreType;
+ public String getResourceType() {
+ return resourceType;
}
- public void setResoucreType(String resoucreType) {
- this.resoucreType = resoucreType;
+ public void setResourceType(String resourceType) {
+ this.resourceType = resourceType;
}
public String getResourceUUID() {
public String toString() {
return "ResourceInstanceAssetStructure [resourceInstanceName=" + resourceInstanceName + ", resourceName="
+ resourceName + ", resourceInvariantUUID=" + resourceInvariantUUID + ", resourceVersion="
- + resourceVersion + ", resoucreType=" + resoucreType + ", resourceUUID=" + resourceUUID + ", artifacts="
+ + resourceVersion + ", resourceType=" + resourceType + ", resourceUUID=" + resourceUUID + ", artifacts="
+ artifacts + "]";
}
.equals(resourceInstanceAssetStructure.getResourceVersion()));
assertTrue(
"Expected RI asset resourceType is " + componentInstance.getOriginType() + " actual: "
- + resourceInstanceAssetStructure.getResoucreType(),
+ + resourceInstanceAssetStructure.getResourceType(),
componentInstance.getOriginType().toString()
- .equals(resourceInstanceAssetStructure.getResoucreType()));
+ .equals(resourceInstanceAssetStructure.getResourceType()));
assertTrue(
"Expected RI asset resourceUUID is " + componentInstance.getComponentUid() + " actual: "
+ resourceInstanceAssetStructure.getResourceUUID(),
List<JsonContainerResourceInstance> ret = new ArrayList<JsonContainerResourceInstance>();
if (service.getComponentInstances() != null) {
for (ComponentInstance resourceInstance : service.getComponentInstances()) {
- String resoucreType = "VF";
+ String resourceType = "VF";
List<ArtifactDefinition> artifactsDefList = getArtifactsWithPayload(resourceInstance);
List<ArtifactInfoImpl> artifacts = ArtifactInfoImpl.convertToArtifactInfoImpl(service, resourceInstance, artifactsDefList);
Either<String, StorageOperationStatus> responseResult = resourceOperation.getInvariantUUID(NodeTypeEnum.Resource, resourceInstance.getComponentUid(), false);
} else {
resourceInvariantUUID = responseResult.left().value();
}
- JsonContainerResourceInstance jsonContainer = new JsonContainerResourceInstance(resourceInstance, resourceInvariantUUID, resoucreType, artifacts);
+ JsonContainerResourceInstance jsonContainer = new JsonContainerResourceInstance(resourceInstance, resourceInvariantUUID, resourceType, artifacts);
ret.add(jsonContainer);
}
metadata.setResourceInstanceName(componentInstance.getName());
metadata.setResourceName(componentInstance.getComponentName());
metadata.setResourceVersion(componentInstance.getComponentVersion());
- metadata.setResoucreType(componentInstance.getOriginType().getValue());
+ metadata.setResourceType(componentInstance.getOriginType().getValue());
metadata.setResourceUUID(componentInstance.getComponentUid());
Collection<ArtifactDefinition> values = componentInstance.getDeploymentArtifacts().values();
private String resourceName;
private String resourceInvariantUUID;
private String resourceVersion;
- private String resoucreType;
+ private String resourceType;
private String resourceUUID;
private List<ArtifactMetadata> artifacts;
this.resourceVersion = resourceVersion;
}
- public String getResoucreType() {
- return resoucreType;
+ public String getResourceType() {
+ return resourceType;
}
- public void setResoucreType(String resoucreType) {
- this.resoucreType = resoucreType;
+ public void setResourceType(String resourceType) {
+ this.resourceType = resourceType;
}
public String getResourceUUID() {