Skip to content

Commit

Permalink
feat(java): Introduce Java SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
booniepepper committed Aug 10, 2023
1 parent 5a084ec commit 9192aca
Show file tree
Hide file tree
Showing 189 changed files with 22,737 additions and 208 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
#
# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech)

name: Java CI with Maven

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

jobs:
build:
name: Build OpenFGA
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '8' ]
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --no-transfer-progress --file pom.xml
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@v3
- run: semgrep ci
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
7 changes: 7 additions & 0 deletions .openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
**/ServerConfiguration.java
**/ServerVariable.java
src/main/AndroidManifest.xml
build.sbt
pom.xml
git_push.sh
.travis.yml
197 changes: 197 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,197 @@
.fossa.yml
.github/CODEOWNERS
.github/ISSUE_TEMPLATE/bug_report.md
.github/ISSUE_TEMPLATE/feature_request.md
.github/workflows/maven.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/api/OpenFgaApi.java
src/main/java/dev/openfga/api/client/ApiClient.java
src/main/java/dev/openfga/api/client/ApiException.java
src/main/java/dev/openfga/api/client/ApiResponse.java
src/main/java/dev/openfga/api/client/Configuration.java
src/main/java/dev/openfga/api/client/Configuration.java
src/main/java/dev/openfga/api/client/JSON.java
src/main/java/dev/openfga/api/client/Pair.java
src/main/java/dev/openfga/api/client/RFC3339DateFormat.java
src/main/java/dev/openfga/api/model/AbstractOpenApiSchema.java
src/main/java/dev/openfga/api/model/Any.java
src/main/java/dev/openfga/api/model/Assertion.java
src/main/java/dev/openfga/api/model/AuthorizationModel.java
src/main/java/dev/openfga/api/model/CheckRequest.java
src/main/java/dev/openfga/api/model/CheckResponse.java
src/main/java/dev/openfga/api/model/Computed.java
src/main/java/dev/openfga/api/model/ContextualTupleKeys.java
src/main/java/dev/openfga/api/model/CreateStoreRequest.java
src/main/java/dev/openfga/api/model/CreateStoreResponse.java
src/main/java/dev/openfga/api/model/Difference.java
src/main/java/dev/openfga/api/model/ErrorCode.java
src/main/java/dev/openfga/api/model/ExpandRequest.java
src/main/java/dev/openfga/api/model/ExpandResponse.java
src/main/java/dev/openfga/api/model/GetStoreResponse.java
src/main/java/dev/openfga/api/model/InternalErrorCode.java
src/main/java/dev/openfga/api/model/InternalErrorMessageResponse.java
src/main/java/dev/openfga/api/model/Leaf.java
src/main/java/dev/openfga/api/model/ListObjectsRequest.java
src/main/java/dev/openfga/api/model/ListObjectsResponse.java
src/main/java/dev/openfga/api/model/ListStoresResponse.java
src/main/java/dev/openfga/api/model/Metadata.java
src/main/java/dev/openfga/api/model/Node.java
src/main/java/dev/openfga/api/model/Nodes.java
src/main/java/dev/openfga/api/model/NotFoundErrorCode.java
src/main/java/dev/openfga/api/model/ObjectRelation.java
src/main/java/dev/openfga/api/model/PathUnknownErrorMessageResponse.java
src/main/java/dev/openfga/api/model/ReadAssertionsResponse.java
src/main/java/dev/openfga/api/model/ReadAuthorizationModelResponse.java
src/main/java/dev/openfga/api/model/ReadAuthorizationModelsResponse.java
src/main/java/dev/openfga/api/model/ReadChangesResponse.java
src/main/java/dev/openfga/api/model/ReadRequest.java
src/main/java/dev/openfga/api/model/ReadResponse.java
src/main/java/dev/openfga/api/model/RelationMetadata.java
src/main/java/dev/openfga/api/model/RelationReference.java
src/main/java/dev/openfga/api/model/Status.java
src/main/java/dev/openfga/api/model/Store.java
src/main/java/dev/openfga/api/model/Tuple.java
src/main/java/dev/openfga/api/model/TupleChange.java
src/main/java/dev/openfga/api/model/TupleKey.java
src/main/java/dev/openfga/api/model/TupleKeys.java
src/main/java/dev/openfga/api/model/TupleOperation.java
src/main/java/dev/openfga/api/model/TupleToUserset.java
src/main/java/dev/openfga/api/model/TypeDefinition.java
src/main/java/dev/openfga/api/model/Users.java
src/main/java/dev/openfga/api/model/Userset.java
src/main/java/dev/openfga/api/model/UsersetTree.java
src/main/java/dev/openfga/api/model/UsersetTreeDifference.java
src/main/java/dev/openfga/api/model/UsersetTreeTupleToUserset.java
src/main/java/dev/openfga/api/model/Usersets.java
src/main/java/dev/openfga/api/model/ValidationErrorMessageResponse.java
src/main/java/dev/openfga/api/model/WriteAssertionsRequest.java
src/main/java/dev/openfga/api/model/WriteAuthorizationModelRequest.java
src/main/java/dev/openfga/api/model/WriteAuthorizationModelResponse.java
src/main/java/dev/openfga/api/model/WriteRequest.java
src/test-integration/java/dev/openfga/api/OpenFgaApiIntegrationTest.java
src/test/java/dev/openfga/api/OpenFgaApiTest.java
src/test/java/dev/openfga/api/OpenFgaApiTest.java
src/test/java/dev/openfga/api/model/AnyTest.java
src/test/java/dev/openfga/api/model/AssertionTest.java
src/test/java/dev/openfga/api/model/AuthorizationModelTest.java
src/test/java/dev/openfga/api/model/CheckRequestTest.java
src/test/java/dev/openfga/api/model/CheckResponseTest.java
src/test/java/dev/openfga/api/model/ComputedTest.java
src/test/java/dev/openfga/api/model/ContextualTupleKeysTest.java
src/test/java/dev/openfga/api/model/CreateStoreRequestTest.java
src/test/java/dev/openfga/api/model/CreateStoreResponseTest.java
src/test/java/dev/openfga/api/model/DifferenceTest.java
src/test/java/dev/openfga/api/model/ErrorCodeTest.java
src/test/java/dev/openfga/api/model/ExpandRequestTest.java
src/test/java/dev/openfga/api/model/ExpandResponseTest.java
src/test/java/dev/openfga/api/model/GetStoreResponseTest.java
src/test/java/dev/openfga/api/model/InternalErrorCodeTest.java
src/test/java/dev/openfga/api/model/InternalErrorMessageResponseTest.java
src/test/java/dev/openfga/api/model/LeafTest.java
src/test/java/dev/openfga/api/model/ListObjectsRequestTest.java
src/test/java/dev/openfga/api/model/ListObjectsResponseTest.java
src/test/java/dev/openfga/api/model/ListStoresResponseTest.java
src/test/java/dev/openfga/api/model/MetadataTest.java
src/test/java/dev/openfga/api/model/NodeTest.java
src/test/java/dev/openfga/api/model/NodesTest.java
src/test/java/dev/openfga/api/model/NotFoundErrorCodeTest.java
src/test/java/dev/openfga/api/model/ObjectRelationTest.java
src/test/java/dev/openfga/api/model/PathUnknownErrorMessageResponseTest.java
src/test/java/dev/openfga/api/model/ReadAssertionsResponseTest.java
src/test/java/dev/openfga/api/model/ReadAuthorizationModelResponseTest.java
src/test/java/dev/openfga/api/model/ReadAuthorizationModelsResponseTest.java
src/test/java/dev/openfga/api/model/ReadChangesResponseTest.java
src/test/java/dev/openfga/api/model/ReadRequestTest.java
src/test/java/dev/openfga/api/model/ReadResponseTest.java
src/test/java/dev/openfga/api/model/RelationMetadataTest.java
src/test/java/dev/openfga/api/model/RelationReferenceTest.java
src/test/java/dev/openfga/api/model/StatusTest.java
src/test/java/dev/openfga/api/model/StoreTest.java
src/test/java/dev/openfga/api/model/TupleChangeTest.java
src/test/java/dev/openfga/api/model/TupleKeyTest.java
src/test/java/dev/openfga/api/model/TupleKeysTest.java
src/test/java/dev/openfga/api/model/TupleOperationTest.java
src/test/java/dev/openfga/api/model/TupleTest.java
src/test/java/dev/openfga/api/model/TupleToUsersetTest.java
src/test/java/dev/openfga/api/model/TypeDefinitionTest.java
src/test/java/dev/openfga/api/model/UsersTest.java
src/test/java/dev/openfga/api/model/UsersetTest.java
src/test/java/dev/openfga/api/model/UsersetTreeDifferenceTest.java
src/test/java/dev/openfga/api/model/UsersetTreeTest.java
src/test/java/dev/openfga/api/model/UsersetTreeTupleToUsersetTest.java
src/test/java/dev/openfga/api/model/UsersetsTest.java
src/test/java/dev/openfga/api/model/ValidationErrorMessageResponseTest.java
src/test/java/dev/openfga/api/model/WriteAssertionsRequestTest.java
src/test/java/dev/openfga/api/model/WriteAuthorizationModelRequestTest.java
src/test/java/dev/openfga/api/model/WriteAuthorizationModelResponseTest.java
src/test/java/dev/openfga/api/model/WriteRequestTest.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

0 comments on commit 9192aca

Please sign in to comment.