-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Polish OpenFgaClient check(...) and expand(...)
- Loading branch information
1 parent
b75b41e
commit ee57ba2
Showing
9 changed files
with
283 additions
and
63 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
58 changes: 58 additions & 0 deletions
58
src/main/java/dev/openfga/sdk/api/client/ClientCheckRequest.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,58 @@ | ||
/* | ||
* 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.client; | ||
|
||
public class ClientCheckRequest { | ||
private String user; | ||
private String relation; | ||
private String _object; | ||
|
||
public ClientCheckRequest _object(String _object) { | ||
this._object = _object; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get _object | ||
* @return _object | ||
**/ | ||
public String getObject() { | ||
return _object; | ||
} | ||
|
||
public ClientCheckRequest relation(String relation) { | ||
this.relation = relation; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get relation | ||
* @return relation | ||
**/ | ||
public String getRelation() { | ||
return relation; | ||
} | ||
|
||
public ClientCheckRequest user(String user) { | ||
this.user = user; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get user | ||
* @return user | ||
**/ | ||
public String getUser() { | ||
return user; | ||
} | ||
} |
58 changes: 58 additions & 0 deletions
58
src/main/java/dev/openfga/sdk/api/client/ClientExpandRequest.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,58 @@ | ||
/* | ||
* 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.client; | ||
|
||
public class ClientExpandRequest { | ||
private String user; | ||
private String relation; | ||
private String _object; | ||
|
||
public ClientExpandRequest _object(String _object) { | ||
this._object = _object; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get _object | ||
* @return _object | ||
**/ | ||
public String getObject() { | ||
return _object; | ||
} | ||
|
||
public ClientExpandRequest relation(String relation) { | ||
this.relation = relation; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get relation | ||
* @return relation | ||
**/ | ||
public String getRelation() { | ||
return relation; | ||
} | ||
|
||
public ClientExpandRequest user(String user) { | ||
this.user = user; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get user | ||
* @return user | ||
**/ | ||
public String getUser() { | ||
return user; | ||
} | ||
} |
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
26 changes: 26 additions & 0 deletions
26
src/main/java/dev/openfga/sdk/api/configuration/ClientCheckOptions.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,26 @@ | ||
/* | ||
* 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 ClientCheckOptions { | ||
private String authorizationModelId; | ||
|
||
public ClientCheckOptions authorizationModelId(String authorizationModelId) { | ||
this.authorizationModelId = authorizationModelId; | ||
return this; | ||
} | ||
|
||
public String getAuthorizationModelId() { | ||
return authorizationModelId; | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
src/main/java/dev/openfga/sdk/api/configuration/ClientExpandOptions.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,26 @@ | ||
/* | ||
* 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 ClientExpandOptions { | ||
private String authorizationModelId; | ||
|
||
public ClientExpandOptions authorizationModelId(String authorizationModelId) { | ||
this.authorizationModelId = authorizationModelId; | ||
return this; | ||
} | ||
|
||
public String getAuthorizationModelId() { | ||
return authorizationModelId; | ||
} | ||
} |
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.