-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Tenant level topics count, null constraints
Signed-off-by: muralibasani <[email protected]>
- Loading branch information
muralibasani
committed
Jan 9, 2024
1 parent
aef0009
commit 1ad83c2
Showing
9 changed files
with
30 additions
and
11 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
8 changes: 6 additions & 2 deletions
8
core/src/main/java/io/aiven/klaw/model/response/RequestEntityStatusCount.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,12 +1,16 @@ | ||
package io.aiven.klaw.model.response; | ||
|
||
import io.aiven.klaw.model.enums.RequestEntityType; | ||
import jakarta.validation.constraints.NotNull; | ||
import java.util.Set; | ||
import lombok.Data; | ||
|
||
@Data | ||
public class RequestEntityStatusCount { | ||
RequestEntityType requestEntityType; // TOPIC,ACL,SCHEMA,CONNECTOR | ||
Set<RequestStatusCount> requestStatusCountSet; // created/approved/deleted/declined | ||
@NotNull RequestEntityType requestEntityType; // TOPIC,ACL,SCHEMA,CONNECTOR | ||
|
||
@NotNull Set<RequestStatusCount> requestStatusCountSet; // created/approved/deleted/declined | ||
|
||
@NotNull | ||
Set<RequestsOperationTypeCount> requestsOperationTypeCountSet; // Create/Delete/Update/Claim | ||
} |
6 changes: 4 additions & 2 deletions
6
core/src/main/java/io/aiven/klaw/model/response/RequestStatusCount.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,12 +1,14 @@ | ||
package io.aiven.klaw.model.response; | ||
|
||
import io.aiven.klaw.model.enums.RequestStatus; | ||
import jakarta.validation.constraints.NotNull; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
@Data | ||
@Builder | ||
public class RequestStatusCount { | ||
RequestStatus requestStatus; // CREATED,DELETED,APPROVED,DECLINED | ||
long count; | ||
@NotNull RequestStatus requestStatus; // CREATED,DELETED,APPROVED,DECLINED | ||
|
||
@NotNull long count; | ||
} |
3 changes: 2 additions & 1 deletion
3
core/src/main/java/io/aiven/klaw/model/response/RequestsCountOverview.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,9 +1,10 @@ | ||
package io.aiven.klaw.model.response; | ||
|
||
import jakarta.validation.constraints.NotNull; | ||
import java.util.Set; | ||
import lombok.Data; | ||
|
||
@Data | ||
public class RequestsCountOverview { | ||
Set<RequestEntityStatusCount> requestEntityStatistics; | ||
@NotNull Set<RequestEntityStatusCount> requestEntityStatistics; | ||
} |
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