Skip to content

Commit 7272bfc

Browse files
authored
Added events to the system (#169)
* [Alpha] Added events to the system Only the groundwork, not the actual annots for each Create/Update/Delete RPC. * imo
1 parent 6b10ed1 commit 7272bfc

8 files changed

Lines changed: 1066 additions & 0 deletions

File tree

gen/go/qdrant/cloud/event/v1/events.pb.go

Lines changed: 468 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "qdrant/cloud/event/v1/events.proto",
5+
"version": "version not set"
6+
},
7+
"consumes": [
8+
"application/json"
9+
],
10+
"produces": [
11+
"application/json"
12+
],
13+
"paths": {},
14+
"definitions": {
15+
"googlerpcStatus": {
16+
"type": "object",
17+
"properties": {
18+
"code": {
19+
"type": "integer",
20+
"format": "int32"
21+
},
22+
"message": {
23+
"type": "string"
24+
},
25+
"details": {
26+
"type": "array",
27+
"items": {
28+
"type": "object",
29+
"$ref": "#/definitions/protobufAny"
30+
}
31+
}
32+
}
33+
},
34+
"protobufAny": {
35+
"type": "object",
36+
"properties": {
37+
"@type": {
38+
"type": "string"
39+
}
40+
},
41+
"additionalProperties": {}
42+
}
43+
}
44+
}

gen/python/qdrant/cloud/event/v1/events_pb2.py

Lines changed: 77 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
import datetime
2+
3+
from buf.validate import validate_pb2 as _validate_pb2
4+
from google.protobuf import descriptor_pb2 as _descriptor_pb2
5+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
6+
from qdrant.cloud.common.v1 import common_pb2 as _common_pb2
7+
from google.protobuf.internal import containers as _containers
8+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
9+
from google.protobuf import descriptor as _descriptor
10+
from google.protobuf import message as _message
11+
from collections.abc import Mapping as _Mapping
12+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
13+
14+
DESCRIPTOR: _descriptor.FileDescriptor
15+
16+
class EventType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
17+
__slots__ = ()
18+
EVENT_TYPE_UNSPECIFIED: _ClassVar[EventType]
19+
EVENT_TYPE_CREATED: _ClassVar[EventType]
20+
EVENT_TYPE_UPDATED: _ClassVar[EventType]
21+
EVENT_TYPE_DELETED: _ClassVar[EventType]
22+
EVENT_TYPE_UNSPECIFIED: EventType
23+
EVENT_TYPE_CREATED: EventType
24+
EVENT_TYPE_UPDATED: EventType
25+
EVENT_TYPE_DELETED: EventType
26+
EVENT_OPTIONS_FIELD_NUMBER: _ClassVar[int]
27+
event_options: _descriptor.FieldDescriptor
28+
29+
class EventOptions(_message.Message):
30+
__slots__ = ("event_type", "resource_type", "status_only", "resource_id_field", "resource_url_template", "additional_context_fields")
31+
class AdditionalContextFieldsEntry(_message.Message):
32+
__slots__ = ("key", "value")
33+
KEY_FIELD_NUMBER: _ClassVar[int]
34+
VALUE_FIELD_NUMBER: _ClassVar[int]
35+
key: str
36+
value: str
37+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
38+
EVENT_TYPE_FIELD_NUMBER: _ClassVar[int]
39+
RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int]
40+
STATUS_ONLY_FIELD_NUMBER: _ClassVar[int]
41+
RESOURCE_ID_FIELD_FIELD_NUMBER: _ClassVar[int]
42+
RESOURCE_URL_TEMPLATE_FIELD_NUMBER: _ClassVar[int]
43+
ADDITIONAL_CONTEXT_FIELDS_FIELD_NUMBER: _ClassVar[int]
44+
event_type: EventType
45+
resource_type: str
46+
status_only: bool
47+
resource_id_field: str
48+
resource_url_template: str
49+
additional_context_fields: _containers.ScalarMap[str, str]
50+
def __init__(self, event_type: _Optional[_Union[EventType, str]] = ..., resource_type: _Optional[str] = ..., status_only: bool = ..., resource_id_field: _Optional[str] = ..., resource_url_template: _Optional[str] = ..., additional_context_fields: _Optional[_Mapping[str, str]] = ...) -> None: ...
51+
52+
class Event(_message.Message):
53+
__slots__ = ("id", "created_at", "actor_id", "actor_type", "account_id", "event_type", "resource_type", "status_only", "resource_id", "resource_url", "additional_context")
54+
class AdditionalContextEntry(_message.Message):
55+
__slots__ = ("key", "value")
56+
KEY_FIELD_NUMBER: _ClassVar[int]
57+
VALUE_FIELD_NUMBER: _ClassVar[int]
58+
key: str
59+
value: str
60+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
61+
ID_FIELD_NUMBER: _ClassVar[int]
62+
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
63+
ACTOR_ID_FIELD_NUMBER: _ClassVar[int]
64+
ACTOR_TYPE_FIELD_NUMBER: _ClassVar[int]
65+
ACCOUNT_ID_FIELD_NUMBER: _ClassVar[int]
66+
EVENT_TYPE_FIELD_NUMBER: _ClassVar[int]
67+
RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int]
68+
STATUS_ONLY_FIELD_NUMBER: _ClassVar[int]
69+
RESOURCE_ID_FIELD_NUMBER: _ClassVar[int]
70+
RESOURCE_URL_FIELD_NUMBER: _ClassVar[int]
71+
ADDITIONAL_CONTEXT_FIELD_NUMBER: _ClassVar[int]
72+
id: str
73+
created_at: _timestamp_pb2.Timestamp
74+
actor_id: str
75+
actor_type: _common_pb2.ActorType
76+
account_id: str
77+
event_type: EventType
78+
resource_type: str
79+
status_only: bool
80+
resource_id: str
81+
resource_url: str
82+
additional_context: _containers.ScalarMap[str, str]
83+
def __init__(self, id: _Optional[str] = ..., created_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., actor_id: _Optional[str] = ..., actor_type: _Optional[_Union[_common_pb2.ActorType, str]] = ..., account_id: _Optional[str] = ..., event_type: _Optional[_Union[EventType, str]] = ..., resource_type: _Optional[str] = ..., status_only: bool = ..., resource_id: _Optional[str] = ..., resource_url: _Optional[str] = ..., additional_context: _Optional[_Mapping[str, str]] = ...) -> None: ...
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2+
"""Client and server classes corresponding to protobuf-defined services."""
3+
import grpc
4+

0 commit comments

Comments
 (0)