Code format hawkbit-rest (#1945)

Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2024-11-05 11:33:22 +02:00
committed by GitHub
parent 4b460d8e68
commit c0c2f20a7d
5 changed files with 22 additions and 19 deletions

View File

@@ -31,6 +31,7 @@ public class MgmtRolloutCondition {
@Schema(description = "The expression according to the condition, e.g. the value of threshold in percentage", @Schema(description = "The expression according to the condition, e.g. the value of threshold in percentage",
example = "50") example = "50")
private String expression = "100"; private String expression = "100";
public MgmtRolloutCondition(final Condition condition, final String expression) { public MgmtRolloutCondition(final Condition condition, final String expression) {
this.condition = condition; this.condition = condition;
this.expression = expression; this.expression = expression;

View File

@@ -33,6 +33,7 @@ public class MgmtRolloutErrorAction {
private ErrorAction action = ErrorAction.PAUSE; private ErrorAction action = ErrorAction.PAUSE;
@Schema(description = "The expression for the error action", example = "80") @Schema(description = "The expression for the error action", example = "80")
private String expression; private String expression;
/** /**
* Creates a rollout error action * Creates a rollout error action
* *

View File

@@ -30,6 +30,7 @@ public class MgmtRolloutSuccessAction {
private SuccessAction action = SuccessAction.NEXTGROUP; private SuccessAction action = SuccessAction.NEXTGROUP;
@Schema(description = "The expression for the success action") @Schema(description = "The expression for the success action")
private String expression; private String expression;
public MgmtRolloutSuccessAction(final SuccessAction action, final String expression) { public MgmtRolloutSuccessAction(final SuccessAction action, final String expression) {
this.action = action; this.action = action;
this.expression = expression; this.expression = expression;

View File

@@ -36,7 +36,6 @@ public final class MgmtRestConstants {
* The software module URL mapping rest resource. * The software module URL mapping rest resource.
*/ */
public static final String SOFTWAREMODULE_V1_REQUEST_MAPPING = BASE_V1_REQUEST_MAPPING + "/softwaremodules"; 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. * 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. * The base URL mapping for the spring acuator management context path.
*/ */
public static final String BASE_SYSTEM_MAPPING = "/system"; 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. * URL mapping for system admin operations.
*/ */

View File

@@ -9,23 +9,23 @@
SPDX-License-Identifier: EPL-2.0 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" <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"> 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> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>org.eclipse.hawkbit</groupId> <groupId>org.eclipse.hawkbit</groupId>
<artifactId>hawkbit-parent</artifactId> <artifactId>hawkbit-parent</artifactId>
<version>${revision}</version> <version>${revision}</version>
</parent> </parent>
<artifactId>hawkbit-rest-parent</artifactId> <artifactId>hawkbit-rest-parent</artifactId>
<name>hawkBit :: REST</name> <name>hawkBit :: REST</name>
<packaging>pom</packaging> <packaging>pom</packaging>
<modules> <modules>
<module>hawkbit-rest-core</module> <module>hawkbit-rest-core</module>
<module>hawkbit-mgmt-api</module> <module>hawkbit-mgmt-api</module>
<module>hawkbit-mgmt-resource</module> <module>hawkbit-mgmt-resource</module>
<module>hawkbit-ddi-api</module> <module>hawkbit-ddi-api</module>
<module>hawkbit-ddi-resource</module> <module>hawkbit-ddi-resource</module>
</modules> </modules>
</project> </project>