Management API: Expose forceTime and startAt fields in rollout representation (#1336)
* Expose forceTime and startAt fields in rollout representation in Mgmt API * Change "forceTime" to "forcetime" * Add checks when making a POST request in the tests * Change forced to timeforced in tests and extend validity check * Pass aforcetime and startat arguments as test checks * remove unused import Signed-off-by: Stanislav Trailov <stanislav.trailov@bosch.io>
This commit is contained in:
committed by
GitHub
parent
5baf65c1f0
commit
85feeba681
@@ -44,6 +44,12 @@ public class MgmtRolloutResponseBody extends MgmtNamedEntity {
|
||||
@JsonProperty
|
||||
private Integer totalGroups;
|
||||
|
||||
@JsonProperty
|
||||
private Long startAt;
|
||||
|
||||
@JsonProperty
|
||||
private Long forcetime;
|
||||
|
||||
@JsonProperty
|
||||
private boolean deleted;
|
||||
|
||||
@@ -101,6 +107,22 @@ public class MgmtRolloutResponseBody extends MgmtNamedEntity {
|
||||
return totalTargets;
|
||||
}
|
||||
|
||||
public void setStartAt(final Long startAt) {
|
||||
this.startAt = startAt;
|
||||
}
|
||||
|
||||
public Long getStartAt() {
|
||||
return startAt;
|
||||
}
|
||||
|
||||
public void setForcetime(final Long forcetime) {
|
||||
this.forcetime = forcetime;
|
||||
}
|
||||
|
||||
public Long getForcetime() {
|
||||
return forcetime;
|
||||
}
|
||||
|
||||
public Map<String, Long> getTotalTargetsPerStatus() {
|
||||
return totalTargetsPerStatus;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user