-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from viadee-internal/feat-typeOfUserMode
Feat: type of user mode
- Loading branch information
Showing
23 changed files
with
294 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
src/main/java/de/viadee/bpm/camunda/connectors/kubeflow/entities/input/Configuration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
package de.viadee.bpm.camunda.connectors.kubeflow.entities.input; | ||
|
||
import jakarta.validation.constraints.NotEmpty; | ||
|
||
public record Configuration( | ||
String kubeflowUrl, | ||
String multiusernamespace) { | ||
@NotEmpty | ||
String typeOfUserMode) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/main/java/de/viadee/bpm/camunda/connectors/kubeflow/enums/TypeOfUserModeEnum.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package de.viadee.bpm.camunda.connectors.kubeflow.enums; | ||
|
||
import java.util.Arrays; | ||
|
||
public enum TypeOfUserModeEnum { | ||
MULTI_USER_MODE("multiUserMode"); | ||
|
||
private final String value; | ||
|
||
TypeOfUserModeEnum(String value) { | ||
this.value = value; | ||
} | ||
|
||
public String getValue() { | ||
return value; | ||
} | ||
|
||
public static TypeOfUserModeEnum fromValue(String value) { | ||
return Arrays | ||
.stream(values()) | ||
.filter(typeOfUserModeEnum -> typeOfUserModeEnum.value.equals(value)) | ||
.findFirst() | ||
.orElseThrow( | ||
() -> new IllegalArgumentException("Unbekannter Wert: " + value) | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.