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.
|
||||
*/
|
||||
|
||||
@@ -9,23 +9,23 @@
|
||||
SPDX-License-Identifier: EPL-2.0
|
||||
|
||||
-->
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.eclipse.hawkbit</groupId>
|
||||
<artifactId>hawkbit-parent</artifactId>
|
||||
<version>${revision}</version>
|
||||
</parent>
|
||||
<artifactId>hawkbit-rest-parent</artifactId>
|
||||
<name>hawkBit :: REST</name>
|
||||
<packaging>pom</packaging>
|
||||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.eclipse.hawkbit</groupId>
|
||||
<artifactId>hawkbit-parent</artifactId>
|
||||
<version>${revision}</version>
|
||||
</parent>
|
||||
<artifactId>hawkbit-rest-parent</artifactId>
|
||||
<name>hawkBit :: REST</name>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<modules>
|
||||
<module>hawkbit-rest-core</module>
|
||||
<module>hawkbit-mgmt-api</module>
|
||||
<module>hawkbit-mgmt-resource</module>
|
||||
<module>hawkbit-ddi-api</module>
|
||||
<module>hawkbit-ddi-resource</module>
|
||||
</modules>
|
||||
<modules>
|
||||
<module>hawkbit-rest-core</module>
|
||||
<module>hawkbit-mgmt-api</module>
|
||||
<module>hawkbit-mgmt-resource</module>
|
||||
<module>hawkbit-ddi-api</module>
|
||||
<module>hawkbit-ddi-resource</module>
|
||||
</modules>
|
||||
</project>
|
||||
Reference in New Issue
Block a user