add type name to mgmt api responses (#1298)

Signed-off-by: Stefan Klotz <stefan.klotz@bosch.io>

Signed-off-by: Stefan Klotz <stefan.klotz@bosch.io>
This commit is contained in:
Stefan Klotz
2023-01-10 12:54:50 +01:00
committed by GitHub
parent 68a57f69f0
commit 27872282f5
11 changed files with 104 additions and 56 deletions

View File

@@ -43,6 +43,9 @@ public class MgmtDistributionSet extends MgmtNamedEntity {
@JsonProperty
private String type;
@JsonProperty
private String typeName;
@JsonProperty
private Boolean complete;
@@ -109,6 +112,14 @@ public class MgmtDistributionSet extends MgmtNamedEntity {
this.type = type;
}
public String getTypeName() {
return typeName;
}
public void setTypeName(final String typeName) {
this.typeName = typeName;
}
public Boolean getComplete() {
return complete;
}

View File

@@ -32,6 +32,8 @@ public class MgmtSoftwareModule extends MgmtNamedEntity {
@JsonProperty(required = true)
private String type;
private String typeName;
@JsonProperty
private String vendor;
@@ -74,6 +76,14 @@ public class MgmtSoftwareModule extends MgmtNamedEntity {
this.type = type;
}
public String getTypeName() {
return typeName;
}
public void setTypeName(final String typeName) {
this.typeName = typeName;
}
public String getVendor() {
return vendor;
}

View File

@@ -52,6 +52,9 @@ public class MgmtTarget extends MgmtNamedEntity {
@JsonProperty
private Long targetType;
@JsonProperty
private String targetTypeName;
/**
* @return Target type ID
*/
@@ -61,12 +64,27 @@ public class MgmtTarget extends MgmtNamedEntity {
/**
* @param targetType
* Target type ID
* Target type ID
*/
public void setTargetType(Long targetType) {
public void setTargetType(final Long targetType) {
this.targetType = targetType;
}
/**
* @return Target type name
*/
public String getTargetTypeName() {
return targetTypeName;
}
/**
* @param targetTypeName
* Target type name
*/
public void setTargetTypeName(final String targetTypeName) {
this.targetTypeName = targetTypeName;
}
/**
* @return the controllerId
*/