Skip to content

Commit 26fe7bd

Browse files
author
Ronen Hilewicz
committed
Regenerate bindings using remote mypy plugins
1 parent ede71cc commit 26fe7bd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+2110
-6179
lines changed

src/aserto/directory/common/v2/common_pb2.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/aserto/directory/common/v2/common_pb2.pyi

Lines changed: 190 additions & 494 deletions
Large diffs are not rendered by default.

src/aserto/directory/common/v3/common_pb2.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 104 additions & 253 deletions
Original file line numberDiff line numberDiff line change
@@ -1,253 +1,104 @@
1-
"""
2-
@generated by mypy-protobuf. Do not edit manually!
3-
isort:skip_file
4-
"""
5-
import builtins
6-
import collections.abc
7-
import google.protobuf.descriptor
8-
import google.protobuf.internal.containers
9-
import google.protobuf.message
10-
import google.protobuf.struct_pb2
11-
import google.protobuf.timestamp_pb2
12-
import sys
13-
14-
if sys.version_info >= (3, 8):
15-
import typing as typing_extensions
16-
else:
17-
import typing_extensions
18-
19-
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
20-
21-
@typing_extensions.final
22-
class Object(google.protobuf.message.Message):
23-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
24-
25-
TYPE_FIELD_NUMBER: builtins.int
26-
ID_FIELD_NUMBER: builtins.int
27-
DISPLAY_NAME_FIELD_NUMBER: builtins.int
28-
PROPERTIES_FIELD_NUMBER: builtins.int
29-
CREATED_AT_FIELD_NUMBER: builtins.int
30-
UPDATED_AT_FIELD_NUMBER: builtins.int
31-
ETAG_FIELD_NUMBER: builtins.int
32-
type: builtins.str
33-
"""object type name"""
34-
id: builtins.str
35-
"""external object identifier (cs-string, no spaces or tabs)"""
36-
display_name: builtins.str
37-
"""display name object"""
38-
@property
39-
def properties(self) -> google.protobuf.struct_pb2.Struct:
40-
"""property bag"""
41-
@property
42-
def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
43-
"""created at timestamp (UTC)"""
44-
@property
45-
def updated_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
46-
"""last updated timestamp (UTC)"""
47-
etag: builtins.str
48-
"""object instance etag"""
49-
def __init__(
50-
self,
51-
*,
52-
type: builtins.str = ...,
53-
id: builtins.str = ...,
54-
display_name: builtins.str = ...,
55-
properties: google.protobuf.struct_pb2.Struct | None = ...,
56-
created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
57-
updated_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
58-
etag: builtins.str = ...,
59-
) -> None: ...
60-
def HasField(self, field_name: typing_extensions.Literal["created_at", b"created_at", "properties", b"properties", "updated_at", b"updated_at"]) -> builtins.bool: ...
61-
def ClearField(self, field_name: typing_extensions.Literal["created_at", b"created_at", "display_name", b"display_name", "etag", b"etag", "id", b"id", "properties", b"properties", "type", b"type", "updated_at", b"updated_at"]) -> None: ...
62-
63-
global___Object = Object
64-
65-
@typing_extensions.final
66-
class Relation(google.protobuf.message.Message):
67-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
68-
69-
OBJECT_TYPE_FIELD_NUMBER: builtins.int
70-
OBJECT_ID_FIELD_NUMBER: builtins.int
71-
RELATION_FIELD_NUMBER: builtins.int
72-
SUBJECT_TYPE_FIELD_NUMBER: builtins.int
73-
SUBJECT_ID_FIELD_NUMBER: builtins.int
74-
SUBJECT_RELATION_FIELD_NUMBER: builtins.int
75-
CREATED_AT_FIELD_NUMBER: builtins.int
76-
UPDATED_AT_FIELD_NUMBER: builtins.int
77-
ETAG_FIELD_NUMBER: builtins.int
78-
object_type: builtins.str
79-
"""object type"""
80-
object_id: builtins.str
81-
"""object identifier"""
82-
relation: builtins.str
83-
"""object relation name"""
84-
subject_type: builtins.str
85-
"""subject type"""
86-
subject_id: builtins.str
87-
"""subject identifier"""
88-
subject_relation: builtins.str
89-
"""optional subject relation name"""
90-
@property
91-
def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
92-
"""created at timestamp (UTC)"""
93-
@property
94-
def updated_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
95-
"""last updated timestamp (UTC)"""
96-
etag: builtins.str
97-
"""object instance etag"""
98-
def __init__(
99-
self,
100-
*,
101-
object_type: builtins.str = ...,
102-
object_id: builtins.str = ...,
103-
relation: builtins.str = ...,
104-
subject_type: builtins.str = ...,
105-
subject_id: builtins.str = ...,
106-
subject_relation: builtins.str = ...,
107-
created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
108-
updated_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
109-
etag: builtins.str = ...,
110-
) -> None: ...
111-
def HasField(self, field_name: typing_extensions.Literal["created_at", b"created_at", "updated_at", b"updated_at"]) -> builtins.bool: ...
112-
def ClearField(self, field_name: typing_extensions.Literal["created_at", b"created_at", "etag", b"etag", "object_id", b"object_id", "object_type", b"object_type", "relation", b"relation", "subject_id", b"subject_id", "subject_relation", b"subject_relation", "subject_type", b"subject_type", "updated_at", b"updated_at"]) -> None: ...
113-
114-
global___Relation = Relation
115-
116-
@typing_extensions.final
117-
class ObjectDependency(google.protobuf.message.Message):
118-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
119-
120-
OBJECT_TYPE_FIELD_NUMBER: builtins.int
121-
OBJECT_ID_FIELD_NUMBER: builtins.int
122-
RELATION_FIELD_NUMBER: builtins.int
123-
SUBJECT_TYPE_FIELD_NUMBER: builtins.int
124-
SUBJECT_ID_FIELD_NUMBER: builtins.int
125-
SUBJECT_RELATION_FIELD_NUMBER: builtins.int
126-
DEPTH_FIELD_NUMBER: builtins.int
127-
IS_CYCLE_FIELD_NUMBER: builtins.int
128-
PATH_FIELD_NUMBER: builtins.int
129-
object_type: builtins.str
130-
"""object type"""
131-
object_id: builtins.str
132-
"""object identifier"""
133-
relation: builtins.str
134-
"""object relation name"""
135-
subject_type: builtins.str
136-
"""subject type"""
137-
subject_id: builtins.str
138-
"""subject identifier"""
139-
subject_relation: builtins.str
140-
"""optional subject relation name"""
141-
depth: builtins.int
142-
"""dependency depth"""
143-
is_cycle: builtins.bool
144-
"""dependency cycle"""
145-
@property
146-
def path(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
147-
"""dependency path"""
148-
def __init__(
149-
self,
150-
*,
151-
object_type: builtins.str = ...,
152-
object_id: builtins.str = ...,
153-
relation: builtins.str = ...,
154-
subject_type: builtins.str = ...,
155-
subject_id: builtins.str = ...,
156-
subject_relation: builtins.str = ...,
157-
depth: builtins.int = ...,
158-
is_cycle: builtins.bool = ...,
159-
path: collections.abc.Iterable[builtins.str] | None = ...,
160-
) -> None: ...
161-
def ClearField(self, field_name: typing_extensions.Literal["depth", b"depth", "is_cycle", b"is_cycle", "object_id", b"object_id", "object_type", b"object_type", "path", b"path", "relation", b"relation", "subject_id", b"subject_id", "subject_relation", b"subject_relation", "subject_type", b"subject_type"]) -> None: ...
162-
163-
global___ObjectDependency = ObjectDependency
164-
165-
@typing_extensions.final
166-
class ObjectIdentifier(google.protobuf.message.Message):
167-
"""Object identifier"""
168-
169-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
170-
171-
OBJECT_TYPE_FIELD_NUMBER: builtins.int
172-
OBJECT_ID_FIELD_NUMBER: builtins.int
173-
object_type: builtins.str
174-
"""object type (lc-string)"""
175-
object_id: builtins.str
176-
"""object identifier (cs-string)"""
177-
def __init__(
178-
self,
179-
*,
180-
object_type: builtins.str = ...,
181-
object_id: builtins.str = ...,
182-
) -> None: ...
183-
def ClearField(self, field_name: typing_extensions.Literal["object_id", b"object_id", "object_type", b"object_type"]) -> None: ...
184-
185-
global___ObjectIdentifier = ObjectIdentifier
186-
187-
@typing_extensions.final
188-
class PaginationRequest(google.protobuf.message.Message):
189-
"""Pagination request"""
190-
191-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
192-
193-
SIZE_FIELD_NUMBER: builtins.int
194-
TOKEN_FIELD_NUMBER: builtins.int
195-
size: builtins.int
196-
"""requested page size, valid value between 1-100 rows (default 100)"""
197-
token: builtins.str
198-
"""pagination start token, default "" """
199-
def __init__(
200-
self,
201-
*,
202-
size: builtins.int = ...,
203-
token: builtins.str = ...,
204-
) -> None: ...
205-
def ClearField(self, field_name: typing_extensions.Literal["size", b"size", "token", b"token"]) -> None: ...
206-
207-
global___PaginationRequest = PaginationRequest
208-
209-
@typing_extensions.final
210-
class PaginationResponse(google.protobuf.message.Message):
211-
"""Pagination response"""
212-
213-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
214-
215-
NEXT_TOKEN_FIELD_NUMBER: builtins.int
216-
next_token: builtins.str
217-
"""next page token, when empty there are no more pages to fetch"""
218-
def __init__(
219-
self,
220-
*,
221-
next_token: builtins.str = ...,
222-
) -> None: ...
223-
def ClearField(self, field_name: typing_extensions.Literal["next_token", b"next_token"]) -> None: ...
224-
225-
global___PaginationResponse = PaginationResponse
226-
227-
@typing_extensions.final
228-
class ObjectType(google.protobuf.message.Message):
229-
"""Object type"""
230-
231-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
232-
233-
NAME_FIELD_NUMBER: builtins.int
234-
RELATIONS_FIELD_NUMBER: builtins.int
235-
PERMISSIONS_FIELD_NUMBER: builtins.int
236-
name: builtins.str
237-
"""object type name (lc-string)"""
238-
@property
239-
def relations(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
240-
"""relations associated to object type"""
241-
@property
242-
def permissions(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
243-
"""permissions associated to object type"""
244-
def __init__(
245-
self,
246-
*,
247-
name: builtins.str = ...,
248-
relations: collections.abc.Iterable[builtins.str] | None = ...,
249-
permissions: collections.abc.Iterable[builtins.str] | None = ...,
250-
) -> None: ...
251-
def ClearField(self, field_name: typing_extensions.Literal["name", b"name", "permissions", b"permissions", "relations", b"relations"]) -> None: ...
252-
253-
global___ObjectType = ObjectType
1+
from google.api import field_behavior_pb2 as _field_behavior_pb2
2+
from google.protobuf import struct_pb2 as _struct_pb2
3+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
4+
from buf.validate import validate_pb2 as _validate_pb2
5+
from google.protobuf.internal import containers as _containers
6+
from google.protobuf import descriptor as _descriptor
7+
from google.protobuf import message as _message
8+
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
9+
10+
DESCRIPTOR: _descriptor.FileDescriptor
11+
12+
class Object(_message.Message):
13+
__slots__ = ("type", "id", "display_name", "properties", "created_at", "updated_at", "etag")
14+
TYPE_FIELD_NUMBER: _ClassVar[int]
15+
ID_FIELD_NUMBER: _ClassVar[int]
16+
DISPLAY_NAME_FIELD_NUMBER: _ClassVar[int]
17+
PROPERTIES_FIELD_NUMBER: _ClassVar[int]
18+
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
19+
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
20+
ETAG_FIELD_NUMBER: _ClassVar[int]
21+
type: str
22+
id: str
23+
display_name: str
24+
properties: _struct_pb2.Struct
25+
created_at: _timestamp_pb2.Timestamp
26+
updated_at: _timestamp_pb2.Timestamp
27+
etag: str
28+
def __init__(self, type: _Optional[str] = ..., id: _Optional[str] = ..., display_name: _Optional[str] = ..., properties: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., etag: _Optional[str] = ...) -> None: ...
29+
30+
class Relation(_message.Message):
31+
__slots__ = ("object_type", "object_id", "relation", "subject_type", "subject_id", "subject_relation", "created_at", "updated_at", "etag")
32+
OBJECT_TYPE_FIELD_NUMBER: _ClassVar[int]
33+
OBJECT_ID_FIELD_NUMBER: _ClassVar[int]
34+
RELATION_FIELD_NUMBER: _ClassVar[int]
35+
SUBJECT_TYPE_FIELD_NUMBER: _ClassVar[int]
36+
SUBJECT_ID_FIELD_NUMBER: _ClassVar[int]
37+
SUBJECT_RELATION_FIELD_NUMBER: _ClassVar[int]
38+
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
39+
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
40+
ETAG_FIELD_NUMBER: _ClassVar[int]
41+
object_type: str
42+
object_id: str
43+
relation: str
44+
subject_type: str
45+
subject_id: str
46+
subject_relation: str
47+
created_at: _timestamp_pb2.Timestamp
48+
updated_at: _timestamp_pb2.Timestamp
49+
etag: str
50+
def __init__(self, object_type: _Optional[str] = ..., object_id: _Optional[str] = ..., relation: _Optional[str] = ..., subject_type: _Optional[str] = ..., subject_id: _Optional[str] = ..., subject_relation: _Optional[str] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., etag: _Optional[str] = ...) -> None: ...
51+
52+
class ObjectDependency(_message.Message):
53+
__slots__ = ("object_type", "object_id", "relation", "subject_type", "subject_id", "subject_relation", "depth", "is_cycle", "path")
54+
OBJECT_TYPE_FIELD_NUMBER: _ClassVar[int]
55+
OBJECT_ID_FIELD_NUMBER: _ClassVar[int]
56+
RELATION_FIELD_NUMBER: _ClassVar[int]
57+
SUBJECT_TYPE_FIELD_NUMBER: _ClassVar[int]
58+
SUBJECT_ID_FIELD_NUMBER: _ClassVar[int]
59+
SUBJECT_RELATION_FIELD_NUMBER: _ClassVar[int]
60+
DEPTH_FIELD_NUMBER: _ClassVar[int]
61+
IS_CYCLE_FIELD_NUMBER: _ClassVar[int]
62+
PATH_FIELD_NUMBER: _ClassVar[int]
63+
object_type: str
64+
object_id: str
65+
relation: str
66+
subject_type: str
67+
subject_id: str
68+
subject_relation: str
69+
depth: int
70+
is_cycle: bool
71+
path: _containers.RepeatedScalarFieldContainer[str]
72+
def __init__(self, object_type: _Optional[str] = ..., object_id: _Optional[str] = ..., relation: _Optional[str] = ..., subject_type: _Optional[str] = ..., subject_id: _Optional[str] = ..., subject_relation: _Optional[str] = ..., depth: _Optional[int] = ..., is_cycle: bool = ..., path: _Optional[_Iterable[str]] = ...) -> None: ...
73+
74+
class ObjectIdentifier(_message.Message):
75+
__slots__ = ("object_type", "object_id")
76+
OBJECT_TYPE_FIELD_NUMBER: _ClassVar[int]
77+
OBJECT_ID_FIELD_NUMBER: _ClassVar[int]
78+
object_type: str
79+
object_id: str
80+
def __init__(self, object_type: _Optional[str] = ..., object_id: _Optional[str] = ...) -> None: ...
81+
82+
class PaginationRequest(_message.Message):
83+
__slots__ = ("size", "token")
84+
SIZE_FIELD_NUMBER: _ClassVar[int]
85+
TOKEN_FIELD_NUMBER: _ClassVar[int]
86+
size: int
87+
token: str
88+
def __init__(self, size: _Optional[int] = ..., token: _Optional[str] = ...) -> None: ...
89+
90+
class PaginationResponse(_message.Message):
91+
__slots__ = ("next_token",)
92+
NEXT_TOKEN_FIELD_NUMBER: _ClassVar[int]
93+
next_token: str
94+
def __init__(self, next_token: _Optional[str] = ...) -> None: ...
95+
96+
class ObjectType(_message.Message):
97+
__slots__ = ("name", "relations", "permissions")
98+
NAME_FIELD_NUMBER: _ClassVar[int]
99+
RELATIONS_FIELD_NUMBER: _ClassVar[int]
100+
PERMISSIONS_FIELD_NUMBER: _ClassVar[int]
101+
name: str
102+
relations: _containers.RepeatedScalarFieldContainer[str]
103+
permissions: _containers.RepeatedScalarFieldContainer[str]
104+
def __init__(self, name: _Optional[str] = ..., relations: _Optional[_Iterable[str]] = ..., permissions: _Optional[_Iterable[str]] = ...) -> None: ...

src/aserto/directory/exporter/v2/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from aserto.directory.exporter.v2.exporter_pb2_grpc import (
44
ExporterStub,
5-
ExporterAsyncStub,
65
ExporterServicer,
76
)
87

@@ -14,7 +13,6 @@
1413

1514
__all__ = [
1615
"ExporterStub",
17-
"ExporterAsyncStub",
1816
"ExporterServicer",
1917
"Option",
2018
"ExportRequest",

0 commit comments

Comments
 (0)