Skip to content

Commit

Permalink
Add models
Browse files Browse the repository at this point in the history
  • Loading branch information
samanehsan committed Feb 29, 2024
1 parent 6c996e9 commit 5b99a70
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package bio.terra.externalcreds.models;

import java.sql.Timestamp;
import org.immutables.value.Value;

@Value.Immutable
public interface DistributedLock extends WithDistributedLock {
String getLockName();

String getUserId();

Timestamp getExpiresAt();

class Builder extends ImmutableDistributedLock.Builder {}
}

Check warning on line 15 in service/src/main/java/bio/terra/externalcreds/models/DistributedLock.java

View check run for this annotation

Codecov / codecov/patch

service/src/main/java/bio/terra/externalcreds/models/DistributedLock.java#L14-L15

Added lines #L14 - L15 were not covered by tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package bio.terra.externalcreds.models;

import java.sql.Timestamp;
import java.util.Optional;
import org.immutables.value.Value;

@Value.Immutable
public interface FenceAccountKey extends WithFenceAccountKey {
Integer getId();

Optional<String> getKeyJson();

Timestamp getExpiresAt();

class Builder extends ImmutableFenceAccountKey.Builder {}
}

0 comments on commit 5b99a70

Please sign in to comment.