elimity-insights-sdk 1.1.0__py3-none-any.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.
Potentially problematic release.
This version of elimity-insights-sdk might be problematic. Click here for more details.
- elimity/__init__.py +0 -0
- elimity/__init__.pyi +1 -0
- elimity/insights/__init__.py +0 -0
- elimity/insights/__init__.pyi +3 -0
- elimity/insights/common/__init__.py +0 -0
- elimity/insights/common/__init__.pyi +1 -0
- elimity/insights/common/v1alpha1/__init__.py +0 -0
- elimity/insights/common/v1alpha1/__init__.pyi +1 -0
- elimity/insights/common/v1alpha1/common.pb.go +494 -0
- elimity/insights/common/v1alpha1/common_pb.ts +202 -0
- elimity/insights/common/v1alpha1/common_pb2.py +50 -0
- elimity/insights/common/v1alpha1/common_pb2.pyi +63 -0
- elimity/insights/customgateway/__init__.py +0 -0
- elimity/insights/customgateway/__init__.pyi +1 -0
- elimity/insights/customgateway/v1alpha1/__init__.py +0 -0
- elimity/insights/customgateway/v1alpha1/__init__.pyi +2 -0
- elimity/insights/customgateway/v1alpha1/customgateway.pb.go +504 -0
- elimity/insights/customgateway/v1alpha1/customgateway_connect.py +119 -0
- elimity/insights/customgateway/v1alpha1/customgateway_connect.ts +26 -0
- elimity/insights/customgateway/v1alpha1/customgateway_pb.ts +196 -0
- elimity/insights/customgateway/v1alpha1/customgateway_pb2.py +52 -0
- elimity/insights/customgateway/v1alpha1/customgateway_pb2.pyi +48 -0
- elimity/insights/customgateway/v1alpha1/v1alpha1connect/__init__.py +0 -0
- elimity/insights/customgateway/v1alpha1/v1alpha1connect/__init__.pyi +0 -0
- elimity/insights/customgateway/v1alpha1/v1alpha1connect/customgateway.connect.go +113 -0
- elimity/insights/export/__init__.py +0 -0
- elimity/insights/export/__init__.pyi +1 -0
- elimity/insights/export/v1alpha1/__init__.py +0 -0
- elimity/insights/export/v1alpha1/__init__.pyi +2 -0
- elimity/insights/export/v1alpha1/export.pb.go +635 -0
- elimity/insights/export/v1alpha1/export_connect.py +119 -0
- elimity/insights/export/v1alpha1/export_connect.ts +26 -0
- elimity/insights/export/v1alpha1/export_pb.ts +287 -0
- elimity/insights/export/v1alpha1/export_pb2.py +50 -0
- elimity/insights/export/v1alpha1/export_pb2.pyi +57 -0
- elimity/insights/export/v1alpha1/v1alpha1connect/__init__.py +0 -0
- elimity/insights/export/v1alpha1/v1alpha1connect/__init__.pyi +0 -0
- elimity/insights/export/v1alpha1/v1alpha1connect/export.connect.go +112 -0
- elimity/py.typed +0 -0
- elimity_insights_sdk/__init__.py +31 -0
- elimity_insights_sdk/_sdk.py +190 -0
- elimity_insights_sdk/py.typed +0 -0
- elimity_insights_sdk-1.1.0.dist-info/METADATA +13 -0
- elimity_insights_sdk-1.1.0.dist-info/RECORD +46 -0
- elimity_insights_sdk-1.1.0.dist-info/WHEEL +4 -0
- elimity_insights_sdk-1.1.0.dist-info/licenses/LICENSE.txt +201 -0
|
@@ -0,0 +1,504 @@
|
|
|
1
|
+
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-go v1.34.1
|
|
4
|
+
// protoc (unknown)
|
|
5
|
+
// source: elimity/insights/customgateway/v1alpha1/customgateway.proto
|
|
6
|
+
|
|
7
|
+
package v1alpha1
|
|
8
|
+
|
|
9
|
+
import (
|
|
10
|
+
v1alpha1 "github.com/elimity-com/insights-sdk/gen/elimity/insights/common/v1alpha1"
|
|
11
|
+
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
12
|
+
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
13
|
+
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
|
14
|
+
structpb "google.golang.org/protobuf/types/known/structpb"
|
|
15
|
+
reflect "reflect"
|
|
16
|
+
sync "sync"
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
const (
|
|
20
|
+
// Verify that this generated code is sufficiently up-to-date.
|
|
21
|
+
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
22
|
+
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
23
|
+
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
type Level struct {
|
|
27
|
+
state protoimpl.MessageState
|
|
28
|
+
sizeCache protoimpl.SizeCache
|
|
29
|
+
unknownFields protoimpl.UnknownFields
|
|
30
|
+
|
|
31
|
+
// Types that are assignable to Value:
|
|
32
|
+
//
|
|
33
|
+
// *Level_Alert
|
|
34
|
+
// *Level_Info
|
|
35
|
+
Value isLevel_Value `protobuf_oneof:"value"`
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
func (x *Level) Reset() {
|
|
39
|
+
*x = Level{}
|
|
40
|
+
if protoimpl.UnsafeEnabled {
|
|
41
|
+
mi := &file_elimity_insights_customgateway_v1alpha1_customgateway_proto_msgTypes[0]
|
|
42
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
43
|
+
ms.StoreMessageInfo(mi)
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
func (x *Level) String() string {
|
|
48
|
+
return protoimpl.X.MessageStringOf(x)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
func (*Level) ProtoMessage() {}
|
|
52
|
+
|
|
53
|
+
func (x *Level) ProtoReflect() protoreflect.Message {
|
|
54
|
+
mi := &file_elimity_insights_customgateway_v1alpha1_customgateway_proto_msgTypes[0]
|
|
55
|
+
if protoimpl.UnsafeEnabled && x != nil {
|
|
56
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
57
|
+
if ms.LoadMessageInfo() == nil {
|
|
58
|
+
ms.StoreMessageInfo(mi)
|
|
59
|
+
}
|
|
60
|
+
return ms
|
|
61
|
+
}
|
|
62
|
+
return mi.MessageOf(x)
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// Deprecated: Use Level.ProtoReflect.Descriptor instead.
|
|
66
|
+
func (*Level) Descriptor() ([]byte, []int) {
|
|
67
|
+
return file_elimity_insights_customgateway_v1alpha1_customgateway_proto_rawDescGZIP(), []int{0}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
func (m *Level) GetValue() isLevel_Value {
|
|
71
|
+
if m != nil {
|
|
72
|
+
return m.Value
|
|
73
|
+
}
|
|
74
|
+
return nil
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
func (x *Level) GetAlert() *emptypb.Empty {
|
|
78
|
+
if x, ok := x.GetValue().(*Level_Alert); ok {
|
|
79
|
+
return x.Alert
|
|
80
|
+
}
|
|
81
|
+
return nil
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
func (x *Level) GetInfo() *emptypb.Empty {
|
|
85
|
+
if x, ok := x.GetValue().(*Level_Info); ok {
|
|
86
|
+
return x.Info
|
|
87
|
+
}
|
|
88
|
+
return nil
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
type isLevel_Value interface {
|
|
92
|
+
isLevel_Value()
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
type Level_Alert struct {
|
|
96
|
+
Alert *emptypb.Empty `protobuf:"bytes,1,opt,name=alert,proto3,oneof"`
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
type Level_Info struct {
|
|
100
|
+
Info *emptypb.Empty `protobuf:"bytes,2,opt,name=info,proto3,oneof"`
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
func (*Level_Alert) isLevel_Value() {}
|
|
104
|
+
|
|
105
|
+
func (*Level_Info) isLevel_Value() {}
|
|
106
|
+
|
|
107
|
+
type Log struct {
|
|
108
|
+
state protoimpl.MessageState
|
|
109
|
+
sizeCache protoimpl.SizeCache
|
|
110
|
+
unknownFields protoimpl.UnknownFields
|
|
111
|
+
|
|
112
|
+
Level *Level `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"`
|
|
113
|
+
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
func (x *Log) Reset() {
|
|
117
|
+
*x = Log{}
|
|
118
|
+
if protoimpl.UnsafeEnabled {
|
|
119
|
+
mi := &file_elimity_insights_customgateway_v1alpha1_customgateway_proto_msgTypes[1]
|
|
120
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
121
|
+
ms.StoreMessageInfo(mi)
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
func (x *Log) String() string {
|
|
126
|
+
return protoimpl.X.MessageStringOf(x)
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
func (*Log) ProtoMessage() {}
|
|
130
|
+
|
|
131
|
+
func (x *Log) ProtoReflect() protoreflect.Message {
|
|
132
|
+
mi := &file_elimity_insights_customgateway_v1alpha1_customgateway_proto_msgTypes[1]
|
|
133
|
+
if protoimpl.UnsafeEnabled && x != nil {
|
|
134
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
135
|
+
if ms.LoadMessageInfo() == nil {
|
|
136
|
+
ms.StoreMessageInfo(mi)
|
|
137
|
+
}
|
|
138
|
+
return ms
|
|
139
|
+
}
|
|
140
|
+
return mi.MessageOf(x)
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// Deprecated: Use Log.ProtoReflect.Descriptor instead.
|
|
144
|
+
func (*Log) Descriptor() ([]byte, []int) {
|
|
145
|
+
return file_elimity_insights_customgateway_v1alpha1_customgateway_proto_rawDescGZIP(), []int{1}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
func (x *Log) GetLevel() *Level {
|
|
149
|
+
if x != nil {
|
|
150
|
+
return x.Level
|
|
151
|
+
}
|
|
152
|
+
return nil
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
func (x *Log) GetMessage() string {
|
|
156
|
+
if x != nil {
|
|
157
|
+
return x.Message
|
|
158
|
+
}
|
|
159
|
+
return ""
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
type PerformImportRequest struct {
|
|
163
|
+
state protoimpl.MessageState
|
|
164
|
+
sizeCache protoimpl.SizeCache
|
|
165
|
+
unknownFields protoimpl.UnknownFields
|
|
166
|
+
|
|
167
|
+
Fields map[string]*structpb.Value `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
func (x *PerformImportRequest) Reset() {
|
|
171
|
+
*x = PerformImportRequest{}
|
|
172
|
+
if protoimpl.UnsafeEnabled {
|
|
173
|
+
mi := &file_elimity_insights_customgateway_v1alpha1_customgateway_proto_msgTypes[2]
|
|
174
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
175
|
+
ms.StoreMessageInfo(mi)
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
func (x *PerformImportRequest) String() string {
|
|
180
|
+
return protoimpl.X.MessageStringOf(x)
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
func (*PerformImportRequest) ProtoMessage() {}
|
|
184
|
+
|
|
185
|
+
func (x *PerformImportRequest) ProtoReflect() protoreflect.Message {
|
|
186
|
+
mi := &file_elimity_insights_customgateway_v1alpha1_customgateway_proto_msgTypes[2]
|
|
187
|
+
if protoimpl.UnsafeEnabled && x != nil {
|
|
188
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
189
|
+
if ms.LoadMessageInfo() == nil {
|
|
190
|
+
ms.StoreMessageInfo(mi)
|
|
191
|
+
}
|
|
192
|
+
return ms
|
|
193
|
+
}
|
|
194
|
+
return mi.MessageOf(x)
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
// Deprecated: Use PerformImportRequest.ProtoReflect.Descriptor instead.
|
|
198
|
+
func (*PerformImportRequest) Descriptor() ([]byte, []int) {
|
|
199
|
+
return file_elimity_insights_customgateway_v1alpha1_customgateway_proto_rawDescGZIP(), []int{2}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
func (x *PerformImportRequest) GetFields() map[string]*structpb.Value {
|
|
203
|
+
if x != nil {
|
|
204
|
+
return x.Fields
|
|
205
|
+
}
|
|
206
|
+
return nil
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
type PerformImportResponse struct {
|
|
210
|
+
state protoimpl.MessageState
|
|
211
|
+
sizeCache protoimpl.SizeCache
|
|
212
|
+
unknownFields protoimpl.UnknownFields
|
|
213
|
+
|
|
214
|
+
// Types that are assignable to Value:
|
|
215
|
+
//
|
|
216
|
+
// *PerformImportResponse_Entity
|
|
217
|
+
// *PerformImportResponse_Log
|
|
218
|
+
// *PerformImportResponse_Relationship
|
|
219
|
+
Value isPerformImportResponse_Value `protobuf_oneof:"value"`
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
func (x *PerformImportResponse) Reset() {
|
|
223
|
+
*x = PerformImportResponse{}
|
|
224
|
+
if protoimpl.UnsafeEnabled {
|
|
225
|
+
mi := &file_elimity_insights_customgateway_v1alpha1_customgateway_proto_msgTypes[3]
|
|
226
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
227
|
+
ms.StoreMessageInfo(mi)
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
func (x *PerformImportResponse) String() string {
|
|
232
|
+
return protoimpl.X.MessageStringOf(x)
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
func (*PerformImportResponse) ProtoMessage() {}
|
|
236
|
+
|
|
237
|
+
func (x *PerformImportResponse) ProtoReflect() protoreflect.Message {
|
|
238
|
+
mi := &file_elimity_insights_customgateway_v1alpha1_customgateway_proto_msgTypes[3]
|
|
239
|
+
if protoimpl.UnsafeEnabled && x != nil {
|
|
240
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
241
|
+
if ms.LoadMessageInfo() == nil {
|
|
242
|
+
ms.StoreMessageInfo(mi)
|
|
243
|
+
}
|
|
244
|
+
return ms
|
|
245
|
+
}
|
|
246
|
+
return mi.MessageOf(x)
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
// Deprecated: Use PerformImportResponse.ProtoReflect.Descriptor instead.
|
|
250
|
+
func (*PerformImportResponse) Descriptor() ([]byte, []int) {
|
|
251
|
+
return file_elimity_insights_customgateway_v1alpha1_customgateway_proto_rawDescGZIP(), []int{3}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
func (m *PerformImportResponse) GetValue() isPerformImportResponse_Value {
|
|
255
|
+
if m != nil {
|
|
256
|
+
return m.Value
|
|
257
|
+
}
|
|
258
|
+
return nil
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
func (x *PerformImportResponse) GetEntity() *v1alpha1.Entity {
|
|
262
|
+
if x, ok := x.GetValue().(*PerformImportResponse_Entity); ok {
|
|
263
|
+
return x.Entity
|
|
264
|
+
}
|
|
265
|
+
return nil
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
func (x *PerformImportResponse) GetLog() *Log {
|
|
269
|
+
if x, ok := x.GetValue().(*PerformImportResponse_Log); ok {
|
|
270
|
+
return x.Log
|
|
271
|
+
}
|
|
272
|
+
return nil
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
func (x *PerformImportResponse) GetRelationship() *v1alpha1.Relationship {
|
|
276
|
+
if x, ok := x.GetValue().(*PerformImportResponse_Relationship); ok {
|
|
277
|
+
return x.Relationship
|
|
278
|
+
}
|
|
279
|
+
return nil
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
type isPerformImportResponse_Value interface {
|
|
283
|
+
isPerformImportResponse_Value()
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
type PerformImportResponse_Entity struct {
|
|
287
|
+
Entity *v1alpha1.Entity `protobuf:"bytes,1,opt,name=entity,proto3,oneof"`
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
type PerformImportResponse_Log struct {
|
|
291
|
+
Log *Log `protobuf:"bytes,2,opt,name=log,proto3,oneof"`
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
type PerformImportResponse_Relationship struct {
|
|
295
|
+
Relationship *v1alpha1.Relationship `protobuf:"bytes,3,opt,name=relationship,proto3,oneof"`
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
func (*PerformImportResponse_Entity) isPerformImportResponse_Value() {}
|
|
299
|
+
|
|
300
|
+
func (*PerformImportResponse_Log) isPerformImportResponse_Value() {}
|
|
301
|
+
|
|
302
|
+
func (*PerformImportResponse_Relationship) isPerformImportResponse_Value() {}
|
|
303
|
+
|
|
304
|
+
var File_elimity_insights_customgateway_v1alpha1_customgateway_proto protoreflect.FileDescriptor
|
|
305
|
+
|
|
306
|
+
var file_elimity_insights_customgateway_v1alpha1_customgateway_proto_rawDesc = []byte{
|
|
307
|
+
0x0a, 0x3b, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x79, 0x2f, 0x69, 0x6e, 0x73, 0x69, 0x67, 0x68,
|
|
308
|
+
0x74, 0x73, 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79,
|
|
309
|
+
0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d,
|
|
310
|
+
0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x27, 0x65,
|
|
311
|
+
0x6c, 0x69, 0x6d, 0x69, 0x74, 0x79, 0x2e, 0x69, 0x6e, 0x73, 0x69, 0x67, 0x68, 0x74, 0x73, 0x2e,
|
|
312
|
+
0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31,
|
|
313
|
+
0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x2d, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x79, 0x2f,
|
|
314
|
+
0x69, 0x6e, 0x73, 0x69, 0x67, 0x68, 0x74, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f,
|
|
315
|
+
0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
|
|
316
|
+
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72,
|
|
317
|
+
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f,
|
|
318
|
+
0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
319
|
+
0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
320
|
+
0x22, 0x6e, 0x0a, 0x05, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x6c, 0x65,
|
|
321
|
+
0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
|
|
322
|
+
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79,
|
|
323
|
+
0x48, 0x00, 0x52, 0x05, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x12, 0x2c, 0x0a, 0x04, 0x69, 0x6e, 0x66,
|
|
324
|
+
0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
|
|
325
|
+
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x48,
|
|
326
|
+
0x00, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
|
|
327
|
+
0x22, 0x65, 0x0a, 0x03, 0x4c, 0x6f, 0x67, 0x12, 0x44, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c,
|
|
328
|
+
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x79,
|
|
329
|
+
0x2e, 0x69, 0x6e, 0x73, 0x69, 0x67, 0x68, 0x74, 0x73, 0x2e, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d,
|
|
330
|
+
0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31,
|
|
331
|
+
0x2e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x18, 0x0a,
|
|
332
|
+
0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
|
|
333
|
+
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xcc, 0x01, 0x0a, 0x14, 0x50, 0x65, 0x72, 0x66,
|
|
334
|
+
0x6f, 0x72, 0x6d, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
335
|
+
0x12, 0x61, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
|
|
336
|
+
0x32, 0x49, 0x2e, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x79, 0x2e, 0x69, 0x6e, 0x73, 0x69, 0x67,
|
|
337
|
+
0x68, 0x74, 0x73, 0x2e, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61,
|
|
338
|
+
0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x65, 0x72, 0x66, 0x6f,
|
|
339
|
+
0x72, 0x6d, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e,
|
|
340
|
+
0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x66, 0x69, 0x65,
|
|
341
|
+
0x6c, 0x64, 0x73, 0x1a, 0x51, 0x0a, 0x0b, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74,
|
|
342
|
+
0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
343
|
+
0x03, 0x6b, 0x65, 0x79, 0x12, 0x2c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
|
|
344
|
+
0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
|
|
345
|
+
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c,
|
|
346
|
+
0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xfc, 0x01, 0x0a, 0x15, 0x50, 0x65, 0x72, 0x66, 0x6f,
|
|
347
|
+
0x72, 0x6d, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
|
348
|
+
0x12, 0x42, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
|
|
349
|
+
0x32, 0x28, 0x2e, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x79, 0x2e, 0x69, 0x6e, 0x73, 0x69, 0x67,
|
|
350
|
+
0x68, 0x74, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70,
|
|
351
|
+
0x68, 0x61, 0x31, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x48, 0x00, 0x52, 0x06, 0x65, 0x6e,
|
|
352
|
+
0x74, 0x69, 0x74, 0x79, 0x12, 0x40, 0x0a, 0x03, 0x6c, 0x6f, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
353
|
+
0x0b, 0x32, 0x2c, 0x2e, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x79, 0x2e, 0x69, 0x6e, 0x73, 0x69,
|
|
354
|
+
0x67, 0x68, 0x74, 0x73, 0x2e, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x67, 0x61, 0x74, 0x65, 0x77,
|
|
355
|
+
0x61, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x48,
|
|
356
|
+
0x00, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x12, 0x54, 0x0a, 0x0c, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69,
|
|
357
|
+
0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x65,
|
|
358
|
+
0x6c, 0x69, 0x6d, 0x69, 0x74, 0x79, 0x2e, 0x69, 0x6e, 0x73, 0x69, 0x67, 0x68, 0x74, 0x73, 0x2e,
|
|
359
|
+
0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e,
|
|
360
|
+
0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x48, 0x00, 0x52, 0x0c,
|
|
361
|
+
0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x42, 0x07, 0x0a, 0x05,
|
|
362
|
+
0x76, 0x61, 0x6c, 0x75, 0x65, 0x32, 0x9c, 0x01, 0x0a, 0x07, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
|
|
363
|
+
0x65, 0x12, 0x90, 0x01, 0x0a, 0x0d, 0x50, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x49, 0x6d, 0x70,
|
|
364
|
+
0x6f, 0x72, 0x74, 0x12, 0x3d, 0x2e, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x79, 0x2e, 0x69, 0x6e,
|
|
365
|
+
0x73, 0x69, 0x67, 0x68, 0x74, 0x73, 0x2e, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x67, 0x61, 0x74,
|
|
366
|
+
0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x65,
|
|
367
|
+
0x72, 0x66, 0x6f, 0x72, 0x6d, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
368
|
+
0x73, 0x74, 0x1a, 0x3e, 0x2e, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x79, 0x2e, 0x69, 0x6e, 0x73,
|
|
369
|
+
0x69, 0x67, 0x68, 0x74, 0x73, 0x2e, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x67, 0x61, 0x74, 0x65,
|
|
370
|
+
0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x65, 0x72,
|
|
371
|
+
0x66, 0x6f, 0x72, 0x6d, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
|
372
|
+
0x73, 0x65, 0x30, 0x01, 0x42, 0x51, 0x5a, 0x4f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
|
|
373
|
+
0x6f, 0x6d, 0x2f, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x79, 0x2d, 0x63, 0x6f, 0x6d, 0x2f, 0x69,
|
|
374
|
+
0x6e, 0x73, 0x69, 0x67, 0x68, 0x74, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x67, 0x65, 0x6e, 0x2f,
|
|
375
|
+
0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x79, 0x2f, 0x69, 0x6e, 0x73, 0x69, 0x67, 0x68, 0x74, 0x73,
|
|
376
|
+
0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2f, 0x76,
|
|
377
|
+
0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
var (
|
|
381
|
+
file_elimity_insights_customgateway_v1alpha1_customgateway_proto_rawDescOnce sync.Once
|
|
382
|
+
file_elimity_insights_customgateway_v1alpha1_customgateway_proto_rawDescData = file_elimity_insights_customgateway_v1alpha1_customgateway_proto_rawDesc
|
|
383
|
+
)
|
|
384
|
+
|
|
385
|
+
func file_elimity_insights_customgateway_v1alpha1_customgateway_proto_rawDescGZIP() []byte {
|
|
386
|
+
file_elimity_insights_customgateway_v1alpha1_customgateway_proto_rawDescOnce.Do(func() {
|
|
387
|
+
file_elimity_insights_customgateway_v1alpha1_customgateway_proto_rawDescData = protoimpl.X.CompressGZIP(file_elimity_insights_customgateway_v1alpha1_customgateway_proto_rawDescData)
|
|
388
|
+
})
|
|
389
|
+
return file_elimity_insights_customgateway_v1alpha1_customgateway_proto_rawDescData
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
var file_elimity_insights_customgateway_v1alpha1_customgateway_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
|
393
|
+
var file_elimity_insights_customgateway_v1alpha1_customgateway_proto_goTypes = []interface{}{
|
|
394
|
+
(*Level)(nil), // 0: elimity.insights.customgateway.v1alpha1.Level
|
|
395
|
+
(*Log)(nil), // 1: elimity.insights.customgateway.v1alpha1.Log
|
|
396
|
+
(*PerformImportRequest)(nil), // 2: elimity.insights.customgateway.v1alpha1.PerformImportRequest
|
|
397
|
+
(*PerformImportResponse)(nil), // 3: elimity.insights.customgateway.v1alpha1.PerformImportResponse
|
|
398
|
+
nil, // 4: elimity.insights.customgateway.v1alpha1.PerformImportRequest.FieldsEntry
|
|
399
|
+
(*emptypb.Empty)(nil), // 5: google.protobuf.Empty
|
|
400
|
+
(*v1alpha1.Entity)(nil), // 6: elimity.insights.common.v1alpha1.Entity
|
|
401
|
+
(*v1alpha1.Relationship)(nil), // 7: elimity.insights.common.v1alpha1.Relationship
|
|
402
|
+
(*structpb.Value)(nil), // 8: google.protobuf.Value
|
|
403
|
+
}
|
|
404
|
+
var file_elimity_insights_customgateway_v1alpha1_customgateway_proto_depIdxs = []int32{
|
|
405
|
+
5, // 0: elimity.insights.customgateway.v1alpha1.Level.alert:type_name -> google.protobuf.Empty
|
|
406
|
+
5, // 1: elimity.insights.customgateway.v1alpha1.Level.info:type_name -> google.protobuf.Empty
|
|
407
|
+
0, // 2: elimity.insights.customgateway.v1alpha1.Log.level:type_name -> elimity.insights.customgateway.v1alpha1.Level
|
|
408
|
+
4, // 3: elimity.insights.customgateway.v1alpha1.PerformImportRequest.fields:type_name -> elimity.insights.customgateway.v1alpha1.PerformImportRequest.FieldsEntry
|
|
409
|
+
6, // 4: elimity.insights.customgateway.v1alpha1.PerformImportResponse.entity:type_name -> elimity.insights.common.v1alpha1.Entity
|
|
410
|
+
1, // 5: elimity.insights.customgateway.v1alpha1.PerformImportResponse.log:type_name -> elimity.insights.customgateway.v1alpha1.Log
|
|
411
|
+
7, // 6: elimity.insights.customgateway.v1alpha1.PerformImportResponse.relationship:type_name -> elimity.insights.common.v1alpha1.Relationship
|
|
412
|
+
8, // 7: elimity.insights.customgateway.v1alpha1.PerformImportRequest.FieldsEntry.value:type_name -> google.protobuf.Value
|
|
413
|
+
2, // 8: elimity.insights.customgateway.v1alpha1.Service.PerformImport:input_type -> elimity.insights.customgateway.v1alpha1.PerformImportRequest
|
|
414
|
+
3, // 9: elimity.insights.customgateway.v1alpha1.Service.PerformImport:output_type -> elimity.insights.customgateway.v1alpha1.PerformImportResponse
|
|
415
|
+
9, // [9:10] is the sub-list for method output_type
|
|
416
|
+
8, // [8:9] is the sub-list for method input_type
|
|
417
|
+
8, // [8:8] is the sub-list for extension type_name
|
|
418
|
+
8, // [8:8] is the sub-list for extension extendee
|
|
419
|
+
0, // [0:8] is the sub-list for field type_name
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
func init() { file_elimity_insights_customgateway_v1alpha1_customgateway_proto_init() }
|
|
423
|
+
func file_elimity_insights_customgateway_v1alpha1_customgateway_proto_init() {
|
|
424
|
+
if File_elimity_insights_customgateway_v1alpha1_customgateway_proto != nil {
|
|
425
|
+
return
|
|
426
|
+
}
|
|
427
|
+
if !protoimpl.UnsafeEnabled {
|
|
428
|
+
file_elimity_insights_customgateway_v1alpha1_customgateway_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
429
|
+
switch v := v.(*Level); i {
|
|
430
|
+
case 0:
|
|
431
|
+
return &v.state
|
|
432
|
+
case 1:
|
|
433
|
+
return &v.sizeCache
|
|
434
|
+
case 2:
|
|
435
|
+
return &v.unknownFields
|
|
436
|
+
default:
|
|
437
|
+
return nil
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
file_elimity_insights_customgateway_v1alpha1_customgateway_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
441
|
+
switch v := v.(*Log); i {
|
|
442
|
+
case 0:
|
|
443
|
+
return &v.state
|
|
444
|
+
case 1:
|
|
445
|
+
return &v.sizeCache
|
|
446
|
+
case 2:
|
|
447
|
+
return &v.unknownFields
|
|
448
|
+
default:
|
|
449
|
+
return nil
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
file_elimity_insights_customgateway_v1alpha1_customgateway_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
453
|
+
switch v := v.(*PerformImportRequest); i {
|
|
454
|
+
case 0:
|
|
455
|
+
return &v.state
|
|
456
|
+
case 1:
|
|
457
|
+
return &v.sizeCache
|
|
458
|
+
case 2:
|
|
459
|
+
return &v.unknownFields
|
|
460
|
+
default:
|
|
461
|
+
return nil
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
file_elimity_insights_customgateway_v1alpha1_customgateway_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
465
|
+
switch v := v.(*PerformImportResponse); i {
|
|
466
|
+
case 0:
|
|
467
|
+
return &v.state
|
|
468
|
+
case 1:
|
|
469
|
+
return &v.sizeCache
|
|
470
|
+
case 2:
|
|
471
|
+
return &v.unknownFields
|
|
472
|
+
default:
|
|
473
|
+
return nil
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
file_elimity_insights_customgateway_v1alpha1_customgateway_proto_msgTypes[0].OneofWrappers = []interface{}{
|
|
478
|
+
(*Level_Alert)(nil),
|
|
479
|
+
(*Level_Info)(nil),
|
|
480
|
+
}
|
|
481
|
+
file_elimity_insights_customgateway_v1alpha1_customgateway_proto_msgTypes[3].OneofWrappers = []interface{}{
|
|
482
|
+
(*PerformImportResponse_Entity)(nil),
|
|
483
|
+
(*PerformImportResponse_Log)(nil),
|
|
484
|
+
(*PerformImportResponse_Relationship)(nil),
|
|
485
|
+
}
|
|
486
|
+
type x struct{}
|
|
487
|
+
out := protoimpl.TypeBuilder{
|
|
488
|
+
File: protoimpl.DescBuilder{
|
|
489
|
+
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
490
|
+
RawDescriptor: file_elimity_insights_customgateway_v1alpha1_customgateway_proto_rawDesc,
|
|
491
|
+
NumEnums: 0,
|
|
492
|
+
NumMessages: 5,
|
|
493
|
+
NumExtensions: 0,
|
|
494
|
+
NumServices: 1,
|
|
495
|
+
},
|
|
496
|
+
GoTypes: file_elimity_insights_customgateway_v1alpha1_customgateway_proto_goTypes,
|
|
497
|
+
DependencyIndexes: file_elimity_insights_customgateway_v1alpha1_customgateway_proto_depIdxs,
|
|
498
|
+
MessageInfos: file_elimity_insights_customgateway_v1alpha1_customgateway_proto_msgTypes,
|
|
499
|
+
}.Build()
|
|
500
|
+
File_elimity_insights_customgateway_v1alpha1_customgateway_proto = out.File
|
|
501
|
+
file_elimity_insights_customgateway_v1alpha1_customgateway_proto_rawDesc = nil
|
|
502
|
+
file_elimity_insights_customgateway_v1alpha1_customgateway_proto_goTypes = nil
|
|
503
|
+
file_elimity_insights_customgateway_v1alpha1_customgateway_proto_depIdxs = nil
|
|
504
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by https://github.com/connectrpc/connect-python. DO NOT EDIT!
|
|
3
|
+
# source: elimity/insights/customgateway/v1alpha1/customgateway.proto
|
|
4
|
+
|
|
5
|
+
from collections.abc import AsyncIterator, Iterable, Iterator, Mapping
|
|
6
|
+
from typing import Protocol
|
|
7
|
+
|
|
8
|
+
from connectrpc.client import ConnectClient, ConnectClientSync
|
|
9
|
+
from connectrpc.code import Code
|
|
10
|
+
from connectrpc.errors import ConnectError
|
|
11
|
+
from connectrpc.interceptor import Interceptor, InterceptorSync
|
|
12
|
+
from connectrpc.method import IdempotencyLevel, MethodInfo
|
|
13
|
+
from connectrpc.request import Headers, RequestContext
|
|
14
|
+
from connectrpc.server import ConnectASGIApplication, ConnectWSGIApplication, Endpoint, EndpointSync
|
|
15
|
+
import elimity.insights.customgateway.v1alpha1.customgateway_pb2 as elimity_dot_insights_dot_customgateway_dot_v1alpha1_dot_customgateway__pb2
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class Service(Protocol):
|
|
19
|
+
def perform_import(self, request: elimity_dot_insights_dot_customgateway_dot_v1alpha1_dot_customgateway__pb2.PerformImportRequest, ctx: RequestContext) -> AsyncIterator[elimity_dot_insights_dot_customgateway_dot_v1alpha1_dot_customgateway__pb2.PerformImportResponse]:
|
|
20
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class ServiceASGIApplication(ConnectASGIApplication):
|
|
24
|
+
def __init__(self, service: Service, *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None) -> None:
|
|
25
|
+
super().__init__(
|
|
26
|
+
endpoints={
|
|
27
|
+
"/elimity.insights.customgateway.v1alpha1.Service/PerformImport": Endpoint.server_stream(
|
|
28
|
+
method=MethodInfo(
|
|
29
|
+
name="PerformImport",
|
|
30
|
+
service_name="elimity.insights.customgateway.v1alpha1.Service",
|
|
31
|
+
input=elimity_dot_insights_dot_customgateway_dot_v1alpha1_dot_customgateway__pb2.PerformImportRequest,
|
|
32
|
+
output=elimity_dot_insights_dot_customgateway_dot_v1alpha1_dot_customgateway__pb2.PerformImportResponse,
|
|
33
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
34
|
+
),
|
|
35
|
+
function=service.perform_import,
|
|
36
|
+
),
|
|
37
|
+
},
|
|
38
|
+
interceptors=interceptors,
|
|
39
|
+
read_max_bytes=read_max_bytes,
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
@property
|
|
43
|
+
def path(self) -> str:
|
|
44
|
+
"""Returns the URL path to mount the application to when serving multiple applications."""
|
|
45
|
+
return "/elimity.insights.customgateway.v1alpha1.Service"
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class ServiceClient(ConnectClient):
|
|
49
|
+
def perform_import(
|
|
50
|
+
self,
|
|
51
|
+
request: elimity_dot_insights_dot_customgateway_dot_v1alpha1_dot_customgateway__pb2.PerformImportRequest,
|
|
52
|
+
*,
|
|
53
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
54
|
+
timeout_ms: int | None = None,
|
|
55
|
+
) -> AsyncIterator[elimity_dot_insights_dot_customgateway_dot_v1alpha1_dot_customgateway__pb2.PerformImportResponse]:
|
|
56
|
+
return self.execute_server_stream(
|
|
57
|
+
request=request,
|
|
58
|
+
method=MethodInfo(
|
|
59
|
+
name="PerformImport",
|
|
60
|
+
service_name="elimity.insights.customgateway.v1alpha1.Service",
|
|
61
|
+
input=elimity_dot_insights_dot_customgateway_dot_v1alpha1_dot_customgateway__pb2.PerformImportRequest,
|
|
62
|
+
output=elimity_dot_insights_dot_customgateway_dot_v1alpha1_dot_customgateway__pb2.PerformImportResponse,
|
|
63
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
64
|
+
),
|
|
65
|
+
headers=headers,
|
|
66
|
+
timeout_ms=timeout_ms,
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
class ServiceSync(Protocol):
|
|
71
|
+
def perform_import(self, request: elimity_dot_insights_dot_customgateway_dot_v1alpha1_dot_customgateway__pb2.PerformImportRequest, ctx: RequestContext) -> Iterator[elimity_dot_insights_dot_customgateway_dot_v1alpha1_dot_customgateway__pb2.PerformImportResponse]:
|
|
72
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
class ServiceWSGIApplication(ConnectWSGIApplication):
|
|
76
|
+
def __init__(self, service: ServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None) -> None:
|
|
77
|
+
super().__init__(
|
|
78
|
+
endpoints={
|
|
79
|
+
"/elimity.insights.customgateway.v1alpha1.Service/PerformImport": EndpointSync.server_stream(
|
|
80
|
+
method=MethodInfo(
|
|
81
|
+
name="PerformImport",
|
|
82
|
+
service_name="elimity.insights.customgateway.v1alpha1.Service",
|
|
83
|
+
input=elimity_dot_insights_dot_customgateway_dot_v1alpha1_dot_customgateway__pb2.PerformImportRequest,
|
|
84
|
+
output=elimity_dot_insights_dot_customgateway_dot_v1alpha1_dot_customgateway__pb2.PerformImportResponse,
|
|
85
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
86
|
+
),
|
|
87
|
+
function=service.perform_import,
|
|
88
|
+
),
|
|
89
|
+
},
|
|
90
|
+
interceptors=interceptors,
|
|
91
|
+
read_max_bytes=read_max_bytes,
|
|
92
|
+
)
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def path(self) -> str:
|
|
96
|
+
"""Returns the URL path to mount the application to when serving multiple applications."""
|
|
97
|
+
return "/elimity.insights.customgateway.v1alpha1.Service"
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
class ServiceClientSync(ConnectClientSync):
|
|
101
|
+
def perform_import(
|
|
102
|
+
self,
|
|
103
|
+
request: elimity_dot_insights_dot_customgateway_dot_v1alpha1_dot_customgateway__pb2.PerformImportRequest,
|
|
104
|
+
*,
|
|
105
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
106
|
+
timeout_ms: int | None = None,
|
|
107
|
+
) -> Iterator[elimity_dot_insights_dot_customgateway_dot_v1alpha1_dot_customgateway__pb2.PerformImportResponse]:
|
|
108
|
+
return self.execute_server_stream(
|
|
109
|
+
request=request,
|
|
110
|
+
method=MethodInfo(
|
|
111
|
+
name="PerformImport",
|
|
112
|
+
service_name="elimity.insights.customgateway.v1alpha1.Service",
|
|
113
|
+
input=elimity_dot_insights_dot_customgateway_dot_v1alpha1_dot_customgateway__pb2.PerformImportRequest,
|
|
114
|
+
output=elimity_dot_insights_dot_customgateway_dot_v1alpha1_dot_customgateway__pb2.PerformImportResponse,
|
|
115
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
116
|
+
),
|
|
117
|
+
headers=headers,
|
|
118
|
+
timeout_ms=timeout_ms,
|
|
119
|
+
)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file elimity/insights/customgateway/v1alpha1/customgateway.proto (package elimity.insights.customgateway.v1alpha1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import { PerformImportRequest, PerformImportResponse } from "./customgateway_pb.js";
|
|
7
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @generated from service elimity.insights.customgateway.v1alpha1.Service
|
|
11
|
+
*/
|
|
12
|
+
export const Service = {
|
|
13
|
+
typeName: "elimity.insights.customgateway.v1alpha1.Service",
|
|
14
|
+
methods: {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from rpc elimity.insights.customgateway.v1alpha1.Service.PerformImport
|
|
17
|
+
*/
|
|
18
|
+
performImport: {
|
|
19
|
+
name: "PerformImport",
|
|
20
|
+
I: PerformImportRequest,
|
|
21
|
+
O: PerformImportResponse,
|
|
22
|
+
kind: MethodKind.ServerStreaming,
|
|
23
|
+
},
|
|
24
|
+
}
|
|
25
|
+
} as const;
|
|
26
|
+
|