corvic-engine 0.3.0rc42__cp38-abi3-win_amd64.whl → 0.3.0rc44__cp38-abi3-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- corvic/embedding_metric/embeddings.py +30 -6
- corvic/engine/_native.pyd +0 -0
- corvic/model/_completion_model.py +46 -16
- corvic/model/_feature_view.py +1 -0
- corvic/model/_proto_orm_convert.py +22 -9
- corvic/model/_space.py +56 -39
- corvic/orm/__init__.py +27 -44
- corvic/orm/base.py +4 -0
- corvic/system/_dimension_reduction.py +37 -5
- corvic/system/in_memory_executor.py +14 -7
- {corvic_engine-0.3.0rc42.dist-info → corvic_engine-0.3.0rc44.dist-info}/METADATA +19 -19
- {corvic_engine-0.3.0rc42.dist-info → corvic_engine-0.3.0rc44.dist-info}/RECORD +26 -22
- {corvic_engine-0.3.0rc42.dist-info → corvic_engine-0.3.0rc44.dist-info}/WHEEL +1 -1
- corvic_generated/model/v1alpha/models_pb2.py +32 -31
- corvic_generated/model/v1alpha/models_pb2.pyi +21 -14
- corvic_generated/orm/v1/agent_pb2.py +2 -2
- corvic_generated/orm/v1/agent_pb2.pyi +2 -0
- corvic_generated/orm/v1/completion_model_pb2.py +30 -0
- corvic_generated/orm/v1/completion_model_pb2.pyi +33 -0
- corvic_generated/orm/v1/completion_model_pb2_grpc.py +4 -0
- corvic_generated/orm/v1/completion_model_pb2_grpc.pyi +17 -0
- corvic_generated/platform/v1/platform_pb2.py +17 -5
- corvic_generated/platform/v1/platform_pb2.pyi +20 -0
- corvic_generated/platform/v1/platform_pb2_grpc.py +66 -0
- corvic_generated/platform/v1/platform_pb2_grpc.pyi +28 -0
- {corvic_engine-0.3.0rc42.dist-info → corvic_engine-0.3.0rc44.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,30 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: corvic/orm/v1/completion_model.proto
|
4
|
+
# Protobuf Python Version: 4.25.3
|
5
|
+
"""Generated protocol buffer code."""
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
9
|
+
from google.protobuf.internal import builder as _builder
|
10
|
+
# @@protoc_insertion_point(imports)
|
11
|
+
|
12
|
+
_sym_db = _symbol_database.Default()
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$corvic/orm/v1/completion_model.proto\x12\rcorvic.orm.v1\"S\n\x17GenericOpenAIParameters\x12\x1d\n\nmodel_name\x18\x01 \x01(\tR\tmodelName\x12\x19\n\x08\x62\x61se_url\x18\x02 \x01(\tR\x07\x62\x61seUrl\"\x9d\x01\n\x15\x41zureOpenAIParameters\x12\x19\n\x08\x62\x61se_url\x18\x01 \x01(\tR\x07\x62\x61seUrl\x12#\n\rresource_name\x18\x02 \x01(\tR\x0cresourceName\x12#\n\rdeployment_id\x18\x03 \x01(\tR\x0c\x64\x65ploymentId\x12\x1f\n\x0b\x61pi_version\x18\x04 \x01(\tR\napiVersion\"\xeb\x01\n\x19\x43ompletionModelParameters\x12\x64\n\x19generic_openai_parameters\x18\x01 \x01(\x0b\x32&.corvic.orm.v1.GenericOpenAIParametersH\x00R\x17genericOpenaiParameters\x12^\n\x17\x61zure_openai_parameters\x18\x02 \x01(\x0b\x32$.corvic.orm.v1.AzureOpenAIParametersH\x00R\x15\x61zureOpenaiParametersB\x08\n\x06paramsb\x06proto3')
|
18
|
+
|
19
|
+
_globals = globals()
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'corvic.orm.v1.completion_model_pb2', _globals)
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
23
|
+
DESCRIPTOR._options = None
|
24
|
+
_globals['_GENERICOPENAIPARAMETERS']._serialized_start=55
|
25
|
+
_globals['_GENERICOPENAIPARAMETERS']._serialized_end=138
|
26
|
+
_globals['_AZUREOPENAIPARAMETERS']._serialized_start=141
|
27
|
+
_globals['_AZUREOPENAIPARAMETERS']._serialized_end=298
|
28
|
+
_globals['_COMPLETIONMODELPARAMETERS']._serialized_start=301
|
29
|
+
_globals['_COMPLETIONMODELPARAMETERS']._serialized_end=536
|
30
|
+
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,33 @@
|
|
1
|
+
from google.protobuf import descriptor as _descriptor
|
2
|
+
from google.protobuf import message as _message
|
3
|
+
from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
4
|
+
|
5
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
6
|
+
|
7
|
+
class GenericOpenAIParameters(_message.Message):
|
8
|
+
__slots__ = ("model_name", "base_url")
|
9
|
+
MODEL_NAME_FIELD_NUMBER: _ClassVar[int]
|
10
|
+
BASE_URL_FIELD_NUMBER: _ClassVar[int]
|
11
|
+
model_name: str
|
12
|
+
base_url: str
|
13
|
+
def __init__(self, model_name: _Optional[str] = ..., base_url: _Optional[str] = ...) -> None: ...
|
14
|
+
|
15
|
+
class AzureOpenAIParameters(_message.Message):
|
16
|
+
__slots__ = ("base_url", "resource_name", "deployment_id", "api_version")
|
17
|
+
BASE_URL_FIELD_NUMBER: _ClassVar[int]
|
18
|
+
RESOURCE_NAME_FIELD_NUMBER: _ClassVar[int]
|
19
|
+
DEPLOYMENT_ID_FIELD_NUMBER: _ClassVar[int]
|
20
|
+
API_VERSION_FIELD_NUMBER: _ClassVar[int]
|
21
|
+
base_url: str
|
22
|
+
resource_name: str
|
23
|
+
deployment_id: str
|
24
|
+
api_version: str
|
25
|
+
def __init__(self, base_url: _Optional[str] = ..., resource_name: _Optional[str] = ..., deployment_id: _Optional[str] = ..., api_version: _Optional[str] = ...) -> None: ...
|
26
|
+
|
27
|
+
class CompletionModelParameters(_message.Message):
|
28
|
+
__slots__ = ("generic_openai_parameters", "azure_openai_parameters")
|
29
|
+
GENERIC_OPENAI_PARAMETERS_FIELD_NUMBER: _ClassVar[int]
|
30
|
+
AZURE_OPENAI_PARAMETERS_FIELD_NUMBER: _ClassVar[int]
|
31
|
+
generic_openai_parameters: GenericOpenAIParameters
|
32
|
+
azure_openai_parameters: AzureOpenAIParameters
|
33
|
+
def __init__(self, generic_openai_parameters: _Optional[_Union[GenericOpenAIParameters, _Mapping]] = ..., azure_openai_parameters: _Optional[_Union[AzureOpenAIParameters, _Mapping]] = ...) -> None: ...
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"""
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
3
|
+
isort:skip_file
|
4
|
+
"""
|
5
|
+
import abc
|
6
|
+
import collections.abc
|
7
|
+
import grpc
|
8
|
+
import grpc.aio
|
9
|
+
import typing
|
10
|
+
|
11
|
+
_T = typing.TypeVar('_T')
|
12
|
+
|
13
|
+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta):
|
14
|
+
...
|
15
|
+
|
16
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore
|
17
|
+
...
|
@@ -17,7 +17,7 @@ from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor
|
|
17
17
|
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
18
18
|
|
19
19
|
|
20
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!corvic/platform/v1/platform.proto\x12\x12\x63orvic.platform.v1\x1a\x1b\x62uf/validate/validate.proto\x1a google/protobuf/descriptor.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8c\x02\n\x03Org\x12\x1b\n\x04name\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01R\x04name\x12p\n\x02id\x18\x02 \x01(\tB`\xbaH]\xba\x01Z\n\x0estring.pattern\x12\x16value must be a number\x1a\x30this.matches(\'^[0-9]+$\') && !this.endsWith(\'\\n\')R\x02id\x12\x39\n\ncreated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12;\n\x0bmodified_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nmodifiedAt\"\xc8\x01\n\x04User\x12p\n\x02id\x18\x01 \x01(\tB`\xbaH]\xba\x01Z\n\x0estring.pattern\x12\x16value must be a number\x1a\x30this.matches(\'^[0-9]+$\') && !this.endsWith(\'\\n\')R\x02id\x12\"\n\x08org_name\x18\x02 \x01(\tB\x07\xbaH\x04r\x02\x10\x01R\x07orgName\x12\x14\n\x05\x65mail\x18\x03 \x01(\tR\x05\x65mail\x12\x14\n\x05roles\x18\x04 \x03(\tR\x05roles\"/\n\x10\x43reateOrgRequest\x12\x1b\n\x04name\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01R\x04name\">\n\x11\x43reateOrgResponse\x12)\n\x03org\x18\x01 \x01(\x0b\x32\x17.corvic.platform.v1.OrgR\x03org\"#\n\rGetOrgRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\";\n\x0eGetOrgResponse\x12)\n\x03org\x18\x01 \x01(\x0b\x32\x17.corvic.platform.v1.OrgR\x03org\"\x11\n\x0fListOrgsRequest\"?\n\x10ListOrgsResponse\x12+\n\x04orgs\x18\x01 \x03(\x0b\x32\x17.corvic.platform.v1.OrgR\x04orgs\"9\n\x13ListOrgUsersRequest\x12\"\n\x08org_name\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01R\x07orgName\"F\n\x14ListOrgUsersResponse\x12.\n\x05users\x18\x01 \x03(\x0b\x32\x18.corvic.platform.v1.UserR\x05users\"}\n\x11\x41\x64\x64OrgUserRequest\x12\x14\n\x05\x65mail\x18\x01 \x01(\tR\x05\x65mail\x12\"\n\x08org_name\x18\x02 \x01(\tB\x07\xbaH\x04r\x02\x10\x01R\x07orgName\x12.\n\x05roles\x18\x03 \x03(\x0e\x32\x18.corvic.platform.v1.RoleR\x05roles\"B\n\x12\x41\x64\x64OrgUserResponse\x12,\n\x04user\x18\x01 \x01(\x0b\x32\x18.corvic.platform.v1.UserR\x04user\"\x85\x01\n\x11GetOrgUserRequest\x12p\n\x02id\x18\x01 \x01(\tB`\xbaH]\xba\x01Z\n\x0estring.pattern\x12\x16value must be a number\x1a\x30this.matches(\'^[0-9]+$\') && !this.endsWith(\'\\n\')R\x02id\"B\n\x12GetOrgUserResponse\x12,\n\x04user\x18\x01 \x01(\x0b\x32\x18.corvic.platform.v1.UserR\x04user\"\x8c\x01\n\x18\x44\x65\x61\x63tivateOrgUserRequest\x12p\n\x02id\x18\x01 \x01(\tB`\xbaH]\xba\x01Z\n\x0estring.pattern\x12\x16value must be a number\x1a\x30this.matches(\'^[0-9]+$\') && !this.endsWith(\'\\n\')R\x02id\"\x1b\n\x19\x44\x65\x61\x63tivateOrgUserResponse*C\n\x04Role\x12\x14\n\x10ROLE_UNSPECIFIED\x10\x00\x12\x12\n\x0eROLE_ORG_ADMIN\x10\x01\x12\x11\n\rROLE_ORG_USER\x10\x02\x32\
|
20
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!corvic/platform/v1/platform.proto\x12\x12\x63orvic.platform.v1\x1a\x1b\x62uf/validate/validate.proto\x1a google/protobuf/descriptor.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8c\x02\n\x03Org\x12\x1b\n\x04name\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01R\x04name\x12p\n\x02id\x18\x02 \x01(\tB`\xbaH]\xba\x01Z\n\x0estring.pattern\x12\x16value must be a number\x1a\x30this.matches(\'^[0-9]+$\') && !this.endsWith(\'\\n\')R\x02id\x12\x39\n\ncreated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12;\n\x0bmodified_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nmodifiedAt\"\xc8\x01\n\x04User\x12p\n\x02id\x18\x01 \x01(\tB`\xbaH]\xba\x01Z\n\x0estring.pattern\x12\x16value must be a number\x1a\x30this.matches(\'^[0-9]+$\') && !this.endsWith(\'\\n\')R\x02id\x12\"\n\x08org_name\x18\x02 \x01(\tB\x07\xbaH\x04r\x02\x10\x01R\x07orgName\x12\x14\n\x05\x65mail\x18\x03 \x01(\tR\x05\x65mail\x12\x14\n\x05roles\x18\x04 \x03(\tR\x05roles\"/\n\x10\x43reateOrgRequest\x12\x1b\n\x04name\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01R\x04name\">\n\x11\x43reateOrgResponse\x12)\n\x03org\x18\x01 \x01(\x0b\x32\x17.corvic.platform.v1.OrgR\x03org\"#\n\rGetOrgRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\";\n\x0eGetOrgResponse\x12)\n\x03org\x18\x01 \x01(\x0b\x32\x17.corvic.platform.v1.OrgR\x03org\"\x11\n\x0fListOrgsRequest\"?\n\x10ListOrgsResponse\x12+\n\x04orgs\x18\x01 \x03(\x0b\x32\x17.corvic.platform.v1.OrgR\x04orgs\"9\n\x13ListOrgUsersRequest\x12\"\n\x08org_name\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01R\x07orgName\"F\n\x14ListOrgUsersResponse\x12.\n\x05users\x18\x01 \x03(\x0b\x32\x18.corvic.platform.v1.UserR\x05users\"}\n\x11\x41\x64\x64OrgUserRequest\x12\x14\n\x05\x65mail\x18\x01 \x01(\tR\x05\x65mail\x12\"\n\x08org_name\x18\x02 \x01(\tB\x07\xbaH\x04r\x02\x10\x01R\x07orgName\x12.\n\x05roles\x18\x03 \x03(\x0e\x32\x18.corvic.platform.v1.RoleR\x05roles\"B\n\x12\x41\x64\x64OrgUserResponse\x12,\n\x04user\x18\x01 \x01(\x0b\x32\x18.corvic.platform.v1.UserR\x04user\"\x85\x01\n\x11GetOrgUserRequest\x12p\n\x02id\x18\x01 \x01(\tB`\xbaH]\xba\x01Z\n\x0estring.pattern\x12\x16value must be a number\x1a\x30this.matches(\'^[0-9]+$\') && !this.endsWith(\'\\n\')R\x02id\"B\n\x12GetOrgUserResponse\x12,\n\x04user\x18\x01 \x01(\x0b\x32\x18.corvic.platform.v1.UserR\x04user\"\x8c\x01\n\x18\x44\x65\x61\x63tivateOrgUserRequest\x12p\n\x02id\x18\x01 \x01(\tB`\xbaH]\xba\x01Z\n\x0estring.pattern\x12\x16value must be a number\x1a\x30this.matches(\'^[0-9]+$\') && !this.endsWith(\'\\n\')R\x02id\"\x1b\n\x19\x44\x65\x61\x63tivateOrgUserResponse\".\n\x0fPurgeOrgRequest\x12\x1b\n\x04name\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01R\x04name\"\x12\n\x10PurgeOrgResponse\"B\n\x1c\x44\x65\x61\x63tivateAllOrgUsersRequest\x12\"\n\x08org_name\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01R\x07orgName\"\x1f\n\x1d\x44\x65\x61\x63tivateAllOrgUsersResponse*C\n\x04Role\x12\x14\n\x10ROLE_UNSPECIFIED\x10\x00\x12\x12\n\x0eROLE_ORG_ADMIN\x10\x01\x12\x11\n\rROLE_ORG_USER\x10\x02\x32\x90\x07\n\nOrgService\x12T\n\x06GetOrg\x12!.corvic.platform.v1.GetOrgRequest\x1a\".corvic.platform.v1.GetOrgResponse\"\x03\x90\x02\x01\x12Z\n\tCreateOrg\x12$.corvic.platform.v1.CreateOrgRequest\x1a%.corvic.platform.v1.CreateOrgResponse\"\x00\x12Z\n\x08ListOrgs\x12#.corvic.platform.v1.ListOrgsRequest\x1a$.corvic.platform.v1.ListOrgsResponse\"\x03\x90\x02\x01\x12`\n\nGetOrgUser\x12%.corvic.platform.v1.GetOrgUserRequest\x1a&.corvic.platform.v1.GetOrgUserResponse\"\x03\x90\x02\x01\x12]\n\nAddOrgUser\x12%.corvic.platform.v1.AddOrgUserRequest\x1a&.corvic.platform.v1.AddOrgUserResponse\"\x00\x12\x66\n\x0cListOrgUsers\x12\'.corvic.platform.v1.ListOrgUsersRequest\x1a(.corvic.platform.v1.ListOrgUsersResponse\"\x03\x90\x02\x01\x12r\n\x11\x44\x65\x61\x63tivateOrgUser\x12,.corvic.platform.v1.DeactivateOrgUserRequest\x1a-.corvic.platform.v1.DeactivateOrgUserResponse\"\x00\x12W\n\x08PurgeOrg\x12#.corvic.platform.v1.PurgeOrgRequest\x1a$.corvic.platform.v1.PurgeOrgResponse\"\x00\x12~\n\x15\x44\x65\x61\x63tivateAllOrgUsers\x12\x30.corvic.platform.v1.DeactivateAllOrgUsersRequest\x1a\x31.corvic.platform.v1.DeactivateAllOrgUsersResponse\"\x00\x62\x06proto3')
|
21
21
|
|
22
22
|
_globals = globals()
|
23
23
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
@@ -42,6 +42,10 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
42
42
|
_globals['_GETORGUSERREQUEST'].fields_by_name['id']._serialized_options = b'\272H]\272\001Z\n\016string.pattern\022\026value must be a number\0320this.matches(\'^[0-9]+$\') && !this.endsWith(\'\\n\')'
|
43
43
|
_globals['_DEACTIVATEORGUSERREQUEST'].fields_by_name['id']._options = None
|
44
44
|
_globals['_DEACTIVATEORGUSERREQUEST'].fields_by_name['id']._serialized_options = b'\272H]\272\001Z\n\016string.pattern\022\026value must be a number\0320this.matches(\'^[0-9]+$\') && !this.endsWith(\'\\n\')'
|
45
|
+
_globals['_PURGEORGREQUEST'].fields_by_name['name']._options = None
|
46
|
+
_globals['_PURGEORGREQUEST'].fields_by_name['name']._serialized_options = b'\272H\004r\002\020\001'
|
47
|
+
_globals['_DEACTIVATEALLORGUSERSREQUEST'].fields_by_name['org_name']._options = None
|
48
|
+
_globals['_DEACTIVATEALLORGUSERSREQUEST'].fields_by_name['org_name']._serialized_options = b'\272H\004r\002\020\001'
|
45
49
|
_globals['_ORGSERVICE'].methods_by_name['GetOrg']._options = None
|
46
50
|
_globals['_ORGSERVICE'].methods_by_name['GetOrg']._serialized_options = b'\220\002\001'
|
47
51
|
_globals['_ORGSERVICE'].methods_by_name['ListOrgs']._options = None
|
@@ -50,8 +54,8 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
50
54
|
_globals['_ORGSERVICE'].methods_by_name['GetOrgUser']._serialized_options = b'\220\002\001'
|
51
55
|
_globals['_ORGSERVICE'].methods_by_name['ListOrgUsers']._options = None
|
52
56
|
_globals['_ORGSERVICE'].methods_by_name['ListOrgUsers']._serialized_options = b'\220\002\001'
|
53
|
-
_globals['_ROLE']._serialized_start=
|
54
|
-
_globals['_ROLE']._serialized_end=
|
57
|
+
_globals['_ROLE']._serialized_start=1793
|
58
|
+
_globals['_ROLE']._serialized_end=1860
|
55
59
|
_globals['_ORG']._serialized_start=154
|
56
60
|
_globals['_ORG']._serialized_end=422
|
57
61
|
_globals['_USER']._serialized_start=425
|
@@ -84,6 +88,14 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
84
88
|
_globals['_DEACTIVATEORGUSERREQUEST']._serialized_end=1593
|
85
89
|
_globals['_DEACTIVATEORGUSERRESPONSE']._serialized_start=1595
|
86
90
|
_globals['_DEACTIVATEORGUSERRESPONSE']._serialized_end=1622
|
87
|
-
_globals['
|
88
|
-
_globals['
|
91
|
+
_globals['_PURGEORGREQUEST']._serialized_start=1624
|
92
|
+
_globals['_PURGEORGREQUEST']._serialized_end=1670
|
93
|
+
_globals['_PURGEORGRESPONSE']._serialized_start=1672
|
94
|
+
_globals['_PURGEORGRESPONSE']._serialized_end=1690
|
95
|
+
_globals['_DEACTIVATEALLORGUSERSREQUEST']._serialized_start=1692
|
96
|
+
_globals['_DEACTIVATEALLORGUSERSREQUEST']._serialized_end=1758
|
97
|
+
_globals['_DEACTIVATEALLORGUSERSRESPONSE']._serialized_start=1760
|
98
|
+
_globals['_DEACTIVATEALLORGUSERSRESPONSE']._serialized_end=1791
|
99
|
+
_globals['_ORGSERVICE']._serialized_start=1863
|
100
|
+
_globals['_ORGSERVICE']._serialized_end=2775
|
89
101
|
# @@protoc_insertion_point(module_scope)
|
@@ -125,3 +125,23 @@ class DeactivateOrgUserRequest(_message.Message):
|
|
125
125
|
class DeactivateOrgUserResponse(_message.Message):
|
126
126
|
__slots__ = ()
|
127
127
|
def __init__(self) -> None: ...
|
128
|
+
|
129
|
+
class PurgeOrgRequest(_message.Message):
|
130
|
+
__slots__ = ("name",)
|
131
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
132
|
+
name: str
|
133
|
+
def __init__(self, name: _Optional[str] = ...) -> None: ...
|
134
|
+
|
135
|
+
class PurgeOrgResponse(_message.Message):
|
136
|
+
__slots__ = ()
|
137
|
+
def __init__(self) -> None: ...
|
138
|
+
|
139
|
+
class DeactivateAllOrgUsersRequest(_message.Message):
|
140
|
+
__slots__ = ("org_name",)
|
141
|
+
ORG_NAME_FIELD_NUMBER: _ClassVar[int]
|
142
|
+
org_name: str
|
143
|
+
def __init__(self, org_name: _Optional[str] = ...) -> None: ...
|
144
|
+
|
145
|
+
class DeactivateAllOrgUsersResponse(_message.Message):
|
146
|
+
__slots__ = ()
|
147
|
+
def __init__(self) -> None: ...
|
@@ -49,6 +49,16 @@ class OrgServiceStub(object):
|
|
49
49
|
request_serializer=corvic_dot_platform_dot_v1_dot_platform__pb2.DeactivateOrgUserRequest.SerializeToString,
|
50
50
|
response_deserializer=corvic_dot_platform_dot_v1_dot_platform__pb2.DeactivateOrgUserResponse.FromString,
|
51
51
|
)
|
52
|
+
self.PurgeOrg = channel.unary_unary(
|
53
|
+
'/corvic.platform.v1.OrgService/PurgeOrg',
|
54
|
+
request_serializer=corvic_dot_platform_dot_v1_dot_platform__pb2.PurgeOrgRequest.SerializeToString,
|
55
|
+
response_deserializer=corvic_dot_platform_dot_v1_dot_platform__pb2.PurgeOrgResponse.FromString,
|
56
|
+
)
|
57
|
+
self.DeactivateAllOrgUsers = channel.unary_unary(
|
58
|
+
'/corvic.platform.v1.OrgService/DeactivateAllOrgUsers',
|
59
|
+
request_serializer=corvic_dot_platform_dot_v1_dot_platform__pb2.DeactivateAllOrgUsersRequest.SerializeToString,
|
60
|
+
response_deserializer=corvic_dot_platform_dot_v1_dot_platform__pb2.DeactivateAllOrgUsersResponse.FromString,
|
61
|
+
)
|
52
62
|
|
53
63
|
|
54
64
|
class OrgServiceServicer(object):
|
@@ -96,6 +106,18 @@ class OrgServiceServicer(object):
|
|
96
106
|
context.set_details('Method not implemented!')
|
97
107
|
raise NotImplementedError('Method not implemented!')
|
98
108
|
|
109
|
+
def PurgeOrg(self, request, context):
|
110
|
+
"""Missing associated documentation comment in .proto file."""
|
111
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
112
|
+
context.set_details('Method not implemented!')
|
113
|
+
raise NotImplementedError('Method not implemented!')
|
114
|
+
|
115
|
+
def DeactivateAllOrgUsers(self, request, context):
|
116
|
+
"""Missing associated documentation comment in .proto file."""
|
117
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
118
|
+
context.set_details('Method not implemented!')
|
119
|
+
raise NotImplementedError('Method not implemented!')
|
120
|
+
|
99
121
|
|
100
122
|
def add_OrgServiceServicer_to_server(servicer, server):
|
101
123
|
rpc_method_handlers = {
|
@@ -134,6 +156,16 @@ def add_OrgServiceServicer_to_server(servicer, server):
|
|
134
156
|
request_deserializer=corvic_dot_platform_dot_v1_dot_platform__pb2.DeactivateOrgUserRequest.FromString,
|
135
157
|
response_serializer=corvic_dot_platform_dot_v1_dot_platform__pb2.DeactivateOrgUserResponse.SerializeToString,
|
136
158
|
),
|
159
|
+
'PurgeOrg': grpc.unary_unary_rpc_method_handler(
|
160
|
+
servicer.PurgeOrg,
|
161
|
+
request_deserializer=corvic_dot_platform_dot_v1_dot_platform__pb2.PurgeOrgRequest.FromString,
|
162
|
+
response_serializer=corvic_dot_platform_dot_v1_dot_platform__pb2.PurgeOrgResponse.SerializeToString,
|
163
|
+
),
|
164
|
+
'DeactivateAllOrgUsers': grpc.unary_unary_rpc_method_handler(
|
165
|
+
servicer.DeactivateAllOrgUsers,
|
166
|
+
request_deserializer=corvic_dot_platform_dot_v1_dot_platform__pb2.DeactivateAllOrgUsersRequest.FromString,
|
167
|
+
response_serializer=corvic_dot_platform_dot_v1_dot_platform__pb2.DeactivateAllOrgUsersResponse.SerializeToString,
|
168
|
+
),
|
137
169
|
}
|
138
170
|
generic_handler = grpc.method_handlers_generic_handler(
|
139
171
|
'corvic.platform.v1.OrgService', rpc_method_handlers)
|
@@ -262,3 +294,37 @@ class OrgService(object):
|
|
262
294
|
corvic_dot_platform_dot_v1_dot_platform__pb2.DeactivateOrgUserResponse.FromString,
|
263
295
|
options, channel_credentials,
|
264
296
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
297
|
+
|
298
|
+
@staticmethod
|
299
|
+
def PurgeOrg(request,
|
300
|
+
target,
|
301
|
+
options=(),
|
302
|
+
channel_credentials=None,
|
303
|
+
call_credentials=None,
|
304
|
+
insecure=False,
|
305
|
+
compression=None,
|
306
|
+
wait_for_ready=None,
|
307
|
+
timeout=None,
|
308
|
+
metadata=None):
|
309
|
+
return grpc.experimental.unary_unary(request, target, '/corvic.platform.v1.OrgService/PurgeOrg',
|
310
|
+
corvic_dot_platform_dot_v1_dot_platform__pb2.PurgeOrgRequest.SerializeToString,
|
311
|
+
corvic_dot_platform_dot_v1_dot_platform__pb2.PurgeOrgResponse.FromString,
|
312
|
+
options, channel_credentials,
|
313
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
314
|
+
|
315
|
+
@staticmethod
|
316
|
+
def DeactivateAllOrgUsers(request,
|
317
|
+
target,
|
318
|
+
options=(),
|
319
|
+
channel_credentials=None,
|
320
|
+
call_credentials=None,
|
321
|
+
insecure=False,
|
322
|
+
compression=None,
|
323
|
+
wait_for_ready=None,
|
324
|
+
timeout=None,
|
325
|
+
metadata=None):
|
326
|
+
return grpc.experimental.unary_unary(request, target, '/corvic.platform.v1.OrgService/DeactivateAllOrgUsers',
|
327
|
+
corvic_dot_platform_dot_v1_dot_platform__pb2.DeactivateAllOrgUsersRequest.SerializeToString,
|
328
|
+
corvic_dot_platform_dot_v1_dot_platform__pb2.DeactivateAllOrgUsersResponse.FromString,
|
329
|
+
options, channel_credentials,
|
330
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
@@ -47,6 +47,14 @@ class OrgServiceStub:
|
|
47
47
|
corvic_generated.platform.v1.platform_pb2.DeactivateOrgUserRequest,
|
48
48
|
corvic_generated.platform.v1.platform_pb2.DeactivateOrgUserResponse,
|
49
49
|
]
|
50
|
+
PurgeOrg: grpc.UnaryUnaryMultiCallable[
|
51
|
+
corvic_generated.platform.v1.platform_pb2.PurgeOrgRequest,
|
52
|
+
corvic_generated.platform.v1.platform_pb2.PurgeOrgResponse,
|
53
|
+
]
|
54
|
+
DeactivateAllOrgUsers: grpc.UnaryUnaryMultiCallable[
|
55
|
+
corvic_generated.platform.v1.platform_pb2.DeactivateAllOrgUsersRequest,
|
56
|
+
corvic_generated.platform.v1.platform_pb2.DeactivateAllOrgUsersResponse,
|
57
|
+
]
|
50
58
|
|
51
59
|
class OrgServiceAsyncStub:
|
52
60
|
GetOrg: grpc.aio.UnaryUnaryMultiCallable[
|
@@ -77,6 +85,14 @@ class OrgServiceAsyncStub:
|
|
77
85
|
corvic_generated.platform.v1.platform_pb2.DeactivateOrgUserRequest,
|
78
86
|
corvic_generated.platform.v1.platform_pb2.DeactivateOrgUserResponse,
|
79
87
|
]
|
88
|
+
PurgeOrg: grpc.aio.UnaryUnaryMultiCallable[
|
89
|
+
corvic_generated.platform.v1.platform_pb2.PurgeOrgRequest,
|
90
|
+
corvic_generated.platform.v1.platform_pb2.PurgeOrgResponse,
|
91
|
+
]
|
92
|
+
DeactivateAllOrgUsers: grpc.aio.UnaryUnaryMultiCallable[
|
93
|
+
corvic_generated.platform.v1.platform_pb2.DeactivateAllOrgUsersRequest,
|
94
|
+
corvic_generated.platform.v1.platform_pb2.DeactivateAllOrgUsersResponse,
|
95
|
+
]
|
80
96
|
|
81
97
|
class OrgServiceServicer(metaclass=abc.ABCMeta):
|
82
98
|
@abc.abstractmethod
|
@@ -121,5 +137,17 @@ class OrgServiceServicer(metaclass=abc.ABCMeta):
|
|
121
137
|
request: corvic_generated.platform.v1.platform_pb2.DeactivateOrgUserRequest,
|
122
138
|
context: _ServicerContext,
|
123
139
|
) -> typing.Union[corvic_generated.platform.v1.platform_pb2.DeactivateOrgUserResponse, collections.abc.Awaitable[corvic_generated.platform.v1.platform_pb2.DeactivateOrgUserResponse]]: ...
|
140
|
+
@abc.abstractmethod
|
141
|
+
def PurgeOrg(
|
142
|
+
self,
|
143
|
+
request: corvic_generated.platform.v1.platform_pb2.PurgeOrgRequest,
|
144
|
+
context: _ServicerContext,
|
145
|
+
) -> typing.Union[corvic_generated.platform.v1.platform_pb2.PurgeOrgResponse, collections.abc.Awaitable[corvic_generated.platform.v1.platform_pb2.PurgeOrgResponse]]: ...
|
146
|
+
@abc.abstractmethod
|
147
|
+
def DeactivateAllOrgUsers(
|
148
|
+
self,
|
149
|
+
request: corvic_generated.platform.v1.platform_pb2.DeactivateAllOrgUsersRequest,
|
150
|
+
context: _ServicerContext,
|
151
|
+
) -> typing.Union[corvic_generated.platform.v1.platform_pb2.DeactivateAllOrgUsersResponse, collections.abc.Awaitable[corvic_generated.platform.v1.platform_pb2.DeactivateAllOrgUsersResponse]]: ...
|
124
152
|
|
125
153
|
def add_OrgServiceServicer_to_server(servicer: OrgServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
File without changes
|