Code format hawkbit-rest (#1945)
Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -31,6 +31,7 @@ public class MgmtRolloutCondition {
|
||||
@Schema(description = "The expression according to the condition, e.g. the value of threshold in percentage",
|
||||
example = "50")
|
||||
private String expression = "100";
|
||||
|
||||
public MgmtRolloutCondition(final Condition condition, final String expression) {
|
||||
this.condition = condition;
|
||||
this.expression = expression;
|
||||
|
||||
@@ -33,6 +33,7 @@ public class MgmtRolloutErrorAction {
|
||||
private ErrorAction action = ErrorAction.PAUSE;
|
||||
@Schema(description = "The expression for the error action", example = "80")
|
||||
private String expression;
|
||||
|
||||
/**
|
||||
* Creates a rollout error action
|
||||
*
|
||||
|
||||
@@ -30,6 +30,7 @@ public class MgmtRolloutSuccessAction {
|
||||
private SuccessAction action = SuccessAction.NEXTGROUP;
|
||||
@Schema(description = "The expression for the success action")
|
||||
private String expression;
|
||||
|
||||
public MgmtRolloutSuccessAction(final SuccessAction action, final String expression) {
|
||||
this.action = action;
|
||||
this.expression = expression;
|
||||
|
||||
@@ -36,7 +36,6 @@ public final class MgmtRestConstants {
|
||||
* The software module URL mapping rest resource.
|
||||
*/
|
||||
public static final String SOFTWAREMODULE_V1_REQUEST_MAPPING = BASE_V1_REQUEST_MAPPING + "/softwaremodules";
|
||||
public static final String SYSTEM_V1_REQUEST_MAPPING = BASE_V1_REQUEST_MAPPING + BASE_SYSTEM_MAPPING;
|
||||
/**
|
||||
* The target URL mapping rest resource.
|
||||
*/
|
||||
@@ -100,6 +99,7 @@ public final class MgmtRestConstants {
|
||||
* The base URL mapping for the spring acuator management context path.
|
||||
*/
|
||||
public static final String BASE_SYSTEM_MAPPING = "/system";
|
||||
public static final String SYSTEM_V1_REQUEST_MAPPING = BASE_V1_REQUEST_MAPPING + BASE_SYSTEM_MAPPING;
|
||||
/**
|
||||
* URL mapping for system admin operations.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user