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

properly wire up experimental service #100

Merged
merged 6 commits into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from 4 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
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
strategy:
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
vroldanbet marked this conversation as resolved.
Show resolved Hide resolved
steps:
- uses: "actions/checkout@v3"
- uses: "actions/setup-python@v4"
Expand Down
41 changes: 20 additions & 21 deletions authzed/api/v0/core_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions authzed/api/v0/developer_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 24 additions & 1 deletion authzed/api/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@
ZedToken,
)
from authzed.api.v1.error_reason_pb2 import ErrorReason
from authzed.api.v1.experimental_service_pb2 import (
BulkCheckPermissionPair,
BulkCheckPermissionRequest,
BulkCheckPermissionRequestItem,
BulkCheckPermissionResponse,
BulkCheckPermissionResponseItem,
BulkExportRelationshipsRequest,
BulkExportRelationshipsResponse,
BulkImportRelationshipsRequest,
BulkImportRelationshipsResponse,
)
from authzed.api.v1.experimental_service_pb2_grpc import ExperimentalServiceStub
from authzed.api.v1.permission_service_pb2 import (
CheckPermissionRequest,
CheckPermissionResponse,
Expand Down Expand Up @@ -45,7 +57,7 @@
from authzed.api.v1.schema_service_pb2_grpc import SchemaServiceStub


class Client(SchemaServiceStub, PermissionsServiceStub):
class Client(SchemaServiceStub, PermissionsServiceStub, ExperimentalServiceStub):
"""
v1 Authzed gRPC API client.
"""
Expand All @@ -60,6 +72,7 @@ def __init__(self, target, credentials, options=None, compression=None):
channel = channelfn(target, credentials, options, compression)
SchemaServiceStub.__init__(self, channel)
PermissionsServiceStub.__init__(self, channel)
ExperimentalServiceStub.__init__(self, channel)


__all__ = [
Expand Down Expand Up @@ -100,4 +113,14 @@ def __init__(self, target, credentials, options=None, compression=None):
"ReadSchemaResponse",
"WriteSchemaRequest",
"WriteSchemaResponse",
# Experimental Service
"BulkCheckPermissionRequest",
"BulkCheckPermissionResponse",
"BulkCheckPermissionPair",
"BulkCheckPermissionRequestItem",
"BulkCheckPermissionResponseItem",
"BulkImportRelationshipsRequest",
"BulkImportRelationshipsResponse",
"BulkExportRelationshipsRequest",
"BulkExportRelationshipsResponse",
]
77 changes: 38 additions & 39 deletions authzed/api/v1/core_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 12 additions & 13 deletions authzed/api/v1/debug_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions authzed/api/v1/error_reason_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading