ManagementApi: Action does not have property containing rollout name (#1116)
* Mgmt Rest API: Enhance Action payload with rollout properties Signed-off-by: Stefan Behl <stefan.behl@bosch.io> * Enhance Mgmt REST API docs Signed-off-by: Stefan Behl <stefan.behl@bosch.io> * Minor changes Signed-off-by: Stefan Behl <stefan.behl@bosch.io>
This commit is contained in:
@@ -65,6 +65,12 @@ public class MgmtAction extends MgmtBaseEntity {
|
||||
|
||||
@JsonProperty
|
||||
private MgmtMaintenanceWindow maintenanceWindow;
|
||||
|
||||
@JsonProperty
|
||||
private Long rollout;
|
||||
|
||||
@JsonProperty
|
||||
private String rolloutName;
|
||||
|
||||
public MgmtMaintenanceWindow getMaintenanceWindow() {
|
||||
return maintenanceWindow;
|
||||
@@ -121,4 +127,21 @@ public class MgmtAction extends MgmtBaseEntity {
|
||||
public void setType(final String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Long getRollout() {
|
||||
return rollout;
|
||||
}
|
||||
|
||||
public void setRollout(Long rollout) {
|
||||
this.rollout = rollout;
|
||||
}
|
||||
|
||||
public String getRolloutName() {
|
||||
return rolloutName;
|
||||
}
|
||||
|
||||
public void setRolloutName(String rolloutName) {
|
||||
this.rolloutName = rolloutName;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -84,6 +84,10 @@ public final class MgmtRestConstants {
|
||||
* The target URL mapping, href link for canceled actions.
|
||||
*/
|
||||
public static final String TARGET_V1_ACTION_STATUS = "status";
|
||||
/**
|
||||
* The target URL mapping, href link for a rollout.
|
||||
*/
|
||||
public static final String TARGET_V1_ROLLOUT = "rollout";
|
||||
|
||||
/**
|
||||
* The target URL mapping rest resource.
|
||||
|
||||
Reference in New Issue
Block a user