-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: list flags + single namespace (#151)
* feat(wip): remove passing array of namespace everywhere * chore: fmt * feat(wip): return flags list * chore: add basic test * chore: rm namespace from requests * chore: simplify * chore: fix ruby client/test * chore: java client * chore: fmt java * chore: try to add list_flags to node * chore: try to ignore unknown flag type property * chore: try to fix node test * cleanup memory after use (#154) * chore: python cleanup * chore: fix python; test * chore: go list flags * chore: fix rust test * chore: PR suggestions --------- Co-authored-by: Roman Dmytrenko <[email protected]>
- Loading branch information
1 parent
2e89d09
commit cf09c85
Showing
20 changed files
with
542 additions
and
405 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
34 changes: 34 additions & 0 deletions
34
flipt-client-java/src/main/java/io/flipt/client/models/Flag.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,34 @@ | ||
package io.flipt.client.models; | ||
|
||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class Flag { | ||
private final String key; | ||
private final boolean enabled; | ||
private final String type; | ||
|
||
@JsonCreator(mode = JsonCreator.Mode.PROPERTIES) | ||
public Flag( | ||
@JsonProperty("key") String key, | ||
@JsonProperty("enabled") boolean enabled, | ||
@JsonProperty("type") String type) { | ||
this.key = key; | ||
this.enabled = enabled; | ||
this.type = type; | ||
} | ||
|
||
public String getKey() { | ||
return key; | ||
} | ||
|
||
public boolean isEnabled() { | ||
return enabled; | ||
} | ||
|
||
public String getType() { | ||
return type; | ||
} | ||
} |
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.