-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(client): add tests on listRelations, flesh out logic
- Loading branch information
1 parent
4b404f2
commit 30e1124
Showing
5 changed files
with
288 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
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
42 changes: 42 additions & 0 deletions
42
src/main/java/dev/openfga/sdk/api/configuration/ClientListRelationsOptions.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,42 @@ | ||
/* | ||
* OpenFGA | ||
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar. | ||
* | ||
* The version of the OpenAPI document: 0.1 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
package dev.openfga.sdk.api.configuration; | ||
|
||
public class ClientListRelationsOptions { | ||
private Integer maxParallelRequests; | ||
private String authorizationModelId; | ||
|
||
public ClientListRelationsOptions maxParallelRequests(Integer maxParallelRequests) { | ||
this.maxParallelRequests = maxParallelRequests; | ||
return this; | ||
} | ||
|
||
public Integer getMaxParallelRequests() { | ||
return maxParallelRequests; | ||
} | ||
|
||
public ClientListRelationsOptions authorizationModelId(String authorizationModelId) { | ||
this.authorizationModelId = authorizationModelId; | ||
return this; | ||
} | ||
|
||
public String getAuthorizationModelId() { | ||
return authorizationModelId; | ||
} | ||
|
||
public ClientBatchCheckOptions asClientBatchCheckOptions() { | ||
return new ClientBatchCheckOptions() | ||
.authorizationModelId(authorizationModelId) | ||
.maxParallelRequests(maxParallelRequests); | ||
} | ||
} |
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