Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(java): Initialize Java SDK #2

Merged
merged 1 commit into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Java CI with Gradle

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
name: Build OpenFGA
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '11', '17', '20' ]
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.2
- name: Set up JDK
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: gradle
- name: Build with Gradle
run: |
./gradlew build
17 changes: 17 additions & 0 deletions .github/workflows/semgrep.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Semgrep
on:
push:
branches:
- main
jobs:
semgrep:
name: Scan
runs-on: ubuntu-latest
container:
image: returntocorp/semgrep
if: (github.actor != 'dependabot[bot]' && github.actor != 'snyk-bot')
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.2
- run: semgrep ci
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ hs_err_pid*
target
.gradle
build

# openapi files
/api/openapi.yaml
VERSION.txt
8 changes: 8 additions & 0 deletions .openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
**/ServerConfiguration.java
**/ServerVariable.java
src/main/AndroidManifest.xml
build.sbt
pom.xml
.github/workflows/maven.yml
git_push.sh
.travis.yml
207 changes: 207 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,207 @@
.fossa.yml
.github/CODEOWNERS
.github/ISSUE_TEMPLATE/bug_report.md
.github/ISSUE_TEMPLATE/feature_request.md
.github/workflows/main.yml
.github/workflows/semgrep.yaml
.gitignore
CHANGELOG.md
CONTRIBUTING.md
LICENSE
NOTICE.txt
README.md
VERSION.txt
api/openapi.yaml
build.gradle
docs/Any.md
docs/Assertion.md
docs/AuthorizationModel.md
docs/CheckRequest.md
docs/CheckResponse.md
docs/Computed.md
docs/ContextualTupleKeys.md
docs/CreateStoreRequest.md
docs/CreateStoreResponse.md
docs/Difference.md
docs/ErrorCode.md
docs/ExpandRequest.md
docs/ExpandResponse.md
docs/GetStoreResponse.md
docs/InternalErrorCode.md
docs/InternalErrorMessageResponse.md
docs/Leaf.md
docs/ListObjectsRequest.md
docs/ListObjectsResponse.md
docs/ListStoresResponse.md
docs/Metadata.md
docs/Node.md
docs/Nodes.md
docs/NotFoundErrorCode.md
docs/ObjectRelation.md
docs/OpenFgaApi.md
docs/PathUnknownErrorMessageResponse.md
docs/ReadAssertionsResponse.md
docs/ReadAuthorizationModelResponse.md
docs/ReadAuthorizationModelsResponse.md
docs/ReadChangesResponse.md
docs/ReadRequest.md
docs/ReadResponse.md
docs/RelationMetadata.md
docs/RelationReference.md
docs/Status.md
docs/Store.md
docs/Tuple.md
docs/TupleChange.md
docs/TupleKey.md
docs/TupleKeys.md
docs/TupleOperation.md
docs/TupleToUserset.md
docs/TypeDefinition.md
docs/Users.md
docs/Userset.md
docs/UsersetTree.md
docs/UsersetTreeDifference.md
docs/UsersetTreeTupleToUserset.md
docs/Usersets.md
docs/ValidationErrorMessageResponse.md
docs/WriteAssertionsRequest.md
docs/WriteAuthorizationModelRequest.md
docs/WriteAuthorizationModelResponse.md
docs/WriteRequest.md
gradle.properties
gradle/wrapper/gradle-wrapper.jar
gradle/wrapper/gradle-wrapper.properties
gradlew
gradlew.bat
settings.gradle
src/main/java/dev/openfga/sdk/api/OpenFgaApi.java
src/main/java/dev/openfga/sdk/api/client/ApiBearerToken.java
src/main/java/dev/openfga/sdk/api/client/ApiClient.java
src/main/java/dev/openfga/sdk/api/client/ApiException.java
src/main/java/dev/openfga/sdk/api/client/ApiResponse.java
src/main/java/dev/openfga/sdk/api/client/BaseConfiguration.java
src/main/java/dev/openfga/sdk/api/client/ClientCredentials.java
src/main/java/dev/openfga/sdk/api/client/Configuration.java
src/main/java/dev/openfga/sdk/api/client/Configuration.java
src/main/java/dev/openfga/sdk/api/client/ConfigurationOverride.java
src/main/java/dev/openfga/sdk/api/client/CredentialsMethod.java
src/main/java/dev/openfga/sdk/api/client/JSON.java
src/main/java/dev/openfga/sdk/api/client/Pair.java
src/main/java/dev/openfga/sdk/api/client/RFC3339DateFormat.java
src/main/java/dev/openfga/sdk/api/model/AbstractOpenApiSchema.java
src/main/java/dev/openfga/sdk/api/model/Any.java
src/main/java/dev/openfga/sdk/api/model/Assertion.java
src/main/java/dev/openfga/sdk/api/model/AuthorizationModel.java
src/main/java/dev/openfga/sdk/api/model/CheckRequest.java
src/main/java/dev/openfga/sdk/api/model/CheckResponse.java
src/main/java/dev/openfga/sdk/api/model/Computed.java
src/main/java/dev/openfga/sdk/api/model/ContextualTupleKeys.java
src/main/java/dev/openfga/sdk/api/model/CreateStoreRequest.java
src/main/java/dev/openfga/sdk/api/model/CreateStoreResponse.java
src/main/java/dev/openfga/sdk/api/model/Difference.java
src/main/java/dev/openfga/sdk/api/model/ErrorCode.java
src/main/java/dev/openfga/sdk/api/model/ExpandRequest.java
src/main/java/dev/openfga/sdk/api/model/ExpandResponse.java
src/main/java/dev/openfga/sdk/api/model/GetStoreResponse.java
src/main/java/dev/openfga/sdk/api/model/InternalErrorCode.java
src/main/java/dev/openfga/sdk/api/model/InternalErrorMessageResponse.java
src/main/java/dev/openfga/sdk/api/model/Leaf.java
src/main/java/dev/openfga/sdk/api/model/ListObjectsRequest.java
src/main/java/dev/openfga/sdk/api/model/ListObjectsResponse.java
src/main/java/dev/openfga/sdk/api/model/ListStoresResponse.java
src/main/java/dev/openfga/sdk/api/model/Metadata.java
src/main/java/dev/openfga/sdk/api/model/Node.java
src/main/java/dev/openfga/sdk/api/model/Nodes.java
src/main/java/dev/openfga/sdk/api/model/NotFoundErrorCode.java
src/main/java/dev/openfga/sdk/api/model/ObjectRelation.java
src/main/java/dev/openfga/sdk/api/model/PathUnknownErrorMessageResponse.java
src/main/java/dev/openfga/sdk/api/model/ReadAssertionsResponse.java
src/main/java/dev/openfga/sdk/api/model/ReadAuthorizationModelResponse.java
src/main/java/dev/openfga/sdk/api/model/ReadAuthorizationModelsResponse.java
src/main/java/dev/openfga/sdk/api/model/ReadChangesResponse.java
src/main/java/dev/openfga/sdk/api/model/ReadRequest.java
src/main/java/dev/openfga/sdk/api/model/ReadResponse.java
src/main/java/dev/openfga/sdk/api/model/RelationMetadata.java
src/main/java/dev/openfga/sdk/api/model/RelationReference.java
src/main/java/dev/openfga/sdk/api/model/Status.java
src/main/java/dev/openfga/sdk/api/model/Store.java
src/main/java/dev/openfga/sdk/api/model/Tuple.java
src/main/java/dev/openfga/sdk/api/model/TupleChange.java
src/main/java/dev/openfga/sdk/api/model/TupleKey.java
src/main/java/dev/openfga/sdk/api/model/TupleKeys.java
src/main/java/dev/openfga/sdk/api/model/TupleOperation.java
src/main/java/dev/openfga/sdk/api/model/TupleToUserset.java
src/main/java/dev/openfga/sdk/api/model/TypeDefinition.java
src/main/java/dev/openfga/sdk/api/model/Users.java
src/main/java/dev/openfga/sdk/api/model/Userset.java
src/main/java/dev/openfga/sdk/api/model/UsersetTree.java
src/main/java/dev/openfga/sdk/api/model/UsersetTreeDifference.java
src/main/java/dev/openfga/sdk/api/model/UsersetTreeTupleToUserset.java
src/main/java/dev/openfga/sdk/api/model/Usersets.java
src/main/java/dev/openfga/sdk/api/model/ValidationErrorMessageResponse.java
src/main/java/dev/openfga/sdk/api/model/WriteAssertionsRequest.java
src/main/java/dev/openfga/sdk/api/model/WriteAuthorizationModelRequest.java
src/main/java/dev/openfga/sdk/api/model/WriteAuthorizationModelResponse.java
src/main/java/dev/openfga/sdk/api/model/WriteRequest.java
src/main/java/dev/openfga/sdk/errors/FgaInvalidParameterException.java
src/main/java/dev/openfga/util/StringUtil.java
src/test-integration/java/dev/openfga/sdk/api/OpenFgaApiIntegrationTest.java
src/test/java/dev/openfga/sdk/api/OpenFgaApiTest.java
src/test/java/dev/openfga/sdk/api/OpenFgaApiTest.java
src/test/java/dev/openfga/sdk/api/client/ClientCredentialsTest.java
src/test/java/dev/openfga/sdk/api/client/ConfigurationTest.java
src/test/java/dev/openfga/sdk/api/model/AnyTest.java
src/test/java/dev/openfga/sdk/api/model/AssertionTest.java
src/test/java/dev/openfga/sdk/api/model/AuthorizationModelTest.java
src/test/java/dev/openfga/sdk/api/model/CheckRequestTest.java
src/test/java/dev/openfga/sdk/api/model/CheckResponseTest.java
src/test/java/dev/openfga/sdk/api/model/ComputedTest.java
src/test/java/dev/openfga/sdk/api/model/ContextualTupleKeysTest.java
src/test/java/dev/openfga/sdk/api/model/CreateStoreRequestTest.java
src/test/java/dev/openfga/sdk/api/model/CreateStoreResponseTest.java
src/test/java/dev/openfga/sdk/api/model/DifferenceTest.java
src/test/java/dev/openfga/sdk/api/model/ErrorCodeTest.java
src/test/java/dev/openfga/sdk/api/model/ExpandRequestTest.java
src/test/java/dev/openfga/sdk/api/model/ExpandResponseTest.java
src/test/java/dev/openfga/sdk/api/model/GetStoreResponseTest.java
src/test/java/dev/openfga/sdk/api/model/InternalErrorCodeTest.java
src/test/java/dev/openfga/sdk/api/model/InternalErrorMessageResponseTest.java
src/test/java/dev/openfga/sdk/api/model/LeafTest.java
src/test/java/dev/openfga/sdk/api/model/ListObjectsRequestTest.java
src/test/java/dev/openfga/sdk/api/model/ListObjectsResponseTest.java
src/test/java/dev/openfga/sdk/api/model/ListStoresResponseTest.java
src/test/java/dev/openfga/sdk/api/model/MetadataTest.java
src/test/java/dev/openfga/sdk/api/model/NodeTest.java
src/test/java/dev/openfga/sdk/api/model/NodesTest.java
src/test/java/dev/openfga/sdk/api/model/NotFoundErrorCodeTest.java
src/test/java/dev/openfga/sdk/api/model/ObjectRelationTest.java
src/test/java/dev/openfga/sdk/api/model/PathUnknownErrorMessageResponseTest.java
src/test/java/dev/openfga/sdk/api/model/ReadAssertionsResponseTest.java
src/test/java/dev/openfga/sdk/api/model/ReadAuthorizationModelResponseTest.java
src/test/java/dev/openfga/sdk/api/model/ReadAuthorizationModelsResponseTest.java
src/test/java/dev/openfga/sdk/api/model/ReadChangesResponseTest.java
src/test/java/dev/openfga/sdk/api/model/ReadRequestTest.java
src/test/java/dev/openfga/sdk/api/model/ReadResponseTest.java
src/test/java/dev/openfga/sdk/api/model/RelationMetadataTest.java
src/test/java/dev/openfga/sdk/api/model/RelationReferenceTest.java
src/test/java/dev/openfga/sdk/api/model/StatusTest.java
src/test/java/dev/openfga/sdk/api/model/StoreTest.java
src/test/java/dev/openfga/sdk/api/model/TupleChangeTest.java
src/test/java/dev/openfga/sdk/api/model/TupleKeyTest.java
src/test/java/dev/openfga/sdk/api/model/TupleKeysTest.java
src/test/java/dev/openfga/sdk/api/model/TupleOperationTest.java
src/test/java/dev/openfga/sdk/api/model/TupleTest.java
src/test/java/dev/openfga/sdk/api/model/TupleToUsersetTest.java
src/test/java/dev/openfga/sdk/api/model/TypeDefinitionTest.java
src/test/java/dev/openfga/sdk/api/model/UsersTest.java
src/test/java/dev/openfga/sdk/api/model/UsersetTest.java
src/test/java/dev/openfga/sdk/api/model/UsersetTreeDifferenceTest.java
src/test/java/dev/openfga/sdk/api/model/UsersetTreeTest.java
src/test/java/dev/openfga/sdk/api/model/UsersetTreeTupleToUsersetTest.java
src/test/java/dev/openfga/sdk/api/model/UsersetsTest.java
src/test/java/dev/openfga/sdk/api/model/ValidationErrorMessageResponseTest.java
src/test/java/dev/openfga/sdk/api/model/WriteAssertionsRequestTest.java
src/test/java/dev/openfga/sdk/api/model/WriteAuthorizationModelRequestTest.java
src/test/java/dev/openfga/sdk/api/model/WriteAuthorizationModelResponseTest.java
src/test/java/dev/openfga/sdk/api/model/WriteRequestTest.java
src/test/java/dev/openfga/util/StringUtilTest.java
1 change: 1 addition & 0 deletions .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6.4.0
Loading