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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user