Skip to content
Snippets Groups Projects

Исправлена аннотация класса OAuth2Plugin, обновлены proto, перегенерирован код, обновлены примеры

Merged Andrei Biriukov requested to merge feature/upgrade into master
37 files
+ 1057
12475
Compare changes
  • Side-by-side
  • Inline
Files
37
@@ -4,8 +4,7 @@ import grpc
from oauthlib.oauth2 import BackendApplicationClient
from perxis.auth import OAuth2Plugin
from perxis.collections_perxis.collections_pb2 import ListRequest
from perxis.collections_perxis.collections_pb2_grpc import CollectionsStub
from perxis.collections import collections_pb2, collections_pb2_grpc
def main():
@@ -27,8 +26,8 @@ def main():
channel_credentials, call_credentials
)
with grpc.secure_channel('envoy.perxis.pt.perx.ru:443', composite_credentials) as channel:
stub = CollectionsStub(channel)
collections = stub.List(ListRequest(space_id="c1mrvup3e6litup7tf0g", env_id="master"))
stub = collections_pb2_grpc.CollectionsStub(channel)
collections = stub.List(collections_pb2.ListRequest(space_id="c2qcp9cuaccmpj8lmom0", env_id="master"))
print(collections)
Loading