1
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT. |
2
|
|
|
// versions: |
3
|
|
|
// protoc-gen-go v1.36.10 |
4
|
|
|
// protoc (unknown) |
5
|
|
|
// source: base/v1/service.proto |
6
|
|
|
|
7
|
|
|
package basev1 |
8
|
|
|
|
9
|
|
|
import ( |
10
|
|
|
_ "github.com/envoyproxy/protoc-gen-validate/validate" |
11
|
|
|
_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" |
12
|
|
|
_ "google.golang.org/genproto/googleapis/api/annotations" |
13
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
14
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
15
|
|
|
reflect "reflect" |
16
|
|
|
sync "sync" |
17
|
|
|
unsafe "unsafe" |
18
|
|
|
) |
19
|
|
|
|
20
|
|
|
const ( |
21
|
|
|
// Verify that this generated code is sufficiently up-to-date. |
22
|
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
23
|
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date. |
24
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
25
|
|
|
) |
26
|
|
|
|
27
|
|
|
// PermissionCheckRequest is the request message for the Check method in the Permission service. |
28
|
|
|
type PermissionCheckRequest struct { |
29
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
30
|
|
|
// Identifier of the tenant, required, and must match the pattern "[a-zA-Z0-9-,]+", max 64 bytes. |
31
|
|
|
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,proto3" json:"tenant_id,omitempty"` |
32
|
|
|
// Metadata associated with this request, required. |
33
|
|
|
Metadata *PermissionCheckRequestMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` |
34
|
|
|
// Entity on which the permission needs to be checked, required. |
35
|
|
|
Entity *Entity `protobuf:"bytes,3,opt,name=entity,proto3" json:"entity,omitempty"` |
36
|
|
|
// Name of the permission or relation, required, must start with a letter and can include alphanumeric and underscore, max 64 bytes. |
37
|
|
|
Permission string `protobuf:"bytes,4,opt,name=permission,proto3" json:"permission,omitempty"` |
38
|
|
|
// Subject for which the permission needs to be checked, required. |
39
|
|
|
Subject *Subject `protobuf:"bytes,5,opt,name=subject,proto3" json:"subject,omitempty"` |
40
|
|
|
// Context associated with this request. |
41
|
|
|
Context *Context `protobuf:"bytes,6,opt,name=context,proto3" json:"context,omitempty"` |
42
|
|
|
// Additional arguments associated with this request. |
43
|
|
|
Arguments []*Argument `protobuf:"bytes,7,rep,name=arguments,proto3" json:"arguments,omitempty"` |
44
|
|
|
unknownFields protoimpl.UnknownFields |
45
|
|
|
sizeCache protoimpl.SizeCache |
46
|
|
|
} |
47
|
|
|
|
48
|
|
|
func (x *PermissionCheckRequest) Reset() { |
49
|
|
|
*x = PermissionCheckRequest{} |
50
|
|
|
mi := &file_base_v1_service_proto_msgTypes[0] |
51
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
52
|
|
|
ms.StoreMessageInfo(mi) |
53
|
|
|
} |
54
|
|
|
|
55
|
|
|
func (x *PermissionCheckRequest) String() string { |
56
|
|
|
return protoimpl.X.MessageStringOf(x) |
57
|
|
|
} |
58
|
|
|
|
59
|
|
|
func (*PermissionCheckRequest) ProtoMessage() {} |
60
|
|
|
|
61
|
|
|
func (x *PermissionCheckRequest) ProtoReflect() protoreflect.Message { |
62
|
|
|
mi := &file_base_v1_service_proto_msgTypes[0] |
63
|
|
|
if x != nil { |
64
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
65
|
|
|
if ms.LoadMessageInfo() == nil { |
66
|
|
|
ms.StoreMessageInfo(mi) |
67
|
|
|
} |
68
|
|
|
return ms |
69
|
|
|
} |
70
|
|
|
return mi.MessageOf(x) |
71
|
|
|
} |
72
|
|
|
|
73
|
|
|
// Deprecated: Use PermissionCheckRequest.ProtoReflect.Descriptor instead. |
74
|
|
|
func (*PermissionCheckRequest) Descriptor() ([]byte, []int) { |
75
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{0} |
76
|
|
|
} |
77
|
|
|
|
78
|
|
|
func (x *PermissionCheckRequest) GetTenantId() string { |
79
|
|
|
if x != nil { |
80
|
|
|
return x.TenantId |
81
|
|
|
} |
82
|
|
|
return "" |
83
|
|
|
} |
84
|
|
|
|
85
|
|
|
func (x *PermissionCheckRequest) GetMetadata() *PermissionCheckRequestMetadata { |
86
|
|
|
if x != nil { |
87
|
|
|
return x.Metadata |
88
|
|
|
} |
89
|
|
|
return nil |
90
|
|
|
} |
91
|
|
|
|
92
|
|
|
func (x *PermissionCheckRequest) GetEntity() *Entity { |
93
|
|
|
if x != nil { |
94
|
|
|
return x.Entity |
95
|
|
|
} |
96
|
|
|
return nil |
97
|
|
|
} |
98
|
|
|
|
99
|
|
|
func (x *PermissionCheckRequest) GetPermission() string { |
100
|
|
|
if x != nil { |
101
|
|
|
return x.Permission |
102
|
|
|
} |
103
|
|
|
return "" |
104
|
|
|
} |
105
|
|
|
|
106
|
|
|
func (x *PermissionCheckRequest) GetSubject() *Subject { |
107
|
|
|
if x != nil { |
108
|
|
|
return x.Subject |
109
|
|
|
} |
110
|
|
|
return nil |
111
|
|
|
} |
112
|
|
|
|
113
|
|
|
func (x *PermissionCheckRequest) GetContext() *Context { |
114
|
|
|
if x != nil { |
115
|
|
|
return x.Context |
116
|
|
|
} |
117
|
|
|
return nil |
118
|
|
|
} |
119
|
|
|
|
120
|
|
|
func (x *PermissionCheckRequest) GetArguments() []*Argument { |
121
|
|
|
if x != nil { |
122
|
|
|
return x.Arguments |
123
|
|
|
} |
124
|
|
|
return nil |
125
|
|
|
} |
126
|
|
|
|
127
|
|
|
// PermissionCheckRequestMetadata metadata for the PermissionCheckRequest. |
128
|
|
|
type PermissionCheckRequestMetadata struct { |
129
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
130
|
|
|
// Version of the schema. |
131
|
|
|
SchemaVersion string `protobuf:"bytes,1,opt,name=schema_version,proto3" json:"schema_version,omitempty"` |
132
|
|
|
// Token associated with the snap. |
133
|
|
|
SnapToken string `protobuf:"bytes,2,opt,name=snap_token,proto3" json:"snap_token,omitempty"` |
134
|
|
|
// Depth of the check, must be greater than or equal to 3. |
135
|
|
|
Depth int32 `protobuf:"varint,3,opt,name=depth,proto3" json:"depth,omitempty"` |
136
|
|
|
unknownFields protoimpl.UnknownFields |
137
|
|
|
sizeCache protoimpl.SizeCache |
138
|
|
|
} |
139
|
|
|
|
140
|
|
|
func (x *PermissionCheckRequestMetadata) Reset() { |
141
|
|
|
*x = PermissionCheckRequestMetadata{} |
142
|
|
|
mi := &file_base_v1_service_proto_msgTypes[1] |
143
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
144
|
|
|
ms.StoreMessageInfo(mi) |
145
|
|
|
} |
146
|
|
|
|
147
|
|
|
func (x *PermissionCheckRequestMetadata) String() string { |
148
|
|
|
return protoimpl.X.MessageStringOf(x) |
149
|
|
|
} |
150
|
|
|
|
151
|
|
|
func (*PermissionCheckRequestMetadata) ProtoMessage() {} |
152
|
|
|
|
153
|
|
|
func (x *PermissionCheckRequestMetadata) ProtoReflect() protoreflect.Message { |
154
|
|
|
mi := &file_base_v1_service_proto_msgTypes[1] |
155
|
|
|
if x != nil { |
156
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
157
|
|
|
if ms.LoadMessageInfo() == nil { |
158
|
|
|
ms.StoreMessageInfo(mi) |
159
|
|
|
} |
160
|
|
|
return ms |
161
|
|
|
} |
162
|
|
|
return mi.MessageOf(x) |
163
|
|
|
} |
164
|
|
|
|
165
|
|
|
// Deprecated: Use PermissionCheckRequestMetadata.ProtoReflect.Descriptor instead. |
166
|
|
|
func (*PermissionCheckRequestMetadata) Descriptor() ([]byte, []int) { |
167
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{1} |
168
|
|
|
} |
169
|
|
|
|
170
|
|
|
func (x *PermissionCheckRequestMetadata) GetSchemaVersion() string { |
171
|
|
|
if x != nil { |
172
|
|
|
return x.SchemaVersion |
173
|
|
|
} |
174
|
|
|
return "" |
175
|
|
|
} |
176
|
|
|
|
177
|
|
|
func (x *PermissionCheckRequestMetadata) GetSnapToken() string { |
178
|
|
|
if x != nil { |
179
|
|
|
return x.SnapToken |
180
|
|
|
} |
181
|
|
|
return "" |
182
|
|
|
} |
183
|
|
|
|
184
|
|
|
func (x *PermissionCheckRequestMetadata) GetDepth() int32 { |
185
|
|
|
if x != nil { |
186
|
|
|
return x.Depth |
187
|
|
|
} |
188
|
|
|
return 0 |
189
|
|
|
} |
190
|
|
|
|
191
|
|
|
// PermissionCheckResponse is the response message for the Check method in the Permission service. |
192
|
|
|
type PermissionCheckResponse struct { |
193
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
194
|
|
|
// Result of the permission check. |
195
|
|
|
Can CheckResult `protobuf:"varint,1,opt,name=can,proto3,enum=base.v1.CheckResult" json:"can,omitempty"` |
196
|
|
|
// Metadata associated with this response. |
197
|
|
|
Metadata *PermissionCheckResponseMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` |
198
|
|
|
unknownFields protoimpl.UnknownFields |
199
|
|
|
sizeCache protoimpl.SizeCache |
200
|
|
|
} |
201
|
|
|
|
202
|
|
|
func (x *PermissionCheckResponse) Reset() { |
203
|
|
|
*x = PermissionCheckResponse{} |
204
|
|
|
mi := &file_base_v1_service_proto_msgTypes[2] |
205
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
206
|
|
|
ms.StoreMessageInfo(mi) |
207
|
|
|
} |
208
|
|
|
|
209
|
|
|
func (x *PermissionCheckResponse) String() string { |
210
|
|
|
return protoimpl.X.MessageStringOf(x) |
211
|
|
|
} |
212
|
|
|
|
213
|
|
|
func (*PermissionCheckResponse) ProtoMessage() {} |
214
|
|
|
|
215
|
|
|
func (x *PermissionCheckResponse) ProtoReflect() protoreflect.Message { |
216
|
|
|
mi := &file_base_v1_service_proto_msgTypes[2] |
217
|
|
|
if x != nil { |
218
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
219
|
|
|
if ms.LoadMessageInfo() == nil { |
220
|
|
|
ms.StoreMessageInfo(mi) |
221
|
|
|
} |
222
|
|
|
return ms |
223
|
|
|
} |
224
|
|
|
return mi.MessageOf(x) |
225
|
|
|
} |
226
|
|
|
|
227
|
|
|
// Deprecated: Use PermissionCheckResponse.ProtoReflect.Descriptor instead. |
228
|
|
|
func (*PermissionCheckResponse) Descriptor() ([]byte, []int) { |
229
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{2} |
230
|
|
|
} |
231
|
|
|
|
232
|
|
|
func (x *PermissionCheckResponse) GetCan() CheckResult { |
233
|
|
|
if x != nil { |
234
|
|
|
return x.Can |
235
|
|
|
} |
236
|
|
|
return CheckResult_CHECK_RESULT_UNSPECIFIED |
237
|
|
|
} |
238
|
|
|
|
239
|
|
|
func (x *PermissionCheckResponse) GetMetadata() *PermissionCheckResponseMetadata { |
240
|
|
|
if x != nil { |
241
|
|
|
return x.Metadata |
242
|
|
|
} |
243
|
|
|
return nil |
244
|
|
|
} |
245
|
|
|
|
246
|
|
|
// PermissionCheckResponseMetadata metadata for the PermissionCheckResponse. |
247
|
|
|
type PermissionCheckResponseMetadata struct { |
248
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
249
|
|
|
// The count of the checks performed. |
250
|
|
|
CheckCount int32 `protobuf:"varint,1,opt,name=check_count,proto3" json:"check_count,omitempty"` |
251
|
|
|
unknownFields protoimpl.UnknownFields |
252
|
|
|
sizeCache protoimpl.SizeCache |
253
|
|
|
} |
254
|
|
|
|
255
|
|
|
func (x *PermissionCheckResponseMetadata) Reset() { |
256
|
|
|
*x = PermissionCheckResponseMetadata{} |
257
|
|
|
mi := &file_base_v1_service_proto_msgTypes[3] |
258
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
259
|
|
|
ms.StoreMessageInfo(mi) |
260
|
|
|
} |
261
|
|
|
|
262
|
|
|
func (x *PermissionCheckResponseMetadata) String() string { |
263
|
|
|
return protoimpl.X.MessageStringOf(x) |
264
|
|
|
} |
265
|
|
|
|
266
|
|
|
func (*PermissionCheckResponseMetadata) ProtoMessage() {} |
267
|
|
|
|
268
|
|
|
func (x *PermissionCheckResponseMetadata) ProtoReflect() protoreflect.Message { |
269
|
|
|
mi := &file_base_v1_service_proto_msgTypes[3] |
270
|
|
|
if x != nil { |
271
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
272
|
|
|
if ms.LoadMessageInfo() == nil { |
273
|
|
|
ms.StoreMessageInfo(mi) |
274
|
|
|
} |
275
|
|
|
return ms |
276
|
|
|
} |
277
|
|
|
return mi.MessageOf(x) |
278
|
|
|
} |
279
|
|
|
|
280
|
|
|
// Deprecated: Use PermissionCheckResponseMetadata.ProtoReflect.Descriptor instead. |
281
|
|
|
func (*PermissionCheckResponseMetadata) Descriptor() ([]byte, []int) { |
282
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{3} |
283
|
|
|
} |
284
|
|
|
|
285
|
|
|
func (x *PermissionCheckResponseMetadata) GetCheckCount() int32 { |
286
|
|
|
if x != nil { |
287
|
|
|
return x.CheckCount |
288
|
|
|
} |
289
|
|
|
return 0 |
290
|
|
|
} |
291
|
|
|
|
292
|
|
|
// PermissionExpandRequest is the request message for the Expand method in the Permission service. |
293
|
|
|
type PermissionExpandRequest struct { |
294
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
295
|
|
|
// Identifier of the tenant, required, and must match the pattern "[a-zA-Z0-9-,]+", max 64 bytes. |
296
|
|
|
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,proto3" json:"tenant_id,omitempty"` |
297
|
|
|
// Metadata associated with this request, required. |
298
|
|
|
Metadata *PermissionExpandRequestMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` |
299
|
|
|
// Entity on which the permission needs to be expanded, required. |
300
|
|
|
Entity *Entity `protobuf:"bytes,3,opt,name=entity,proto3" json:"entity,omitempty"` |
301
|
|
|
// Name of the permission to be expanded, not required, must start with a letter and can include alphanumeric and underscore, max 64 bytes. |
302
|
|
|
Permission string `protobuf:"bytes,4,opt,name=permission,proto3" json:"permission,omitempty"` |
303
|
|
|
// Context associated with this request. |
304
|
|
|
Context *Context `protobuf:"bytes,5,opt,name=context,proto3" json:"context,omitempty"` |
305
|
|
|
// Additional arguments associated with this request. |
306
|
|
|
Arguments []*Argument `protobuf:"bytes,6,rep,name=arguments,proto3" json:"arguments,omitempty"` |
307
|
|
|
unknownFields protoimpl.UnknownFields |
308
|
|
|
sizeCache protoimpl.SizeCache |
309
|
|
|
} |
310
|
|
|
|
311
|
|
|
func (x *PermissionExpandRequest) Reset() { |
312
|
|
|
*x = PermissionExpandRequest{} |
313
|
|
|
mi := &file_base_v1_service_proto_msgTypes[4] |
314
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
315
|
|
|
ms.StoreMessageInfo(mi) |
316
|
|
|
} |
317
|
|
|
|
318
|
|
|
func (x *PermissionExpandRequest) String() string { |
319
|
|
|
return protoimpl.X.MessageStringOf(x) |
320
|
|
|
} |
321
|
|
|
|
322
|
|
|
func (*PermissionExpandRequest) ProtoMessage() {} |
323
|
|
|
|
324
|
|
|
func (x *PermissionExpandRequest) ProtoReflect() protoreflect.Message { |
325
|
|
|
mi := &file_base_v1_service_proto_msgTypes[4] |
326
|
|
|
if x != nil { |
327
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
328
|
|
|
if ms.LoadMessageInfo() == nil { |
329
|
|
|
ms.StoreMessageInfo(mi) |
330
|
|
|
} |
331
|
|
|
return ms |
332
|
|
|
} |
333
|
|
|
return mi.MessageOf(x) |
334
|
|
|
} |
335
|
|
|
|
336
|
|
|
// Deprecated: Use PermissionExpandRequest.ProtoReflect.Descriptor instead. |
337
|
|
|
func (*PermissionExpandRequest) Descriptor() ([]byte, []int) { |
338
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{4} |
339
|
|
|
} |
340
|
|
|
|
341
|
|
|
func (x *PermissionExpandRequest) GetTenantId() string { |
342
|
|
|
if x != nil { |
343
|
|
|
return x.TenantId |
344
|
|
|
} |
345
|
|
|
return "" |
346
|
|
|
} |
347
|
|
|
|
348
|
|
|
func (x *PermissionExpandRequest) GetMetadata() *PermissionExpandRequestMetadata { |
349
|
|
|
if x != nil { |
350
|
|
|
return x.Metadata |
351
|
|
|
} |
352
|
|
|
return nil |
353
|
|
|
} |
354
|
|
|
|
355
|
|
|
func (x *PermissionExpandRequest) GetEntity() *Entity { |
356
|
|
|
if x != nil { |
357
|
|
|
return x.Entity |
358
|
|
|
} |
359
|
|
|
return nil |
360
|
|
|
} |
361
|
|
|
|
362
|
|
|
func (x *PermissionExpandRequest) GetPermission() string { |
363
|
|
|
if x != nil { |
364
|
|
|
return x.Permission |
365
|
|
|
} |
366
|
|
|
return "" |
367
|
|
|
} |
368
|
|
|
|
369
|
|
|
func (x *PermissionExpandRequest) GetContext() *Context { |
370
|
|
|
if x != nil { |
371
|
|
|
return x.Context |
372
|
|
|
} |
373
|
|
|
return nil |
374
|
|
|
} |
375
|
|
|
|
376
|
|
|
func (x *PermissionExpandRequest) GetArguments() []*Argument { |
377
|
|
|
if x != nil { |
378
|
|
|
return x.Arguments |
379
|
|
|
} |
380
|
|
|
return nil |
381
|
|
|
} |
382
|
|
|
|
383
|
|
|
// PermissionExpandRequestMetadata metadata for the PermissionExpandRequest. |
384
|
|
|
type PermissionExpandRequestMetadata struct { |
385
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
386
|
|
|
// Version of the schema. |
387
|
|
|
SchemaVersion string `protobuf:"bytes,1,opt,name=schema_version,proto3" json:"schema_version,omitempty"` |
388
|
|
|
// Token associated with the snap. |
389
|
|
|
SnapToken string `protobuf:"bytes,2,opt,name=snap_token,proto3" json:"snap_token,omitempty"` |
390
|
|
|
unknownFields protoimpl.UnknownFields |
391
|
|
|
sizeCache protoimpl.SizeCache |
392
|
|
|
} |
393
|
|
|
|
394
|
|
|
func (x *PermissionExpandRequestMetadata) Reset() { |
395
|
|
|
*x = PermissionExpandRequestMetadata{} |
396
|
|
|
mi := &file_base_v1_service_proto_msgTypes[5] |
397
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
398
|
|
|
ms.StoreMessageInfo(mi) |
399
|
|
|
} |
400
|
|
|
|
401
|
|
|
func (x *PermissionExpandRequestMetadata) String() string { |
402
|
|
|
return protoimpl.X.MessageStringOf(x) |
403
|
|
|
} |
404
|
|
|
|
405
|
|
|
func (*PermissionExpandRequestMetadata) ProtoMessage() {} |
406
|
|
|
|
407
|
|
|
func (x *PermissionExpandRequestMetadata) ProtoReflect() protoreflect.Message { |
408
|
|
|
mi := &file_base_v1_service_proto_msgTypes[5] |
409
|
|
|
if x != nil { |
410
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
411
|
|
|
if ms.LoadMessageInfo() == nil { |
412
|
|
|
ms.StoreMessageInfo(mi) |
413
|
|
|
} |
414
|
|
|
return ms |
415
|
|
|
} |
416
|
|
|
return mi.MessageOf(x) |
417
|
|
|
} |
418
|
|
|
|
419
|
|
|
// Deprecated: Use PermissionExpandRequestMetadata.ProtoReflect.Descriptor instead. |
420
|
|
|
func (*PermissionExpandRequestMetadata) Descriptor() ([]byte, []int) { |
421
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{5} |
422
|
|
|
} |
423
|
|
|
|
424
|
|
|
func (x *PermissionExpandRequestMetadata) GetSchemaVersion() string { |
425
|
|
|
if x != nil { |
426
|
|
|
return x.SchemaVersion |
427
|
|
|
} |
428
|
|
|
return "" |
429
|
|
|
} |
430
|
|
|
|
431
|
|
|
func (x *PermissionExpandRequestMetadata) GetSnapToken() string { |
432
|
|
|
if x != nil { |
433
|
|
|
return x.SnapToken |
434
|
|
|
} |
435
|
|
|
return "" |
436
|
|
|
} |
437
|
|
|
|
438
|
|
|
// PermissionExpandResponse is the response message for the Expand method in the Permission service. |
439
|
|
|
type PermissionExpandResponse struct { |
440
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
441
|
|
|
// Expansion tree. |
442
|
|
|
Tree *Expand `protobuf:"bytes,1,opt,name=tree,proto3" json:"tree,omitempty"` |
443
|
|
|
unknownFields protoimpl.UnknownFields |
444
|
|
|
sizeCache protoimpl.SizeCache |
445
|
|
|
} |
446
|
|
|
|
447
|
|
|
func (x *PermissionExpandResponse) Reset() { |
448
|
|
|
*x = PermissionExpandResponse{} |
449
|
|
|
mi := &file_base_v1_service_proto_msgTypes[6] |
450
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
451
|
|
|
ms.StoreMessageInfo(mi) |
452
|
|
|
} |
453
|
|
|
|
454
|
|
|
func (x *PermissionExpandResponse) String() string { |
455
|
|
|
return protoimpl.X.MessageStringOf(x) |
456
|
|
|
} |
457
|
|
|
|
458
|
|
|
func (*PermissionExpandResponse) ProtoMessage() {} |
459
|
|
|
|
460
|
|
|
func (x *PermissionExpandResponse) ProtoReflect() protoreflect.Message { |
461
|
|
|
mi := &file_base_v1_service_proto_msgTypes[6] |
462
|
|
|
if x != nil { |
463
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
464
|
|
|
if ms.LoadMessageInfo() == nil { |
465
|
|
|
ms.StoreMessageInfo(mi) |
466
|
|
|
} |
467
|
|
|
return ms |
468
|
|
|
} |
469
|
|
|
return mi.MessageOf(x) |
470
|
|
|
} |
471
|
|
|
|
472
|
|
|
// Deprecated: Use PermissionExpandResponse.ProtoReflect.Descriptor instead. |
473
|
|
|
func (*PermissionExpandResponse) Descriptor() ([]byte, []int) { |
474
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{6} |
475
|
|
|
} |
476
|
|
|
|
477
|
|
|
func (x *PermissionExpandResponse) GetTree() *Expand { |
478
|
|
|
if x != nil { |
479
|
|
|
return x.Tree |
480
|
|
|
} |
481
|
|
|
return nil |
482
|
|
|
} |
483
|
|
|
|
484
|
|
|
// PermissionLookupEntityRequest is the request message for the LookupEntity method in the Permission service. |
485
|
|
|
type PermissionLookupEntityRequest struct { |
486
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
487
|
|
|
// Identifier of the tenant, required, and must match the pattern "[a-zA-Z0-9-,]+", max 64 bytes. |
488
|
|
|
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,proto3" json:"tenant_id,omitempty"` |
489
|
|
|
// Metadata associated with this request, required. |
490
|
|
|
Metadata *PermissionLookupEntityRequestMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` |
491
|
|
|
// Type of the entity to lookup, required, must start with a letter and can include alphanumeric and underscore, max 64 bytes. |
492
|
|
|
EntityType string `protobuf:"bytes,3,opt,name=entity_type,proto3" json:"entity_type,omitempty"` |
493
|
|
|
// Name of the permission to check, required, must start with a letter and can include alphanumeric and underscore, max 64 bytes. |
494
|
|
|
Permission string `protobuf:"bytes,4,opt,name=permission,proto3" json:"permission,omitempty"` |
495
|
|
|
// Subject for which to check the permission, required. |
496
|
|
|
Subject *Subject `protobuf:"bytes,5,opt,name=subject,proto3" json:"subject,omitempty"` |
497
|
|
|
// Context associated with this request. |
498
|
|
|
Context *Context `protobuf:"bytes,6,opt,name=context,proto3" json:"context,omitempty"` |
499
|
|
|
// Scope: A map that associates entity types with lists of identifiers. Each entry |
500
|
|
|
// helps filter requests by specifying which entities are relevant to the operation. |
501
|
|
|
Scope map[string]*StringArrayValue `protobuf:"bytes,7,rep,name=scope,proto3" json:"scope,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` |
502
|
|
|
// page_size is the number of entities to be returned in the response. |
503
|
|
|
// The value should be between 1 and 100. |
504
|
|
|
PageSize uint32 `protobuf:"varint,8,opt,name=page_size,proto3" json:"page_size,omitempty"` |
505
|
|
|
// continuous_token is an optional parameter used for pagination. |
506
|
|
|
// It should be the value received in the previous response. |
507
|
|
|
ContinuousToken string `protobuf:"bytes,9,opt,name=continuous_token,proto3" json:"continuous_token,omitempty"` |
508
|
|
|
unknownFields protoimpl.UnknownFields |
509
|
|
|
sizeCache protoimpl.SizeCache |
510
|
|
|
} |
511
|
|
|
|
512
|
|
|
func (x *PermissionLookupEntityRequest) Reset() { |
513
|
|
|
*x = PermissionLookupEntityRequest{} |
514
|
|
|
mi := &file_base_v1_service_proto_msgTypes[7] |
515
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
516
|
|
|
ms.StoreMessageInfo(mi) |
517
|
|
|
} |
518
|
|
|
|
519
|
|
|
func (x *PermissionLookupEntityRequest) String() string { |
520
|
|
|
return protoimpl.X.MessageStringOf(x) |
521
|
|
|
} |
522
|
|
|
|
523
|
|
|
func (*PermissionLookupEntityRequest) ProtoMessage() {} |
524
|
|
|
|
525
|
|
|
func (x *PermissionLookupEntityRequest) ProtoReflect() protoreflect.Message { |
526
|
|
|
mi := &file_base_v1_service_proto_msgTypes[7] |
527
|
|
|
if x != nil { |
528
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
529
|
|
|
if ms.LoadMessageInfo() == nil { |
530
|
|
|
ms.StoreMessageInfo(mi) |
531
|
|
|
} |
532
|
|
|
return ms |
533
|
|
|
} |
534
|
|
|
return mi.MessageOf(x) |
535
|
|
|
} |
536
|
|
|
|
537
|
|
|
// Deprecated: Use PermissionLookupEntityRequest.ProtoReflect.Descriptor instead. |
538
|
|
|
func (*PermissionLookupEntityRequest) Descriptor() ([]byte, []int) { |
539
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{7} |
540
|
|
|
} |
541
|
|
|
|
542
|
|
|
func (x *PermissionLookupEntityRequest) GetTenantId() string { |
543
|
|
|
if x != nil { |
544
|
|
|
return x.TenantId |
545
|
|
|
} |
546
|
|
|
return "" |
547
|
|
|
} |
548
|
|
|
|
549
|
|
|
func (x *PermissionLookupEntityRequest) GetMetadata() *PermissionLookupEntityRequestMetadata { |
550
|
|
|
if x != nil { |
551
|
|
|
return x.Metadata |
552
|
|
|
} |
553
|
|
|
return nil |
554
|
|
|
} |
555
|
|
|
|
556
|
|
|
func (x *PermissionLookupEntityRequest) GetEntityType() string { |
557
|
|
|
if x != nil { |
558
|
|
|
return x.EntityType |
559
|
|
|
} |
560
|
|
|
return "" |
561
|
|
|
} |
562
|
|
|
|
563
|
|
|
func (x *PermissionLookupEntityRequest) GetPermission() string { |
564
|
|
|
if x != nil { |
565
|
|
|
return x.Permission |
566
|
|
|
} |
567
|
|
|
return "" |
568
|
|
|
} |
569
|
|
|
|
570
|
|
|
func (x *PermissionLookupEntityRequest) GetSubject() *Subject { |
571
|
|
|
if x != nil { |
572
|
|
|
return x.Subject |
573
|
|
|
} |
574
|
|
|
return nil |
575
|
|
|
} |
576
|
|
|
|
577
|
|
|
func (x *PermissionLookupEntityRequest) GetContext() *Context { |
578
|
|
|
if x != nil { |
579
|
|
|
return x.Context |
580
|
|
|
} |
581
|
|
|
return nil |
582
|
|
|
} |
583
|
|
|
|
584
|
|
|
func (x *PermissionLookupEntityRequest) GetScope() map[string]*StringArrayValue { |
585
|
|
|
if x != nil { |
586
|
|
|
return x.Scope |
587
|
|
|
} |
588
|
|
|
return nil |
589
|
|
|
} |
590
|
|
|
|
591
|
|
|
func (x *PermissionLookupEntityRequest) GetPageSize() uint32 { |
592
|
|
|
if x != nil { |
593
|
|
|
return x.PageSize |
594
|
|
|
} |
595
|
|
|
return 0 |
596
|
|
|
} |
597
|
|
|
|
598
|
|
|
func (x *PermissionLookupEntityRequest) GetContinuousToken() string { |
599
|
|
|
if x != nil { |
600
|
|
|
return x.ContinuousToken |
601
|
|
|
} |
602
|
|
|
return "" |
603
|
|
|
} |
604
|
|
|
|
605
|
|
|
// PermissionLookupEntityRequestMetadata metadata for the PermissionLookupEntityRequest. |
606
|
|
|
type PermissionLookupEntityRequestMetadata struct { |
607
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
608
|
|
|
// Version of the schema. |
609
|
|
|
SchemaVersion string `protobuf:"bytes,1,opt,name=schema_version,proto3" json:"schema_version,omitempty"` |
610
|
|
|
// Token associated with the snap. |
611
|
|
|
SnapToken string `protobuf:"bytes,2,opt,name=snap_token,proto3" json:"snap_token,omitempty"` |
612
|
|
|
// Depth of lookup, required, must be greater or equal to 3. |
613
|
|
|
Depth int32 `protobuf:"varint,3,opt,name=depth,proto3" json:"depth,omitempty"` |
614
|
|
|
unknownFields protoimpl.UnknownFields |
615
|
|
|
sizeCache protoimpl.SizeCache |
616
|
|
|
} |
617
|
|
|
|
618
|
|
|
func (x *PermissionLookupEntityRequestMetadata) Reset() { |
619
|
|
|
*x = PermissionLookupEntityRequestMetadata{} |
620
|
|
|
mi := &file_base_v1_service_proto_msgTypes[8] |
621
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
622
|
|
|
ms.StoreMessageInfo(mi) |
623
|
|
|
} |
624
|
|
|
|
625
|
|
|
func (x *PermissionLookupEntityRequestMetadata) String() string { |
626
|
|
|
return protoimpl.X.MessageStringOf(x) |
627
|
|
|
} |
628
|
|
|
|
629
|
|
|
func (*PermissionLookupEntityRequestMetadata) ProtoMessage() {} |
630
|
|
|
|
631
|
|
|
func (x *PermissionLookupEntityRequestMetadata) ProtoReflect() protoreflect.Message { |
632
|
|
|
mi := &file_base_v1_service_proto_msgTypes[8] |
633
|
|
|
if x != nil { |
634
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
635
|
|
|
if ms.LoadMessageInfo() == nil { |
636
|
|
|
ms.StoreMessageInfo(mi) |
637
|
|
|
} |
638
|
|
|
return ms |
639
|
|
|
} |
640
|
|
|
return mi.MessageOf(x) |
641
|
|
|
} |
642
|
|
|
|
643
|
|
|
// Deprecated: Use PermissionLookupEntityRequestMetadata.ProtoReflect.Descriptor instead. |
644
|
|
|
func (*PermissionLookupEntityRequestMetadata) Descriptor() ([]byte, []int) { |
645
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{8} |
646
|
|
|
} |
647
|
|
|
|
648
|
|
|
func (x *PermissionLookupEntityRequestMetadata) GetSchemaVersion() string { |
649
|
|
|
if x != nil { |
650
|
|
|
return x.SchemaVersion |
651
|
|
|
} |
652
|
|
|
return "" |
653
|
|
|
} |
654
|
|
|
|
655
|
|
|
func (x *PermissionLookupEntityRequestMetadata) GetSnapToken() string { |
656
|
|
|
if x != nil { |
657
|
|
|
return x.SnapToken |
658
|
|
|
} |
659
|
|
|
return "" |
660
|
|
|
} |
661
|
|
|
|
662
|
|
|
func (x *PermissionLookupEntityRequestMetadata) GetDepth() int32 { |
663
|
|
|
if x != nil { |
664
|
|
|
return x.Depth |
665
|
|
|
} |
666
|
|
|
return 0 |
667
|
|
|
} |
668
|
|
|
|
669
|
|
|
// PermissionLookupEntityResponse is the response message for the LookupEntity method in the Permission service. |
670
|
|
|
type PermissionLookupEntityResponse struct { |
671
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
672
|
|
|
// List of identifiers for entities that match the lookup. |
673
|
|
|
EntityIds []string `protobuf:"bytes,1,rep,name=entity_ids,proto3" json:"entity_ids,omitempty"` |
674
|
|
|
// continuous_token is a string that can be used to paginate and retrieve the next set of results. |
675
|
|
|
ContinuousToken string `protobuf:"bytes,2,opt,name=continuous_token,proto3" json:"continuous_token,omitempty"` |
676
|
|
|
unknownFields protoimpl.UnknownFields |
677
|
|
|
sizeCache protoimpl.SizeCache |
678
|
|
|
} |
679
|
|
|
|
680
|
|
|
func (x *PermissionLookupEntityResponse) Reset() { |
681
|
|
|
*x = PermissionLookupEntityResponse{} |
682
|
|
|
mi := &file_base_v1_service_proto_msgTypes[9] |
683
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
684
|
|
|
ms.StoreMessageInfo(mi) |
685
|
|
|
} |
686
|
|
|
|
687
|
|
|
func (x *PermissionLookupEntityResponse) String() string { |
688
|
|
|
return protoimpl.X.MessageStringOf(x) |
689
|
|
|
} |
690
|
|
|
|
691
|
|
|
func (*PermissionLookupEntityResponse) ProtoMessage() {} |
692
|
|
|
|
693
|
|
|
func (x *PermissionLookupEntityResponse) ProtoReflect() protoreflect.Message { |
694
|
|
|
mi := &file_base_v1_service_proto_msgTypes[9] |
695
|
|
|
if x != nil { |
696
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
697
|
|
|
if ms.LoadMessageInfo() == nil { |
698
|
|
|
ms.StoreMessageInfo(mi) |
699
|
|
|
} |
700
|
|
|
return ms |
701
|
|
|
} |
702
|
|
|
return mi.MessageOf(x) |
703
|
|
|
} |
704
|
|
|
|
705
|
|
|
// Deprecated: Use PermissionLookupEntityResponse.ProtoReflect.Descriptor instead. |
706
|
|
|
func (*PermissionLookupEntityResponse) Descriptor() ([]byte, []int) { |
707
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{9} |
708
|
|
|
} |
709
|
|
|
|
710
|
|
|
func (x *PermissionLookupEntityResponse) GetEntityIds() []string { |
711
|
|
|
if x != nil { |
712
|
|
|
return x.EntityIds |
713
|
|
|
} |
714
|
|
|
return nil |
715
|
|
|
} |
716
|
|
|
|
717
|
|
|
func (x *PermissionLookupEntityResponse) GetContinuousToken() string { |
718
|
|
|
if x != nil { |
719
|
|
|
return x.ContinuousToken |
720
|
|
|
} |
721
|
|
|
return "" |
722
|
|
|
} |
723
|
|
|
|
724
|
|
|
// PermissionLookupEntityStreamResponse is the response message for the LookupEntityStream method in the Permission service. |
725
|
|
|
type PermissionLookupEntityStreamResponse struct { |
726
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
727
|
|
|
// Identifier for an entity that matches the lookup. |
728
|
|
|
EntityId string `protobuf:"bytes,1,opt,name=entity_id,proto3" json:"entity_id,omitempty"` |
729
|
|
|
// continuous_token is a string that can be used to paginate and retrieve the next set of results. |
730
|
|
|
ContinuousToken string `protobuf:"bytes,2,opt,name=continuous_token,proto3" json:"continuous_token,omitempty"` |
731
|
|
|
unknownFields protoimpl.UnknownFields |
732
|
|
|
sizeCache protoimpl.SizeCache |
733
|
|
|
} |
734
|
|
|
|
735
|
|
|
func (x *PermissionLookupEntityStreamResponse) Reset() { |
736
|
|
|
*x = PermissionLookupEntityStreamResponse{} |
737
|
|
|
mi := &file_base_v1_service_proto_msgTypes[10] |
738
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
739
|
|
|
ms.StoreMessageInfo(mi) |
740
|
|
|
} |
741
|
|
|
|
742
|
|
|
func (x *PermissionLookupEntityStreamResponse) String() string { |
743
|
|
|
return protoimpl.X.MessageStringOf(x) |
744
|
|
|
} |
745
|
|
|
|
746
|
|
|
func (*PermissionLookupEntityStreamResponse) ProtoMessage() {} |
747
|
|
|
|
748
|
|
|
func (x *PermissionLookupEntityStreamResponse) ProtoReflect() protoreflect.Message { |
749
|
|
|
mi := &file_base_v1_service_proto_msgTypes[10] |
750
|
|
|
if x != nil { |
751
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
752
|
|
|
if ms.LoadMessageInfo() == nil { |
753
|
|
|
ms.StoreMessageInfo(mi) |
754
|
|
|
} |
755
|
|
|
return ms |
756
|
|
|
} |
757
|
|
|
return mi.MessageOf(x) |
758
|
|
|
} |
759
|
|
|
|
760
|
|
|
// Deprecated: Use PermissionLookupEntityStreamResponse.ProtoReflect.Descriptor instead. |
761
|
|
|
func (*PermissionLookupEntityStreamResponse) Descriptor() ([]byte, []int) { |
762
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{10} |
763
|
|
|
} |
764
|
|
|
|
765
|
|
|
func (x *PermissionLookupEntityStreamResponse) GetEntityId() string { |
766
|
|
|
if x != nil { |
767
|
|
|
return x.EntityId |
768
|
|
|
} |
769
|
|
|
return "" |
770
|
|
|
} |
771
|
|
|
|
772
|
|
|
func (x *PermissionLookupEntityStreamResponse) GetContinuousToken() string { |
773
|
|
|
if x != nil { |
774
|
|
|
return x.ContinuousToken |
775
|
|
|
} |
776
|
|
|
return "" |
777
|
|
|
} |
778
|
|
|
|
779
|
|
|
// PermissionEntityFilterRequest is the request message for the LookupEntityStream method in the Permission service. |
780
|
|
|
type PermissionEntityFilterRequest struct { |
781
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
782
|
|
|
// Identifier of the tenant, required, and must match the pattern "[a-zA-Z0-9-,]+", max 64 bytes. |
783
|
|
|
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,proto3" json:"tenant_id,omitempty"` |
784
|
|
|
// Metadata associated with this request, required. |
785
|
|
|
Metadata *PermissionEntityFilterRequestMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` |
786
|
|
|
// Reference to the entity to filter. |
787
|
|
|
Entrance *Entrance `protobuf:"bytes,3,opt,name=entrance,proto3" json:"entrance,omitempty"` |
788
|
|
|
// Subject for which to check the permission. |
789
|
|
|
Subject *Subject `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"` |
790
|
|
|
// Context associated with this request. |
791
|
|
|
Context *Context `protobuf:"bytes,5,opt,name=context,proto3" json:"context,omitempty"` |
792
|
|
|
// Scope: A map that associates entity types with lists of identifiers. Each entry |
793
|
|
|
// helps filter requests by specifying which entities are relevant to the operation. |
794
|
|
|
Scope map[string]*StringArrayValue `protobuf:"bytes,6,rep,name=scope,proto3" json:"scope,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` |
795
|
|
|
// cursor is an optional parameter used for pagination. |
796
|
|
|
// It should be the value received in the previous response. |
797
|
|
|
Cursor string `protobuf:"bytes,7,opt,name=cursor,proto3" json:"cursor,omitempty"` |
798
|
|
|
unknownFields protoimpl.UnknownFields |
799
|
|
|
sizeCache protoimpl.SizeCache |
800
|
|
|
} |
801
|
|
|
|
802
|
|
|
func (x *PermissionEntityFilterRequest) Reset() { |
803
|
|
|
*x = PermissionEntityFilterRequest{} |
804
|
|
|
mi := &file_base_v1_service_proto_msgTypes[11] |
805
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
806
|
|
|
ms.StoreMessageInfo(mi) |
807
|
|
|
} |
808
|
|
|
|
809
|
|
|
func (x *PermissionEntityFilterRequest) String() string { |
810
|
|
|
return protoimpl.X.MessageStringOf(x) |
811
|
|
|
} |
812
|
|
|
|
813
|
|
|
func (*PermissionEntityFilterRequest) ProtoMessage() {} |
814
|
|
|
|
815
|
|
|
func (x *PermissionEntityFilterRequest) ProtoReflect() protoreflect.Message { |
816
|
|
|
mi := &file_base_v1_service_proto_msgTypes[11] |
817
|
|
|
if x != nil { |
818
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
819
|
|
|
if ms.LoadMessageInfo() == nil { |
820
|
|
|
ms.StoreMessageInfo(mi) |
821
|
|
|
} |
822
|
|
|
return ms |
823
|
|
|
} |
824
|
|
|
return mi.MessageOf(x) |
825
|
|
|
} |
826
|
|
|
|
827
|
|
|
// Deprecated: Use PermissionEntityFilterRequest.ProtoReflect.Descriptor instead. |
828
|
|
|
func (*PermissionEntityFilterRequest) Descriptor() ([]byte, []int) { |
829
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{11} |
830
|
|
|
} |
831
|
|
|
|
832
|
|
|
func (x *PermissionEntityFilterRequest) GetTenantId() string { |
833
|
|
|
if x != nil { |
834
|
|
|
return x.TenantId |
835
|
|
|
} |
836
|
|
|
return "" |
837
|
|
|
} |
838
|
|
|
|
839
|
|
|
func (x *PermissionEntityFilterRequest) GetMetadata() *PermissionEntityFilterRequestMetadata { |
840
|
|
|
if x != nil { |
841
|
|
|
return x.Metadata |
842
|
|
|
} |
843
|
|
|
return nil |
844
|
|
|
} |
845
|
|
|
|
846
|
|
|
func (x *PermissionEntityFilterRequest) GetEntrance() *Entrance { |
847
|
|
|
if x != nil { |
848
|
|
|
return x.Entrance |
849
|
|
|
} |
850
|
|
|
return nil |
851
|
|
|
} |
852
|
|
|
|
853
|
|
|
func (x *PermissionEntityFilterRequest) GetSubject() *Subject { |
854
|
|
|
if x != nil { |
855
|
|
|
return x.Subject |
856
|
|
|
} |
857
|
|
|
return nil |
858
|
|
|
} |
859
|
|
|
|
860
|
|
|
func (x *PermissionEntityFilterRequest) GetContext() *Context { |
861
|
|
|
if x != nil { |
862
|
|
|
return x.Context |
863
|
|
|
} |
864
|
|
|
return nil |
865
|
|
|
} |
866
|
|
|
|
867
|
|
|
func (x *PermissionEntityFilterRequest) GetScope() map[string]*StringArrayValue { |
868
|
|
|
if x != nil { |
869
|
|
|
return x.Scope |
870
|
|
|
} |
871
|
|
|
return nil |
872
|
|
|
} |
873
|
|
|
|
874
|
|
|
func (x *PermissionEntityFilterRequest) GetCursor() string { |
875
|
|
|
if x != nil { |
876
|
|
|
return x.Cursor |
877
|
|
|
} |
878
|
|
|
return "" |
879
|
|
|
} |
880
|
|
|
|
881
|
|
|
// PermissionEntityFilterRequestMetadata metadata for the PermissionEntityFilterRequest. |
882
|
|
|
type PermissionEntityFilterRequestMetadata struct { |
883
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
884
|
|
|
// Version of the schema. |
885
|
|
|
SchemaVersion string `protobuf:"bytes,1,opt,name=schema_version,proto3" json:"schema_version,omitempty"` |
886
|
|
|
// Token associated with the snap. |
887
|
|
|
SnapToken string `protobuf:"bytes,2,opt,name=snap_token,proto3" json:"snap_token,omitempty"` |
888
|
|
|
// Depth of lookup, required, must be greater or equal to 3. |
889
|
|
|
Depth int32 `protobuf:"varint,3,opt,name=depth,proto3" json:"depth,omitempty"` |
890
|
|
|
unknownFields protoimpl.UnknownFields |
891
|
|
|
sizeCache protoimpl.SizeCache |
892
|
|
|
} |
893
|
|
|
|
894
|
|
|
func (x *PermissionEntityFilterRequestMetadata) Reset() { |
895
|
|
|
*x = PermissionEntityFilterRequestMetadata{} |
896
|
|
|
mi := &file_base_v1_service_proto_msgTypes[12] |
897
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
898
|
|
|
ms.StoreMessageInfo(mi) |
899
|
|
|
} |
900
|
|
|
|
901
|
|
|
func (x *PermissionEntityFilterRequestMetadata) String() string { |
902
|
|
|
return protoimpl.X.MessageStringOf(x) |
903
|
|
|
} |
904
|
|
|
|
905
|
|
|
func (*PermissionEntityFilterRequestMetadata) ProtoMessage() {} |
906
|
|
|
|
907
|
|
|
func (x *PermissionEntityFilterRequestMetadata) ProtoReflect() protoreflect.Message { |
908
|
|
|
mi := &file_base_v1_service_proto_msgTypes[12] |
909
|
|
|
if x != nil { |
910
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
911
|
|
|
if ms.LoadMessageInfo() == nil { |
912
|
|
|
ms.StoreMessageInfo(mi) |
913
|
|
|
} |
914
|
|
|
return ms |
915
|
|
|
} |
916
|
|
|
return mi.MessageOf(x) |
917
|
|
|
} |
918
|
|
|
|
919
|
|
|
// Deprecated: Use PermissionEntityFilterRequestMetadata.ProtoReflect.Descriptor instead. |
920
|
|
|
func (*PermissionEntityFilterRequestMetadata) Descriptor() ([]byte, []int) { |
921
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{12} |
922
|
|
|
} |
923
|
|
|
|
924
|
|
|
func (x *PermissionEntityFilterRequestMetadata) GetSchemaVersion() string { |
925
|
|
|
if x != nil { |
926
|
|
|
return x.SchemaVersion |
927
|
|
|
} |
928
|
|
|
return "" |
929
|
|
|
} |
930
|
|
|
|
931
|
|
|
func (x *PermissionEntityFilterRequestMetadata) GetSnapToken() string { |
932
|
|
|
if x != nil { |
933
|
|
|
return x.SnapToken |
934
|
|
|
} |
935
|
|
|
return "" |
936
|
|
|
} |
937
|
|
|
|
938
|
|
|
func (x *PermissionEntityFilterRequestMetadata) GetDepth() int32 { |
939
|
|
|
if x != nil { |
940
|
|
|
return x.Depth |
941
|
|
|
} |
942
|
|
|
return 0 |
943
|
|
|
} |
944
|
|
|
|
945
|
|
|
// PermissionLookupSubjectRequest is the request message for the LookupSubject method in the Permission service. |
946
|
|
|
type PermissionLookupSubjectRequest struct { |
947
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
948
|
|
|
// Identifier of the tenant, required, and must match the pattern "[a-zA-Z0-9-,]+", max 64 bytes. |
949
|
|
|
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,proto3" json:"tenant_id,omitempty"` |
950
|
|
|
// Metadata associated with this request, required. |
951
|
|
|
Metadata *PermissionLookupSubjectRequestMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` |
952
|
|
|
// Entity for which to check the permission, required. |
953
|
|
|
Entity *Entity `protobuf:"bytes,3,opt,name=entity,proto3" json:"entity,omitempty"` |
954
|
|
|
// Permission to be checked, can be a permission or relation. Required, and must match the pattern "^([a-zA-Z][a-zA-Z0-9_]{1,62}[a-zA-Z0-9])$", max 64 bytes. |
955
|
|
|
Permission string `protobuf:"bytes,4,opt,name=permission,proto3" json:"permission,omitempty"` |
956
|
|
|
// Reference to the subject to lookup. |
957
|
|
|
SubjectReference *RelationReference `protobuf:"bytes,5,opt,name=subject_reference,proto3" json:"subject_reference,omitempty"` |
958
|
|
|
// Context associated with this request. |
959
|
|
|
Context *Context `protobuf:"bytes,6,opt,name=context,proto3" json:"context,omitempty"` |
960
|
|
|
// Additional arguments associated with this request. |
961
|
|
|
Arguments []*Argument `protobuf:"bytes,7,rep,name=arguments,proto3" json:"arguments,omitempty"` |
962
|
|
|
// page_size is the number of subjects to be returned in the response. |
963
|
|
|
// The value should be between 1 and 100. |
964
|
|
|
PageSize uint32 `protobuf:"varint,8,opt,name=page_size,proto3" json:"page_size,omitempty"` |
965
|
|
|
// continuous_token is an optional parameter used for pagination. |
966
|
|
|
// It should be the value received in the previous response. |
967
|
|
|
ContinuousToken string `protobuf:"bytes,9,opt,name=continuous_token,proto3" json:"continuous_token,omitempty"` |
968
|
|
|
unknownFields protoimpl.UnknownFields |
969
|
|
|
sizeCache protoimpl.SizeCache |
970
|
|
|
} |
971
|
|
|
|
972
|
|
|
func (x *PermissionLookupSubjectRequest) Reset() { |
973
|
|
|
*x = PermissionLookupSubjectRequest{} |
974
|
|
|
mi := &file_base_v1_service_proto_msgTypes[13] |
975
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
976
|
|
|
ms.StoreMessageInfo(mi) |
977
|
|
|
} |
978
|
|
|
|
979
|
|
|
func (x *PermissionLookupSubjectRequest) String() string { |
980
|
|
|
return protoimpl.X.MessageStringOf(x) |
981
|
|
|
} |
982
|
|
|
|
983
|
|
|
func (*PermissionLookupSubjectRequest) ProtoMessage() {} |
984
|
|
|
|
985
|
|
|
func (x *PermissionLookupSubjectRequest) ProtoReflect() protoreflect.Message { |
986
|
|
|
mi := &file_base_v1_service_proto_msgTypes[13] |
987
|
|
|
if x != nil { |
988
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
989
|
|
|
if ms.LoadMessageInfo() == nil { |
990
|
|
|
ms.StoreMessageInfo(mi) |
991
|
|
|
} |
992
|
|
|
return ms |
993
|
|
|
} |
994
|
|
|
return mi.MessageOf(x) |
995
|
|
|
} |
996
|
|
|
|
997
|
|
|
// Deprecated: Use PermissionLookupSubjectRequest.ProtoReflect.Descriptor instead. |
998
|
|
|
func (*PermissionLookupSubjectRequest) Descriptor() ([]byte, []int) { |
999
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{13} |
1000
|
|
|
} |
1001
|
|
|
|
1002
|
|
|
func (x *PermissionLookupSubjectRequest) GetTenantId() string { |
1003
|
|
|
if x != nil { |
1004
|
|
|
return x.TenantId |
1005
|
|
|
} |
1006
|
|
|
return "" |
1007
|
|
|
} |
1008
|
|
|
|
1009
|
|
|
func (x *PermissionLookupSubjectRequest) GetMetadata() *PermissionLookupSubjectRequestMetadata { |
1010
|
|
|
if x != nil { |
1011
|
|
|
return x.Metadata |
1012
|
|
|
} |
1013
|
|
|
return nil |
1014
|
|
|
} |
1015
|
|
|
|
1016
|
|
|
func (x *PermissionLookupSubjectRequest) GetEntity() *Entity { |
1017
|
|
|
if x != nil { |
1018
|
|
|
return x.Entity |
1019
|
|
|
} |
1020
|
|
|
return nil |
1021
|
|
|
} |
1022
|
|
|
|
1023
|
|
|
func (x *PermissionLookupSubjectRequest) GetPermission() string { |
1024
|
|
|
if x != nil { |
1025
|
|
|
return x.Permission |
1026
|
|
|
} |
1027
|
|
|
return "" |
1028
|
|
|
} |
1029
|
|
|
|
1030
|
|
|
func (x *PermissionLookupSubjectRequest) GetSubjectReference() *RelationReference { |
1031
|
|
|
if x != nil { |
1032
|
|
|
return x.SubjectReference |
1033
|
|
|
} |
1034
|
|
|
return nil |
1035
|
|
|
} |
1036
|
|
|
|
1037
|
|
|
func (x *PermissionLookupSubjectRequest) GetContext() *Context { |
1038
|
|
|
if x != nil { |
1039
|
|
|
return x.Context |
1040
|
|
|
} |
1041
|
|
|
return nil |
1042
|
|
|
} |
1043
|
|
|
|
1044
|
|
|
func (x *PermissionLookupSubjectRequest) GetArguments() []*Argument { |
1045
|
|
|
if x != nil { |
1046
|
|
|
return x.Arguments |
1047
|
|
|
} |
1048
|
|
|
return nil |
1049
|
|
|
} |
1050
|
|
|
|
1051
|
|
|
func (x *PermissionLookupSubjectRequest) GetPageSize() uint32 { |
1052
|
|
|
if x != nil { |
1053
|
|
|
return x.PageSize |
1054
|
|
|
} |
1055
|
|
|
return 0 |
1056
|
|
|
} |
1057
|
|
|
|
1058
|
|
|
func (x *PermissionLookupSubjectRequest) GetContinuousToken() string { |
1059
|
|
|
if x != nil { |
1060
|
|
|
return x.ContinuousToken |
1061
|
|
|
} |
1062
|
|
|
return "" |
1063
|
|
|
} |
1064
|
|
|
|
1065
|
|
|
// PermissionLookupSubjectRequestMetadata metadata for the PermissionLookupSubjectRequest. |
1066
|
|
|
type PermissionLookupSubjectRequestMetadata struct { |
1067
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
1068
|
|
|
// Version of the schema. |
1069
|
|
|
SchemaVersion string `protobuf:"bytes,1,opt,name=schema_version,proto3" json:"schema_version,omitempty"` |
1070
|
|
|
// Token associated with the snap. |
1071
|
|
|
SnapToken string `protobuf:"bytes,2,opt,name=snap_token,proto3" json:"snap_token,omitempty"` |
1072
|
|
|
// Depth of the check, must be greater than or equal to 3. |
1073
|
|
|
Depth int32 `protobuf:"varint,3,opt,name=depth,proto3" json:"depth,omitempty"` |
1074
|
|
|
unknownFields protoimpl.UnknownFields |
1075
|
|
|
sizeCache protoimpl.SizeCache |
1076
|
|
|
} |
1077
|
|
|
|
1078
|
|
|
func (x *PermissionLookupSubjectRequestMetadata) Reset() { |
1079
|
|
|
*x = PermissionLookupSubjectRequestMetadata{} |
1080
|
|
|
mi := &file_base_v1_service_proto_msgTypes[14] |
1081
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1082
|
|
|
ms.StoreMessageInfo(mi) |
1083
|
|
|
} |
1084
|
|
|
|
1085
|
|
|
func (x *PermissionLookupSubjectRequestMetadata) String() string { |
1086
|
|
|
return protoimpl.X.MessageStringOf(x) |
1087
|
|
|
} |
1088
|
|
|
|
1089
|
|
|
func (*PermissionLookupSubjectRequestMetadata) ProtoMessage() {} |
1090
|
|
|
|
1091
|
|
|
func (x *PermissionLookupSubjectRequestMetadata) ProtoReflect() protoreflect.Message { |
1092
|
|
|
mi := &file_base_v1_service_proto_msgTypes[14] |
1093
|
|
|
if x != nil { |
1094
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1095
|
|
|
if ms.LoadMessageInfo() == nil { |
1096
|
|
|
ms.StoreMessageInfo(mi) |
1097
|
|
|
} |
1098
|
|
|
return ms |
1099
|
|
|
} |
1100
|
|
|
return mi.MessageOf(x) |
1101
|
|
|
} |
1102
|
|
|
|
1103
|
|
|
// Deprecated: Use PermissionLookupSubjectRequestMetadata.ProtoReflect.Descriptor instead. |
1104
|
|
|
func (*PermissionLookupSubjectRequestMetadata) Descriptor() ([]byte, []int) { |
1105
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{14} |
1106
|
|
|
} |
1107
|
|
|
|
1108
|
|
|
func (x *PermissionLookupSubjectRequestMetadata) GetSchemaVersion() string { |
1109
|
|
|
if x != nil { |
1110
|
|
|
return x.SchemaVersion |
1111
|
|
|
} |
1112
|
|
|
return "" |
1113
|
|
|
} |
1114
|
|
|
|
1115
|
|
|
func (x *PermissionLookupSubjectRequestMetadata) GetSnapToken() string { |
1116
|
|
|
if x != nil { |
1117
|
|
|
return x.SnapToken |
1118
|
|
|
} |
1119
|
|
|
return "" |
1120
|
|
|
} |
1121
|
|
|
|
1122
|
|
|
func (x *PermissionLookupSubjectRequestMetadata) GetDepth() int32 { |
1123
|
|
|
if x != nil { |
1124
|
|
|
return x.Depth |
1125
|
|
|
} |
1126
|
|
|
return 0 |
1127
|
|
|
} |
1128
|
|
|
|
1129
|
|
|
// PermissionLookupSubjectResponse is the response message for the LookupSubject method in the Permission service. |
1130
|
|
|
type PermissionLookupSubjectResponse struct { |
1131
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
1132
|
|
|
// List of identifiers for subjects that match the lookup. |
1133
|
|
|
SubjectIds []string `protobuf:"bytes,1,rep,name=subject_ids,proto3" json:"subject_ids,omitempty"` |
1134
|
|
|
// continuous_token is a string that can be used to paginate and retrieve the next set of results. |
1135
|
|
|
ContinuousToken string `protobuf:"bytes,2,opt,name=continuous_token,proto3" json:"continuous_token,omitempty"` |
1136
|
|
|
unknownFields protoimpl.UnknownFields |
1137
|
|
|
sizeCache protoimpl.SizeCache |
1138
|
|
|
} |
1139
|
|
|
|
1140
|
|
|
func (x *PermissionLookupSubjectResponse) Reset() { |
1141
|
|
|
*x = PermissionLookupSubjectResponse{} |
1142
|
|
|
mi := &file_base_v1_service_proto_msgTypes[15] |
1143
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1144
|
|
|
ms.StoreMessageInfo(mi) |
1145
|
|
|
} |
1146
|
|
|
|
1147
|
|
|
func (x *PermissionLookupSubjectResponse) String() string { |
1148
|
|
|
return protoimpl.X.MessageStringOf(x) |
1149
|
|
|
} |
1150
|
|
|
|
1151
|
|
|
func (*PermissionLookupSubjectResponse) ProtoMessage() {} |
1152
|
|
|
|
1153
|
|
|
func (x *PermissionLookupSubjectResponse) ProtoReflect() protoreflect.Message { |
1154
|
|
|
mi := &file_base_v1_service_proto_msgTypes[15] |
1155
|
|
|
if x != nil { |
1156
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1157
|
|
|
if ms.LoadMessageInfo() == nil { |
1158
|
|
|
ms.StoreMessageInfo(mi) |
1159
|
|
|
} |
1160
|
|
|
return ms |
1161
|
|
|
} |
1162
|
|
|
return mi.MessageOf(x) |
1163
|
|
|
} |
1164
|
|
|
|
1165
|
|
|
// Deprecated: Use PermissionLookupSubjectResponse.ProtoReflect.Descriptor instead. |
1166
|
|
|
func (*PermissionLookupSubjectResponse) Descriptor() ([]byte, []int) { |
1167
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{15} |
1168
|
|
|
} |
1169
|
|
|
|
1170
|
|
|
func (x *PermissionLookupSubjectResponse) GetSubjectIds() []string { |
1171
|
|
|
if x != nil { |
1172
|
|
|
return x.SubjectIds |
1173
|
|
|
} |
1174
|
|
|
return nil |
1175
|
|
|
} |
1176
|
|
|
|
1177
|
|
|
func (x *PermissionLookupSubjectResponse) GetContinuousToken() string { |
1178
|
|
|
if x != nil { |
1179
|
|
|
return x.ContinuousToken |
1180
|
|
|
} |
1181
|
|
|
return "" |
1182
|
|
|
} |
1183
|
|
|
|
1184
|
|
|
// PermissionSubjectPermissionRequest is the request message for the SubjectPermission method in the Permission service. |
1185
|
|
|
type PermissionSubjectPermissionRequest struct { |
1186
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
1187
|
|
|
// Identifier of the tenant, required, and must match the pattern "[a-zA-Z0-9-,]+", max 64 bytes. |
1188
|
|
|
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,proto3" json:"tenant_id,omitempty"` |
1189
|
|
|
// Metadata associated with this request, required. |
1190
|
|
|
Metadata *PermissionSubjectPermissionRequestMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` |
1191
|
|
|
// Entity for which to check the permission, required. |
1192
|
|
|
Entity *Entity `protobuf:"bytes,3,opt,name=entity,proto3" json:"entity,omitempty"` |
1193
|
|
|
// Subject for which to check the permission, required. |
1194
|
|
|
Subject *Subject `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"` |
1195
|
|
|
// Context associated with this request. |
1196
|
|
|
Context *Context `protobuf:"bytes,5,opt,name=context,proto3" json:"context,omitempty"` |
1197
|
|
|
unknownFields protoimpl.UnknownFields |
1198
|
|
|
sizeCache protoimpl.SizeCache |
1199
|
|
|
} |
1200
|
|
|
|
1201
|
|
|
func (x *PermissionSubjectPermissionRequest) Reset() { |
1202
|
|
|
*x = PermissionSubjectPermissionRequest{} |
1203
|
|
|
mi := &file_base_v1_service_proto_msgTypes[16] |
1204
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1205
|
|
|
ms.StoreMessageInfo(mi) |
1206
|
|
|
} |
1207
|
|
|
|
1208
|
|
|
func (x *PermissionSubjectPermissionRequest) String() string { |
1209
|
|
|
return protoimpl.X.MessageStringOf(x) |
1210
|
|
|
} |
1211
|
|
|
|
1212
|
|
|
func (*PermissionSubjectPermissionRequest) ProtoMessage() {} |
1213
|
|
|
|
1214
|
|
|
func (x *PermissionSubjectPermissionRequest) ProtoReflect() protoreflect.Message { |
1215
|
|
|
mi := &file_base_v1_service_proto_msgTypes[16] |
1216
|
|
|
if x != nil { |
1217
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1218
|
|
|
if ms.LoadMessageInfo() == nil { |
1219
|
|
|
ms.StoreMessageInfo(mi) |
1220
|
|
|
} |
1221
|
|
|
return ms |
1222
|
|
|
} |
1223
|
|
|
return mi.MessageOf(x) |
1224
|
|
|
} |
1225
|
|
|
|
1226
|
|
|
// Deprecated: Use PermissionSubjectPermissionRequest.ProtoReflect.Descriptor instead. |
1227
|
|
|
func (*PermissionSubjectPermissionRequest) Descriptor() ([]byte, []int) { |
1228
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{16} |
1229
|
|
|
} |
1230
|
|
|
|
1231
|
|
|
func (x *PermissionSubjectPermissionRequest) GetTenantId() string { |
1232
|
|
|
if x != nil { |
1233
|
|
|
return x.TenantId |
1234
|
|
|
} |
1235
|
|
|
return "" |
1236
|
|
|
} |
1237
|
|
|
|
1238
|
|
|
func (x *PermissionSubjectPermissionRequest) GetMetadata() *PermissionSubjectPermissionRequestMetadata { |
1239
|
|
|
if x != nil { |
1240
|
|
|
return x.Metadata |
1241
|
|
|
} |
1242
|
|
|
return nil |
1243
|
|
|
} |
1244
|
|
|
|
1245
|
|
|
func (x *PermissionSubjectPermissionRequest) GetEntity() *Entity { |
1246
|
|
|
if x != nil { |
1247
|
|
|
return x.Entity |
1248
|
|
|
} |
1249
|
|
|
return nil |
1250
|
|
|
} |
1251
|
|
|
|
1252
|
|
|
func (x *PermissionSubjectPermissionRequest) GetSubject() *Subject { |
1253
|
|
|
if x != nil { |
1254
|
|
|
return x.Subject |
1255
|
|
|
} |
1256
|
|
|
return nil |
1257
|
|
|
} |
1258
|
|
|
|
1259
|
|
|
func (x *PermissionSubjectPermissionRequest) GetContext() *Context { |
1260
|
|
|
if x != nil { |
1261
|
|
|
return x.Context |
1262
|
|
|
} |
1263
|
|
|
return nil |
1264
|
|
|
} |
1265
|
|
|
|
1266
|
|
|
// PermissionSubjectPermissionRequestMetadata metadata for the PermissionSubjectPermissionRequest. |
1267
|
|
|
type PermissionSubjectPermissionRequestMetadata struct { |
1268
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
1269
|
|
|
// Version of the schema. |
1270
|
|
|
SchemaVersion string `protobuf:"bytes,1,opt,name=schema_version,proto3" json:"schema_version,omitempty"` |
1271
|
|
|
// Token associated with the snap. |
1272
|
|
|
SnapToken string `protobuf:"bytes,2,opt,name=snap_token,proto3" json:"snap_token,omitempty"` |
1273
|
|
|
// Whether to only check permissions. |
1274
|
|
|
OnlyPermission bool `protobuf:"varint,3,opt,name=only_permission,proto3" json:"only_permission,omitempty"` |
1275
|
|
|
// Depth of the check, must be greater than or equal to 3. |
1276
|
|
|
Depth int32 `protobuf:"varint,4,opt,name=depth,proto3" json:"depth,omitempty"` |
1277
|
|
|
unknownFields protoimpl.UnknownFields |
1278
|
|
|
sizeCache protoimpl.SizeCache |
1279
|
|
|
} |
1280
|
|
|
|
1281
|
|
|
func (x *PermissionSubjectPermissionRequestMetadata) Reset() { |
1282
|
|
|
*x = PermissionSubjectPermissionRequestMetadata{} |
1283
|
|
|
mi := &file_base_v1_service_proto_msgTypes[17] |
1284
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1285
|
|
|
ms.StoreMessageInfo(mi) |
1286
|
|
|
} |
1287
|
|
|
|
1288
|
|
|
func (x *PermissionSubjectPermissionRequestMetadata) String() string { |
1289
|
|
|
return protoimpl.X.MessageStringOf(x) |
1290
|
|
|
} |
1291
|
|
|
|
1292
|
|
|
func (*PermissionSubjectPermissionRequestMetadata) ProtoMessage() {} |
1293
|
|
|
|
1294
|
|
|
func (x *PermissionSubjectPermissionRequestMetadata) ProtoReflect() protoreflect.Message { |
1295
|
|
|
mi := &file_base_v1_service_proto_msgTypes[17] |
1296
|
|
|
if x != nil { |
1297
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1298
|
|
|
if ms.LoadMessageInfo() == nil { |
1299
|
|
|
ms.StoreMessageInfo(mi) |
1300
|
|
|
} |
1301
|
|
|
return ms |
1302
|
|
|
} |
1303
|
|
|
return mi.MessageOf(x) |
1304
|
|
|
} |
1305
|
|
|
|
1306
|
|
|
// Deprecated: Use PermissionSubjectPermissionRequestMetadata.ProtoReflect.Descriptor instead. |
1307
|
|
|
func (*PermissionSubjectPermissionRequestMetadata) Descriptor() ([]byte, []int) { |
1308
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{17} |
1309
|
|
|
} |
1310
|
|
|
|
1311
|
|
|
func (x *PermissionSubjectPermissionRequestMetadata) GetSchemaVersion() string { |
1312
|
|
|
if x != nil { |
1313
|
|
|
return x.SchemaVersion |
1314
|
|
|
} |
1315
|
|
|
return "" |
1316
|
|
|
} |
1317
|
|
|
|
1318
|
|
|
func (x *PermissionSubjectPermissionRequestMetadata) GetSnapToken() string { |
1319
|
|
|
if x != nil { |
1320
|
|
|
return x.SnapToken |
1321
|
|
|
} |
1322
|
|
|
return "" |
1323
|
|
|
} |
1324
|
|
|
|
1325
|
|
|
func (x *PermissionSubjectPermissionRequestMetadata) GetOnlyPermission() bool { |
1326
|
|
|
if x != nil { |
1327
|
|
|
return x.OnlyPermission |
1328
|
|
|
} |
1329
|
|
|
return false |
1330
|
|
|
} |
1331
|
|
|
|
1332
|
|
|
func (x *PermissionSubjectPermissionRequestMetadata) GetDepth() int32 { |
1333
|
|
|
if x != nil { |
1334
|
|
|
return x.Depth |
1335
|
|
|
} |
1336
|
|
|
return 0 |
1337
|
|
|
} |
1338
|
|
|
|
1339
|
|
|
// PermissionSubjectPermissionResponse is the response message for the SubjectPermission method in the Permission service. |
1340
|
|
|
type PermissionSubjectPermissionResponse struct { |
1341
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
1342
|
|
|
// Map of results for each permission check. |
1343
|
|
|
Results map[string]CheckResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=base.v1.CheckResult"` |
1344
|
|
|
unknownFields protoimpl.UnknownFields |
1345
|
|
|
sizeCache protoimpl.SizeCache |
1346
|
|
|
} |
1347
|
|
|
|
1348
|
|
|
func (x *PermissionSubjectPermissionResponse) Reset() { |
1349
|
|
|
*x = PermissionSubjectPermissionResponse{} |
1350
|
|
|
mi := &file_base_v1_service_proto_msgTypes[18] |
1351
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1352
|
|
|
ms.StoreMessageInfo(mi) |
1353
|
|
|
} |
1354
|
|
|
|
1355
|
|
|
func (x *PermissionSubjectPermissionResponse) String() string { |
1356
|
|
|
return protoimpl.X.MessageStringOf(x) |
1357
|
|
|
} |
1358
|
|
|
|
1359
|
|
|
func (*PermissionSubjectPermissionResponse) ProtoMessage() {} |
1360
|
|
|
|
1361
|
|
|
func (x *PermissionSubjectPermissionResponse) ProtoReflect() protoreflect.Message { |
1362
|
|
|
mi := &file_base_v1_service_proto_msgTypes[18] |
1363
|
|
|
if x != nil { |
1364
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1365
|
|
|
if ms.LoadMessageInfo() == nil { |
1366
|
|
|
ms.StoreMessageInfo(mi) |
1367
|
|
|
} |
1368
|
|
|
return ms |
1369
|
|
|
} |
1370
|
|
|
return mi.MessageOf(x) |
1371
|
|
|
} |
1372
|
|
|
|
1373
|
|
|
// Deprecated: Use PermissionSubjectPermissionResponse.ProtoReflect.Descriptor instead. |
1374
|
|
|
func (*PermissionSubjectPermissionResponse) Descriptor() ([]byte, []int) { |
1375
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{18} |
1376
|
|
|
} |
1377
|
|
|
|
1378
|
|
|
func (x *PermissionSubjectPermissionResponse) GetResults() map[string]CheckResult { |
1379
|
|
|
if x != nil { |
1380
|
|
|
return x.Results |
1381
|
|
|
} |
1382
|
|
|
return nil |
1383
|
|
|
} |
1384
|
|
|
|
1385
|
|
|
// WatchRequest is the request message for the Watch RPC. It contains the |
1386
|
|
|
// details needed to establish a watch stream. |
1387
|
|
|
type WatchRequest struct { |
1388
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
1389
|
|
|
// Identifier of the tenant, required, and must match the pattern "[a-zA-Z0-9-,]+", max 64 bytes. |
1390
|
|
|
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,proto3" json:"tenant_id,omitempty"` |
1391
|
|
|
// Snap token to be used for watching. |
1392
|
|
|
SnapToken string `protobuf:"bytes,2,opt,name=snap_token,proto3" json:"snap_token,omitempty"` |
1393
|
|
|
unknownFields protoimpl.UnknownFields |
1394
|
|
|
sizeCache protoimpl.SizeCache |
1395
|
|
|
} |
1396
|
|
|
|
1397
|
|
|
func (x *WatchRequest) Reset() { |
1398
|
|
|
*x = WatchRequest{} |
1399
|
|
|
mi := &file_base_v1_service_proto_msgTypes[19] |
1400
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1401
|
|
|
ms.StoreMessageInfo(mi) |
1402
|
|
|
} |
1403
|
|
|
|
1404
|
|
|
func (x *WatchRequest) String() string { |
1405
|
|
|
return protoimpl.X.MessageStringOf(x) |
1406
|
|
|
} |
1407
|
|
|
|
1408
|
|
|
func (*WatchRequest) ProtoMessage() {} |
1409
|
|
|
|
1410
|
|
|
func (x *WatchRequest) ProtoReflect() protoreflect.Message { |
1411
|
|
|
mi := &file_base_v1_service_proto_msgTypes[19] |
1412
|
|
|
if x != nil { |
1413
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1414
|
|
|
if ms.LoadMessageInfo() == nil { |
1415
|
|
|
ms.StoreMessageInfo(mi) |
1416
|
|
|
} |
1417
|
|
|
return ms |
1418
|
|
|
} |
1419
|
|
|
return mi.MessageOf(x) |
1420
|
|
|
} |
1421
|
|
|
|
1422
|
|
|
// Deprecated: Use WatchRequest.ProtoReflect.Descriptor instead. |
1423
|
|
|
func (*WatchRequest) Descriptor() ([]byte, []int) { |
1424
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{19} |
1425
|
|
|
} |
1426
|
|
|
|
1427
|
|
|
func (x *WatchRequest) GetTenantId() string { |
1428
|
|
|
if x != nil { |
1429
|
|
|
return x.TenantId |
1430
|
|
|
} |
1431
|
|
|
return "" |
1432
|
|
|
} |
1433
|
|
|
|
1434
|
|
|
func (x *WatchRequest) GetSnapToken() string { |
1435
|
|
|
if x != nil { |
1436
|
|
|
return x.SnapToken |
1437
|
|
|
} |
1438
|
|
|
return "" |
1439
|
|
|
} |
1440
|
|
|
|
1441
|
|
|
// WatchResponse is the response message for the Watch RPC. It contains the |
1442
|
|
|
// changes in the data that are being watched. |
1443
|
|
|
type WatchResponse struct { |
1444
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
1445
|
|
|
// Changes in the data. |
1446
|
|
|
Changes *DataChanges `protobuf:"bytes,1,opt,name=changes,proto3" json:"changes,omitempty"` |
1447
|
|
|
unknownFields protoimpl.UnknownFields |
1448
|
|
|
sizeCache protoimpl.SizeCache |
1449
|
|
|
} |
1450
|
|
|
|
1451
|
|
|
func (x *WatchResponse) Reset() { |
1452
|
|
|
*x = WatchResponse{} |
1453
|
|
|
mi := &file_base_v1_service_proto_msgTypes[20] |
1454
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1455
|
|
|
ms.StoreMessageInfo(mi) |
1456
|
|
|
} |
1457
|
|
|
|
1458
|
|
|
func (x *WatchResponse) String() string { |
1459
|
|
|
return protoimpl.X.MessageStringOf(x) |
1460
|
|
|
} |
1461
|
|
|
|
1462
|
|
|
func (*WatchResponse) ProtoMessage() {} |
1463
|
|
|
|
1464
|
|
|
func (x *WatchResponse) ProtoReflect() protoreflect.Message { |
1465
|
|
|
mi := &file_base_v1_service_proto_msgTypes[20] |
1466
|
|
|
if x != nil { |
1467
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1468
|
|
|
if ms.LoadMessageInfo() == nil { |
1469
|
|
|
ms.StoreMessageInfo(mi) |
1470
|
|
|
} |
1471
|
|
|
return ms |
1472
|
|
|
} |
1473
|
|
|
return mi.MessageOf(x) |
1474
|
|
|
} |
1475
|
|
|
|
1476
|
|
|
// Deprecated: Use WatchResponse.ProtoReflect.Descriptor instead. |
1477
|
|
|
func (*WatchResponse) Descriptor() ([]byte, []int) { |
1478
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{20} |
1479
|
|
|
} |
1480
|
|
|
|
1481
|
|
|
func (x *WatchResponse) GetChanges() *DataChanges { |
1482
|
|
|
if x != nil { |
1483
|
|
|
return x.Changes |
1484
|
|
|
} |
1485
|
|
|
return nil |
1486
|
|
|
} |
1487
|
|
|
|
1488
|
|
|
// SchemaWriteRequest is the request message for the Write method in the Schema service. |
1489
|
|
|
// It contains tenant_id and the schema to be written. |
1490
|
|
|
type SchemaWriteRequest struct { |
1491
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
1492
|
|
|
// tenant_id is a string that identifies the tenant. It must match the pattern "[a-zA-Z0-9-,]+", |
1493
|
|
|
// be a maximum of 64 bytes, and must not be empty. |
1494
|
|
|
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,proto3" json:"tenant_id,omitempty"` |
1495
|
|
|
// schema is the string representation of the schema to be written. |
1496
|
|
|
Schema string `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"` |
1497
|
|
|
unknownFields protoimpl.UnknownFields |
1498
|
|
|
sizeCache protoimpl.SizeCache |
1499
|
|
|
} |
1500
|
|
|
|
1501
|
|
|
func (x *SchemaWriteRequest) Reset() { |
1502
|
|
|
*x = SchemaWriteRequest{} |
1503
|
|
|
mi := &file_base_v1_service_proto_msgTypes[21] |
1504
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1505
|
|
|
ms.StoreMessageInfo(mi) |
1506
|
|
|
} |
1507
|
|
|
|
1508
|
|
|
func (x *SchemaWriteRequest) String() string { |
1509
|
|
|
return protoimpl.X.MessageStringOf(x) |
1510
|
|
|
} |
1511
|
|
|
|
1512
|
|
|
func (*SchemaWriteRequest) ProtoMessage() {} |
1513
|
|
|
|
1514
|
|
|
func (x *SchemaWriteRequest) ProtoReflect() protoreflect.Message { |
1515
|
|
|
mi := &file_base_v1_service_proto_msgTypes[21] |
1516
|
|
|
if x != nil { |
1517
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1518
|
|
|
if ms.LoadMessageInfo() == nil { |
1519
|
|
|
ms.StoreMessageInfo(mi) |
1520
|
|
|
} |
1521
|
|
|
return ms |
1522
|
|
|
} |
1523
|
|
|
return mi.MessageOf(x) |
1524
|
|
|
} |
1525
|
|
|
|
1526
|
|
|
// Deprecated: Use SchemaWriteRequest.ProtoReflect.Descriptor instead. |
1527
|
|
|
func (*SchemaWriteRequest) Descriptor() ([]byte, []int) { |
1528
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{21} |
1529
|
|
|
} |
1530
|
|
|
|
1531
|
|
|
func (x *SchemaWriteRequest) GetTenantId() string { |
1532
|
|
|
if x != nil { |
1533
|
|
|
return x.TenantId |
1534
|
|
|
} |
1535
|
|
|
return "" |
1536
|
|
|
} |
1537
|
|
|
|
1538
|
|
|
func (x *SchemaWriteRequest) GetSchema() string { |
1539
|
|
|
if x != nil { |
1540
|
|
|
return x.Schema |
1541
|
|
|
} |
1542
|
|
|
return "" |
1543
|
|
|
} |
1544
|
|
|
|
1545
|
|
|
// SchemaWriteResponse is the response message for the Write method in the Schema service. |
1546
|
|
|
// It returns the version of the written schema. |
1547
|
|
|
type SchemaWriteResponse struct { |
1548
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
1549
|
|
|
// schema_version is the string that identifies the version of the written schema. |
1550
|
|
|
SchemaVersion string `protobuf:"bytes,1,opt,name=schema_version,proto3" json:"schema_version,omitempty"` |
1551
|
|
|
unknownFields protoimpl.UnknownFields |
1552
|
|
|
sizeCache protoimpl.SizeCache |
1553
|
|
|
} |
1554
|
|
|
|
1555
|
|
|
func (x *SchemaWriteResponse) Reset() { |
1556
|
|
|
*x = SchemaWriteResponse{} |
1557
|
|
|
mi := &file_base_v1_service_proto_msgTypes[22] |
1558
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1559
|
|
|
ms.StoreMessageInfo(mi) |
1560
|
|
|
} |
1561
|
|
|
|
1562
|
|
|
func (x *SchemaWriteResponse) String() string { |
1563
|
|
|
return protoimpl.X.MessageStringOf(x) |
1564
|
|
|
} |
1565
|
|
|
|
1566
|
|
|
func (*SchemaWriteResponse) ProtoMessage() {} |
1567
|
|
|
|
1568
|
|
|
func (x *SchemaWriteResponse) ProtoReflect() protoreflect.Message { |
1569
|
|
|
mi := &file_base_v1_service_proto_msgTypes[22] |
1570
|
|
|
if x != nil { |
1571
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1572
|
|
|
if ms.LoadMessageInfo() == nil { |
1573
|
|
|
ms.StoreMessageInfo(mi) |
1574
|
|
|
} |
1575
|
|
|
return ms |
1576
|
|
|
} |
1577
|
|
|
return mi.MessageOf(x) |
1578
|
|
|
} |
1579
|
|
|
|
1580
|
|
|
// Deprecated: Use SchemaWriteResponse.ProtoReflect.Descriptor instead. |
1581
|
|
|
func (*SchemaWriteResponse) Descriptor() ([]byte, []int) { |
1582
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{22} |
1583
|
|
|
} |
1584
|
|
|
|
1585
|
|
|
func (x *SchemaWriteResponse) GetSchemaVersion() string { |
1586
|
|
|
if x != nil { |
1587
|
|
|
return x.SchemaVersion |
1588
|
|
|
} |
1589
|
|
|
return "" |
1590
|
|
|
} |
1591
|
|
|
|
1592
|
|
|
// It contains the tenant_id to identify the tenant and metadata of the schema to be edited, |
1593
|
|
|
// with the corresponding edits to various entities |
1594
|
|
|
type SchemaPartialWriteRequest struct { |
1595
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
1596
|
|
|
// tenant_id is a string that identifies the tenant. It must match the pattern "[a-zA-Z0-9-,]+", |
1597
|
|
|
// be a maximum of 64 bytes, and must not be empty. |
1598
|
|
|
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,proto3" json:"tenant_id,omitempty"` |
1599
|
|
|
// metadata is the additional information needed for the Partial Write request. |
1600
|
|
|
Metadata *SchemaPartialWriteRequestMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` |
1601
|
|
|
// Map of entity name with the values needed to be updated |
1602
|
|
|
Partials map[string]*Partials `protobuf:"bytes,3,rep,name=partials,proto3" json:"partials,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` |
1603
|
|
|
unknownFields protoimpl.UnknownFields |
1604
|
|
|
sizeCache protoimpl.SizeCache |
1605
|
|
|
} |
1606
|
|
|
|
1607
|
|
|
func (x *SchemaPartialWriteRequest) Reset() { |
1608
|
|
|
*x = SchemaPartialWriteRequest{} |
1609
|
|
|
mi := &file_base_v1_service_proto_msgTypes[23] |
1610
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1611
|
|
|
ms.StoreMessageInfo(mi) |
1612
|
|
|
} |
1613
|
|
|
|
1614
|
|
|
func (x *SchemaPartialWriteRequest) String() string { |
1615
|
|
|
return protoimpl.X.MessageStringOf(x) |
1616
|
|
|
} |
1617
|
|
|
|
1618
|
|
|
func (*SchemaPartialWriteRequest) ProtoMessage() {} |
1619
|
|
|
|
1620
|
|
|
func (x *SchemaPartialWriteRequest) ProtoReflect() protoreflect.Message { |
1621
|
|
|
mi := &file_base_v1_service_proto_msgTypes[23] |
1622
|
|
|
if x != nil { |
1623
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1624
|
|
|
if ms.LoadMessageInfo() == nil { |
1625
|
|
|
ms.StoreMessageInfo(mi) |
1626
|
|
|
} |
1627
|
|
|
return ms |
1628
|
|
|
} |
1629
|
|
|
return mi.MessageOf(x) |
1630
|
|
|
} |
1631
|
|
|
|
1632
|
|
|
// Deprecated: Use SchemaPartialWriteRequest.ProtoReflect.Descriptor instead. |
1633
|
|
|
func (*SchemaPartialWriteRequest) Descriptor() ([]byte, []int) { |
1634
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{23} |
1635
|
|
|
} |
1636
|
|
|
|
1637
|
|
|
func (x *SchemaPartialWriteRequest) GetTenantId() string { |
1638
|
|
|
if x != nil { |
1639
|
|
|
return x.TenantId |
1640
|
|
|
} |
1641
|
|
|
return "" |
1642
|
|
|
} |
1643
|
|
|
|
1644
|
|
|
func (x *SchemaPartialWriteRequest) GetMetadata() *SchemaPartialWriteRequestMetadata { |
1645
|
|
|
if x != nil { |
1646
|
|
|
return x.Metadata |
1647
|
|
|
} |
1648
|
|
|
return nil |
1649
|
|
|
} |
1650
|
|
|
|
1651
|
|
|
func (x *SchemaPartialWriteRequest) GetPartials() map[string]*Partials { |
1652
|
|
|
if x != nil { |
1653
|
|
|
return x.Partials |
1654
|
|
|
} |
1655
|
|
|
return nil |
1656
|
|
|
} |
1657
|
|
|
|
1658
|
|
|
// SchemaPartialWriteRequestMetadata provides additional information for the Schema Partial Write request. |
1659
|
|
|
// It contains schema_version to specify which version of the schema should be read. |
1660
|
|
|
type SchemaPartialWriteRequestMetadata struct { |
1661
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
1662
|
|
|
// schema_version is the string that identifies the version of the schema to be read. |
1663
|
|
|
SchemaVersion string `protobuf:"bytes,1,opt,name=schema_version,proto3" json:"schema_version,omitempty"` |
1664
|
|
|
unknownFields protoimpl.UnknownFields |
1665
|
|
|
sizeCache protoimpl.SizeCache |
1666
|
|
|
} |
1667
|
|
|
|
1668
|
|
|
func (x *SchemaPartialWriteRequestMetadata) Reset() { |
1669
|
|
|
*x = SchemaPartialWriteRequestMetadata{} |
1670
|
|
|
mi := &file_base_v1_service_proto_msgTypes[24] |
1671
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1672
|
|
|
ms.StoreMessageInfo(mi) |
1673
|
|
|
} |
1674
|
|
|
|
1675
|
|
|
func (x *SchemaPartialWriteRequestMetadata) String() string { |
1676
|
|
|
return protoimpl.X.MessageStringOf(x) |
1677
|
|
|
} |
1678
|
|
|
|
1679
|
|
|
func (*SchemaPartialWriteRequestMetadata) ProtoMessage() {} |
1680
|
|
|
|
1681
|
|
|
func (x *SchemaPartialWriteRequestMetadata) ProtoReflect() protoreflect.Message { |
1682
|
|
|
mi := &file_base_v1_service_proto_msgTypes[24] |
1683
|
|
|
if x != nil { |
1684
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1685
|
|
|
if ms.LoadMessageInfo() == nil { |
1686
|
|
|
ms.StoreMessageInfo(mi) |
1687
|
|
|
} |
1688
|
|
|
return ms |
1689
|
|
|
} |
1690
|
|
|
return mi.MessageOf(x) |
1691
|
|
|
} |
1692
|
|
|
|
1693
|
|
|
// Deprecated: Use SchemaPartialWriteRequestMetadata.ProtoReflect.Descriptor instead. |
1694
|
|
|
func (*SchemaPartialWriteRequestMetadata) Descriptor() ([]byte, []int) { |
1695
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{24} |
1696
|
|
|
} |
1697
|
|
|
|
1698
|
|
|
func (x *SchemaPartialWriteRequestMetadata) GetSchemaVersion() string { |
1699
|
|
|
if x != nil { |
1700
|
|
|
return x.SchemaVersion |
1701
|
|
|
} |
1702
|
|
|
return "" |
1703
|
|
|
} |
1704
|
|
|
|
1705
|
|
|
// SchemaPartialWriteResponse is the response message for the Parietal Write method in the Schema service. |
1706
|
|
|
// It returns the requested schema. |
1707
|
|
|
type SchemaPartialWriteResponse struct { |
1708
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
1709
|
|
|
// schema_version is the string that identifies the version of the written schema. |
1710
|
|
|
SchemaVersion string `protobuf:"bytes,1,opt,name=schema_version,proto3" json:"schema_version,omitempty"` |
1711
|
|
|
unknownFields protoimpl.UnknownFields |
1712
|
|
|
sizeCache protoimpl.SizeCache |
1713
|
|
|
} |
1714
|
|
|
|
1715
|
|
|
func (x *SchemaPartialWriteResponse) Reset() { |
1716
|
|
|
*x = SchemaPartialWriteResponse{} |
1717
|
|
|
mi := &file_base_v1_service_proto_msgTypes[25] |
1718
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1719
|
|
|
ms.StoreMessageInfo(mi) |
1720
|
|
|
} |
1721
|
|
|
|
1722
|
|
|
func (x *SchemaPartialWriteResponse) String() string { |
1723
|
|
|
return protoimpl.X.MessageStringOf(x) |
1724
|
|
|
} |
1725
|
|
|
|
1726
|
|
|
func (*SchemaPartialWriteResponse) ProtoMessage() {} |
1727
|
|
|
|
1728
|
|
|
func (x *SchemaPartialWriteResponse) ProtoReflect() protoreflect.Message { |
1729
|
|
|
mi := &file_base_v1_service_proto_msgTypes[25] |
1730
|
|
|
if x != nil { |
1731
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1732
|
|
|
if ms.LoadMessageInfo() == nil { |
1733
|
|
|
ms.StoreMessageInfo(mi) |
1734
|
|
|
} |
1735
|
|
|
return ms |
1736
|
|
|
} |
1737
|
|
|
return mi.MessageOf(x) |
1738
|
|
|
} |
1739
|
|
|
|
1740
|
|
|
// Deprecated: Use SchemaPartialWriteResponse.ProtoReflect.Descriptor instead. |
1741
|
|
|
func (*SchemaPartialWriteResponse) Descriptor() ([]byte, []int) { |
1742
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{25} |
1743
|
|
|
} |
1744
|
|
|
|
1745
|
|
|
func (x *SchemaPartialWriteResponse) GetSchemaVersion() string { |
1746
|
|
|
if x != nil { |
1747
|
|
|
return x.SchemaVersion |
1748
|
|
|
} |
1749
|
|
|
return "" |
1750
|
|
|
} |
1751
|
|
|
|
1752
|
|
|
// SchemaReadRequest is the request message for the Read method in the Schema service. |
1753
|
|
|
// It contains tenant_id and metadata about the schema to be read. |
1754
|
|
|
type SchemaReadRequest struct { |
1755
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
1756
|
|
|
// tenant_id is a string that identifies the tenant. It must match the pattern "[a-zA-Z0-9-,]+", |
1757
|
|
|
// be a maximum of 64 bytes, and must not be empty. |
1758
|
|
|
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,proto3" json:"tenant_id,omitempty"` |
1759
|
|
|
// metadata is the additional information needed for the Read request. |
1760
|
|
|
Metadata *SchemaReadRequestMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` |
1761
|
|
|
unknownFields protoimpl.UnknownFields |
1762
|
|
|
sizeCache protoimpl.SizeCache |
1763
|
|
|
} |
1764
|
|
|
|
1765
|
|
|
func (x *SchemaReadRequest) Reset() { |
1766
|
|
|
*x = SchemaReadRequest{} |
1767
|
|
|
mi := &file_base_v1_service_proto_msgTypes[26] |
1768
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1769
|
|
|
ms.StoreMessageInfo(mi) |
1770
|
|
|
} |
1771
|
|
|
|
1772
|
|
|
func (x *SchemaReadRequest) String() string { |
1773
|
|
|
return protoimpl.X.MessageStringOf(x) |
1774
|
|
|
} |
1775
|
|
|
|
1776
|
|
|
func (*SchemaReadRequest) ProtoMessage() {} |
1777
|
|
|
|
1778
|
|
|
func (x *SchemaReadRequest) ProtoReflect() protoreflect.Message { |
1779
|
|
|
mi := &file_base_v1_service_proto_msgTypes[26] |
1780
|
|
|
if x != nil { |
1781
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1782
|
|
|
if ms.LoadMessageInfo() == nil { |
1783
|
|
|
ms.StoreMessageInfo(mi) |
1784
|
|
|
} |
1785
|
|
|
return ms |
1786
|
|
|
} |
1787
|
|
|
return mi.MessageOf(x) |
1788
|
|
|
} |
1789
|
|
|
|
1790
|
|
|
// Deprecated: Use SchemaReadRequest.ProtoReflect.Descriptor instead. |
1791
|
|
|
func (*SchemaReadRequest) Descriptor() ([]byte, []int) { |
1792
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{26} |
1793
|
|
|
} |
1794
|
|
|
|
1795
|
|
|
func (x *SchemaReadRequest) GetTenantId() string { |
1796
|
|
|
if x != nil { |
1797
|
|
|
return x.TenantId |
1798
|
|
|
} |
1799
|
|
|
return "" |
1800
|
|
|
} |
1801
|
|
|
|
1802
|
|
|
func (x *SchemaReadRequest) GetMetadata() *SchemaReadRequestMetadata { |
1803
|
|
|
if x != nil { |
1804
|
|
|
return x.Metadata |
1805
|
|
|
} |
1806
|
|
|
return nil |
1807
|
|
|
} |
1808
|
|
|
|
1809
|
|
|
// SchemaReadRequestMetadata provides additional information for the Schema Read request. |
1810
|
|
|
// It contains schema_version to specify which version of the schema should be read. |
1811
|
|
|
type SchemaReadRequestMetadata struct { |
1812
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
1813
|
|
|
// schema_version is the string that identifies the version of the schema to be read. |
1814
|
|
|
SchemaVersion string `protobuf:"bytes,1,opt,name=schema_version,proto3" json:"schema_version,omitempty"` |
1815
|
|
|
unknownFields protoimpl.UnknownFields |
1816
|
|
|
sizeCache protoimpl.SizeCache |
1817
|
|
|
} |
1818
|
|
|
|
1819
|
|
|
func (x *SchemaReadRequestMetadata) Reset() { |
1820
|
|
|
*x = SchemaReadRequestMetadata{} |
1821
|
|
|
mi := &file_base_v1_service_proto_msgTypes[27] |
1822
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1823
|
|
|
ms.StoreMessageInfo(mi) |
1824
|
|
|
} |
1825
|
|
|
|
1826
|
|
|
func (x *SchemaReadRequestMetadata) String() string { |
1827
|
|
|
return protoimpl.X.MessageStringOf(x) |
1828
|
|
|
} |
1829
|
|
|
|
1830
|
|
|
func (*SchemaReadRequestMetadata) ProtoMessage() {} |
1831
|
|
|
|
1832
|
|
|
func (x *SchemaReadRequestMetadata) ProtoReflect() protoreflect.Message { |
1833
|
|
|
mi := &file_base_v1_service_proto_msgTypes[27] |
1834
|
|
|
if x != nil { |
1835
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1836
|
|
|
if ms.LoadMessageInfo() == nil { |
1837
|
|
|
ms.StoreMessageInfo(mi) |
1838
|
|
|
} |
1839
|
|
|
return ms |
1840
|
|
|
} |
1841
|
|
|
return mi.MessageOf(x) |
1842
|
|
|
} |
1843
|
|
|
|
1844
|
|
|
// Deprecated: Use SchemaReadRequestMetadata.ProtoReflect.Descriptor instead. |
1845
|
|
|
func (*SchemaReadRequestMetadata) Descriptor() ([]byte, []int) { |
1846
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{27} |
1847
|
|
|
} |
1848
|
|
|
|
1849
|
|
|
func (x *SchemaReadRequestMetadata) GetSchemaVersion() string { |
1850
|
|
|
if x != nil { |
1851
|
|
|
return x.SchemaVersion |
1852
|
|
|
} |
1853
|
|
|
return "" |
1854
|
|
|
} |
1855
|
|
|
|
1856
|
|
|
// SchemaReadResponse is the response message for the Read method in the Schema service. |
1857
|
|
|
// It returns the requested schema. |
1858
|
|
|
type SchemaReadResponse struct { |
1859
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
1860
|
|
|
// schema is the SchemaDefinition that represents the read schema. |
1861
|
|
|
Schema *SchemaDefinition `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"` |
1862
|
|
|
unknownFields protoimpl.UnknownFields |
1863
|
|
|
sizeCache protoimpl.SizeCache |
1864
|
|
|
} |
1865
|
|
|
|
1866
|
|
|
func (x *SchemaReadResponse) Reset() { |
1867
|
|
|
*x = SchemaReadResponse{} |
1868
|
|
|
mi := &file_base_v1_service_proto_msgTypes[28] |
1869
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1870
|
|
|
ms.StoreMessageInfo(mi) |
1871
|
|
|
} |
1872
|
|
|
|
1873
|
|
|
func (x *SchemaReadResponse) String() string { |
1874
|
|
|
return protoimpl.X.MessageStringOf(x) |
1875
|
|
|
} |
1876
|
|
|
|
1877
|
|
|
func (*SchemaReadResponse) ProtoMessage() {} |
1878
|
|
|
|
1879
|
|
|
func (x *SchemaReadResponse) ProtoReflect() protoreflect.Message { |
1880
|
|
|
mi := &file_base_v1_service_proto_msgTypes[28] |
1881
|
|
|
if x != nil { |
1882
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1883
|
|
|
if ms.LoadMessageInfo() == nil { |
1884
|
|
|
ms.StoreMessageInfo(mi) |
1885
|
|
|
} |
1886
|
|
|
return ms |
1887
|
|
|
} |
1888
|
|
|
return mi.MessageOf(x) |
1889
|
|
|
} |
1890
|
|
|
|
1891
|
|
|
// Deprecated: Use SchemaReadResponse.ProtoReflect.Descriptor instead. |
1892
|
|
|
func (*SchemaReadResponse) Descriptor() ([]byte, []int) { |
1893
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{28} |
1894
|
|
|
} |
1895
|
|
|
|
1896
|
|
|
func (x *SchemaReadResponse) GetSchema() *SchemaDefinition { |
1897
|
|
|
if x != nil { |
1898
|
|
|
return x.Schema |
1899
|
|
|
} |
1900
|
|
|
return nil |
1901
|
|
|
} |
1902
|
|
|
|
1903
|
|
|
// SchemaListRequest is the request message for the List method in the Schema service. |
1904
|
|
|
// It contains tenant_id for which the schemas are to be listed. |
1905
|
|
|
type SchemaListRequest struct { |
1906
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
1907
|
|
|
// tenant_id is a string that identifies the tenant. It must match the pattern "[a-zA-Z0-9-,]+", |
1908
|
|
|
// be a maximum of 64 bytes, and must not be empty. |
1909
|
|
|
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,proto3" json:"tenant_id,omitempty"` |
1910
|
|
|
// page_size is the number of schemas to be returned in the response. |
1911
|
|
|
// The value should be between 1 and 100. |
1912
|
|
|
PageSize uint32 `protobuf:"varint,2,opt,name=page_size,proto3" json:"page_size,omitempty"` |
1913
|
|
|
// continuous_token is an optional parameter used for pagination. |
1914
|
|
|
// It should be the value received in the previous response. |
1915
|
|
|
ContinuousToken string `protobuf:"bytes,3,opt,name=continuous_token,proto3" json:"continuous_token,omitempty"` |
1916
|
|
|
unknownFields protoimpl.UnknownFields |
1917
|
|
|
sizeCache protoimpl.SizeCache |
1918
|
|
|
} |
1919
|
|
|
|
1920
|
|
|
func (x *SchemaListRequest) Reset() { |
1921
|
|
|
*x = SchemaListRequest{} |
1922
|
|
|
mi := &file_base_v1_service_proto_msgTypes[29] |
1923
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1924
|
|
|
ms.StoreMessageInfo(mi) |
1925
|
|
|
} |
1926
|
|
|
|
1927
|
|
|
func (x *SchemaListRequest) String() string { |
1928
|
|
|
return protoimpl.X.MessageStringOf(x) |
1929
|
|
|
} |
1930
|
|
|
|
1931
|
|
|
func (*SchemaListRequest) ProtoMessage() {} |
1932
|
|
|
|
1933
|
|
|
func (x *SchemaListRequest) ProtoReflect() protoreflect.Message { |
1934
|
|
|
mi := &file_base_v1_service_proto_msgTypes[29] |
1935
|
|
|
if x != nil { |
1936
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1937
|
|
|
if ms.LoadMessageInfo() == nil { |
1938
|
|
|
ms.StoreMessageInfo(mi) |
1939
|
|
|
} |
1940
|
|
|
return ms |
1941
|
|
|
} |
1942
|
|
|
return mi.MessageOf(x) |
1943
|
|
|
} |
1944
|
|
|
|
1945
|
|
|
// Deprecated: Use SchemaListRequest.ProtoReflect.Descriptor instead. |
1946
|
|
|
func (*SchemaListRequest) Descriptor() ([]byte, []int) { |
1947
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{29} |
1948
|
|
|
} |
1949
|
|
|
|
1950
|
|
|
func (x *SchemaListRequest) GetTenantId() string { |
1951
|
|
|
if x != nil { |
1952
|
|
|
return x.TenantId |
1953
|
|
|
} |
1954
|
|
|
return "" |
1955
|
|
|
} |
1956
|
|
|
|
1957
|
|
|
func (x *SchemaListRequest) GetPageSize() uint32 { |
1958
|
|
|
if x != nil { |
1959
|
|
|
return x.PageSize |
1960
|
|
|
} |
1961
|
|
|
return 0 |
1962
|
|
|
} |
1963
|
|
|
|
1964
|
|
|
func (x *SchemaListRequest) GetContinuousToken() string { |
1965
|
|
|
if x != nil { |
1966
|
|
|
return x.ContinuousToken |
1967
|
|
|
} |
1968
|
|
|
return "" |
1969
|
|
|
} |
1970
|
|
|
|
1971
|
|
|
// SchemaListResponse is the response message for the List method in the Schema service. |
1972
|
|
|
// It returns a paginated list of schemas |
1973
|
|
|
type SchemaListResponse struct { |
1974
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
1975
|
|
|
// head of the schemas is the latest version available for the tenant |
1976
|
|
|
Head string `protobuf:"bytes,1,opt,name=head,proto3" json:"head,omitempty"` |
1977
|
|
|
// list of schema versions with creation timestamps |
1978
|
|
|
Schemas []*SchemaList `protobuf:"bytes,2,rep,name=schemas,proto3" json:"schemas,omitempty"` |
1979
|
|
|
// continuous_token is a string that can be used to paginate and retrieve the next set of results. |
1980
|
|
|
ContinuousToken string `protobuf:"bytes,3,opt,name=continuous_token,proto3" json:"continuous_token,omitempty"` |
1981
|
|
|
unknownFields protoimpl.UnknownFields |
1982
|
|
|
sizeCache protoimpl.SizeCache |
1983
|
|
|
} |
1984
|
|
|
|
1985
|
|
|
func (x *SchemaListResponse) Reset() { |
1986
|
|
|
*x = SchemaListResponse{} |
1987
|
|
|
mi := &file_base_v1_service_proto_msgTypes[30] |
1988
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
1989
|
|
|
ms.StoreMessageInfo(mi) |
1990
|
|
|
} |
1991
|
|
|
|
1992
|
|
|
func (x *SchemaListResponse) String() string { |
1993
|
|
|
return protoimpl.X.MessageStringOf(x) |
1994
|
|
|
} |
1995
|
|
|
|
1996
|
|
|
func (*SchemaListResponse) ProtoMessage() {} |
1997
|
|
|
|
1998
|
|
|
func (x *SchemaListResponse) ProtoReflect() protoreflect.Message { |
1999
|
|
|
mi := &file_base_v1_service_proto_msgTypes[30] |
2000
|
|
|
if x != nil { |
2001
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2002
|
|
|
if ms.LoadMessageInfo() == nil { |
2003
|
|
|
ms.StoreMessageInfo(mi) |
2004
|
|
|
} |
2005
|
|
|
return ms |
2006
|
|
|
} |
2007
|
|
|
return mi.MessageOf(x) |
2008
|
|
|
} |
2009
|
|
|
|
2010
|
|
|
// Deprecated: Use SchemaListResponse.ProtoReflect.Descriptor instead. |
2011
|
|
|
func (*SchemaListResponse) Descriptor() ([]byte, []int) { |
2012
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{30} |
2013
|
|
|
} |
2014
|
|
|
|
2015
|
|
|
func (x *SchemaListResponse) GetHead() string { |
2016
|
|
|
if x != nil { |
2017
|
|
|
return x.Head |
2018
|
|
|
} |
2019
|
|
|
return "" |
2020
|
|
|
} |
2021
|
|
|
|
2022
|
|
|
func (x *SchemaListResponse) GetSchemas() []*SchemaList { |
2023
|
|
|
if x != nil { |
2024
|
|
|
return x.Schemas |
2025
|
|
|
} |
2026
|
|
|
return nil |
2027
|
|
|
} |
2028
|
|
|
|
2029
|
|
|
func (x *SchemaListResponse) GetContinuousToken() string { |
2030
|
|
|
if x != nil { |
2031
|
|
|
return x.ContinuousToken |
2032
|
|
|
} |
2033
|
|
|
return "" |
2034
|
|
|
} |
2035
|
|
|
|
2036
|
|
|
// SchemaList provides a list of schema versions with their corresponding creation timestamps |
2037
|
|
|
type SchemaList struct { |
2038
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
2039
|
|
|
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` |
2040
|
|
|
CreatedAt string `protobuf:"bytes,2,opt,name=created_at,proto3" json:"created_at,omitempty"` |
2041
|
|
|
unknownFields protoimpl.UnknownFields |
2042
|
|
|
sizeCache protoimpl.SizeCache |
2043
|
|
|
} |
2044
|
|
|
|
2045
|
|
|
func (x *SchemaList) Reset() { |
2046
|
|
|
*x = SchemaList{} |
2047
|
|
|
mi := &file_base_v1_service_proto_msgTypes[31] |
2048
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2049
|
|
|
ms.StoreMessageInfo(mi) |
2050
|
|
|
} |
2051
|
|
|
|
2052
|
|
|
func (x *SchemaList) String() string { |
2053
|
|
|
return protoimpl.X.MessageStringOf(x) |
2054
|
|
|
} |
2055
|
|
|
|
2056
|
|
|
func (*SchemaList) ProtoMessage() {} |
2057
|
|
|
|
2058
|
|
|
func (x *SchemaList) ProtoReflect() protoreflect.Message { |
2059
|
|
|
mi := &file_base_v1_service_proto_msgTypes[31] |
2060
|
|
|
if x != nil { |
2061
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2062
|
|
|
if ms.LoadMessageInfo() == nil { |
2063
|
|
|
ms.StoreMessageInfo(mi) |
2064
|
|
|
} |
2065
|
|
|
return ms |
2066
|
|
|
} |
2067
|
|
|
return mi.MessageOf(x) |
2068
|
|
|
} |
2069
|
|
|
|
2070
|
|
|
// Deprecated: Use SchemaList.ProtoReflect.Descriptor instead. |
2071
|
|
|
func (*SchemaList) Descriptor() ([]byte, []int) { |
2072
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{31} |
2073
|
|
|
} |
2074
|
|
|
|
2075
|
|
|
func (x *SchemaList) GetVersion() string { |
2076
|
|
|
if x != nil { |
2077
|
|
|
return x.Version |
2078
|
|
|
} |
2079
|
|
|
return "" |
2080
|
|
|
} |
2081
|
|
|
|
2082
|
|
|
func (x *SchemaList) GetCreatedAt() string { |
2083
|
|
|
if x != nil { |
2084
|
|
|
return x.CreatedAt |
2085
|
|
|
} |
2086
|
|
|
return "" |
2087
|
|
|
} |
2088
|
|
|
|
2089
|
|
|
// DataWriteRequest defines the structure of a request for writing data. |
2090
|
|
|
// It contains the necessary information such as tenant_id, metadata, |
2091
|
|
|
// tuples and attributes for the write operation. |
2092
|
|
|
type DataWriteRequest struct { |
2093
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
2094
|
|
|
// tenant_id represents the unique identifier of the tenant for which data is written. |
2095
|
|
|
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,proto3" json:"tenant_id,omitempty"` |
2096
|
|
|
// metadata holds additional data related to the request. |
2097
|
|
|
Metadata *DataWriteRequestMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` |
2098
|
|
|
// tuples contains the list of tuples (entity-relation-entity triples) that need to be written. |
2099
|
|
|
Tuples []*Tuple `protobuf:"bytes,3,rep,name=tuples,proto3" json:"tuples,omitempty"` |
2100
|
|
|
// attributes contains the list of attributes (entity-attribute-value triples) that need to be written. |
2101
|
|
|
Attributes []*Attribute `protobuf:"bytes,4,rep,name=attributes,proto3" json:"attributes,omitempty"` |
2102
|
|
|
unknownFields protoimpl.UnknownFields |
2103
|
|
|
sizeCache protoimpl.SizeCache |
2104
|
|
|
} |
2105
|
|
|
|
2106
|
|
|
func (x *DataWriteRequest) Reset() { |
2107
|
|
|
*x = DataWriteRequest{} |
2108
|
|
|
mi := &file_base_v1_service_proto_msgTypes[32] |
2109
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2110
|
|
|
ms.StoreMessageInfo(mi) |
2111
|
|
|
} |
2112
|
|
|
|
2113
|
|
|
func (x *DataWriteRequest) String() string { |
2114
|
|
|
return protoimpl.X.MessageStringOf(x) |
2115
|
|
|
} |
2116
|
|
|
|
2117
|
|
|
func (*DataWriteRequest) ProtoMessage() {} |
2118
|
|
|
|
2119
|
|
|
func (x *DataWriteRequest) ProtoReflect() protoreflect.Message { |
2120
|
|
|
mi := &file_base_v1_service_proto_msgTypes[32] |
2121
|
|
|
if x != nil { |
2122
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2123
|
|
|
if ms.LoadMessageInfo() == nil { |
2124
|
|
|
ms.StoreMessageInfo(mi) |
2125
|
|
|
} |
2126
|
|
|
return ms |
2127
|
|
|
} |
2128
|
|
|
return mi.MessageOf(x) |
2129
|
|
|
} |
2130
|
|
|
|
2131
|
|
|
// Deprecated: Use DataWriteRequest.ProtoReflect.Descriptor instead. |
2132
|
|
|
func (*DataWriteRequest) Descriptor() ([]byte, []int) { |
2133
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{32} |
2134
|
|
|
} |
2135
|
|
|
|
2136
|
|
|
func (x *DataWriteRequest) GetTenantId() string { |
2137
|
|
|
if x != nil { |
2138
|
|
|
return x.TenantId |
2139
|
|
|
} |
2140
|
|
|
return "" |
2141
|
|
|
} |
2142
|
|
|
|
2143
|
|
|
func (x *DataWriteRequest) GetMetadata() *DataWriteRequestMetadata { |
2144
|
|
|
if x != nil { |
2145
|
|
|
return x.Metadata |
2146
|
|
|
} |
2147
|
|
|
return nil |
2148
|
|
|
} |
2149
|
|
|
|
2150
|
|
|
func (x *DataWriteRequest) GetTuples() []*Tuple { |
2151
|
|
|
if x != nil { |
2152
|
|
|
return x.Tuples |
2153
|
|
|
} |
2154
|
|
|
return nil |
2155
|
|
|
} |
2156
|
|
|
|
2157
|
|
|
func (x *DataWriteRequest) GetAttributes() []*Attribute { |
2158
|
|
|
if x != nil { |
2159
|
|
|
return x.Attributes |
2160
|
|
|
} |
2161
|
|
|
return nil |
2162
|
|
|
} |
2163
|
|
|
|
2164
|
|
|
// DataWriteRequestMetadata defines the structure of metadata for a write request. |
2165
|
|
|
// It includes the schema version of the data to be written. |
2166
|
|
|
type DataWriteRequestMetadata struct { |
2167
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
2168
|
|
|
// schema_version represents the version of the schema for the data being written. |
2169
|
|
|
SchemaVersion string `protobuf:"bytes,1,opt,name=schema_version,proto3" json:"schema_version,omitempty"` |
2170
|
|
|
unknownFields protoimpl.UnknownFields |
2171
|
|
|
sizeCache protoimpl.SizeCache |
2172
|
|
|
} |
2173
|
|
|
|
2174
|
|
|
func (x *DataWriteRequestMetadata) Reset() { |
2175
|
|
|
*x = DataWriteRequestMetadata{} |
2176
|
|
|
mi := &file_base_v1_service_proto_msgTypes[33] |
2177
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2178
|
|
|
ms.StoreMessageInfo(mi) |
2179
|
|
|
} |
2180
|
|
|
|
2181
|
|
|
func (x *DataWriteRequestMetadata) String() string { |
2182
|
|
|
return protoimpl.X.MessageStringOf(x) |
2183
|
|
|
} |
2184
|
|
|
|
2185
|
|
|
func (*DataWriteRequestMetadata) ProtoMessage() {} |
2186
|
|
|
|
2187
|
|
|
func (x *DataWriteRequestMetadata) ProtoReflect() protoreflect.Message { |
2188
|
|
|
mi := &file_base_v1_service_proto_msgTypes[33] |
2189
|
|
|
if x != nil { |
2190
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2191
|
|
|
if ms.LoadMessageInfo() == nil { |
2192
|
|
|
ms.StoreMessageInfo(mi) |
2193
|
|
|
} |
2194
|
|
|
return ms |
2195
|
|
|
} |
2196
|
|
|
return mi.MessageOf(x) |
2197
|
|
|
} |
2198
|
|
|
|
2199
|
|
|
// Deprecated: Use DataWriteRequestMetadata.ProtoReflect.Descriptor instead. |
2200
|
|
|
func (*DataWriteRequestMetadata) Descriptor() ([]byte, []int) { |
2201
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{33} |
2202
|
|
|
} |
2203
|
|
|
|
2204
|
|
|
func (x *DataWriteRequestMetadata) GetSchemaVersion() string { |
2205
|
|
|
if x != nil { |
2206
|
|
|
return x.SchemaVersion |
2207
|
|
|
} |
2208
|
|
|
return "" |
2209
|
|
|
} |
2210
|
|
|
|
2211
|
|
|
// DataWriteResponse defines the structure of the response after writing data. |
2212
|
|
|
// It contains the snap_token generated after the write operation. |
2213
|
|
|
type DataWriteResponse struct { |
2214
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
2215
|
|
|
// snap_token is the token generated after the data write operation, representing a snapshot of the data. |
2216
|
|
|
SnapToken string `protobuf:"bytes,1,opt,name=snap_token,proto3" json:"snap_token,omitempty"` |
2217
|
|
|
unknownFields protoimpl.UnknownFields |
2218
|
|
|
sizeCache protoimpl.SizeCache |
2219
|
|
|
} |
2220
|
|
|
|
2221
|
|
|
func (x *DataWriteResponse) Reset() { |
2222
|
|
|
*x = DataWriteResponse{} |
2223
|
|
|
mi := &file_base_v1_service_proto_msgTypes[34] |
2224
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2225
|
|
|
ms.StoreMessageInfo(mi) |
2226
|
|
|
} |
2227
|
|
|
|
2228
|
|
|
func (x *DataWriteResponse) String() string { |
2229
|
|
|
return protoimpl.X.MessageStringOf(x) |
2230
|
|
|
} |
2231
|
|
|
|
2232
|
|
|
func (*DataWriteResponse) ProtoMessage() {} |
2233
|
|
|
|
2234
|
|
|
func (x *DataWriteResponse) ProtoReflect() protoreflect.Message { |
2235
|
|
|
mi := &file_base_v1_service_proto_msgTypes[34] |
2236
|
|
|
if x != nil { |
2237
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2238
|
|
|
if ms.LoadMessageInfo() == nil { |
2239
|
|
|
ms.StoreMessageInfo(mi) |
2240
|
|
|
} |
2241
|
|
|
return ms |
2242
|
|
|
} |
2243
|
|
|
return mi.MessageOf(x) |
2244
|
|
|
} |
2245
|
|
|
|
2246
|
|
|
// Deprecated: Use DataWriteResponse.ProtoReflect.Descriptor instead. |
2247
|
|
|
func (*DataWriteResponse) Descriptor() ([]byte, []int) { |
2248
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{34} |
2249
|
|
|
} |
2250
|
|
|
|
2251
|
|
|
func (x *DataWriteResponse) GetSnapToken() string { |
2252
|
|
|
if x != nil { |
2253
|
|
|
return x.SnapToken |
2254
|
|
|
} |
2255
|
|
|
return "" |
2256
|
|
|
} |
2257
|
|
|
|
2258
|
|
|
// Represents a request to write relationship data. |
2259
|
|
|
type RelationshipWriteRequest struct { |
2260
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
2261
|
|
|
// Unique identifier for the tenant with specific constraints. |
2262
|
|
|
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,proto3" json:"tenant_id,omitempty"` |
2263
|
|
|
// Metadata for the request. It's required. |
2264
|
|
|
Metadata *RelationshipWriteRequestMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` |
2265
|
|
|
// List of tuples for the request. Must have between 1 and 100 items. |
2266
|
|
|
Tuples []*Tuple `protobuf:"bytes,3,rep,name=tuples,proto3" json:"tuples,omitempty"` |
2267
|
|
|
unknownFields protoimpl.UnknownFields |
2268
|
|
|
sizeCache protoimpl.SizeCache |
2269
|
|
|
} |
2270
|
|
|
|
2271
|
|
|
func (x *RelationshipWriteRequest) Reset() { |
2272
|
|
|
*x = RelationshipWriteRequest{} |
2273
|
|
|
mi := &file_base_v1_service_proto_msgTypes[35] |
2274
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2275
|
|
|
ms.StoreMessageInfo(mi) |
2276
|
|
|
} |
2277
|
|
|
|
2278
|
|
|
func (x *RelationshipWriteRequest) String() string { |
2279
|
|
|
return protoimpl.X.MessageStringOf(x) |
2280
|
|
|
} |
2281
|
|
|
|
2282
|
|
|
func (*RelationshipWriteRequest) ProtoMessage() {} |
2283
|
|
|
|
2284
|
|
|
func (x *RelationshipWriteRequest) ProtoReflect() protoreflect.Message { |
2285
|
|
|
mi := &file_base_v1_service_proto_msgTypes[35] |
2286
|
|
|
if x != nil { |
2287
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2288
|
|
|
if ms.LoadMessageInfo() == nil { |
2289
|
|
|
ms.StoreMessageInfo(mi) |
2290
|
|
|
} |
2291
|
|
|
return ms |
2292
|
|
|
} |
2293
|
|
|
return mi.MessageOf(x) |
2294
|
|
|
} |
2295
|
|
|
|
2296
|
|
|
// Deprecated: Use RelationshipWriteRequest.ProtoReflect.Descriptor instead. |
2297
|
|
|
func (*RelationshipWriteRequest) Descriptor() ([]byte, []int) { |
2298
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{35} |
2299
|
|
|
} |
2300
|
|
|
|
2301
|
|
|
func (x *RelationshipWriteRequest) GetTenantId() string { |
2302
|
|
|
if x != nil { |
2303
|
|
|
return x.TenantId |
2304
|
|
|
} |
2305
|
|
|
return "" |
2306
|
|
|
} |
2307
|
|
|
|
2308
|
|
|
func (x *RelationshipWriteRequest) GetMetadata() *RelationshipWriteRequestMetadata { |
2309
|
|
|
if x != nil { |
2310
|
|
|
return x.Metadata |
2311
|
|
|
} |
2312
|
|
|
return nil |
2313
|
|
|
} |
2314
|
|
|
|
2315
|
|
|
func (x *RelationshipWriteRequest) GetTuples() []*Tuple { |
2316
|
|
|
if x != nil { |
2317
|
|
|
return x.Tuples |
2318
|
|
|
} |
2319
|
|
|
return nil |
2320
|
|
|
} |
2321
|
|
|
|
2322
|
|
|
// RelationshipWriteRequestMetadata |
2323
|
|
|
type RelationshipWriteRequestMetadata struct { |
2324
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
2325
|
|
|
SchemaVersion string `protobuf:"bytes,1,opt,name=schema_version,proto3" json:"schema_version,omitempty"` |
2326
|
|
|
unknownFields protoimpl.UnknownFields |
2327
|
|
|
sizeCache protoimpl.SizeCache |
2328
|
|
|
} |
2329
|
|
|
|
2330
|
|
|
func (x *RelationshipWriteRequestMetadata) Reset() { |
2331
|
|
|
*x = RelationshipWriteRequestMetadata{} |
2332
|
|
|
mi := &file_base_v1_service_proto_msgTypes[36] |
2333
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2334
|
|
|
ms.StoreMessageInfo(mi) |
2335
|
|
|
} |
2336
|
|
|
|
2337
|
|
|
func (x *RelationshipWriteRequestMetadata) String() string { |
2338
|
|
|
return protoimpl.X.MessageStringOf(x) |
2339
|
|
|
} |
2340
|
|
|
|
2341
|
|
|
func (*RelationshipWriteRequestMetadata) ProtoMessage() {} |
2342
|
|
|
|
2343
|
|
|
func (x *RelationshipWriteRequestMetadata) ProtoReflect() protoreflect.Message { |
2344
|
|
|
mi := &file_base_v1_service_proto_msgTypes[36] |
2345
|
|
|
if x != nil { |
2346
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2347
|
|
|
if ms.LoadMessageInfo() == nil { |
2348
|
|
|
ms.StoreMessageInfo(mi) |
2349
|
|
|
} |
2350
|
|
|
return ms |
2351
|
|
|
} |
2352
|
|
|
return mi.MessageOf(x) |
2353
|
|
|
} |
2354
|
|
|
|
2355
|
|
|
// Deprecated: Use RelationshipWriteRequestMetadata.ProtoReflect.Descriptor instead. |
2356
|
|
|
func (*RelationshipWriteRequestMetadata) Descriptor() ([]byte, []int) { |
2357
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{36} |
2358
|
|
|
} |
2359
|
|
|
|
2360
|
|
|
func (x *RelationshipWriteRequestMetadata) GetSchemaVersion() string { |
2361
|
|
|
if x != nil { |
2362
|
|
|
return x.SchemaVersion |
2363
|
|
|
} |
2364
|
|
|
return "" |
2365
|
|
|
} |
2366
|
|
|
|
2367
|
|
|
// RelationshipWriteResponse |
2368
|
|
|
type RelationshipWriteResponse struct { |
2369
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
2370
|
|
|
SnapToken string `protobuf:"bytes,1,opt,name=snap_token,proto3" json:"snap_token,omitempty"` |
2371
|
|
|
unknownFields protoimpl.UnknownFields |
2372
|
|
|
sizeCache protoimpl.SizeCache |
2373
|
|
|
} |
2374
|
|
|
|
2375
|
|
|
func (x *RelationshipWriteResponse) Reset() { |
2376
|
|
|
*x = RelationshipWriteResponse{} |
2377
|
|
|
mi := &file_base_v1_service_proto_msgTypes[37] |
2378
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2379
|
|
|
ms.StoreMessageInfo(mi) |
2380
|
|
|
} |
2381
|
|
|
|
2382
|
|
|
func (x *RelationshipWriteResponse) String() string { |
2383
|
|
|
return protoimpl.X.MessageStringOf(x) |
2384
|
|
|
} |
2385
|
|
|
|
2386
|
|
|
func (*RelationshipWriteResponse) ProtoMessage() {} |
2387
|
|
|
|
2388
|
|
|
func (x *RelationshipWriteResponse) ProtoReflect() protoreflect.Message { |
2389
|
|
|
mi := &file_base_v1_service_proto_msgTypes[37] |
2390
|
|
|
if x != nil { |
2391
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2392
|
|
|
if ms.LoadMessageInfo() == nil { |
2393
|
|
|
ms.StoreMessageInfo(mi) |
2394
|
|
|
} |
2395
|
|
|
return ms |
2396
|
|
|
} |
2397
|
|
|
return mi.MessageOf(x) |
2398
|
|
|
} |
2399
|
|
|
|
2400
|
|
|
// Deprecated: Use RelationshipWriteResponse.ProtoReflect.Descriptor instead. |
2401
|
|
|
func (*RelationshipWriteResponse) Descriptor() ([]byte, []int) { |
2402
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{37} |
2403
|
|
|
} |
2404
|
|
|
|
2405
|
|
|
func (x *RelationshipWriteResponse) GetSnapToken() string { |
2406
|
|
|
if x != nil { |
2407
|
|
|
return x.SnapToken |
2408
|
|
|
} |
2409
|
|
|
return "" |
2410
|
|
|
} |
2411
|
|
|
|
2412
|
|
|
// RelationshipReadRequest defines the structure of a request for reading relationships. |
2413
|
|
|
// It contains the necessary information such as tenant_id, metadata, and filter for the read operation. |
2414
|
|
|
type RelationshipReadRequest struct { |
2415
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
2416
|
|
|
// tenant_id represents the unique identifier of the tenant for which relationships are read. |
2417
|
|
|
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,proto3" json:"tenant_id,omitempty"` |
2418
|
|
|
// metadata holds additional data related to the request. |
2419
|
|
|
Metadata *RelationshipReadRequestMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` |
2420
|
|
|
// filter is used to specify criteria for the data that needs to be read. |
2421
|
|
|
Filter *TupleFilter `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"` |
2422
|
|
|
// page_size specifies the number of results to return in a single page. |
2423
|
|
|
// If more results are available, a continuous_token is included in the response. |
2424
|
|
|
PageSize uint32 `protobuf:"varint,4,opt,name=page_size,proto3" json:"page_size,omitempty"` |
2425
|
|
|
// continuous_token is used in case of paginated reads to get the next page of results. |
2426
|
|
|
ContinuousToken string `protobuf:"bytes,5,opt,name=continuous_token,proto3" json:"continuous_token,omitempty"` |
2427
|
|
|
unknownFields protoimpl.UnknownFields |
2428
|
|
|
sizeCache protoimpl.SizeCache |
2429
|
|
|
} |
2430
|
|
|
|
2431
|
|
|
func (x *RelationshipReadRequest) Reset() { |
2432
|
|
|
*x = RelationshipReadRequest{} |
2433
|
|
|
mi := &file_base_v1_service_proto_msgTypes[38] |
2434
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2435
|
|
|
ms.StoreMessageInfo(mi) |
2436
|
|
|
} |
2437
|
|
|
|
2438
|
|
|
func (x *RelationshipReadRequest) String() string { |
2439
|
|
|
return protoimpl.X.MessageStringOf(x) |
2440
|
|
|
} |
2441
|
|
|
|
2442
|
|
|
func (*RelationshipReadRequest) ProtoMessage() {} |
2443
|
|
|
|
2444
|
|
|
func (x *RelationshipReadRequest) ProtoReflect() protoreflect.Message { |
2445
|
|
|
mi := &file_base_v1_service_proto_msgTypes[38] |
2446
|
|
|
if x != nil { |
2447
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2448
|
|
|
if ms.LoadMessageInfo() == nil { |
2449
|
|
|
ms.StoreMessageInfo(mi) |
2450
|
|
|
} |
2451
|
|
|
return ms |
2452
|
|
|
} |
2453
|
|
|
return mi.MessageOf(x) |
2454
|
|
|
} |
2455
|
|
|
|
2456
|
|
|
// Deprecated: Use RelationshipReadRequest.ProtoReflect.Descriptor instead. |
2457
|
|
|
func (*RelationshipReadRequest) Descriptor() ([]byte, []int) { |
2458
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{38} |
2459
|
|
|
} |
2460
|
|
|
|
2461
|
|
|
func (x *RelationshipReadRequest) GetTenantId() string { |
2462
|
|
|
if x != nil { |
2463
|
|
|
return x.TenantId |
2464
|
|
|
} |
2465
|
|
|
return "" |
2466
|
|
|
} |
2467
|
|
|
|
2468
|
|
|
func (x *RelationshipReadRequest) GetMetadata() *RelationshipReadRequestMetadata { |
2469
|
|
|
if x != nil { |
2470
|
|
|
return x.Metadata |
2471
|
|
|
} |
2472
|
|
|
return nil |
2473
|
|
|
} |
2474
|
|
|
|
2475
|
|
|
func (x *RelationshipReadRequest) GetFilter() *TupleFilter { |
2476
|
|
|
if x != nil { |
2477
|
|
|
return x.Filter |
2478
|
|
|
} |
2479
|
|
|
return nil |
2480
|
|
|
} |
2481
|
|
|
|
2482
|
|
|
func (x *RelationshipReadRequest) GetPageSize() uint32 { |
2483
|
|
|
if x != nil { |
2484
|
|
|
return x.PageSize |
2485
|
|
|
} |
2486
|
|
|
return 0 |
2487
|
|
|
} |
2488
|
|
|
|
2489
|
|
|
func (x *RelationshipReadRequest) GetContinuousToken() string { |
2490
|
|
|
if x != nil { |
2491
|
|
|
return x.ContinuousToken |
2492
|
|
|
} |
2493
|
|
|
return "" |
2494
|
|
|
} |
2495
|
|
|
|
2496
|
|
|
// RelationshipReadRequestMetadata defines the structure of the metadata for a read request focused on relationships. |
2497
|
|
|
// It includes the snap_token associated with a particular state of the database. |
2498
|
|
|
type RelationshipReadRequestMetadata struct { |
2499
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
2500
|
|
|
// snap_token represents a specific state or "snapshot" of the database. |
2501
|
|
|
SnapToken string `protobuf:"bytes,1,opt,name=snap_token,proto3" json:"snap_token,omitempty"` |
2502
|
|
|
unknownFields protoimpl.UnknownFields |
2503
|
|
|
sizeCache protoimpl.SizeCache |
2504
|
|
|
} |
2505
|
|
|
|
2506
|
|
|
func (x *RelationshipReadRequestMetadata) Reset() { |
2507
|
|
|
*x = RelationshipReadRequestMetadata{} |
2508
|
|
|
mi := &file_base_v1_service_proto_msgTypes[39] |
2509
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2510
|
|
|
ms.StoreMessageInfo(mi) |
2511
|
|
|
} |
2512
|
|
|
|
2513
|
|
|
func (x *RelationshipReadRequestMetadata) String() string { |
2514
|
|
|
return protoimpl.X.MessageStringOf(x) |
2515
|
|
|
} |
2516
|
|
|
|
2517
|
|
|
func (*RelationshipReadRequestMetadata) ProtoMessage() {} |
2518
|
|
|
|
2519
|
|
|
func (x *RelationshipReadRequestMetadata) ProtoReflect() protoreflect.Message { |
2520
|
|
|
mi := &file_base_v1_service_proto_msgTypes[39] |
2521
|
|
|
if x != nil { |
2522
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2523
|
|
|
if ms.LoadMessageInfo() == nil { |
2524
|
|
|
ms.StoreMessageInfo(mi) |
2525
|
|
|
} |
2526
|
|
|
return ms |
2527
|
|
|
} |
2528
|
|
|
return mi.MessageOf(x) |
2529
|
|
|
} |
2530
|
|
|
|
2531
|
|
|
// Deprecated: Use RelationshipReadRequestMetadata.ProtoReflect.Descriptor instead. |
2532
|
|
|
func (*RelationshipReadRequestMetadata) Descriptor() ([]byte, []int) { |
2533
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{39} |
2534
|
|
|
} |
2535
|
|
|
|
2536
|
|
|
func (x *RelationshipReadRequestMetadata) GetSnapToken() string { |
2537
|
|
|
if x != nil { |
2538
|
|
|
return x.SnapToken |
2539
|
|
|
} |
2540
|
|
|
return "" |
2541
|
|
|
} |
2542
|
|
|
|
2543
|
|
|
// RelationshipReadResponse defines the structure of the response after reading relationships. |
2544
|
|
|
// It includes the tuples representing the relationships and a continuous token for handling result pagination. |
2545
|
|
|
type RelationshipReadResponse struct { |
2546
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
2547
|
|
|
// tuples is a list of the relationships retrieved in the read operation, represented as entity-relation-entity triples. |
2548
|
|
|
Tuples []*Tuple `protobuf:"bytes,1,rep,name=tuples,proto3" json:"tuples,omitempty"` |
2549
|
|
|
// continuous_token is used in the case of paginated reads to retrieve the next page of results. |
2550
|
|
|
ContinuousToken string `protobuf:"bytes,2,opt,name=continuous_token,proto3" json:"continuous_token,omitempty"` |
2551
|
|
|
unknownFields protoimpl.UnknownFields |
2552
|
|
|
sizeCache protoimpl.SizeCache |
2553
|
|
|
} |
2554
|
|
|
|
2555
|
|
|
func (x *RelationshipReadResponse) Reset() { |
2556
|
|
|
*x = RelationshipReadResponse{} |
2557
|
|
|
mi := &file_base_v1_service_proto_msgTypes[40] |
2558
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2559
|
|
|
ms.StoreMessageInfo(mi) |
2560
|
|
|
} |
2561
|
|
|
|
2562
|
|
|
func (x *RelationshipReadResponse) String() string { |
2563
|
|
|
return protoimpl.X.MessageStringOf(x) |
2564
|
|
|
} |
2565
|
|
|
|
2566
|
|
|
func (*RelationshipReadResponse) ProtoMessage() {} |
2567
|
|
|
|
2568
|
|
|
func (x *RelationshipReadResponse) ProtoReflect() protoreflect.Message { |
2569
|
|
|
mi := &file_base_v1_service_proto_msgTypes[40] |
2570
|
|
|
if x != nil { |
2571
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2572
|
|
|
if ms.LoadMessageInfo() == nil { |
2573
|
|
|
ms.StoreMessageInfo(mi) |
2574
|
|
|
} |
2575
|
|
|
return ms |
2576
|
|
|
} |
2577
|
|
|
return mi.MessageOf(x) |
2578
|
|
|
} |
2579
|
|
|
|
2580
|
|
|
// Deprecated: Use RelationshipReadResponse.ProtoReflect.Descriptor instead. |
2581
|
|
|
func (*RelationshipReadResponse) Descriptor() ([]byte, []int) { |
2582
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{40} |
2583
|
|
|
} |
2584
|
|
|
|
2585
|
|
|
func (x *RelationshipReadResponse) GetTuples() []*Tuple { |
2586
|
|
|
if x != nil { |
2587
|
|
|
return x.Tuples |
2588
|
|
|
} |
2589
|
|
|
return nil |
2590
|
|
|
} |
2591
|
|
|
|
2592
|
|
|
func (x *RelationshipReadResponse) GetContinuousToken() string { |
2593
|
|
|
if x != nil { |
2594
|
|
|
return x.ContinuousToken |
2595
|
|
|
} |
2596
|
|
|
return "" |
2597
|
|
|
} |
2598
|
|
|
|
2599
|
|
|
// AttributeReadRequest defines the structure of a request for reading attributes. |
2600
|
|
|
// It includes the tenant_id, metadata, attribute filter, page size for pagination, and a continuous token for multi-page results. |
2601
|
|
|
type AttributeReadRequest struct { |
2602
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
2603
|
|
|
// tenant_id represents the unique identifier of the tenant from which the attributes are being read. |
2604
|
|
|
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,proto3" json:"tenant_id,omitempty"` |
2605
|
|
|
// metadata holds additional information related to the request. |
2606
|
|
|
Metadata *AttributeReadRequestMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` |
2607
|
|
|
// filter specifies the criteria used to select the attributes that should be returned. |
2608
|
|
|
Filter *AttributeFilter `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"` |
2609
|
|
|
// page_size specifies the number of results to return in a single page. |
2610
|
|
|
// If more results are available, a continuous_token is included in the response. |
2611
|
|
|
PageSize uint32 `protobuf:"varint,4,opt,name=page_size,proto3" json:"page_size,omitempty"` |
2612
|
|
|
// continuous_token is used in case of paginated reads to get the next page of results. |
2613
|
|
|
ContinuousToken string `protobuf:"bytes,5,opt,name=continuous_token,proto3" json:"continuous_token,omitempty"` |
2614
|
|
|
unknownFields protoimpl.UnknownFields |
2615
|
|
|
sizeCache protoimpl.SizeCache |
2616
|
|
|
} |
2617
|
|
|
|
2618
|
|
|
func (x *AttributeReadRequest) Reset() { |
2619
|
|
|
*x = AttributeReadRequest{} |
2620
|
|
|
mi := &file_base_v1_service_proto_msgTypes[41] |
2621
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2622
|
|
|
ms.StoreMessageInfo(mi) |
2623
|
|
|
} |
2624
|
|
|
|
2625
|
|
|
func (x *AttributeReadRequest) String() string { |
2626
|
|
|
return protoimpl.X.MessageStringOf(x) |
2627
|
|
|
} |
2628
|
|
|
|
2629
|
|
|
func (*AttributeReadRequest) ProtoMessage() {} |
2630
|
|
|
|
2631
|
|
|
func (x *AttributeReadRequest) ProtoReflect() protoreflect.Message { |
2632
|
|
|
mi := &file_base_v1_service_proto_msgTypes[41] |
2633
|
|
|
if x != nil { |
2634
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2635
|
|
|
if ms.LoadMessageInfo() == nil { |
2636
|
|
|
ms.StoreMessageInfo(mi) |
2637
|
|
|
} |
2638
|
|
|
return ms |
2639
|
|
|
} |
2640
|
|
|
return mi.MessageOf(x) |
2641
|
|
|
} |
2642
|
|
|
|
2643
|
|
|
// Deprecated: Use AttributeReadRequest.ProtoReflect.Descriptor instead. |
2644
|
|
|
func (*AttributeReadRequest) Descriptor() ([]byte, []int) { |
2645
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{41} |
2646
|
|
|
} |
2647
|
|
|
|
2648
|
|
|
func (x *AttributeReadRequest) GetTenantId() string { |
2649
|
|
|
if x != nil { |
2650
|
|
|
return x.TenantId |
2651
|
|
|
} |
2652
|
|
|
return "" |
2653
|
|
|
} |
2654
|
|
|
|
2655
|
|
|
func (x *AttributeReadRequest) GetMetadata() *AttributeReadRequestMetadata { |
2656
|
|
|
if x != nil { |
2657
|
|
|
return x.Metadata |
2658
|
|
|
} |
2659
|
|
|
return nil |
2660
|
|
|
} |
2661
|
|
|
|
2662
|
|
|
func (x *AttributeReadRequest) GetFilter() *AttributeFilter { |
2663
|
|
|
if x != nil { |
2664
|
|
|
return x.Filter |
2665
|
|
|
} |
2666
|
|
|
return nil |
2667
|
|
|
} |
2668
|
|
|
|
2669
|
|
|
func (x *AttributeReadRequest) GetPageSize() uint32 { |
2670
|
|
|
if x != nil { |
2671
|
|
|
return x.PageSize |
2672
|
|
|
} |
2673
|
|
|
return 0 |
2674
|
|
|
} |
2675
|
|
|
|
2676
|
|
|
func (x *AttributeReadRequest) GetContinuousToken() string { |
2677
|
|
|
if x != nil { |
2678
|
|
|
return x.ContinuousToken |
2679
|
|
|
} |
2680
|
|
|
return "" |
2681
|
|
|
} |
2682
|
|
|
|
2683
|
|
|
// AttributeReadRequestMetadata defines the structure for the metadata of an attribute read request. |
2684
|
|
|
// It includes the snap_token associated with a particular state of the database. |
2685
|
|
|
type AttributeReadRequestMetadata struct { |
2686
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
2687
|
|
|
// snap_token represents a specific state or "snapshot" of the database. |
2688
|
|
|
SnapToken string `protobuf:"bytes,1,opt,name=snap_token,proto3" json:"snap_token,omitempty"` |
2689
|
|
|
unknownFields protoimpl.UnknownFields |
2690
|
|
|
sizeCache protoimpl.SizeCache |
2691
|
|
|
} |
2692
|
|
|
|
2693
|
|
|
func (x *AttributeReadRequestMetadata) Reset() { |
2694
|
|
|
*x = AttributeReadRequestMetadata{} |
2695
|
|
|
mi := &file_base_v1_service_proto_msgTypes[42] |
2696
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2697
|
|
|
ms.StoreMessageInfo(mi) |
2698
|
|
|
} |
2699
|
|
|
|
2700
|
|
|
func (x *AttributeReadRequestMetadata) String() string { |
2701
|
|
|
return protoimpl.X.MessageStringOf(x) |
2702
|
|
|
} |
2703
|
|
|
|
2704
|
|
|
func (*AttributeReadRequestMetadata) ProtoMessage() {} |
2705
|
|
|
|
2706
|
|
|
func (x *AttributeReadRequestMetadata) ProtoReflect() protoreflect.Message { |
2707
|
|
|
mi := &file_base_v1_service_proto_msgTypes[42] |
2708
|
|
|
if x != nil { |
2709
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2710
|
|
|
if ms.LoadMessageInfo() == nil { |
2711
|
|
|
ms.StoreMessageInfo(mi) |
2712
|
|
|
} |
2713
|
|
|
return ms |
2714
|
|
|
} |
2715
|
|
|
return mi.MessageOf(x) |
2716
|
|
|
} |
2717
|
|
|
|
2718
|
|
|
// Deprecated: Use AttributeReadRequestMetadata.ProtoReflect.Descriptor instead. |
2719
|
|
|
func (*AttributeReadRequestMetadata) Descriptor() ([]byte, []int) { |
2720
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{42} |
2721
|
|
|
} |
2722
|
|
|
|
2723
|
|
|
func (x *AttributeReadRequestMetadata) GetSnapToken() string { |
2724
|
|
|
if x != nil { |
2725
|
|
|
return x.SnapToken |
2726
|
|
|
} |
2727
|
|
|
return "" |
2728
|
|
|
} |
2729
|
|
|
|
2730
|
|
|
// AttributeReadResponse defines the structure of the response to an attribute read request. |
2731
|
|
|
// It includes the attributes retrieved and a continuous token for handling result pagination. |
2732
|
|
|
type AttributeReadResponse struct { |
2733
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
2734
|
|
|
// attributes is a list of the attributes retrieved in the read operation. |
2735
|
|
|
Attributes []*Attribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"` |
2736
|
|
|
// continuous_token is used in the case of paginated reads to retrieve the next page of results. |
2737
|
|
|
ContinuousToken string `protobuf:"bytes,2,opt,name=continuous_token,proto3" json:"continuous_token,omitempty"` |
2738
|
|
|
unknownFields protoimpl.UnknownFields |
2739
|
|
|
sizeCache protoimpl.SizeCache |
2740
|
|
|
} |
2741
|
|
|
|
2742
|
|
|
func (x *AttributeReadResponse) Reset() { |
2743
|
|
|
*x = AttributeReadResponse{} |
2744
|
|
|
mi := &file_base_v1_service_proto_msgTypes[43] |
2745
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2746
|
|
|
ms.StoreMessageInfo(mi) |
2747
|
|
|
} |
2748
|
|
|
|
2749
|
|
|
func (x *AttributeReadResponse) String() string { |
2750
|
|
|
return protoimpl.X.MessageStringOf(x) |
2751
|
|
|
} |
2752
|
|
|
|
2753
|
|
|
func (*AttributeReadResponse) ProtoMessage() {} |
2754
|
|
|
|
2755
|
|
|
func (x *AttributeReadResponse) ProtoReflect() protoreflect.Message { |
2756
|
|
|
mi := &file_base_v1_service_proto_msgTypes[43] |
2757
|
|
|
if x != nil { |
2758
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2759
|
|
|
if ms.LoadMessageInfo() == nil { |
2760
|
|
|
ms.StoreMessageInfo(mi) |
2761
|
|
|
} |
2762
|
|
|
return ms |
2763
|
|
|
} |
2764
|
|
|
return mi.MessageOf(x) |
2765
|
|
|
} |
2766
|
|
|
|
2767
|
|
|
// Deprecated: Use AttributeReadResponse.ProtoReflect.Descriptor instead. |
2768
|
|
|
func (*AttributeReadResponse) Descriptor() ([]byte, []int) { |
2769
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{43} |
2770
|
|
|
} |
2771
|
|
|
|
2772
|
|
|
func (x *AttributeReadResponse) GetAttributes() []*Attribute { |
2773
|
|
|
if x != nil { |
2774
|
|
|
return x.Attributes |
2775
|
|
|
} |
2776
|
|
|
return nil |
2777
|
|
|
} |
2778
|
|
|
|
2779
|
|
|
func (x *AttributeReadResponse) GetContinuousToken() string { |
2780
|
|
|
if x != nil { |
2781
|
|
|
return x.ContinuousToken |
2782
|
|
|
} |
2783
|
|
|
return "" |
2784
|
|
|
} |
2785
|
|
|
|
2786
|
|
|
// DataDeleteRequest defines the structure of a request to delete data. |
2787
|
|
|
// It includes the tenant_id and filters for selecting tuples and attributes to be deleted. |
2788
|
|
|
type DataDeleteRequest struct { |
2789
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
2790
|
|
|
// tenant_id represents the unique identifier of the tenant from which the data will be deleted. |
2791
|
|
|
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,proto3" json:"tenant_id,omitempty"` |
2792
|
|
|
// tuple_filter specifies the criteria used to select the tuples that should be deleted. |
2793
|
|
|
TupleFilter *TupleFilter `protobuf:"bytes,2,opt,name=tuple_filter,proto3" json:"tuple_filter,omitempty"` |
2794
|
|
|
// attribute_filter specifies the criteria used to select the attributes that should be deleted. |
2795
|
|
|
AttributeFilter *AttributeFilter `protobuf:"bytes,3,opt,name=attribute_filter,proto3" json:"attribute_filter,omitempty"` |
2796
|
|
|
unknownFields protoimpl.UnknownFields |
2797
|
|
|
sizeCache protoimpl.SizeCache |
2798
|
|
|
} |
2799
|
|
|
|
2800
|
|
|
func (x *DataDeleteRequest) Reset() { |
2801
|
|
|
*x = DataDeleteRequest{} |
2802
|
|
|
mi := &file_base_v1_service_proto_msgTypes[44] |
2803
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2804
|
|
|
ms.StoreMessageInfo(mi) |
2805
|
|
|
} |
2806
|
|
|
|
2807
|
|
|
func (x *DataDeleteRequest) String() string { |
2808
|
|
|
return protoimpl.X.MessageStringOf(x) |
2809
|
|
|
} |
2810
|
|
|
|
2811
|
|
|
func (*DataDeleteRequest) ProtoMessage() {} |
2812
|
|
|
|
2813
|
|
|
func (x *DataDeleteRequest) ProtoReflect() protoreflect.Message { |
2814
|
|
|
mi := &file_base_v1_service_proto_msgTypes[44] |
2815
|
|
|
if x != nil { |
2816
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2817
|
|
|
if ms.LoadMessageInfo() == nil { |
2818
|
|
|
ms.StoreMessageInfo(mi) |
2819
|
|
|
} |
2820
|
|
|
return ms |
2821
|
|
|
} |
2822
|
|
|
return mi.MessageOf(x) |
2823
|
|
|
} |
2824
|
|
|
|
2825
|
|
|
// Deprecated: Use DataDeleteRequest.ProtoReflect.Descriptor instead. |
2826
|
|
|
func (*DataDeleteRequest) Descriptor() ([]byte, []int) { |
2827
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{44} |
2828
|
|
|
} |
2829
|
|
|
|
2830
|
|
|
func (x *DataDeleteRequest) GetTenantId() string { |
2831
|
|
|
if x != nil { |
2832
|
|
|
return x.TenantId |
2833
|
|
|
} |
2834
|
|
|
return "" |
2835
|
|
|
} |
2836
|
|
|
|
2837
|
|
|
func (x *DataDeleteRequest) GetTupleFilter() *TupleFilter { |
2838
|
|
|
if x != nil { |
2839
|
|
|
return x.TupleFilter |
2840
|
|
|
} |
2841
|
|
|
return nil |
2842
|
|
|
} |
2843
|
|
|
|
2844
|
|
|
func (x *DataDeleteRequest) GetAttributeFilter() *AttributeFilter { |
2845
|
|
|
if x != nil { |
2846
|
|
|
return x.AttributeFilter |
2847
|
|
|
} |
2848
|
|
|
return nil |
2849
|
|
|
} |
2850
|
|
|
|
2851
|
|
|
// DataDeleteResponse defines the structure of the response to a data delete request. |
2852
|
|
|
// It includes a snap_token representing the state of the database after the deletion. |
2853
|
|
|
type DataDeleteResponse struct { |
2854
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
2855
|
|
|
// snap_token represents the state of the database after the requested deletions. |
2856
|
|
|
SnapToken string `protobuf:"bytes,1,opt,name=snap_token,proto3" json:"snap_token,omitempty"` |
2857
|
|
|
unknownFields protoimpl.UnknownFields |
2858
|
|
|
sizeCache protoimpl.SizeCache |
2859
|
|
|
} |
2860
|
|
|
|
2861
|
|
|
func (x *DataDeleteResponse) Reset() { |
2862
|
|
|
*x = DataDeleteResponse{} |
2863
|
|
|
mi := &file_base_v1_service_proto_msgTypes[45] |
2864
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2865
|
|
|
ms.StoreMessageInfo(mi) |
2866
|
|
|
} |
2867
|
|
|
|
2868
|
|
|
func (x *DataDeleteResponse) String() string { |
2869
|
|
|
return protoimpl.X.MessageStringOf(x) |
2870
|
|
|
} |
2871
|
|
|
|
2872
|
|
|
func (*DataDeleteResponse) ProtoMessage() {} |
2873
|
|
|
|
2874
|
|
|
func (x *DataDeleteResponse) ProtoReflect() protoreflect.Message { |
2875
|
|
|
mi := &file_base_v1_service_proto_msgTypes[45] |
2876
|
|
|
if x != nil { |
2877
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2878
|
|
|
if ms.LoadMessageInfo() == nil { |
2879
|
|
|
ms.StoreMessageInfo(mi) |
2880
|
|
|
} |
2881
|
|
|
return ms |
2882
|
|
|
} |
2883
|
|
|
return mi.MessageOf(x) |
2884
|
|
|
} |
2885
|
|
|
|
2886
|
|
|
// Deprecated: Use DataDeleteResponse.ProtoReflect.Descriptor instead. |
2887
|
|
|
func (*DataDeleteResponse) Descriptor() ([]byte, []int) { |
2888
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{45} |
2889
|
|
|
} |
2890
|
|
|
|
2891
|
|
|
func (x *DataDeleteResponse) GetSnapToken() string { |
2892
|
|
|
if x != nil { |
2893
|
|
|
return x.SnapToken |
2894
|
|
|
} |
2895
|
|
|
return "" |
2896
|
|
|
} |
2897
|
|
|
|
2898
|
|
|
// RelationshipDeleteRequest |
2899
|
|
|
type RelationshipDeleteRequest struct { |
2900
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
2901
|
|
|
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,proto3" json:"tenant_id,omitempty"` |
2902
|
|
|
Filter *TupleFilter `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` |
2903
|
|
|
unknownFields protoimpl.UnknownFields |
2904
|
|
|
sizeCache protoimpl.SizeCache |
2905
|
|
|
} |
2906
|
|
|
|
2907
|
|
|
func (x *RelationshipDeleteRequest) Reset() { |
2908
|
|
|
*x = RelationshipDeleteRequest{} |
2909
|
|
|
mi := &file_base_v1_service_proto_msgTypes[46] |
2910
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2911
|
|
|
ms.StoreMessageInfo(mi) |
2912
|
|
|
} |
2913
|
|
|
|
2914
|
|
|
func (x *RelationshipDeleteRequest) String() string { |
2915
|
|
|
return protoimpl.X.MessageStringOf(x) |
2916
|
|
|
} |
2917
|
|
|
|
2918
|
|
|
func (*RelationshipDeleteRequest) ProtoMessage() {} |
2919
|
|
|
|
2920
|
|
|
func (x *RelationshipDeleteRequest) ProtoReflect() protoreflect.Message { |
2921
|
|
|
mi := &file_base_v1_service_proto_msgTypes[46] |
2922
|
|
|
if x != nil { |
2923
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2924
|
|
|
if ms.LoadMessageInfo() == nil { |
2925
|
|
|
ms.StoreMessageInfo(mi) |
2926
|
|
|
} |
2927
|
|
|
return ms |
2928
|
|
|
} |
2929
|
|
|
return mi.MessageOf(x) |
2930
|
|
|
} |
2931
|
|
|
|
2932
|
|
|
// Deprecated: Use RelationshipDeleteRequest.ProtoReflect.Descriptor instead. |
2933
|
|
|
func (*RelationshipDeleteRequest) Descriptor() ([]byte, []int) { |
2934
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{46} |
2935
|
|
|
} |
2936
|
|
|
|
2937
|
|
|
func (x *RelationshipDeleteRequest) GetTenantId() string { |
2938
|
|
|
if x != nil { |
2939
|
|
|
return x.TenantId |
2940
|
|
|
} |
2941
|
|
|
return "" |
2942
|
|
|
} |
2943
|
|
|
|
2944
|
|
|
func (x *RelationshipDeleteRequest) GetFilter() *TupleFilter { |
2945
|
|
|
if x != nil { |
2946
|
|
|
return x.Filter |
2947
|
|
|
} |
2948
|
|
|
return nil |
2949
|
|
|
} |
2950
|
|
|
|
2951
|
|
|
// RelationshipDeleteResponse |
2952
|
|
|
type RelationshipDeleteResponse struct { |
2953
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
2954
|
|
|
SnapToken string `protobuf:"bytes,1,opt,name=snap_token,proto3" json:"snap_token,omitempty"` |
2955
|
|
|
unknownFields protoimpl.UnknownFields |
2956
|
|
|
sizeCache protoimpl.SizeCache |
2957
|
|
|
} |
2958
|
|
|
|
2959
|
|
|
func (x *RelationshipDeleteResponse) Reset() { |
2960
|
|
|
*x = RelationshipDeleteResponse{} |
2961
|
|
|
mi := &file_base_v1_service_proto_msgTypes[47] |
2962
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2963
|
|
|
ms.StoreMessageInfo(mi) |
2964
|
|
|
} |
2965
|
|
|
|
2966
|
|
|
func (x *RelationshipDeleteResponse) String() string { |
2967
|
|
|
return protoimpl.X.MessageStringOf(x) |
2968
|
|
|
} |
2969
|
|
|
|
2970
|
|
|
func (*RelationshipDeleteResponse) ProtoMessage() {} |
2971
|
|
|
|
2972
|
|
|
func (x *RelationshipDeleteResponse) ProtoReflect() protoreflect.Message { |
2973
|
|
|
mi := &file_base_v1_service_proto_msgTypes[47] |
2974
|
|
|
if x != nil { |
2975
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
2976
|
|
|
if ms.LoadMessageInfo() == nil { |
2977
|
|
|
ms.StoreMessageInfo(mi) |
2978
|
|
|
} |
2979
|
|
|
return ms |
2980
|
|
|
} |
2981
|
|
|
return mi.MessageOf(x) |
2982
|
|
|
} |
2983
|
|
|
|
2984
|
|
|
// Deprecated: Use RelationshipDeleteResponse.ProtoReflect.Descriptor instead. |
2985
|
|
|
func (*RelationshipDeleteResponse) Descriptor() ([]byte, []int) { |
2986
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{47} |
2987
|
|
|
} |
2988
|
|
|
|
2989
|
|
|
func (x *RelationshipDeleteResponse) GetSnapToken() string { |
2990
|
|
|
if x != nil { |
2991
|
|
|
return x.SnapToken |
2992
|
|
|
} |
2993
|
|
|
return "" |
2994
|
|
|
} |
2995
|
|
|
|
2996
|
|
|
// BundleRunRequest is used to request the execution of a bundle. |
2997
|
|
|
// It includes tenant_id, the name of the bundle, and additional arguments for execution. |
2998
|
|
|
type BundleRunRequest struct { |
2999
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
3000
|
|
|
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,proto3" json:"tenant_id,omitempty"` |
3001
|
|
|
// Name of the bundle to be executed. |
3002
|
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` |
3003
|
|
|
// Additional key-value pairs for execution arguments. |
3004
|
|
|
Arguments map[string]string `protobuf:"bytes,3,rep,name=arguments,proto3" json:"arguments,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` |
3005
|
|
|
unknownFields protoimpl.UnknownFields |
3006
|
|
|
sizeCache protoimpl.SizeCache |
3007
|
|
|
} |
3008
|
|
|
|
3009
|
|
|
func (x *BundleRunRequest) Reset() { |
3010
|
|
|
*x = BundleRunRequest{} |
3011
|
|
|
mi := &file_base_v1_service_proto_msgTypes[48] |
3012
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
3013
|
|
|
ms.StoreMessageInfo(mi) |
3014
|
|
|
} |
3015
|
|
|
|
3016
|
|
|
func (x *BundleRunRequest) String() string { |
3017
|
|
|
return protoimpl.X.MessageStringOf(x) |
3018
|
|
|
} |
3019
|
|
|
|
3020
|
|
|
func (*BundleRunRequest) ProtoMessage() {} |
3021
|
|
|
|
3022
|
|
|
func (x *BundleRunRequest) ProtoReflect() protoreflect.Message { |
3023
|
|
|
mi := &file_base_v1_service_proto_msgTypes[48] |
3024
|
|
|
if x != nil { |
3025
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
3026
|
|
|
if ms.LoadMessageInfo() == nil { |
3027
|
|
|
ms.StoreMessageInfo(mi) |
3028
|
|
|
} |
3029
|
|
|
return ms |
3030
|
|
|
} |
3031
|
|
|
return mi.MessageOf(x) |
3032
|
|
|
} |
3033
|
|
|
|
3034
|
|
|
// Deprecated: Use BundleRunRequest.ProtoReflect.Descriptor instead. |
3035
|
|
|
func (*BundleRunRequest) Descriptor() ([]byte, []int) { |
3036
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{48} |
3037
|
|
|
} |
3038
|
|
|
|
3039
|
|
|
func (x *BundleRunRequest) GetTenantId() string { |
3040
|
|
|
if x != nil { |
3041
|
|
|
return x.TenantId |
3042
|
|
|
} |
3043
|
|
|
return "" |
3044
|
|
|
} |
3045
|
|
|
|
3046
|
|
|
func (x *BundleRunRequest) GetName() string { |
3047
|
|
|
if x != nil { |
3048
|
|
|
return x.Name |
3049
|
|
|
} |
3050
|
|
|
return "" |
3051
|
|
|
} |
3052
|
|
|
|
3053
|
|
|
func (x *BundleRunRequest) GetArguments() map[string]string { |
3054
|
|
|
if x != nil { |
3055
|
|
|
return x.Arguments |
3056
|
|
|
} |
3057
|
|
|
return nil |
3058
|
|
|
} |
3059
|
|
|
|
3060
|
|
|
// BundleRunResponse is the response for a BundleRunRequest. |
3061
|
|
|
// It includes a snap_token, which may be used for tracking the execution or its results. |
3062
|
|
|
type BundleRunResponse struct { |
3063
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
3064
|
|
|
SnapToken string `protobuf:"bytes,1,opt,name=snap_token,proto3" json:"snap_token,omitempty"` |
3065
|
|
|
unknownFields protoimpl.UnknownFields |
3066
|
|
|
sizeCache protoimpl.SizeCache |
3067
|
|
|
} |
3068
|
|
|
|
3069
|
|
|
func (x *BundleRunResponse) Reset() { |
3070
|
|
|
*x = BundleRunResponse{} |
3071
|
|
|
mi := &file_base_v1_service_proto_msgTypes[49] |
3072
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
3073
|
|
|
ms.StoreMessageInfo(mi) |
3074
|
|
|
} |
3075
|
|
|
|
3076
|
|
|
func (x *BundleRunResponse) String() string { |
3077
|
|
|
return protoimpl.X.MessageStringOf(x) |
3078
|
|
|
} |
3079
|
|
|
|
3080
|
|
|
func (*BundleRunResponse) ProtoMessage() {} |
3081
|
|
|
|
3082
|
|
|
func (x *BundleRunResponse) ProtoReflect() protoreflect.Message { |
3083
|
|
|
mi := &file_base_v1_service_proto_msgTypes[49] |
3084
|
|
|
if x != nil { |
3085
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
3086
|
|
|
if ms.LoadMessageInfo() == nil { |
3087
|
|
|
ms.StoreMessageInfo(mi) |
3088
|
|
|
} |
3089
|
|
|
return ms |
3090
|
|
|
} |
3091
|
|
|
return mi.MessageOf(x) |
3092
|
|
|
} |
3093
|
|
|
|
3094
|
|
|
// Deprecated: Use BundleRunResponse.ProtoReflect.Descriptor instead. |
3095
|
|
|
func (*BundleRunResponse) Descriptor() ([]byte, []int) { |
3096
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{49} |
3097
|
|
|
} |
3098
|
|
|
|
3099
|
|
|
func (x *BundleRunResponse) GetSnapToken() string { |
3100
|
|
|
if x != nil { |
3101
|
|
|
return x.SnapToken |
3102
|
|
|
} |
3103
|
|
|
return "" |
3104
|
|
|
} |
3105
|
|
|
|
3106
|
|
|
// BundleWriteRequest is used to request the writing of a bundle. |
3107
|
|
|
// It contains the tenant_id to identify the tenant and the Bundles object. |
3108
|
|
|
type BundleWriteRequest struct { |
3109
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
3110
|
|
|
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,proto3" json:"tenant_id,omitempty"` |
3111
|
|
|
Bundles []*DataBundle `protobuf:"bytes,2,rep,name=bundles,proto3" json:"bundles,omitempty"` // Contains the bundle data to be written. |
3112
|
|
|
unknownFields protoimpl.UnknownFields |
3113
|
|
|
sizeCache protoimpl.SizeCache |
3114
|
|
|
} |
3115
|
|
|
|
3116
|
|
|
func (x *BundleWriteRequest) Reset() { |
3117
|
|
|
*x = BundleWriteRequest{} |
3118
|
|
|
mi := &file_base_v1_service_proto_msgTypes[50] |
3119
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
3120
|
|
|
ms.StoreMessageInfo(mi) |
3121
|
|
|
} |
3122
|
|
|
|
3123
|
|
|
func (x *BundleWriteRequest) String() string { |
3124
|
|
|
return protoimpl.X.MessageStringOf(x) |
3125
|
|
|
} |
3126
|
|
|
|
3127
|
|
|
func (*BundleWriteRequest) ProtoMessage() {} |
3128
|
|
|
|
3129
|
|
|
func (x *BundleWriteRequest) ProtoReflect() protoreflect.Message { |
3130
|
|
|
mi := &file_base_v1_service_proto_msgTypes[50] |
3131
|
|
|
if x != nil { |
3132
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
3133
|
|
|
if ms.LoadMessageInfo() == nil { |
3134
|
|
|
ms.StoreMessageInfo(mi) |
3135
|
|
|
} |
3136
|
|
|
return ms |
3137
|
|
|
} |
3138
|
|
|
return mi.MessageOf(x) |
3139
|
|
|
} |
3140
|
|
|
|
3141
|
|
|
// Deprecated: Use BundleWriteRequest.ProtoReflect.Descriptor instead. |
3142
|
|
|
func (*BundleWriteRequest) Descriptor() ([]byte, []int) { |
3143
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{50} |
3144
|
|
|
} |
3145
|
|
|
|
3146
|
|
|
func (x *BundleWriteRequest) GetTenantId() string { |
3147
|
|
|
if x != nil { |
3148
|
|
|
return x.TenantId |
3149
|
|
|
} |
3150
|
|
|
return "" |
3151
|
|
|
} |
3152
|
|
|
|
3153
|
|
|
func (x *BundleWriteRequest) GetBundles() []*DataBundle { |
3154
|
|
|
if x != nil { |
3155
|
|
|
return x.Bundles |
3156
|
|
|
} |
3157
|
|
|
return nil |
3158
|
|
|
} |
3159
|
|
|
|
3160
|
|
|
// BundleWriteResponse is the response for a BundleWriteRequest. |
3161
|
|
|
// It includes a name which could be used as an identifier or acknowledgment. |
3162
|
|
|
type BundleWriteResponse struct { |
3163
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
3164
|
|
|
Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` // Identifier or acknowledgment of the written bundle. |
3165
|
|
|
unknownFields protoimpl.UnknownFields |
3166
|
|
|
sizeCache protoimpl.SizeCache |
3167
|
|
|
} |
3168
|
|
|
|
3169
|
|
|
func (x *BundleWriteResponse) Reset() { |
3170
|
|
|
*x = BundleWriteResponse{} |
3171
|
|
|
mi := &file_base_v1_service_proto_msgTypes[51] |
3172
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
3173
|
|
|
ms.StoreMessageInfo(mi) |
3174
|
|
|
} |
3175
|
|
|
|
3176
|
|
|
func (x *BundleWriteResponse) String() string { |
3177
|
|
|
return protoimpl.X.MessageStringOf(x) |
3178
|
|
|
} |
3179
|
|
|
|
3180
|
|
|
func (*BundleWriteResponse) ProtoMessage() {} |
3181
|
|
|
|
3182
|
|
|
func (x *BundleWriteResponse) ProtoReflect() protoreflect.Message { |
3183
|
|
|
mi := &file_base_v1_service_proto_msgTypes[51] |
3184
|
|
|
if x != nil { |
3185
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
3186
|
|
|
if ms.LoadMessageInfo() == nil { |
3187
|
|
|
ms.StoreMessageInfo(mi) |
3188
|
|
|
} |
3189
|
|
|
return ms |
3190
|
|
|
} |
3191
|
|
|
return mi.MessageOf(x) |
3192
|
|
|
} |
3193
|
|
|
|
3194
|
|
|
// Deprecated: Use BundleWriteResponse.ProtoReflect.Descriptor instead. |
3195
|
|
|
func (*BundleWriteResponse) Descriptor() ([]byte, []int) { |
3196
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{51} |
3197
|
|
|
} |
3198
|
|
|
|
3199
|
|
|
func (x *BundleWriteResponse) GetNames() []string { |
3200
|
|
|
if x != nil { |
3201
|
|
|
return x.Names |
3202
|
|
|
} |
3203
|
|
|
return nil |
3204
|
|
|
} |
3205
|
|
|
|
3206
|
|
|
type BundleReadRequest struct { |
3207
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
3208
|
|
|
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,proto3" json:"tenant_id,omitempty"` |
3209
|
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` |
3210
|
|
|
unknownFields protoimpl.UnknownFields |
3211
|
|
|
sizeCache protoimpl.SizeCache |
3212
|
|
|
} |
3213
|
|
|
|
3214
|
|
|
func (x *BundleReadRequest) Reset() { |
3215
|
|
|
*x = BundleReadRequest{} |
3216
|
|
|
mi := &file_base_v1_service_proto_msgTypes[52] |
3217
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
3218
|
|
|
ms.StoreMessageInfo(mi) |
3219
|
|
|
} |
3220
|
|
|
|
3221
|
|
|
func (x *BundleReadRequest) String() string { |
3222
|
|
|
return protoimpl.X.MessageStringOf(x) |
3223
|
|
|
} |
3224
|
|
|
|
3225
|
|
|
func (*BundleReadRequest) ProtoMessage() {} |
3226
|
|
|
|
3227
|
|
|
func (x *BundleReadRequest) ProtoReflect() protoreflect.Message { |
3228
|
|
|
mi := &file_base_v1_service_proto_msgTypes[52] |
3229
|
|
|
if x != nil { |
3230
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
3231
|
|
|
if ms.LoadMessageInfo() == nil { |
3232
|
|
|
ms.StoreMessageInfo(mi) |
3233
|
|
|
} |
3234
|
|
|
return ms |
3235
|
|
|
} |
3236
|
|
|
return mi.MessageOf(x) |
3237
|
|
|
} |
3238
|
|
|
|
3239
|
|
|
// Deprecated: Use BundleReadRequest.ProtoReflect.Descriptor instead. |
3240
|
|
|
func (*BundleReadRequest) Descriptor() ([]byte, []int) { |
3241
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{52} |
3242
|
|
|
} |
3243
|
|
|
|
3244
|
|
|
func (x *BundleReadRequest) GetTenantId() string { |
3245
|
|
|
if x != nil { |
3246
|
|
|
return x.TenantId |
3247
|
|
|
} |
3248
|
|
|
return "" |
3249
|
|
|
} |
3250
|
|
|
|
3251
|
|
|
func (x *BundleReadRequest) GetName() string { |
3252
|
|
|
if x != nil { |
3253
|
|
|
return x.Name |
3254
|
|
|
} |
3255
|
|
|
return "" |
3256
|
|
|
} |
3257
|
|
|
|
3258
|
|
|
type BundleReadResponse struct { |
3259
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
3260
|
|
|
Bundle *DataBundle `protobuf:"bytes,1,opt,name=bundle,proto3" json:"bundle,omitempty"` |
3261
|
|
|
unknownFields protoimpl.UnknownFields |
3262
|
|
|
sizeCache protoimpl.SizeCache |
3263
|
|
|
} |
3264
|
|
|
|
3265
|
|
|
func (x *BundleReadResponse) Reset() { |
3266
|
|
|
*x = BundleReadResponse{} |
3267
|
|
|
mi := &file_base_v1_service_proto_msgTypes[53] |
3268
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
3269
|
|
|
ms.StoreMessageInfo(mi) |
3270
|
|
|
} |
3271
|
|
|
|
3272
|
|
|
func (x *BundleReadResponse) String() string { |
3273
|
|
|
return protoimpl.X.MessageStringOf(x) |
3274
|
|
|
} |
3275
|
|
|
|
3276
|
|
|
func (*BundleReadResponse) ProtoMessage() {} |
3277
|
|
|
|
3278
|
|
|
func (x *BundleReadResponse) ProtoReflect() protoreflect.Message { |
3279
|
|
|
mi := &file_base_v1_service_proto_msgTypes[53] |
3280
|
|
|
if x != nil { |
3281
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
3282
|
|
|
if ms.LoadMessageInfo() == nil { |
3283
|
|
|
ms.StoreMessageInfo(mi) |
3284
|
|
|
} |
3285
|
|
|
return ms |
3286
|
|
|
} |
3287
|
|
|
return mi.MessageOf(x) |
3288
|
|
|
} |
3289
|
|
|
|
3290
|
|
|
// Deprecated: Use BundleReadResponse.ProtoReflect.Descriptor instead. |
3291
|
|
|
func (*BundleReadResponse) Descriptor() ([]byte, []int) { |
3292
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{53} |
3293
|
|
|
} |
3294
|
|
|
|
3295
|
|
|
func (x *BundleReadResponse) GetBundle() *DataBundle { |
3296
|
|
|
if x != nil { |
3297
|
|
|
return x.Bundle |
3298
|
|
|
} |
3299
|
|
|
return nil |
3300
|
|
|
} |
3301
|
|
|
|
3302
|
|
|
// BundleDeleteRequest is used to request the deletion of a bundle. |
3303
|
|
|
// It contains the tenant_id to specify the tenant and the name of the bundle to be deleted. |
3304
|
|
|
type BundleDeleteRequest struct { |
3305
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
3306
|
|
|
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,proto3" json:"tenant_id,omitempty"` |
3307
|
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Name of the bundle to be deleted. |
3308
|
|
|
unknownFields protoimpl.UnknownFields |
3309
|
|
|
sizeCache protoimpl.SizeCache |
3310
|
|
|
} |
3311
|
|
|
|
3312
|
|
|
func (x *BundleDeleteRequest) Reset() { |
3313
|
|
|
*x = BundleDeleteRequest{} |
3314
|
|
|
mi := &file_base_v1_service_proto_msgTypes[54] |
3315
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
3316
|
|
|
ms.StoreMessageInfo(mi) |
3317
|
|
|
} |
3318
|
|
|
|
3319
|
|
|
func (x *BundleDeleteRequest) String() string { |
3320
|
|
|
return protoimpl.X.MessageStringOf(x) |
3321
|
|
|
} |
3322
|
|
|
|
3323
|
|
|
func (*BundleDeleteRequest) ProtoMessage() {} |
3324
|
|
|
|
3325
|
|
|
func (x *BundleDeleteRequest) ProtoReflect() protoreflect.Message { |
3326
|
|
|
mi := &file_base_v1_service_proto_msgTypes[54] |
3327
|
|
|
if x != nil { |
3328
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
3329
|
|
|
if ms.LoadMessageInfo() == nil { |
3330
|
|
|
ms.StoreMessageInfo(mi) |
3331
|
|
|
} |
3332
|
|
|
return ms |
3333
|
|
|
} |
3334
|
|
|
return mi.MessageOf(x) |
3335
|
|
|
} |
3336
|
|
|
|
3337
|
|
|
// Deprecated: Use BundleDeleteRequest.ProtoReflect.Descriptor instead. |
3338
|
|
|
func (*BundleDeleteRequest) Descriptor() ([]byte, []int) { |
3339
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{54} |
3340
|
|
|
} |
3341
|
|
|
|
3342
|
|
|
func (x *BundleDeleteRequest) GetTenantId() string { |
3343
|
|
|
if x != nil { |
3344
|
|
|
return x.TenantId |
3345
|
|
|
} |
3346
|
|
|
return "" |
3347
|
|
|
} |
3348
|
|
|
|
3349
|
|
|
func (x *BundleDeleteRequest) GetName() string { |
3350
|
|
|
if x != nil { |
3351
|
|
|
return x.Name |
3352
|
|
|
} |
3353
|
|
|
return "" |
3354
|
|
|
} |
3355
|
|
|
|
3356
|
|
|
type BundleDeleteResponse struct { |
3357
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
3358
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
3359
|
|
|
unknownFields protoimpl.UnknownFields |
3360
|
|
|
sizeCache protoimpl.SizeCache |
3361
|
|
|
} |
3362
|
|
|
|
3363
|
|
|
func (x *BundleDeleteResponse) Reset() { |
3364
|
|
|
*x = BundleDeleteResponse{} |
3365
|
|
|
mi := &file_base_v1_service_proto_msgTypes[55] |
3366
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
3367
|
|
|
ms.StoreMessageInfo(mi) |
3368
|
|
|
} |
3369
|
|
|
|
3370
|
|
|
func (x *BundleDeleteResponse) String() string { |
3371
|
|
|
return protoimpl.X.MessageStringOf(x) |
3372
|
|
|
} |
3373
|
|
|
|
3374
|
|
|
func (*BundleDeleteResponse) ProtoMessage() {} |
3375
|
|
|
|
3376
|
|
|
func (x *BundleDeleteResponse) ProtoReflect() protoreflect.Message { |
3377
|
|
|
mi := &file_base_v1_service_proto_msgTypes[55] |
3378
|
|
|
if x != nil { |
3379
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
3380
|
|
|
if ms.LoadMessageInfo() == nil { |
3381
|
|
|
ms.StoreMessageInfo(mi) |
3382
|
|
|
} |
3383
|
|
|
return ms |
3384
|
|
|
} |
3385
|
|
|
return mi.MessageOf(x) |
3386
|
|
|
} |
3387
|
|
|
|
3388
|
|
|
// Deprecated: Use BundleDeleteResponse.ProtoReflect.Descriptor instead. |
3389
|
|
|
func (*BundleDeleteResponse) Descriptor() ([]byte, []int) { |
3390
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{55} |
3391
|
|
|
} |
3392
|
|
|
|
3393
|
|
|
func (x *BundleDeleteResponse) GetName() string { |
3394
|
|
|
if x != nil { |
3395
|
|
|
return x.Name |
3396
|
|
|
} |
3397
|
|
|
return "" |
3398
|
|
|
} |
3399
|
|
|
|
3400
|
|
|
// TenantCreateRequest is the message used for the request to create a tenant. |
3401
|
|
|
type TenantCreateRequest struct { |
3402
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
3403
|
|
|
// id is a unique identifier for the tenant. |
3404
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` |
3405
|
|
|
// name is the name of the tenant. |
3406
|
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` |
3407
|
|
|
unknownFields protoimpl.UnknownFields |
3408
|
|
|
sizeCache protoimpl.SizeCache |
3409
|
|
|
} |
3410
|
|
|
|
3411
|
|
|
func (x *TenantCreateRequest) Reset() { |
3412
|
|
|
*x = TenantCreateRequest{} |
3413
|
|
|
mi := &file_base_v1_service_proto_msgTypes[56] |
3414
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
3415
|
|
|
ms.StoreMessageInfo(mi) |
3416
|
|
|
} |
3417
|
|
|
|
3418
|
|
|
func (x *TenantCreateRequest) String() string { |
3419
|
|
|
return protoimpl.X.MessageStringOf(x) |
3420
|
|
|
} |
3421
|
|
|
|
3422
|
|
|
func (*TenantCreateRequest) ProtoMessage() {} |
3423
|
|
|
|
3424
|
|
|
func (x *TenantCreateRequest) ProtoReflect() protoreflect.Message { |
3425
|
|
|
mi := &file_base_v1_service_proto_msgTypes[56] |
3426
|
|
|
if x != nil { |
3427
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
3428
|
|
|
if ms.LoadMessageInfo() == nil { |
3429
|
|
|
ms.StoreMessageInfo(mi) |
3430
|
|
|
} |
3431
|
|
|
return ms |
3432
|
|
|
} |
3433
|
|
|
return mi.MessageOf(x) |
3434
|
|
|
} |
3435
|
|
|
|
3436
|
|
|
// Deprecated: Use TenantCreateRequest.ProtoReflect.Descriptor instead. |
3437
|
|
|
func (*TenantCreateRequest) Descriptor() ([]byte, []int) { |
3438
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{56} |
3439
|
|
|
} |
3440
|
|
|
|
3441
|
|
|
func (x *TenantCreateRequest) GetId() string { |
3442
|
|
|
if x != nil { |
3443
|
|
|
return x.Id |
3444
|
|
|
} |
3445
|
|
|
return "" |
3446
|
|
|
} |
3447
|
|
|
|
3448
|
|
|
func (x *TenantCreateRequest) GetName() string { |
3449
|
|
|
if x != nil { |
3450
|
|
|
return x.Name |
3451
|
|
|
} |
3452
|
|
|
return "" |
3453
|
|
|
} |
3454
|
|
|
|
3455
|
|
|
// TenantCreateResponse is the message returned from the request to create a tenant. |
3456
|
|
|
type TenantCreateResponse struct { |
3457
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
3458
|
|
|
// tenant is the created tenant information. |
3459
|
|
|
Tenant *Tenant `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"` |
3460
|
|
|
unknownFields protoimpl.UnknownFields |
3461
|
|
|
sizeCache protoimpl.SizeCache |
3462
|
|
|
} |
3463
|
|
|
|
3464
|
|
|
func (x *TenantCreateResponse) Reset() { |
3465
|
|
|
*x = TenantCreateResponse{} |
3466
|
|
|
mi := &file_base_v1_service_proto_msgTypes[57] |
3467
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
3468
|
|
|
ms.StoreMessageInfo(mi) |
3469
|
|
|
} |
3470
|
|
|
|
3471
|
|
|
func (x *TenantCreateResponse) String() string { |
3472
|
|
|
return protoimpl.X.MessageStringOf(x) |
3473
|
|
|
} |
3474
|
|
|
|
3475
|
|
|
func (*TenantCreateResponse) ProtoMessage() {} |
3476
|
|
|
|
3477
|
|
|
func (x *TenantCreateResponse) ProtoReflect() protoreflect.Message { |
3478
|
|
|
mi := &file_base_v1_service_proto_msgTypes[57] |
3479
|
|
|
if x != nil { |
3480
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
3481
|
|
|
if ms.LoadMessageInfo() == nil { |
3482
|
|
|
ms.StoreMessageInfo(mi) |
3483
|
|
|
} |
3484
|
|
|
return ms |
3485
|
|
|
} |
3486
|
|
|
return mi.MessageOf(x) |
3487
|
|
|
} |
3488
|
|
|
|
3489
|
|
|
// Deprecated: Use TenantCreateResponse.ProtoReflect.Descriptor instead. |
3490
|
|
|
func (*TenantCreateResponse) Descriptor() ([]byte, []int) { |
3491
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{57} |
3492
|
|
|
} |
3493
|
|
|
|
3494
|
|
|
func (x *TenantCreateResponse) GetTenant() *Tenant { |
3495
|
|
|
if x != nil { |
3496
|
|
|
return x.Tenant |
3497
|
|
|
} |
3498
|
|
|
return nil |
3499
|
|
|
} |
3500
|
|
|
|
3501
|
|
|
// TenantDeleteRequest is the message used for the request to delete a tenant. |
3502
|
|
|
type TenantDeleteRequest struct { |
3503
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
3504
|
|
|
// id is the unique identifier of the tenant to be deleted. |
3505
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` |
3506
|
|
|
unknownFields protoimpl.UnknownFields |
3507
|
|
|
sizeCache protoimpl.SizeCache |
3508
|
|
|
} |
3509
|
|
|
|
3510
|
|
|
func (x *TenantDeleteRequest) Reset() { |
3511
|
|
|
*x = TenantDeleteRequest{} |
3512
|
|
|
mi := &file_base_v1_service_proto_msgTypes[58] |
3513
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
3514
|
|
|
ms.StoreMessageInfo(mi) |
3515
|
|
|
} |
3516
|
|
|
|
3517
|
|
|
func (x *TenantDeleteRequest) String() string { |
3518
|
|
|
return protoimpl.X.MessageStringOf(x) |
3519
|
|
|
} |
3520
|
|
|
|
3521
|
|
|
func (*TenantDeleteRequest) ProtoMessage() {} |
3522
|
|
|
|
3523
|
|
|
func (x *TenantDeleteRequest) ProtoReflect() protoreflect.Message { |
3524
|
|
|
mi := &file_base_v1_service_proto_msgTypes[58] |
3525
|
|
|
if x != nil { |
3526
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
3527
|
|
|
if ms.LoadMessageInfo() == nil { |
3528
|
|
|
ms.StoreMessageInfo(mi) |
3529
|
|
|
} |
3530
|
|
|
return ms |
3531
|
|
|
} |
3532
|
|
|
return mi.MessageOf(x) |
3533
|
|
|
} |
3534
|
|
|
|
3535
|
|
|
// Deprecated: Use TenantDeleteRequest.ProtoReflect.Descriptor instead. |
3536
|
|
|
func (*TenantDeleteRequest) Descriptor() ([]byte, []int) { |
3537
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{58} |
3538
|
|
|
} |
3539
|
|
|
|
3540
|
|
|
func (x *TenantDeleteRequest) GetId() string { |
3541
|
|
|
if x != nil { |
3542
|
|
|
return x.Id |
3543
|
|
|
} |
3544
|
|
|
return "" |
3545
|
|
|
} |
3546
|
|
|
|
3547
|
|
|
// TenantDeleteResponse is the message returned from the request to delete a tenant. |
3548
|
|
|
type TenantDeleteResponse struct { |
3549
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
3550
|
|
|
// tenant_id is the tenant id that was deleted. |
3551
|
|
|
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,proto3" json:"tenant_id,omitempty"` |
3552
|
|
|
unknownFields protoimpl.UnknownFields |
3553
|
|
|
sizeCache protoimpl.SizeCache |
3554
|
|
|
} |
3555
|
|
|
|
3556
|
|
|
func (x *TenantDeleteResponse) Reset() { |
3557
|
|
|
*x = TenantDeleteResponse{} |
3558
|
|
|
mi := &file_base_v1_service_proto_msgTypes[59] |
3559
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
3560
|
|
|
ms.StoreMessageInfo(mi) |
3561
|
|
|
} |
3562
|
|
|
|
3563
|
|
|
func (x *TenantDeleteResponse) String() string { |
3564
|
|
|
return protoimpl.X.MessageStringOf(x) |
3565
|
|
|
} |
3566
|
|
|
|
3567
|
|
|
func (*TenantDeleteResponse) ProtoMessage() {} |
3568
|
|
|
|
3569
|
|
|
func (x *TenantDeleteResponse) ProtoReflect() protoreflect.Message { |
3570
|
|
|
mi := &file_base_v1_service_proto_msgTypes[59] |
3571
|
|
|
if x != nil { |
3572
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
3573
|
|
|
if ms.LoadMessageInfo() == nil { |
3574
|
|
|
ms.StoreMessageInfo(mi) |
3575
|
|
|
} |
3576
|
|
|
return ms |
3577
|
|
|
} |
3578
|
|
|
return mi.MessageOf(x) |
3579
|
|
|
} |
3580
|
|
|
|
3581
|
|
|
// Deprecated: Use TenantDeleteResponse.ProtoReflect.Descriptor instead. |
3582
|
|
|
func (*TenantDeleteResponse) Descriptor() ([]byte, []int) { |
3583
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{59} |
3584
|
|
|
} |
3585
|
|
|
|
3586
|
|
|
func (x *TenantDeleteResponse) GetTenantId() string { |
3587
|
|
|
if x != nil { |
3588
|
|
|
return x.TenantId |
3589
|
|
|
} |
3590
|
|
|
return "" |
3591
|
|
|
} |
3592
|
|
|
|
3593
|
|
|
// TenantListRequest is the message used for the request to list all tenants. |
3594
|
|
|
type TenantListRequest struct { |
3595
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
3596
|
|
|
// page_size is the number of tenants to be returned in the response. |
3597
|
|
|
// The value should be between 1 and 100. |
3598
|
|
|
PageSize uint32 `protobuf:"varint,1,opt,name=page_size,proto3" json:"page_size,omitempty"` |
3599
|
|
|
// continuous_token is an optional parameter used for pagination. |
3600
|
|
|
// It should be the value received in the previous response. |
3601
|
|
|
ContinuousToken string `protobuf:"bytes,2,opt,name=continuous_token,proto3" json:"continuous_token,omitempty"` |
3602
|
|
|
unknownFields protoimpl.UnknownFields |
3603
|
|
|
sizeCache protoimpl.SizeCache |
3604
|
|
|
} |
3605
|
|
|
|
3606
|
|
|
func (x *TenantListRequest) Reset() { |
3607
|
|
|
*x = TenantListRequest{} |
3608
|
|
|
mi := &file_base_v1_service_proto_msgTypes[60] |
3609
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
3610
|
|
|
ms.StoreMessageInfo(mi) |
3611
|
|
|
} |
3612
|
|
|
|
3613
|
|
|
func (x *TenantListRequest) String() string { |
3614
|
|
|
return protoimpl.X.MessageStringOf(x) |
3615
|
|
|
} |
3616
|
|
|
|
3617
|
|
|
func (*TenantListRequest) ProtoMessage() {} |
3618
|
|
|
|
3619
|
|
|
func (x *TenantListRequest) ProtoReflect() protoreflect.Message { |
3620
|
|
|
mi := &file_base_v1_service_proto_msgTypes[60] |
3621
|
|
|
if x != nil { |
3622
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
3623
|
|
|
if ms.LoadMessageInfo() == nil { |
3624
|
|
|
ms.StoreMessageInfo(mi) |
3625
|
|
|
} |
3626
|
|
|
return ms |
3627
|
|
|
} |
3628
|
|
|
return mi.MessageOf(x) |
3629
|
|
|
} |
3630
|
|
|
|
3631
|
|
|
// Deprecated: Use TenantListRequest.ProtoReflect.Descriptor instead. |
3632
|
|
|
func (*TenantListRequest) Descriptor() ([]byte, []int) { |
3633
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{60} |
3634
|
|
|
} |
3635
|
|
|
|
3636
|
|
|
func (x *TenantListRequest) GetPageSize() uint32 { |
3637
|
|
|
if x != nil { |
3638
|
|
|
return x.PageSize |
3639
|
|
|
} |
3640
|
|
|
return 0 |
3641
|
|
|
} |
3642
|
|
|
|
3643
|
|
|
func (x *TenantListRequest) GetContinuousToken() string { |
3644
|
|
|
if x != nil { |
3645
|
|
|
return x.ContinuousToken |
3646
|
|
|
} |
3647
|
|
|
return "" |
3648
|
|
|
} |
3649
|
|
|
|
3650
|
|
|
// TenantListResponse is the message returned from the request to list all tenants. |
3651
|
|
|
type TenantListResponse struct { |
3652
|
|
|
state protoimpl.MessageState `protogen:"open.v1"` |
3653
|
|
|
// tenants is a list of tenants. |
3654
|
|
|
Tenants []*Tenant `protobuf:"bytes,1,rep,name=tenants,proto3" json:"tenants,omitempty"` |
3655
|
|
|
// continuous_token is a string that can be used to paginate and retrieve the next set of results. |
3656
|
|
|
ContinuousToken string `protobuf:"bytes,2,opt,name=continuous_token,proto3" json:"continuous_token,omitempty"` |
3657
|
|
|
unknownFields protoimpl.UnknownFields |
3658
|
|
|
sizeCache protoimpl.SizeCache |
3659
|
|
|
} |
3660
|
|
|
|
3661
|
|
|
func (x *TenantListResponse) Reset() { |
3662
|
|
|
*x = TenantListResponse{} |
3663
|
|
|
mi := &file_base_v1_service_proto_msgTypes[61] |
3664
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
3665
|
|
|
ms.StoreMessageInfo(mi) |
3666
|
|
|
} |
3667
|
|
|
|
3668
|
|
|
func (x *TenantListResponse) String() string { |
3669
|
|
|
return protoimpl.X.MessageStringOf(x) |
3670
|
|
|
} |
3671
|
|
|
|
3672
|
|
|
func (*TenantListResponse) ProtoMessage() {} |
3673
|
|
|
|
3674
|
|
|
func (x *TenantListResponse) ProtoReflect() protoreflect.Message { |
3675
|
|
|
mi := &file_base_v1_service_proto_msgTypes[61] |
3676
|
|
|
if x != nil { |
3677
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
3678
|
|
|
if ms.LoadMessageInfo() == nil { |
3679
|
|
|
ms.StoreMessageInfo(mi) |
3680
|
|
|
} |
3681
|
|
|
return ms |
3682
|
|
|
} |
3683
|
|
|
return mi.MessageOf(x) |
3684
|
|
|
} |
3685
|
|
|
|
3686
|
|
|
// Deprecated: Use TenantListResponse.ProtoReflect.Descriptor instead. |
3687
|
|
|
func (*TenantListResponse) Descriptor() ([]byte, []int) { |
3688
|
|
|
return file_base_v1_service_proto_rawDescGZIP(), []int{61} |
3689
|
|
|
} |
3690
|
|
|
|
3691
|
|
|
func (x *TenantListResponse) GetTenants() []*Tenant { |
3692
|
|
|
if x != nil { |
3693
|
|
|
return x.Tenants |
3694
|
|
|
} |
3695
|
|
|
return nil |
3696
|
|
|
} |
3697
|
|
|
|
3698
|
|
|
func (x *TenantListResponse) GetContinuousToken() string { |
3699
|
|
|
if x != nil { |
3700
|
|
|
return x.ContinuousToken |
3701
|
|
|
} |
3702
|
|
|
return "" |
3703
|
|
|
} |
3704
|
|
|
|
3705
|
|
|
var File_base_v1_service_proto protoreflect.FileDescriptor |
3706
|
|
|
|
3707
|
|
|
const file_base_v1_service_proto_rawDesc = "" + |
3708
|
|
|
"\n" + |
3709
|
|
|
"\x15base/v1/service.proto\x12\abase.v1\x1a\x12base/v1/base.proto\x1a\x1cgoogle/api/annotations.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\x1a\x17validate/validate.proto\"\x80\a\n" + |
3710
|
|
|
"\x16PermissionCheckRequest\x12\xaa\x02\n" + |
3711
|
|
|
"\ttenant_id\x18\x01 \x01(\tB\x8b\x02\x92A\xd9\x012\xd6\x01Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes.\xfaB+r)(\x80\x012!^([a-zA-Z0-9_\\-@\\.:+]{1,128}|\\*)$\xd0\x01\x00R\ttenant_id\x12M\n" + |
3712
|
|
|
"\bmetadata\x18\x02 \x01(\v2'.base.v1.PermissionCheckRequestMetadataB\b\xfaB\x05\x8a\x01\x02\x10\x01R\bmetadata\x12D\n" + |
3713
|
|
|
"\x06entity\x18\x03 \x01(\v2\x0f.base.v1.EntityB\x1b\x92A\x10J\x0e\"repository:1\"\xfaB\x05\x8a\x01\x02\x10\x01R\x06entity\x12v\n" + |
3714
|
|
|
"\n" + |
3715
|
|
|
"permission\x18\x04 \x01(\tBV\x92A624The action the user wants to perform on the resource\xfaB\x1ar\x18(@2\x11^[a-zA-Z_]{1,64}$\xd0\x01\x00R\n" + |
3716
|
|
|
"permission\x124\n" + |
3717
|
|
|
"\asubject\x18\x05 \x01(\v2\x10.base.v1.SubjectB\b\xfaB\x05\x8a\x01\x02\x10\x01R\asubject\x12\xc4\x01\n" + |
3718
|
|
|
"\acontext\x18\x06 \x01(\v2\x10.base.v1.ContextB\x97\x01\x92A\x93\x012\x90\x01Contextual data that can be dynamically added to permission check requests. See details on [Contextual Data](../../operations/contextual-tuples)R\acontext\x12/\n" + |
3719
|
|
|
"\targuments\x18\a \x03(\v2\x11.base.v1.ArgumentR\targuments\"\xb2\x02\n" + |
3720
|
|
|
"\x1ePermissionCheckRequestMetadata\x12&\n" + |
3721
|
|
|
"\x0eschema_version\x18\x01 \x01(\tR\x0eschema_version\x12\x89\x01\n" + |
3722
|
|
|
"\n" + |
3723
|
|
|
"snap_token\x18\x02 \x01(\tBi\x92Af2dThe snap token to avoid stale cache, see more details on [Snap Tokens](../../operations/snap-tokens)R\n" + |
3724
|
|
|
"snap_token\x12\\\n" + |
3725
|
|
|
"\x05depth\x18\x03 \x01(\x05BF\x92A<2:Query limit when if recursive database queries got in loop\xfaB\x04\x1a\x02(\x03R\x05depth\"\x87\x01\n" + |
3726
|
|
|
"\x17PermissionCheckResponse\x12&\n" + |
3727
|
|
|
"\x03can\x18\x01 \x01(\x0e2\x14.base.v1.CheckResultR\x03can\x12D\n" + |
3728
|
|
|
"\bmetadata\x18\x02 \x01(\v2(.base.v1.PermissionCheckResponseMetadataR\bmetadata\"C\n" + |
3729
|
|
|
"\x1fPermissionCheckResponseMetadata\x12 \n" + |
3730
|
|
|
"\vcheck_count\x18\x01 \x01(\x05R\vcheck_count\"\xe5\x04\n" + |
3731
|
|
|
"\x17PermissionExpandRequest\x12\xaa\x02\n" + |
3732
|
|
|
"\ttenant_id\x18\x01 \x01(\tB\x8b\x02\x92A\xd9\x012\xd6\x01Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes.\xfaB+r)(\x80\x012!^([a-zA-Z0-9_\\-@\\.:+]{1,128}|\\*)$\xd0\x01\x00R\ttenant_id\x12N\n" + |
3733
|
|
|
"\bmetadata\x18\x02 \x01(\v2(.base.v1.PermissionExpandRequestMetadataB\b\xfaB\x05\x8a\x01\x02\x10\x01R\bmetadata\x121\n" + |
3734
|
|
|
"\x06entity\x18\x03 \x01(\v2\x0f.base.v1.EntityB\b\xfaB\x05\x8a\x01\x02\x10\x01R\x06entity\x12=\n" + |
3735
|
|
|
"\n" + |
3736
|
|
|
"permission\x18\x04 \x01(\tB\x1d\xfaB\x1ar\x18(@2\x11^[a-zA-Z_]{1,64}$\xd0\x01\x01R\n" + |
3737
|
|
|
"permission\x12*\n" + |
3738
|
|
|
"\acontext\x18\x05 \x01(\v2\x10.base.v1.ContextR\acontext\x12/\n" + |
3739
|
|
|
"\targuments\x18\x06 \x03(\v2\x11.base.v1.ArgumentR\targuments\"\xd6\x01\n" + |
3740
|
|
|
"\x1fPermissionExpandRequestMetadata\x12&\n" + |
3741
|
|
|
"\x0eschema_version\x18\x01 \x01(\tR\x0eschema_version\x12\x8a\x01\n" + |
3742
|
|
|
"\n" + |
3743
|
|
|
"snap_token\x18\x02 \x01(\tBj\x92Ag2eThe snap token to avoid stale cache, see more details on [Snap Tokens](../../operations/snap-tokens).R\n" + |
3744
|
|
|
"snap_token\"?\n" + |
3745
|
|
|
"\x18PermissionExpandResponse\x12#\n" + |
3746
|
|
|
"\x04tree\x18\x01 \x01(\v2\x0f.base.v1.ExpandR\x04tree\"\x81\a\n" + |
3747
|
|
|
"\x1dPermissionLookupEntityRequest\x12\xaa\x02\n" + |
3748
|
|
|
"\ttenant_id\x18\x01 \x01(\tB\x8b\x02\x92A\xd9\x012\xd6\x01Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes.\xfaB+r)(\x80\x012!^([a-zA-Z0-9_\\-@\\.:+]{1,128}|\\*)$\xd0\x01\x00R\ttenant_id\x12T\n" + |
3749
|
|
|
"\bmetadata\x18\x02 \x01(\v2..base.v1.PermissionLookupEntityRequestMetadataB\b\xfaB\x05\x8a\x01\x02\x10\x01R\bmetadata\x12?\n" + |
3750
|
|
|
"\ventity_type\x18\x03 \x01(\tB\x1d\xfaB\x1ar\x18(@2\x11^[a-zA-Z_]{1,64}$\xd0\x01\x00R\ventity_type\x12=\n" + |
3751
|
|
|
"\n" + |
3752
|
|
|
"permission\x18\x04 \x01(\tB\x1d\xfaB\x1ar\x18(@2\x11^[a-zA-Z_]{1,64}$\xd0\x01\x00R\n" + |
3753
|
|
|
"permission\x124\n" + |
3754
|
|
|
"\asubject\x18\x05 \x01(\v2\x10.base.v1.SubjectB\b\xfaB\x05\x8a\x01\x02\x10\x01R\asubject\x12*\n" + |
3755
|
|
|
"\acontext\x18\x06 \x01(\v2\x10.base.v1.ContextR\acontext\x12G\n" + |
3756
|
|
|
"\x05scope\x18\a \x03(\v21.base.v1.PermissionLookupEntityRequest.ScopeEntryR\x05scope\x12'\n" + |
3757
|
|
|
"\tpage_size\x18\b \x01(\rB\t\xfaB\x06*\x04(\x01@\x01R\tpage_size\x124\n" + |
3758
|
|
|
"\x10continuous_token\x18\t \x01(\tB\b\xfaB\x05r\x03\xd0\x01\x01R\x10continuous_token\x1aS\n" + |
3759
|
|
|
"\n" + |
3760
|
|
|
"ScopeEntry\x12\x10\n" + |
3761
|
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12/\n" + |
3762
|
|
|
"\x05value\x18\x02 \x01(\v2\x19.base.v1.StringArrayValueR\x05value:\x028\x01\"\xbb\x02\n" + |
3763
|
|
|
"%PermissionLookupEntityRequestMetadata\x12&\n" + |
3764
|
|
|
"\x0eschema_version\x18\x01 \x01(\tR\x0eschema_version\x12\x8a\x01\n" + |
3765
|
|
|
"\n" + |
3766
|
|
|
"snap_token\x18\x02 \x01(\tBj\x92Ag2eThe snap token to avoid stale cache, see more details on [Snap Tokens](../../operations/snap-tokens).R\n" + |
3767
|
|
|
"snap_token\x12]\n" + |
3768
|
|
|
"\x05depth\x18\x03 \x01(\x05BG\x92A=2;Query limit when if recursive database queries got in loop.\xfaB\x04\x1a\x02(\x03R\x05depth\"l\n" + |
3769
|
|
|
"\x1ePermissionLookupEntityResponse\x12\x1e\n" + |
3770
|
|
|
"\n" + |
3771
|
|
|
"entity_ids\x18\x01 \x03(\tR\n" + |
3772
|
|
|
"entity_ids\x12*\n" + |
3773
|
|
|
"\x10continuous_token\x18\x02 \x01(\tR\x10continuous_token\"p\n" + |
3774
|
|
|
"$PermissionLookupEntityStreamResponse\x12\x1c\n" + |
3775
|
|
|
"\tentity_id\x18\x01 \x01(\tR\tentity_id\x12*\n" + |
3776
|
|
|
"\x10continuous_token\x18\x02 \x01(\tR\x10continuous_token\"\xe9\x05\n" + |
3777
|
|
|
"\x1dPermissionEntityFilterRequest\x12\xaa\x02\n" + |
3778
|
|
|
"\ttenant_id\x18\x01 \x01(\tB\x8b\x02\x92A\xd9\x012\xd6\x01Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes.\xfaB+r)(\x80\x012!^([a-zA-Z0-9_\\-@\\.:+]{1,128}|\\*)$\xd0\x01\x00R\ttenant_id\x12T\n" + |
3779
|
|
|
"\bmetadata\x18\x02 \x01(\v2..base.v1.PermissionEntityFilterRequestMetadataB\b\xfaB\x05\x8a\x01\x02\x10\x01R\bmetadata\x12-\n" + |
3780
|
|
|
"\bentrance\x18\x03 \x01(\v2\x11.base.v1.EntranceR\bentrance\x12*\n" + |
3781
|
|
|
"\asubject\x18\x04 \x01(\v2\x10.base.v1.SubjectR\asubject\x12*\n" + |
3782
|
|
|
"\acontext\x18\x05 \x01(\v2\x10.base.v1.ContextR\acontext\x12G\n" + |
3783
|
|
|
"\x05scope\x18\x06 \x03(\v21.base.v1.PermissionEntityFilterRequest.ScopeEntryR\x05scope\x12 \n" + |
3784
|
|
|
"\x06cursor\x18\a \x01(\tB\b\xfaB\x05r\x03\xd0\x01\x01R\x06cursor\x1aS\n" + |
3785
|
|
|
"\n" + |
3786
|
|
|
"ScopeEntry\x12\x10\n" + |
3787
|
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12/\n" + |
3788
|
|
|
"\x05value\x18\x02 \x01(\v2\x19.base.v1.StringArrayValueR\x05value:\x028\x01\"\xbb\x02\n" + |
3789
|
|
|
"%PermissionEntityFilterRequestMetadata\x12&\n" + |
3790
|
|
|
"\x0eschema_version\x18\x01 \x01(\tR\x0eschema_version\x12\x8a\x01\n" + |
3791
|
|
|
"\n" + |
3792
|
|
|
"snap_token\x18\x02 \x01(\tBj\x92Ag2eThe snap token to avoid stale cache, see more details on [Snap Tokens](../../operations/snap-tokens).R\n" + |
3793
|
|
|
"snap_token\x12]\n" + |
3794
|
|
|
"\x05depth\x18\x03 \x01(\x05BG\x92A=2;Query limit when if recursive database queries got in loop.\xfaB\x04\x1a\x02(\x03R\x05depth\"\xa6\x06\n" + |
3795
|
|
|
"\x1ePermissionLookupSubjectRequest\x12\xaa\x02\n" + |
3796
|
|
|
"\ttenant_id\x18\x01 \x01(\tB\x8b\x02\x92A\xd9\x012\xd6\x01Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes.\xfaB+r)(\x80\x012!^([a-zA-Z0-9_\\-@\\.:+]{1,128}|\\*)$\xd0\x01\x00R\ttenant_id\x12U\n" + |
3797
|
|
|
"\bmetadata\x18\x02 \x01(\v2/.base.v1.PermissionLookupSubjectRequestMetadataB\b\xfaB\x05\x8a\x01\x02\x10\x01R\bmetadata\x121\n" + |
3798
|
|
|
"\x06entity\x18\x03 \x01(\v2\x0f.base.v1.EntityB\b\xfaB\x05\x8a\x01\x02\x10\x01R\x06entity\x12=\n" + |
3799
|
|
|
"\n" + |
3800
|
|
|
"permission\x18\x04 \x01(\tB\x1d\xfaB\x1ar\x18(@2\x11^[a-zA-Z_]{1,64}$\xd0\x01\x00R\n" + |
3801
|
|
|
"permission\x12R\n" + |
3802
|
|
|
"\x11subject_reference\x18\x05 \x01(\v2\x1a.base.v1.RelationReferenceB\b\xfaB\x05\x8a\x01\x02\x10\x01R\x11subject_reference\x12*\n" + |
3803
|
|
|
"\acontext\x18\x06 \x01(\v2\x10.base.v1.ContextR\acontext\x12/\n" + |
3804
|
|
|
"\targuments\x18\a \x03(\v2\x11.base.v1.ArgumentR\targuments\x12'\n" + |
3805
|
|
|
"\tpage_size\x18\b \x01(\rB\t\xfaB\x06*\x04(\x01@\x01R\tpage_size\x124\n" + |
3806
|
|
|
"\x10continuous_token\x18\t \x01(\tB\b\xfaB\x05r\x03\xd0\x01\x01R\x10continuous_token\"\xbc\x02\n" + |
3807
|
|
|
"&PermissionLookupSubjectRequestMetadata\x12&\n" + |
3808
|
|
|
"\x0eschema_version\x18\x01 \x01(\tR\x0eschema_version\x12\x8a\x01\n" + |
3809
|
|
|
"\n" + |
3810
|
|
|
"snap_token\x18\x02 \x01(\tBj\x92Ag2eThe snap token to avoid stale cache, see more details on [Snap Tokens](../../operations/snap-tokens).R\n" + |
3811
|
|
|
"snap_token\x12]\n" + |
3812
|
|
|
"\x05depth\x18\x03 \x01(\x05BG\x92A=2;Query limit when if recursive database queries got in loop.\xfaB\x04\x1a\x02(\x03R\x05depth\"o\n" + |
3813
|
|
|
"\x1fPermissionLookupSubjectResponse\x12 \n" + |
3814
|
|
|
"\vsubject_ids\x18\x01 \x03(\tR\vsubject_ids\x12*\n" + |
3815
|
|
|
"\x10continuous_token\x18\x02 \x01(\tR\x10continuous_token\"\xc1\x04\n" + |
3816
|
|
|
"\"PermissionSubjectPermissionRequest\x12\xaa\x02\n" + |
3817
|
|
|
"\ttenant_id\x18\x01 \x01(\tB\x8b\x02\x92A\xd9\x012\xd6\x01Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes.\xfaB+r)(\x80\x012!^([a-zA-Z0-9_\\-@\\.:+]{1,128}|\\*)$\xd0\x01\x00R\ttenant_id\x12Y\n" + |
3818
|
|
|
"\bmetadata\x18\x02 \x01(\v23.base.v1.PermissionSubjectPermissionRequestMetadataB\b\xfaB\x05\x8a\x01\x02\x10\x01R\bmetadata\x121\n" + |
3819
|
|
|
"\x06entity\x18\x03 \x01(\v2\x0f.base.v1.EntityB\b\xfaB\x05\x8a\x01\x02\x10\x01R\x06entity\x124\n" + |
3820
|
|
|
"\asubject\x18\x04 \x01(\v2\x10.base.v1.SubjectB\b\xfaB\x05\x8a\x01\x02\x10\x01R\asubject\x12*\n" + |
3821
|
|
|
"\acontext\x18\x05 \x01(\v2\x10.base.v1.ContextR\acontext\"\xea\x02\n" + |
3822
|
|
|
"*PermissionSubjectPermissionRequestMetadata\x12&\n" + |
3823
|
|
|
"\x0eschema_version\x18\x01 \x01(\tR\x0eschema_version\x12\x8a\x01\n" + |
3824
|
|
|
"\n" + |
3825
|
|
|
"snap_token\x18\x02 \x01(\tBj\x92Ag2eThe snap token to avoid stale cache, see more details on [Snap Tokens](../../operations/snap-tokens).R\n" + |
3826
|
|
|
"snap_token\x12(\n" + |
3827
|
|
|
"\x0fonly_permission\x18\x03 \x01(\bR\x0fonly_permission\x12]\n" + |
3828
|
|
|
"\x05depth\x18\x04 \x01(\x05BG\x92A=2;Query limit when if recursive database queries got in loop.\xfaB\x04\x1a\x02(\x03R\x05depth\"\xcc\x01\n" + |
3829
|
|
|
"#PermissionSubjectPermissionResponse\x12S\n" + |
3830
|
|
|
"\aresults\x18\x01 \x03(\v29.base.v1.PermissionSubjectPermissionResponse.ResultsEntryR\aresults\x1aP\n" + |
3831
|
|
|
"\fResultsEntry\x12\x10\n" + |
3832
|
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12*\n" + |
3833
|
|
|
"\x05value\x18\x02 \x01(\x0e2\x14.base.v1.CheckResultR\x05value:\x028\x01\"\xc8\x03\n" + |
3834
|
|
|
"\fWatchRequest\x12\xaa\x02\n" + |
3835
|
|
|
"\ttenant_id\x18\x01 \x01(\tB\x8b\x02\x92A\xd9\x012\xd6\x01Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes.\xfaB+r)(\x80\x012!^([a-zA-Z0-9_\\-@\\.:+]{1,128}|\\*)$\xd0\x01\x00R\ttenant_id\x12\x8a\x01\n" + |
3836
|
|
|
"\n" + |
3837
|
|
|
"snap_token\x18\x02 \x01(\tBj\x92Ag2eThe snap token to avoid stale cache, see more details on [Snap Tokens](../../operations/snap-tokens).R\n" + |
3838
|
|
|
"snap_token\"?\n" + |
3839
|
|
|
"\rWatchResponse\x12.\n" + |
3840
|
|
|
"\achanges\x18\x01 \x01(\v2\x14.base.v1.DataChangesR\achanges\"\xd9\x02\n" + |
3841
|
|
|
"\x12SchemaWriteRequest\x12\xaa\x02\n" + |
3842
|
|
|
"\ttenant_id\x18\x01 \x01(\tB\x8b\x02\x92A\xd9\x012\xd6\x01Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes.\xfaB+r)(\x80\x012!^([a-zA-Z0-9_\\-@\\.:+]{1,128}|\\*)$\xd0\x01\x00R\ttenant_id\x12\x16\n" + |
3843
|
|
|
"\x06schema\x18\x02 \x01(\tR\x06schema\"=\n" + |
3844
|
|
|
"\x13SchemaWriteResponse\x12&\n" + |
3845
|
|
|
"\x0eschema_version\x18\x01 \x01(\tR\x0eschema_version\"\xd9\x02\n" + |
3846
|
|
|
"\x19SchemaPartialWriteRequest\x12L\n" + |
3847
|
|
|
"\ttenant_id\x18\x01 \x01(\tB.\xfaB+r)(\x80\x012!^([a-zA-Z0-9_\\-@\\.:+]{1,128}|\\*)$\xd0\x01\x00R\ttenant_id\x12P\n" + |
3848
|
|
|
"\bmetadata\x18\x02 \x01(\v2*.base.v1.SchemaPartialWriteRequestMetadataB\b\xfaB\x05\x8a\x01\x02\x10\x01R\bmetadata\x12L\n" + |
3849
|
|
|
"\bpartials\x18\x03 \x03(\v20.base.v1.SchemaPartialWriteRequest.PartialsEntryR\bpartials\x1aN\n" + |
3850
|
|
|
"\rPartialsEntry\x12\x10\n" + |
3851
|
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12'\n" + |
3852
|
|
|
"\x05value\x18\x02 \x01(\v2\x11.base.v1.PartialsR\x05value:\x028\x01\"K\n" + |
3853
|
|
|
"!SchemaPartialWriteRequestMetadata\x12&\n" + |
3854
|
|
|
"\x0eschema_version\x18\x01 \x01(\tR\x0eschema_version\"D\n" + |
3855
|
|
|
"\x1aSchemaPartialWriteResponse\x12&\n" + |
3856
|
|
|
"\x0eschema_version\x18\x01 \x01(\tR\x0eschema_version\"\x8a\x03\n" + |
3857
|
|
|
"\x11SchemaReadRequest\x12\xaa\x02\n" + |
3858
|
|
|
"\ttenant_id\x18\x01 \x01(\tB\x8b\x02\x92A\xd9\x012\xd6\x01Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes.\xfaB+r)(\x80\x012!^([a-zA-Z0-9_\\-@\\.:+]{1,128}|\\*)$\xd0\x01\x00R\ttenant_id\x12H\n" + |
3859
|
|
|
"\bmetadata\x18\x02 \x01(\v2\".base.v1.SchemaReadRequestMetadataB\b\xfaB\x05\x8a\x01\x02\x10\x01R\bmetadata\"C\n" + |
3860
|
|
|
"\x19SchemaReadRequestMetadata\x12&\n" + |
3861
|
|
|
"\x0eschema_version\x18\x01 \x01(\tR\x0eschema_version\"G\n" + |
3862
|
|
|
"\x12SchemaReadResponse\x121\n" + |
3863
|
|
|
"\x06schema\x18\x01 \x01(\v2\x19.base.v1.SchemaDefinitionR\x06schema\"\x9f\x03\n" + |
3864
|
|
|
"\x11SchemaListRequest\x12\xaa\x02\n" + |
3865
|
|
|
"\ttenant_id\x18\x01 \x01(\tB\x8b\x02\x92A\xd9\x012\xd6\x01Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes.\xfaB+r)(\x80\x012!^([a-zA-Z0-9_\\-@\\.:+]{1,128}|\\*)$\xd0\x01\x00R\ttenant_id\x12'\n" + |
3866
|
|
|
"\tpage_size\x18\x02 \x01(\rB\t\xfaB\x06*\x04(\x01@\x01R\tpage_size\x124\n" + |
3867
|
|
|
"\x10continuous_token\x18\x03 \x01(\tB\b\xfaB\x05r\x03\xd0\x01\x01R\x10continuous_token\"\x83\x01\n" + |
3868
|
|
|
"\x12SchemaListResponse\x12\x12\n" + |
3869
|
|
|
"\x04head\x18\x01 \x01(\tR\x04head\x12-\n" + |
3870
|
|
|
"\aschemas\x18\x02 \x03(\v2\x13.base.v1.SchemaListR\aschemas\x12*\n" + |
3871
|
|
|
"\x10continuous_token\x18\x03 \x01(\tR\x10continuous_token\"F\n" + |
3872
|
|
|
"\n" + |
3873
|
|
|
"SchemaList\x12\x18\n" + |
3874
|
|
|
"\aversion\x18\x01 \x01(\tR\aversion\x12\x1e\n" + |
3875
|
|
|
"\n" + |
3876
|
|
|
"created_at\x18\x02 \x01(\tR\n" + |
3877
|
|
|
"created_at\"\x86\x04\n" + |
3878
|
|
|
"\x10DataWriteRequest\x12\xaa\x02\n" + |
3879
|
|
|
"\ttenant_id\x18\x01 \x01(\tB\x8b\x02\x92A\xd9\x012\xd6\x01Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes.\xfaB+r)(\x80\x012!^([a-zA-Z0-9_\\-@\\.:+]{1,128}|\\*)$\xd0\x01\x00R\ttenant_id\x12G\n" + |
3880
|
|
|
"\bmetadata\x18\x02 \x01(\v2!.base.v1.DataWriteRequestMetadataB\b\xfaB\x05\x8a\x01\x02\x10\x01R\bmetadata\x127\n" + |
3881
|
|
|
"\x06tuples\x18\x03 \x03(\v2\x0e.base.v1.TupleB\x0f\xfaB\f\x92\x01\t\b\x00\"\x05\x8a\x01\x02\x10\x01R\x06tuples\x12C\n" + |
3882
|
|
|
"\n" + |
3883
|
|
|
"attributes\x18\x04 \x03(\v2\x12.base.v1.AttributeB\x0f\xfaB\f\x92\x01\t\b\x00\"\x05\x8a\x01\x02\x10\x01R\n" + |
3884
|
|
|
"attributes\"B\n" + |
3885
|
|
|
"\x18DataWriteRequestMetadata\x12&\n" + |
3886
|
|
|
"\x0eschema_version\x18\x01 \x01(\tR\x0eschema_version\"\xa0\x01\n" + |
3887
|
|
|
"\x11DataWriteResponse\x12\x8a\x01\n" + |
3888
|
|
|
"\n" + |
3889
|
|
|
"snap_token\x18\x01 \x01(\tBj\x92Ag2eThe snap token to avoid stale cache, see more details on [Snap Tokens](../../operations/snap-tokens).R\n" + |
3890
|
|
|
"snap_token\"\xd1\x03\n" + |
3891
|
|
|
"\x18RelationshipWriteRequest\x12\xaa\x02\n" + |
3892
|
|
|
"\ttenant_id\x18\x01 \x01(\tB\x8b\x02\x92A\xd9\x012\xd6\x01Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes.\xfaB+r)(\x80\x012!^([a-zA-Z0-9_\\-@\\.:+]{1,128}|\\*)$\xd0\x01\x00R\ttenant_id\x12O\n" + |
3893
|
|
|
"\bmetadata\x18\x02 \x01(\v2).base.v1.RelationshipWriteRequestMetadataB\b\xfaB\x05\x8a\x01\x02\x10\x01R\bmetadata\x127\n" + |
3894
|
|
|
"\x06tuples\x18\x03 \x03(\v2\x0e.base.v1.TupleB\x0f\xfaB\f\x92\x01\t\b\x01\"\x05\x8a\x01\x02\x10\x01R\x06tuples\"J\n" + |
3895
|
|
|
" RelationshipWriteRequestMetadata\x12&\n" + |
3896
|
|
|
"\x0eschema_version\x18\x01 \x01(\tR\x0eschema_version\"\xa7\x01\n" + |
3897
|
|
|
"\x19RelationshipWriteResponse\x12\x89\x01\n" + |
3898
|
|
|
"\n" + |
3899
|
|
|
"snap_token\x18\x01 \x01(\tBi\x92Af2dThe snap token to avoid stale cache, see more details on [Snap Tokens](../../operations/snap-tokens)R\n" + |
3900
|
|
|
"snap_token\"\xad\x04\n" + |
3901
|
|
|
"\x17RelationshipReadRequest\x12\xaa\x02\n" + |
3902
|
|
|
"\ttenant_id\x18\x01 \x01(\tB\x8b\x02\x92A\xd9\x012\xd6\x01Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes.\xfaB+r)(\x80\x012!^([a-zA-Z0-9_\\-@\\.:+]{1,128}|\\*)$\xd0\x01\x00R\ttenant_id\x12N\n" + |
3903
|
|
|
"\bmetadata\x18\x02 \x01(\v2(.base.v1.RelationshipReadRequestMetadataB\b\xfaB\x05\x8a\x01\x02\x10\x01R\bmetadata\x126\n" + |
3904
|
|
|
"\x06filter\x18\x03 \x01(\v2\x14.base.v1.TupleFilterB\b\xfaB\x05\x8a\x01\x02\x10\x01R\x06filter\x12'\n" + |
3905
|
|
|
"\tpage_size\x18\x04 \x01(\rB\t\xfaB\x06*\x04(\x01@\x01R\tpage_size\x124\n" + |
3906
|
|
|
"\x10continuous_token\x18\x05 \x01(\tB\b\xfaB\x05r\x03\xd0\x01\x01R\x10continuous_token\"\xad\x01\n" + |
3907
|
|
|
"\x1fRelationshipReadRequestMetadata\x12\x89\x01\n" + |
3908
|
|
|
"\n" + |
3909
|
|
|
"snap_token\x18\x01 \x01(\tBi\x92Af2dThe snap token to avoid stale cache, see more details on [Snap Tokens](../../operations/snap-tokens)R\n" + |
3910
|
|
|
"snap_token\"n\n" + |
3911
|
|
|
"\x18RelationshipReadResponse\x12&\n" + |
3912
|
|
|
"\x06tuples\x18\x01 \x03(\v2\x0e.base.v1.TupleR\x06tuples\x12*\n" + |
3913
|
|
|
"\x10continuous_token\x18\x02 \x01(\tR\x10continuous_token\"\xab\x04\n" + |
3914
|
|
|
"\x14AttributeReadRequest\x12\xaa\x02\n" + |
3915
|
|
|
"\ttenant_id\x18\x01 \x01(\tB\x8b\x02\x92A\xd9\x012\xd6\x01Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes.\xfaB+r)(\x80\x012!^([a-zA-Z0-9_\\-@\\.:+]{1,128}|\\*)$\xd0\x01\x00R\ttenant_id\x12K\n" + |
3916
|
|
|
"\bmetadata\x18\x02 \x01(\v2%.base.v1.AttributeReadRequestMetadataB\b\xfaB\x05\x8a\x01\x02\x10\x01R\bmetadata\x12:\n" + |
3917
|
|
|
"\x06filter\x18\x03 \x01(\v2\x18.base.v1.AttributeFilterB\b\xfaB\x05\x8a\x01\x02\x10\x01R\x06filter\x12'\n" + |
3918
|
|
|
"\tpage_size\x18\x04 \x01(\rB\t\xfaB\x06*\x04(\x01@\x01R\tpage_size\x124\n" + |
3919
|
|
|
"\x10continuous_token\x18\x05 \x01(\tB\b\xfaB\x05r\x03\xd0\x01\x01R\x10continuous_token\"\xaa\x01\n" + |
3920
|
|
|
"\x1cAttributeReadRequestMetadata\x12\x89\x01\n" + |
3921
|
|
|
"\n" + |
3922
|
|
|
"snap_token\x18\x01 \x01(\tBi\x92Af2dThe snap token to avoid stale cache, see more details on [Snap Tokens](../../operations/snap-tokens)R\n" + |
3923
|
|
|
"snap_token\"w\n" + |
3924
|
|
|
"\x15AttributeReadResponse\x122\n" + |
3925
|
|
|
"\n" + |
3926
|
|
|
"attributes\x18\x01 \x03(\v2\x12.base.v1.AttributeR\n" + |
3927
|
|
|
"attributes\x12*\n" + |
3928
|
|
|
"\x10continuous_token\x18\x02 \x01(\tR\x10continuous_token\"\xd4\x03\n" + |
3929
|
|
|
"\x11DataDeleteRequest\x12\xaa\x02\n" + |
3930
|
|
|
"\ttenant_id\x18\x01 \x01(\tB\x8b\x02\x92A\xd9\x012\xd6\x01Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes.\xfaB+r)(\x80\x012!^([a-zA-Z0-9_\\-@\\.:+]{1,128}|\\*)$\xd0\x01\x00R\ttenant_id\x12B\n" + |
3931
|
|
|
"\ftuple_filter\x18\x02 \x01(\v2\x14.base.v1.TupleFilterB\b\xfaB\x05\x8a\x01\x02\x10\x01R\ftuple_filter\x12N\n" + |
3932
|
|
|
"\x10attribute_filter\x18\x03 \x01(\v2\x18.base.v1.AttributeFilterB\b\xfaB\x05\x8a\x01\x02\x10\x01R\x10attribute_filter\"\xa0\x01\n" + |
3933
|
|
|
"\x12DataDeleteResponse\x12\x89\x01\n" + |
3934
|
|
|
"\n" + |
3935
|
|
|
"snap_token\x18\x01 \x01(\tBi\x92Af2dThe snap token to avoid stale cache, see more details on [Snap Tokens](../../operations/snap-tokens)R\n" + |
3936
|
|
|
"snap_token\"\xf6\x02\n" + |
3937
|
|
|
"\x19RelationshipDeleteRequest\x12\xaa\x02\n" + |
3938
|
|
|
"\ttenant_id\x18\x01 \x01(\tB\x8b\x02\x92A\xd9\x012\xd6\x01Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes.\xfaB+r)(\x80\x012!^([a-zA-Z0-9_\\-@\\.:+]{1,128}|\\*)$\xd0\x01\x00R\ttenant_id\x12,\n" + |
3939
|
|
|
"\x06filter\x18\x02 \x01(\v2\x14.base.v1.TupleFilterR\x06filter\"\xa8\x01\n" + |
3940
|
|
|
"\x1aRelationshipDeleteResponse\x12\x89\x01\n" + |
3941
|
|
|
"\n" + |
3942
|
|
|
"snap_token\x18\x01 \x01(\tBi\x92Af2dThe snap token to avoid stale cache, see more details on [Snap Tokens](../../operations/snap-tokens)R\n" + |
3943
|
|
|
"snap_token\"\xd9\x03\n" + |
3944
|
|
|
"\x10BundleRunRequest\x12\xaa\x02\n" + |
3945
|
|
|
"\ttenant_id\x18\x01 \x01(\tB\x8b\x02\x92A\xd9\x012\xd6\x01Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes.\xfaB+r)(\x80\x012!^([a-zA-Z0-9_\\-@\\.:+]{1,128}|\\*)$\xd0\x01\x00R\ttenant_id\x12\x12\n" + |
3946
|
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12F\n" + |
3947
|
|
|
"\targuments\x18\x03 \x03(\v2(.base.v1.BundleRunRequest.ArgumentsEntryR\targuments\x1a<\n" + |
3948
|
|
|
"\x0eArgumentsEntry\x12\x10\n" + |
3949
|
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + |
3950
|
|
|
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\x9f\x01\n" + |
3951
|
|
|
"\x11BundleRunResponse\x12\x89\x01\n" + |
3952
|
|
|
"\n" + |
3953
|
|
|
"snap_token\x18\x01 \x01(\tBi\x92Af2dThe snap token to avoid stale cache, see more details on [Snap Tokens](../../operations/snap-tokens)R\n" + |
3954
|
|
|
"snap_token\"\xf0\x02\n" + |
3955
|
|
|
"\x12BundleWriteRequest\x12\xaa\x02\n" + |
3956
|
|
|
"\ttenant_id\x18\x01 \x01(\tB\x8b\x02\x92A\xd9\x012\xd6\x01Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes.\xfaB+r)(\x80\x012!^([a-zA-Z0-9_\\-@\\.:+]{1,128}|\\*)$\xd0\x01\x00R\ttenant_id\x12-\n" + |
3957
|
|
|
"\abundles\x18\x02 \x03(\v2\x13.base.v1.DataBundleR\abundles\"+\n" + |
3958
|
|
|
"\x13BundleWriteResponse\x12\x14\n" + |
3959
|
|
|
"\x05names\x18\x01 \x03(\tR\x05names\"\xd4\x02\n" + |
3960
|
|
|
"\x11BundleReadRequest\x12\xaa\x02\n" + |
3961
|
|
|
"\ttenant_id\x18\x01 \x01(\tB\x8b\x02\x92A\xd9\x012\xd6\x01Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes.\xfaB+r)(\x80\x012!^([a-zA-Z0-9_\\-@\\.:+]{1,128}|\\*)$\xd0\x01\x00R\ttenant_id\x12\x12\n" + |
3962
|
|
|
"\x04name\x18\x02 \x01(\tR\x04name\"A\n" + |
3963
|
|
|
"\x12BundleReadResponse\x12+\n" + |
3964
|
|
|
"\x06bundle\x18\x01 \x01(\v2\x13.base.v1.DataBundleR\x06bundle\"\xd6\x02\n" + |
3965
|
|
|
"\x13BundleDeleteRequest\x12\xaa\x02\n" + |
3966
|
|
|
"\ttenant_id\x18\x01 \x01(\tB\x8b\x02\x92A\xd9\x012\xd6\x01Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes.\xfaB+r)(\x80\x012!^([a-zA-Z0-9_\\-@\\.:+]{1,128}|\\*)$\xd0\x01\x00R\ttenant_id\x12\x12\n" + |
3967
|
|
|
"\x04name\x18\x02 \x01(\tR\x04name\"*\n" + |
3968
|
|
|
"\x14BundleDeleteResponse\x12\x12\n" + |
3969
|
|
|
"\x04name\x18\x01 \x01(\tR\x04name\"a\n" + |
3970
|
|
|
"\x13TenantCreateRequest\x12*\n" + |
3971
|
|
|
"\x02id\x18\x01 \x01(\tB\x1a\xfaB\x17r\x15(@2\x0e[a-zA-Z0-9-,]+\xd0\x01\x00R\x02id\x12\x1e\n" + |
3972
|
|
|
"\x04name\x18\x02 \x01(\tB\n" + |
3973
|
|
|
"\xfaB\ar\x05(@\xd0\x01\x00R\x04name\"?\n" + |
3974
|
|
|
"\x14TenantCreateResponse\x12'\n" + |
3975
|
|
|
"\x06tenant\x18\x01 \x01(\v2\x0f.base.v1.TenantR\x06tenant\"/\n" + |
3976
|
|
|
"\x13TenantDeleteRequest\x12\x18\n" + |
3977
|
|
|
"\x02id\x18\x01 \x01(\tB\b\xfaB\x05r\x03\xd0\x01\x00R\x02id\"4\n" + |
3978
|
|
|
"\x14TenantDeleteResponse\x12\x1c\n" + |
3979
|
|
|
"\ttenant_id\x18\x01 \x01(\tR\ttenant_id\"r\n" + |
3980
|
|
|
"\x11TenantListRequest\x12'\n" + |
3981
|
|
|
"\tpage_size\x18\x01 \x01(\rB\t\xfaB\x06*\x04(\x01@\x01R\tpage_size\x124\n" + |
3982
|
|
|
"\x10continuous_token\x18\x02 \x01(\tB\b\xfaB\x05r\x03\xd0\x01\x01R\x10continuous_token\"k\n" + |
3983
|
|
|
"\x12TenantListResponse\x12)\n" + |
3984
|
|
|
"\atenants\x18\x01 \x03(\v2\x0f.base.v1.TenantR\atenants\x12*\n" + |
3985
|
|
|
"\x10continuous_token\x18\x02 \x01(\tR\x10continuous_token2\x93L\n" + |
3986
|
|
|
"\n" + |
3987
|
|
|
"Permission\x12\xe8\r\n" + |
3988
|
|
|
"\x05Check\x12\x1f.base.v1.PermissionCheckRequest\x1a .base.v1.PermissionCheckResponse\"\x9b\r\x92A\xe3\f\n" + |
3989
|
|
|
"\n" + |
3990
|
|
|
"Permission\x12\tcheck api*\x11permissions.checkj\xb6\f\n" + |
3991
|
|
|
"\rx-codeSamples\x12\xa4\f2\xa1\f\n" + |
3992
|
|
|
"\xc0\x04*\xbd\x04\n" + |
3993
|
|
|
"\r\n" + |
3994
|
|
|
"\x05label\x12\x04\x1a\x02go\n" + |
3995
|
|
|
"\f\n" + |
3996
|
|
|
"\x04lang\x12\x04\x1a\x02go\n" + |
3997
|
|
|
"\x9d\x04\n" + |
3998
|
|
|
"\x06source\x12\x92\x04\x1a\x8f\x04cr, err := client.Permission.Check(context.Background(), &v1.PermissionCheckRequest {\n" + |
3999
|
|
|
" TenantId: \"t1\",\n" + |
4000
|
|
|
" Metadata: &v1.PermissionCheckRequestMetadata {\n" + |
4001
|
|
|
" SnapToken: \"\",\n" + |
4002
|
|
|
" SchemaVersion: \"\",\n" + |
4003
|
|
|
" Depth: 20,\n" + |
4004
|
|
|
" },\n" + |
4005
|
|
|
" Entity: &v1.Entity {\n" + |
4006
|
|
|
" Type: \"repository\",\n" + |
4007
|
|
|
" Id: \"1\",\n" + |
4008
|
|
|
" },\n" + |
4009
|
|
|
" Permission: \"edit\",\n" + |
4010
|
|
|
" Subject: &v1.Subject {\n" + |
4011
|
|
|
" Type: \"user\",\n" + |
4012
|
|
|
" Id: \"1\",\n" + |
4013
|
|
|
" },\n" + |
4014
|
|
|
"})\n" + |
4015
|
|
|
"if cr.Can == v1.PermissionCheckResponse_Result_RESULT_ALLOWED {\n" + |
4016
|
|
|
" // RESULT_ALLOWED\n" + |
4017
|
|
|
"} else {\n" + |
4018
|
|
|
" // RESULT_DENIED\n" + |
4019
|
|
|
"}\n" + |
4020
|
|
|
"\x9b\x04*\x98\x04\n" + |
4021
|
|
|
"\x0f\n" + |
4022
|
|
|
"\x05label\x12\x06\x1a\x04node\n" + |
4023
|
|
|
"\x14\n" + |
4024
|
|
|
"\x04lang\x12\f\x1a\n" + |
4025
|
|
|
"javascript\n" + |
4026
|
|
|
"\xee\x03\n" + |
4027
|
|
|
"\x06source\x12\xe3\x03\x1a\xe0\x03client.permission.check({\n" + |
4028
|
|
|
" tenantId: \"t1\", \n" + |
4029
|
|
|
" metadata: {\n" + |
4030
|
|
|
" snapToken: \"\",\n" + |
4031
|
|
|
" schemaVersion: \"\",\n" + |
4032
|
|
|
" depth: 20\n" + |
4033
|
|
|
" },\n" + |
4034
|
|
|
" entity: {\n" + |
4035
|
|
|
" type: \"repository\",\n" + |
4036
|
|
|
" id: \"1\"\n" + |
4037
|
|
|
" },\n" + |
4038
|
|
|
" permission: \"edit\",\n" + |
4039
|
|
|
" subject: {\n" + |
4040
|
|
|
" type: \"user\",\n" + |
4041
|
|
|
" id: \"1\"\n" + |
4042
|
|
|
" }\n" + |
4043
|
|
|
"}).then((response) => {\n" + |
4044
|
|
|
" if (response.can === PermissionCheckResponse_Result.RESULT_ALLOWED) {\n" + |
4045
|
|
|
" console.log(\"RESULT_ALLOWED\")\n" + |
4046
|
|
|
" } else {\n" + |
4047
|
|
|
" console.log(\"RESULT_DENIED\")\n" + |
4048
|
|
|
" }\n" + |
4049
|
|
|
"})\n" + |
4050
|
|
|
"\xbd\x03*\xba\x03\n" + |
4051
|
|
|
"\x0f\n" + |
4052
|
|
|
"\x05label\x12\x06\x1a\x04cURL\n" + |
4053
|
|
|
"\x0e\n" + |
4054
|
|
|
"\x04lang\x12\x06\x1a\x04curl\n" + |
4055
|
|
|
"\x96\x03\n" + |
4056
|
|
|
"\x06source\x12\x8b\x03\x1a\x88\x03curl --location --request POST 'localhost:3476/v1/tenants/{tenant_id}/permissions/check' \\\n" + |
4057
|
|
|
"--header 'Content-Type: application/json' \\\n" + |
4058
|
|
|
"--data-raw '{\n" + |
4059
|
|
|
" \"metadata\": {\n" + |
4060
|
|
|
" \"snap_token\": \"\",\n" + |
4061
|
|
|
" \"schema_version\": \"\",\n" + |
4062
|
|
|
" \"depth\": 20\n" + |
4063
|
|
|
" },\n" + |
4064
|
|
|
" \"entity\": {\n" + |
4065
|
|
|
" \"type\": \"repository\",\n" + |
4066
|
|
|
" \"id\": \"1\"\n" + |
4067
|
|
|
" },\n" + |
4068
|
|
|
" \"permission\": \"edit\",\n" + |
4069
|
|
|
" \"subject\": {\n" + |
4070
|
|
|
" \"type\": \"user\",\n" + |
4071
|
|
|
" \"id\": \"1\",\n" + |
4072
|
|
|
" \"relation\": \"\"\n" + |
4073
|
|
|
" }\n" + |
4074
|
|
|
"}'\x82\xd3\xe4\x93\x02.:\x01*\")/v1/tenants/{tenant_id}/permissions/check\x12\xb4\t\n" + |
4075
|
|
|
"\x06Expand\x12 .base.v1.PermissionExpandRequest\x1a!.base.v1.PermissionExpandResponse\"\xe4\b\x92A\xab\b\n" + |
4076
|
|
|
"\n" + |
4077
|
|
|
"Permission\x12\n" + |
4078
|
|
|
"expand api*\x12permissions.expandj\xfc\a\n" + |
4079
|
|
|
"\rx-codeSamples\x12\xea\a2\xe7\a\n" + |
4080
|
|
|
"\xee\x02*\xeb\x02\n" + |
4081
|
|
|
"\r\n" + |
4082
|
|
|
"\x05label\x12\x04\x1a\x02go\n" + |
4083
|
|
|
"\f\n" + |
4084
|
|
|
"\x04lang\x12\x04\x1a\x02go\n" + |
4085
|
|
|
"\xcb\x02\n" + |
4086
|
|
|
"\x06source\x12\xc0\x02\x1a\xbd\x02cr, err := client.Permission.Expand(context.Background(), &v1.PermissionExpandRequest{\n" + |
4087
|
|
|
" TenantId: \"t1\",\n" + |
4088
|
|
|
" Metadata: &v1.PermissionExpandRequestMetadata{\n" + |
4089
|
|
|
" SnapToken: \"\",\n" + |
4090
|
|
|
" SchemaVersion: \"\",\n" + |
4091
|
|
|
" },\n" + |
4092
|
|
|
" Entity: &v1.Entity{\n" + |
4093
|
|
|
" Type: \"repository\",\n" + |
4094
|
|
|
" Id: \"1\",\n" + |
4095
|
|
|
" },\n" + |
4096
|
|
|
" Permission: \"push\",\n" + |
4097
|
|
|
"})\n" + |
4098
|
|
|
"\x8d\x02*\x8a\x02\n" + |
4099
|
|
|
"\x0f\n" + |
4100
|
|
|
"\x05label\x12\x06\x1a\x04node\n" + |
4101
|
|
|
"\x14\n" + |
4102
|
|
|
"\x04lang\x12\f\x1a\n" + |
4103
|
|
|
"javascript\n" + |
4104
|
|
|
"\xe0\x01\n" + |
4105
|
|
|
"\x06source\x12\xd5\x01\x1a\xd2\x01client.permission.expand({\n" + |
4106
|
|
|
" tenantId: \"t1\",\n" + |
4107
|
|
|
" metadata: {\n" + |
4108
|
|
|
" snapToken: \"\",\n" + |
4109
|
|
|
" schemaVersion: \"\"\n" + |
4110
|
|
|
" },\n" + |
4111
|
|
|
" entity: {\n" + |
4112
|
|
|
" type: \"repository\",\n" + |
4113
|
|
|
" id: \"1\"\n" + |
4114
|
|
|
" },\n" + |
4115
|
|
|
" permission: \"push\",\n" + |
4116
|
|
|
"})\n" + |
4117
|
|
|
"\xe3\x02*\xe0\x02\n" + |
4118
|
|
|
"\x0f\n" + |
4119
|
|
|
"\x05label\x12\x06\x1a\x04cURL\n" + |
4120
|
|
|
"\x0e\n" + |
4121
|
|
|
"\x04lang\x12\x06\x1a\x04curl\n" + |
4122
|
|
|
"\xbc\x02\n" + |
4123
|
|
|
"\x06source\x12\xb1\x02\x1a\xae\x02curl --location --request POST 'localhost:3476/v1/tenants/{tenant_id}/permissions/expand' \\\n" + |
4124
|
|
|
"--header 'Content-Type: application/json' \\\n" + |
4125
|
|
|
"--data-raw '{\n" + |
4126
|
|
|
" \"metadata\": {\n" + |
4127
|
|
|
" \"schema_version\": \"\",\n" + |
4128
|
|
|
" \"snap_token\": \"\"\n" + |
4129
|
|
|
" },\n" + |
4130
|
|
|
" \"entity\": {\n" + |
4131
|
|
|
" \"type\": \"repository\",\n" + |
4132
|
|
|
" \"id\": \"1\"\n" + |
4133
|
|
|
" },\n" + |
4134
|
|
|
" \"permission\": \"push\"\n" + |
4135
|
|
|
"}'\x82\xd3\xe4\x93\x02/:\x01*\"*/v1/tenants/{tenant_id}/permissions/expand\x12\xb2\f\n" + |
4136
|
|
|
"\fLookupEntity\x12&.base.v1.PermissionLookupEntityRequest\x1a'.base.v1.PermissionLookupEntityResponse\"\xd0\v\x92A\x90\v\n" + |
4137
|
|
|
"\n" + |
4138
|
|
|
"Permission\x12\rlookup entity*\x18permissions.lookupEntityj\xd8\n" + |
4139
|
|
|
"\n" + |
4140
|
|
|
"\rx-codeSamples\x12\xc6\n" + |
4141
|
|
|
"2\xc3\n" + |
4142
|
|
|
"\n" + |
4143
|
|
|
"\xd5\x03*\xd2\x03\n" + |
4144
|
|
|
"\r\n" + |
4145
|
|
|
"\x05label\x12\x04\x1a\x02go\n" + |
4146
|
|
|
"\f\n" + |
4147
|
|
|
"\x04lang\x12\x04\x1a\x02go\n" + |
4148
|
|
|
"\xb2\x03\n" + |
4149
|
|
|
"\x06source\x12\xa7\x03\x1a\xa4\x03cr, err := client.Permission.LookupEntity(context.Background(), &v1.PermissionLookupEntityRequest{\n" + |
4150
|
|
|
" TenantId: \"t1\",\n" + |
4151
|
|
|
" Metadata: &v1.PermissionLookupEntityRequestMetadata{\n" + |
4152
|
|
|
" SnapToken: \"\",\n" + |
4153
|
|
|
" SchemaVersion: \"\",\n" + |
4154
|
|
|
" Depth: 20,\n" + |
4155
|
|
|
" },\n" + |
4156
|
|
|
" EntityType: \"document\",\n" + |
4157
|
|
|
" Permission: \"edit\",\n" + |
4158
|
|
|
" Subject: &v1.Subject{\n" + |
4159
|
|
|
" Type: \"user\",\n" + |
4160
|
|
|
" Id: \"1\",\n" + |
4161
|
|
|
" }\n" + |
4162
|
|
|
" PageSize: 20,\n" + |
4163
|
|
|
" ContinuousToken: \"\",\n" + |
4164
|
|
|
"})\n" + |
4165
|
|
|
"\xa7\x03*\xa4\x03\n" + |
4166
|
|
|
"\x0f\n" + |
4167
|
|
|
"\x05label\x12\x06\x1a\x04node\n" + |
4168
|
|
|
"\x14\n" + |
4169
|
|
|
"\x04lang\x12\f\x1a\n" + |
4170
|
|
|
"javascript\n" + |
4171
|
|
|
"\xfa\x02\n" + |
4172
|
|
|
"\x06source\x12\xef\x02\x1a\xec\x02client.permission.lookupEntity({\n" + |
4173
|
|
|
" tenantId: \"t1\",\n" + |
4174
|
|
|
" metadata: {\n" + |
4175
|
|
|
" snapToken: \"\",\n" + |
4176
|
|
|
" schemaVersion: \"\",\n" + |
4177
|
|
|
" depth: 20\n" + |
4178
|
|
|
" },\n" + |
4179
|
|
|
" entity_type: \"document\",\n" + |
4180
|
|
|
" permission: \"edit\",\n" + |
4181
|
|
|
" subject: {\n" + |
4182
|
|
|
" type: \"user\",\n" + |
4183
|
|
|
" id: \"1\"\n" + |
4184
|
|
|
" },\n" + |
4185
|
|
|
" page_size: 20,\n" + |
4186
|
|
|
" continuous_token: \"\"\n" + |
4187
|
|
|
"}).then((response) => {\n" + |
4188
|
|
|
" console.log(response.entity_ids)\n" + |
4189
|
|
|
"})\n" + |
4190
|
|
|
"\xbe\x03*\xbb\x03\n" + |
4191
|
|
|
"\x0f\n" + |
4192
|
|
|
"\x05label\x12\x06\x1a\x04cURL\n" + |
4193
|
|
|
"\x0e\n" + |
4194
|
|
|
"\x04lang\x12\x06\x1a\x04curl\n" + |
4195
|
|
|
"\x97\x03\n" + |
4196
|
|
|
"\x06source\x12\x8c\x03\x1a\x89\x03curl --location --request POST 'localhost:3476/v1/tenants/{tenant_id}/permissions/lookup-entity' \\\n" + |
4197
|
|
|
"--header 'Content-Type: application/json' \\\n" + |
4198
|
|
|
"--data-raw '{\n" + |
4199
|
|
|
" \"metadata\":{\n" + |
4200
|
|
|
" \"snap_token\": \"\",\n" + |
4201
|
|
|
" \"schema_version\": \"\",\n" + |
4202
|
|
|
" \"depth\": 20\n" + |
4203
|
|
|
" },\n" + |
4204
|
|
|
" \"entity_type\": \"document\",\n" + |
4205
|
|
|
" \"permission\": \"edit\",\n" + |
4206
|
|
|
" \"subject\": {\n" + |
4207
|
|
|
" \"type\":\"user\",\n" + |
4208
|
|
|
" \"id\":\"1\"\n" + |
4209
|
|
|
" },\n" + |
4210
|
|
|
" \"page_size\": 20,\n" + |
4211
|
|
|
" \"continuous_token\": \"\",\n" + |
4212
|
|
|
"}'\x82\xd3\xe4\x93\x026:\x01*\"1/v1/tenants/{tenant_id}/permissions/lookup-entity\x12\xd0\r\n" + |
4213
|
|
|
"\x12LookupEntityStream\x12&.base.v1.PermissionLookupEntityRequest\x1a-.base.v1.PermissionLookupEntityStreamResponse\"\xe0\f\x92A\x99\f\n" + |
4214
|
|
|
"\n" + |
4215
|
|
|
"Permission\x12\x14lookup entity stream*\x1epermissions.lookupEntityStreamj\xd4\v\n" + |
4216
|
|
|
"\rx-codeSamples\x12\xc2\v2\xbf\v\n" + |
4217
|
|
|
"\xc8\x04*\xc5\x04\n" + |
4218
|
|
|
"\r\n" + |
4219
|
|
|
"\x05label\x12\x04\x1a\x02go\n" + |
4220
|
|
|
"\f\n" + |
4221
|
|
|
"\x04lang\x12\x04\x1a\x02go\n" + |
4222
|
|
|
"\xa5\x04\n" + |
4223
|
|
|
"\x06source\x12\x9a\x04\x1a\x97\x04str, err := client.Permission.LookupEntityStream(context.Background(), &v1.PermissionLookupEntityRequest{\n" + |
4224
|
|
|
" Metadata: &v1.PermissionLookupEntityRequestMetadata{\n" + |
4225
|
|
|
" SnapToken: \"\",\n" + |
4226
|
|
|
" SchemaVersion: \"\",\n" + |
4227
|
|
|
" Depth: 50,\n" + |
4228
|
|
|
" },\n" + |
4229
|
|
|
" EntityType: \"document\",\n" + |
4230
|
|
|
" Permission: \"view\",\n" + |
4231
|
|
|
" Subject: &v1.Subject{\n" + |
4232
|
|
|
" Type: \"user\",\n" + |
4233
|
|
|
" Id: \"1\",\n" + |
4234
|
|
|
" },\n" + |
4235
|
|
|
" PageSize: 20,\n" + |
4236
|
|
|
" ContinuousToken: \"\",\n" + |
4237
|
|
|
"})\n" + |
4238
|
|
|
"\n" + |
4239
|
|
|
"// handle stream response\n" + |
4240
|
|
|
"for {\n" + |
4241
|
|
|
" res, err := str.Recv()\n" + |
4242
|
|
|
"\n" + |
4243
|
|
|
" if err == io.EOF {\n" + |
4244
|
|
|
" break\n" + |
4245
|
|
|
" }\n" + |
4246
|
|
|
"\n" + |
4247
|
|
|
" // res.EntityId\n" + |
4248
|
|
|
"}\n" + |
4249
|
|
|
"\xf1\x06*\xee\x06\n" + |
4250
|
|
|
"\x0f\n" + |
4251
|
|
|
"\x05label\x12\x06\x1a\x04node\n" + |
4252
|
|
|
"\x14\n" + |
4253
|
|
|
"\x04lang\x12\f\x1a\n" + |
4254
|
|
|
"javascript\n" + |
4255
|
|
|
"\xc4\x06\n" + |
4256
|
|
|
"\x06source\x12\xb9\x06\x1a\xb6\x06const permify = require(\"@permify/permify-node\");\n" + |
4257
|
|
|
"const {PermissionLookupEntityStreamResponse} = require(\"@permify/permify-node/dist/src/grpc/generated/base/v1/service\");\n" + |
4258
|
|
|
"\n" + |
4259
|
|
|
"function main() {\n" + |
4260
|
|
|
" const client = new permify.grpc.newClient({\n" + |
4261
|
|
|
" endpoint: \"localhost:3478\",\n" + |
4262
|
|
|
" });\n" + |
4263
|
|
|
"\n" + |
4264
|
|
|
" let res = client.permission.lookupEntityStream({\n" + |
4265
|
|
|
" metadata: {\n" + |
4266
|
|
|
" snapToken: \"\",\n" + |
4267
|
|
|
" schemaVersion: \"\",\n" + |
4268
|
|
|
" depth: 20\n" + |
4269
|
|
|
" },\n" + |
4270
|
|
|
" entityType: \"document\",\n" + |
4271
|
|
|
" permission: \"view\",\n" + |
4272
|
|
|
" subject: {\n" + |
4273
|
|
|
" type: \"user\",\n" + |
4274
|
|
|
" id: \"1\"\n" + |
4275
|
|
|
" },\n" + |
4276
|
|
|
" page_size: 20,\n" + |
4277
|
|
|
" continuous_token: \"\"\n" + |
4278
|
|
|
" });\n" + |
4279
|
|
|
"\n" + |
4280
|
|
|
" handle(res);\n" + |
4281
|
|
|
"}\n" + |
4282
|
|
|
"\n" + |
4283
|
|
|
"async function handle(res: AsyncIterable<PermissionLookupEntityStreamResponse>) {\n" + |
4284
|
|
|
" for await (const response of res) {\n" + |
4285
|
|
|
" // response.entityId\n" + |
4286
|
|
|
" }\n" + |
4287
|
|
|
"}\x82\xd3\xe4\x93\x02=:\x01*\"8/v1/tenants/{tenant_id}/permissions/lookup-entity-stream0\x01\x12\xe3\r\n" + |
4288
|
|
|
"\rLookupSubject\x12'.base.v1.PermissionLookupSubjectRequest\x1a(.base.v1.PermissionLookupSubjectResponse\"\xfe\f\x92A\xbd\f\n" + |
4289
|
|
|
"\n" + |
4290
|
|
|
"Permission\x12\x0elookup-subject*\x19permissions.lookupSubjectj\x83\f\n" + |
4291
|
|
|
"\rx-codeSamples\x12\xf1\v2\xee\v\n" + |
4292
|
|
|
"\x9f\x04*\x9c\x04\n" + |
4293
|
|
|
"\r\n" + |
4294
|
|
|
"\x05label\x12\x04\x1a\x02go\n" + |
4295
|
|
|
"\f\n" + |
4296
|
|
|
"\x04lang\x12\x04\x1a\x02go\n" + |
4297
|
|
|
"\xfc\x03\n" + |
4298
|
|
|
"\x06source\x12\xf1\x03\x1a\xee\x03cr, err := client.Permission.LookupSubject(context.Background(), &v1.PermissionLookupSubjectRequest{\n" + |
4299
|
|
|
" TenantId: \"t1\",\n" + |
4300
|
|
|
" Metadata: &v1.PermissionLookupSubjectRequestMetadata{\n" + |
4301
|
|
|
" SnapToken: \"\",\n" + |
4302
|
|
|
" SchemaVersion: \"\",\n" + |
4303
|
|
|
" Depth: 20,\n" + |
4304
|
|
|
" },\n" + |
4305
|
|
|
" Entity: &v1.Entity{\n" + |
4306
|
|
|
" Type: \"document\",\n" + |
4307
|
|
|
" Id: \"1\",\n" + |
4308
|
|
|
" },\n" + |
4309
|
|
|
" Permission: \"edit\",\n" + |
4310
|
|
|
" SubjectReference: &v1.RelationReference{\n" + |
4311
|
|
|
" Type: \"user\",\n" + |
4312
|
|
|
" Relation: \"\",\n" + |
4313
|
|
|
" },\n" + |
4314
|
|
|
" PageSize: 20,\n" + |
4315
|
|
|
" ContinuousToken: \"\",\n" + |
4316
|
|
|
"})\n" + |
4317
|
|
|
"\xdc\x03*\xd9\x03\n" + |
4318
|
|
|
"\x0f\n" + |
4319
|
|
|
"\x05label\x12\x06\x1a\x04node\n" + |
4320
|
|
|
"\x14\n" + |
4321
|
|
|
"\x04lang\x12\f\x1a\n" + |
4322
|
|
|
"javascript\n" + |
4323
|
|
|
"\xaf\x03\n" + |
4324
|
|
|
"\x06source\x12\xa4\x03\x1a\xa1\x03client.permission.lookupSubject({\n" + |
4325
|
|
|
" tenantId: \"t1\",\n" + |
4326
|
|
|
" metadata: {\n" + |
4327
|
|
|
" snapToken: \"\",\n" + |
4328
|
|
|
" schemaVersion: \"\",\n" + |
4329
|
|
|
" depth: 20,\n" + |
4330
|
|
|
" },\n" + |
4331
|
|
|
" entity: {\n" + |
4332
|
|
|
" type: \"document\",\n" + |
4333
|
|
|
" id: \"1\",\n" + |
4334
|
|
|
" },\n" + |
4335
|
|
|
" permission: \"edit\",\n" + |
4336
|
|
|
" subject_reference: {\n" + |
4337
|
|
|
" type: \"user\",\n" + |
4338
|
|
|
" relation: \"\"\n" + |
4339
|
|
|
" },\n" + |
4340
|
|
|
" page_size: 10,\n" + |
4341
|
|
|
" continuous_token: \"\"\n" + |
4342
|
|
|
"}).then((response) => {\n" + |
4343
|
|
|
" console.log(response.subject_ids)\n" + |
4344
|
|
|
"})\n" + |
4345
|
|
|
"\xea\x03*\xe7\x03\n" + |
4346
|
|
|
"\x0f\n" + |
4347
|
|
|
"\x05label\x12\x06\x1a\x04cURL\n" + |
4348
|
|
|
"\x0e\n" + |
4349
|
|
|
"\x04lang\x12\x06\x1a\x04curl\n" + |
4350
|
|
|
"\xc3\x03\n" + |
4351
|
|
|
"\x06source\x12\xb8\x03\x1a\xb5\x03curl --location --request POST 'localhost:3476/v1/tenants/{tenant_id}/permissions/lookup-subject' \\\n" + |
4352
|
|
|
"--header 'Content-Type: application/json' \\\n" + |
4353
|
|
|
"--data-raw '{\n" + |
4354
|
|
|
" \"metadata\":{\n" + |
4355
|
|
|
" \"snap_token\": \"\",\n" + |
4356
|
|
|
" \"schema_version\": \"\",\n" + |
4357
|
|
|
" \"depth\": 20,\n" + |
4358
|
|
|
" },\n" + |
4359
|
|
|
" \"entity\": {\n" + |
4360
|
|
|
" \"type\": \"document\",\n" + |
4361
|
|
|
" \"id\": \"1\"\n" + |
4362
|
|
|
" },\n" + |
4363
|
|
|
" \"permission\": \"edit\",\n" + |
4364
|
|
|
" \"subject_reference\": {\n" + |
4365
|
|
|
" \"type\": \"user\",\n" + |
4366
|
|
|
" \"relation\": \"\"\n" + |
4367
|
|
|
" },\n" + |
4368
|
|
|
" page_size: 20,\n" + |
4369
|
|
|
" continuous_token: \"\"\n" + |
4370
|
|
|
"}'\x82\xd3\xe4\x93\x027:\x01*\"2/v1/tenants/{tenant_id}/permissions/lookup-subject\x12\xf4\f\n" + |
4371
|
|
|
"\x11SubjectPermission\x12+.base.v1.PermissionSubjectPermissionRequest\x1a,.base.v1.PermissionSubjectPermissionResponse\"\x83\f\x92A\xbe\v\n" + |
4372
|
|
|
"\n" + |
4373
|
|
|
"Permission\x12\x12subject permission*\x1dpermissions.subjectPermissionj\xfc\n" + |
4374
|
|
|
"\n" + |
4375
|
|
|
"\rx-codeSamples\x12\xea\n" + |
4376
|
|
|
"2\xe7\n" + |
4377
|
|
|
"\n" + |
4378
|
|
|
"\xf1\x03*\xee\x03\n" + |
4379
|
|
|
"\r\n" + |
4380
|
|
|
"\x05label\x12\x04\x1a\x02go\n" + |
4381
|
|
|
"\f\n" + |
4382
|
|
|
"\x04lang\x12\x04\x1a\x02go\n" + |
4383
|
|
|
"\xce\x03\n" + |
4384
|
|
|
"\x06source\x12\xc3\x03\x1a\xc0\x03cr, err := client.Permission.SubjectPermission(context.Background(), &v1.PermissionSubjectPermissionRequest{\n" + |
4385
|
|
|
" TenantId: \"t1\",\n" + |
4386
|
|
|
" Metadata: &v1.PermissionSubjectPermissionRequestMetadata{\n" + |
4387
|
|
|
" SnapToken: \"\",\n" + |
4388
|
|
|
" SchemaVersion: \"\",\n" + |
4389
|
|
|
" OnlyPermission: false,\n" + |
4390
|
|
|
" Depth: 20,\n" + |
4391
|
|
|
" },\n" + |
4392
|
|
|
" Entity: &v1.Entity{\n" + |
4393
|
|
|
" Type: \"repository\",\n" + |
4394
|
|
|
" Id: \"1\",\n" + |
4395
|
|
|
" },\n" + |
4396
|
|
|
" Subject: &v1.Subject{\n" + |
4397
|
|
|
" Type: \"user\",\n" + |
4398
|
|
|
" Id: \"1\",\n" + |
4399
|
|
|
" },\n" + |
4400
|
|
|
"})\n" + |
4401
|
|
|
"\x9f\x03*\x9c\x03\n" + |
4402
|
|
|
"\x0f\n" + |
4403
|
|
|
"\x05label\x12\x06\x1a\x04node\n" + |
4404
|
|
|
"\x14\n" + |
4405
|
|
|
"\x04lang\x12\f\x1a\n" + |
4406
|
|
|
"javascript\n" + |
4407
|
|
|
"\xf2\x02\n" + |
4408
|
|
|
"\x06source\x12\xe7\x02\x1a\xe4\x02client.permission.subjectPermission({\n" + |
4409
|
|
|
" tenantId: \"t1\",\n" + |
4410
|
|
|
" metadata: {\n" + |
4411
|
|
|
" snapToken: \"\",\n" + |
4412
|
|
|
" schemaVersion: \"\",\n" + |
4413
|
|
|
" onlyPermission: true,\n" + |
4414
|
|
|
" depth: 20\n" + |
4415
|
|
|
" },\n" + |
4416
|
|
|
" entity: {\n" + |
4417
|
|
|
" type: \"repository\",\n" + |
4418
|
|
|
" id: \"1\"\n" + |
4419
|
|
|
" },\n" + |
4420
|
|
|
" subject: {\n" + |
4421
|
|
|
" type: \"user\",\n" + |
4422
|
|
|
" id: \"1\"\n" + |
4423
|
|
|
" }\n" + |
4424
|
|
|
"}).then((response) => {\n" + |
4425
|
|
|
" console.log(response);\n" + |
4426
|
|
|
"})\n" + |
4427
|
|
|
"\xce\x03*\xcb\x03\n" + |
4428
|
|
|
"\x0f\n" + |
4429
|
|
|
"\x05label\x12\x06\x1a\x04cURL\n" + |
4430
|
|
|
"\x0e\n" + |
4431
|
|
|
"\x04lang\x12\x06\x1a\x04curl\n" + |
4432
|
|
|
"\xa7\x03\n" + |
4433
|
|
|
"\x06source\x12\x9c\x03\x1a\x99\x03curl --location --request POST 'localhost:3476/v1/tenants/{tenant_id}/permissions/subject-permission' \\\n" + |
4434
|
|
|
"--header 'Content-Type: application/json' \\\n" + |
4435
|
|
|
"--data-raw '{\n" + |
4436
|
|
|
" \"metadata\":{\n" + |
4437
|
|
|
" \"snap_token\": \"\",\n" + |
4438
|
|
|
" \"schema_version\": \"\",\n" + |
4439
|
|
|
" \"only_permission\": true,\n" + |
4440
|
|
|
" \"depth\": 20\n" + |
4441
|
|
|
" },\n" + |
4442
|
|
|
" \"entity\": {\n" + |
4443
|
|
|
" \"type\": \"repository\",\n" + |
4444
|
|
|
" \"id\": \"1\"\n" + |
4445
|
|
|
" },\n" + |
4446
|
|
|
" \"subject\": {\n" + |
4447
|
|
|
" \"type\": \"user\",\n" + |
4448
|
|
|
" \"id\": \"1\",\n" + |
4449
|
|
|
" \"relation\": \"\"\n" + |
4450
|
|
|
" }\n" + |
4451
|
|
|
"}'\x82\xd3\xe4\x93\x02;:\x01*\"6/v1/tenants/{tenant_id}/permissions/subject-permission2\x84\b\n" + |
4452
|
|
|
"\x05Watch\x12\xfa\a\n" + |
4453
|
|
|
"\x05Watch\x12\x15.base.v1.WatchRequest\x1a\x16.base.v1.WatchResponse\"\xbf\a\x92A\x93\a\n" + |
4454
|
|
|
"\x05Watch\x12\rwatch changes*\vwatch.watchj\xed\x06\n" + |
4455
|
|
|
"\rx-codeSamples\x12\xdb\x062\xd8\x06\n" + |
4456
|
|
|
"\x9e\x02*\x9b\x02\n" + |
4457
|
|
|
"\r\n" + |
4458
|
|
|
"\x05label\x12\x04\x1a\x02go\n" + |
4459
|
|
|
"\f\n" + |
4460
|
|
|
"\x04lang\x12\x04\x1a\x02go\n" + |
4461
|
|
|
"\xfb\x01\n" + |
4462
|
|
|
"\x06source\x12\xf0\x01\x1a\xed\x01cr, err := client.Watch.Watch(context.Background(), &v1.WatchRequest{\n" + |
4463
|
|
|
" TenantId: \"t1\",\n" + |
4464
|
|
|
" SnapToken: \"\",\n" + |
4465
|
|
|
"})\n" + |
4466
|
|
|
"// handle stream response\n" + |
4467
|
|
|
"for {\n" + |
4468
|
|
|
" res, err := cr.Recv()\n" + |
4469
|
|
|
"\n" + |
4470
|
|
|
" if err == io.EOF {\n" + |
4471
|
|
|
" break\n" + |
4472
|
|
|
" }\n" + |
4473
|
|
|
"\n" + |
4474
|
|
|
" // res.Changes\n" + |
4475
|
|
|
"}\n" + |
4476
|
|
|
"\n" + |
4477
|
|
|
"\xb4\x04*\xb1\x04\n" + |
4478
|
|
|
"\x0f\n" + |
4479
|
|
|
"\x05label\x12\x06\x1a\x04node\n" + |
4480
|
|
|
"\x14\n" + |
4481
|
|
|
"\x04lang\x12\f\x1a\n" + |
4482
|
|
|
"javascript\n" + |
4483
|
|
|
"\x87\x04\n" + |
4484
|
|
|
"\x06source\x12\xfc\x03\x1a\xf9\x03const permify = require(\"@permify/permify-node\");\n" + |
4485
|
|
|
"const {WatchResponse} = require(\"@permify/permify-node/dist/src/grpc/generated/base/v1/service\");\n" + |
4486
|
|
|
"\n" + |
4487
|
|
|
"function main() {\n" + |
4488
|
|
|
" const client = new permify.grpc.newClient({\n" + |
4489
|
|
|
" endpoint: \"localhost:3478\",\n" + |
4490
|
|
|
" });\n" + |
4491
|
|
|
"\n" + |
4492
|
|
|
" let res = client.watch.watch({\n" + |
4493
|
|
|
" tenantId: \"t1\",\n" + |
4494
|
|
|
" snapToken: \"\"\n" + |
4495
|
|
|
" });\n" + |
4496
|
|
|
"\n" + |
4497
|
|
|
" handle(res);\n" + |
4498
|
|
|
"}\n" + |
4499
|
|
|
"\n" + |
4500
|
|
|
"async function handle(res: AsyncIterable<WatchResponse>) {\n" + |
4501
|
|
|
" for await (const response of res) {\n" + |
4502
|
|
|
" // response.changes\n" + |
4503
|
|
|
" }\n" + |
4504
|
|
|
"}\n" + |
4505
|
|
|
"\x82\xd3\xe4\x93\x02\":\x01*\"\x1d/v1/tenants/{tenant_id}/watch0\x012\xac\x1f\n" + |
4506
|
|
|
"\x06Schema\x12\xd3\x10\n" + |
4507
|
|
|
"\x05Write\x12\x1b.base.v1.SchemaWriteRequest\x1a\x1c.base.v1.SchemaWriteResponse\"\x8e\x10\x92A\xda\x0f\n" + |
4508
|
|
|
"\x06Schema\x12\fwrite schema*\rschemas.writej\xb2\x0f\n" + |
4509
|
|
|
"\rx-codeSamples\x12\xa0\x0f2\x9d\x0f\n" + |
4510
|
|
|
"\xf2\x04*\xef\x04\n" + |
4511
|
|
|
"\r\n" + |
4512
|
|
|
"\x05label\x12\x04\x1a\x02go\n" + |
4513
|
|
|
"\f\n" + |
4514
|
|
|
"\x04lang\x12\x04\x1a\x02go\n" + |
4515
|
|
|
"\xcf\x04\n" + |
4516
|
|
|
"\x06source\x12\xc4\x04\x1a\xc1\x04sr, err := client.Schema.Write(context.Background(), &v1.SchemaWriteRequest{\n" + |
4517
|
|
|
" TenantId: \"t1\",\n" + |
4518
|
|
|
" Schema: `\n" + |
4519
|
|
|
" entity user {}\n" + |
4520
|
|
|
"\n" + |
4521
|
|
|
" entity organization {\n" + |
4522
|
|
|
" relation admin @user\n" + |
4523
|
|
|
" relation member @user\n" + |
4524
|
|
|
"\n" + |
4525
|
|
|
" action create_repository = (admin or member)\n" + |
4526
|
|
|
" action delete = admin\n" + |
4527
|
|
|
" }\n" + |
4528
|
|
|
"\n" + |
4529
|
|
|
" entity repository {\n" + |
4530
|
|
|
" relation owner @user\n" + |
4531
|
|
|
" relation parent @organization\n" + |
4532
|
|
|
"\n" + |
4533
|
|
|
" action push = owner\n" + |
4534
|
|
|
" action read = (owner and (parent.admin and parent.member))\n" + |
4535
|
|
|
" action delete = (parent.member and (parent.admin or owner))\n" + |
4536
|
|
|
" }\n" + |
4537
|
|
|
" `,\n" + |
4538
|
|
|
"})\n" + |
4539
|
|
|
"\xf3\x04*\xf0\x04\n" + |
4540
|
|
|
"\x0f\n" + |
4541
|
|
|
"\x05label\x12\x06\x1a\x04node\n" + |
4542
|
|
|
"\x14\n" + |
4543
|
|
|
"\x04lang\x12\f\x1a\n" + |
4544
|
|
|
"javascript\n" + |
4545
|
|
|
"\xc6\x04\n" + |
4546
|
|
|
"\x06source\x12\xbb\x04\x1a\xb8\x04client.schema.write({\n" + |
4547
|
|
|
" tenantId: \"t1\",\n" + |
4548
|
|
|
" schema: `\n" + |
4549
|
|
|
" entity user {}\n" + |
4550
|
|
|
"\n" + |
4551
|
|
|
" entity organization {\n" + |
4552
|
|
|
" relation admin @user\n" + |
4553
|
|
|
" relation member @user\n" + |
4554
|
|
|
"\n" + |
4555
|
|
|
" action create_repository = (admin or member)\n" + |
4556
|
|
|
" action delete = admin\n" + |
4557
|
|
|
" }\n" + |
4558
|
|
|
"\n" + |
4559
|
|
|
" entity repository {\n" + |
4560
|
|
|
" relation owner @user\n" + |
4561
|
|
|
" relation parent @organization\n" + |
4562
|
|
|
"\n" + |
4563
|
|
|
" action push = owner\n" + |
4564
|
|
|
" action read = (owner and (parent.admin and parent.member))\n" + |
4565
|
|
|
" action delete = (parent.member and (parent.admin or owner))\n" + |
4566
|
|
|
" }\n" + |
4567
|
|
|
" `\n" + |
4568
|
|
|
"}).then((response) => {\n" + |
4569
|
|
|
" // handle response\n" + |
4570
|
|
|
"})\n" + |
4571
|
|
|
"\xaf\x05*\xac\x05\n" + |
4572
|
|
|
"\x0f\n" + |
4573
|
|
|
"\x05label\x12\x06\x1a\x04cURL\n" + |
4574
|
|
|
"\x0e\n" + |
4575
|
|
|
"\x04lang\x12\x06\x1a\x04curl\n" + |
4576
|
|
|
"\x88\x05\n" + |
4577
|
|
|
"\x06source\x12\xfd\x04\x1a\xfa\x04curl --location --request POST 'localhost:3476/v1/tenants/{tenant_id}/schemas/write' \\\n" + |
4578
|
|
|
"--header 'Content-Type: application/json' \\\n" + |
4579
|
|
|
"--data-raw '{\n" + |
4580
|
|
|
" \"schema\": \"entity user {}\\n\\n entity organization {\\n\\n relation admin @user\\n relation member @user\\n\\n action create_repository = (admin or member)\\n action delete = admin\\n }\\n\\n entity repository {\\n\\n relation owner @user\\n relation parent @organization\\n\\n action push = owner\\n action read = (owner and (parent.admin and parent.member))\\n action delete = (parent.member and (parent.admin or owner))\\n }\"\n" + |
4581
|
|
|
"}'\x82\xd3\xe4\x93\x02*:\x01*\"%/v1/tenants/{tenant_id}/schemas/write\x12\xdf\x01\n" + |
4582
|
|
|
"\fPartialWrite\x12\".base.v1.SchemaPartialWriteRequest\x1a#.base.v1.SchemaPartialWriteResponse\"\x85\x01\x92AJ\n" + |
4583
|
|
|
"\x06Schema\x12)partially update your authorization model*\x15schemas.partial-write\x82\xd3\xe4\x93\x022:\x01*2-/v1/tenants/{tenant_id}/schemas/partial-write\x12\xf4\x06\n" + |
4584
|
|
|
"\x04Read\x12\x1a.base.v1.SchemaReadRequest\x1a\x1b.base.v1.SchemaReadResponse\"\xb2\x06\x92A\xff\x05\n" + |
4585
|
|
|
"\x06Schema\x12\vread schema*\fschemas.readj\xd9\x05\n" + |
4586
|
|
|
"\rx-codeSamples\x12\xc7\x052\xc4\x05\n" + |
4587
|
|
|
"\xf5\x01*\xf2\x01\n" + |
4588
|
|
|
"\r\n" + |
4589
|
|
|
"\x05label\x12\x04\x1a\x02go\n" + |
4590
|
|
|
"\f\n" + |
4591
|
|
|
"\x04lang\x12\x04\x1a\x02go\n" + |
4592
|
|
|
"\xd2\x01\n" + |
4593
|
|
|
"\x06source\x12\xc7\x01\x1a\xc4\x01sr, err := client.Schema.Read(context.Background(), &v1.SchemaReadRequest{\n" + |
4594
|
|
|
" TenantId: \"t1\",\n" + |
4595
|
|
|
" Metadata: &v1.SchemaReadRequestMetadata{\n" + |
4596
|
|
|
" SchemaVersion: \"cnbe6se5fmal18gpc66g\",\n" + |
4597
|
|
|
" },\n" + |
4598
|
|
|
"})\n" + |
4599
|
|
|
"\xb6\x01*\xb3\x01\n" + |
4600
|
|
|
"\x0f\n" + |
4601
|
|
|
"\x05label\x12\x06\x1a\x04node\n" + |
4602
|
|
|
"\x14\n" + |
4603
|
|
|
"\x04lang\x12\f\x1a\n" + |
4604
|
|
|
"javascript\n" + |
4605
|
|
|
"\x89\x01\n" + |
4606
|
|
|
"\x06source\x12\x7f\x1a}let res = client.schema.read({\n" + |
4607
|
|
|
" tenantId: \"t1\",\n" + |
4608
|
|
|
" metadata: {\n" + |
4609
|
|
|
" schemaVersion: swResponse.schemaVersion,\n" + |
4610
|
|
|
" },\n" + |
4611
|
|
|
"})\n" + |
4612
|
|
|
"\x90\x02*\x8d\x02\n" + |
4613
|
|
|
"\x0f\n" + |
4614
|
|
|
"\x05label\x12\x06\x1a\x04cURL\n" + |
4615
|
|
|
"\x0e\n" + |
4616
|
|
|
"\x04lang\x12\x06\x1a\x04curl\n" + |
4617
|
|
|
"\xe9\x01\n" + |
4618
|
|
|
"\x06source\x12\xde\x01\x1a\xdb\x01curl --location --request POST 'localhost:3476/v1/tenants/{tenant_id}/schemas/read' \\\n" + |
4619
|
|
|
"--header 'Content-Type: application/json' \\\n" + |
4620
|
|
|
"--data-raw '{\n" + |
4621
|
|
|
" \"metadata\": {\n" + |
4622
|
|
|
" \"schema_version\": \"cnbe6se5fmal18gpc66g\"\n" + |
4623
|
|
|
" }\n" + |
4624
|
|
|
"}'\x82\xd3\xe4\x93\x02):\x01*\"$/v1/tenants/{tenant_id}/schemas/read\x12\xf2\x05\n" + |
4625
|
|
|
"\x04List\x12\x1a.base.v1.SchemaListRequest\x1a\x1b.base.v1.SchemaListResponse\"\xb0\x05\x92A\xfd\x04\n" + |
4626
|
|
|
"\x06Schema\x12\vlist schema*\fschemas.listj\xd7\x04\n" + |
4627
|
|
|
"\rx-codeSamples\x12\xc5\x042\xc2\x04\n" + |
4628
|
|
|
"\xbd\x01*\xba\x01\n" + |
4629
|
|
|
"\r\n" + |
4630
|
|
|
"\x05label\x12\x04\x1a\x02go\n" + |
4631
|
|
|
"\f\n" + |
4632
|
|
|
"\x04lang\x12\x04\x1a\x02go\n" + |
4633
|
|
|
"\x9a\x01\n" + |
4634
|
|
|
"\x06source\x12\x8f\x01\x1a\x8c\x01sr, err := client.Schema.List(context.Background(), &v1.SchemaListRequest{\n" + |
4635
|
|
|
" TenantId: \"t1\",\n" + |
4636
|
|
|
" PageSize: 20,\n" + |
4637
|
|
|
" ContinuousToken: \"\",\n" + |
4638
|
|
|
"})\n" + |
4639
|
|
|
"\x85\x01*\x82\x01\n" + |
4640
|
|
|
"\x0f\n" + |
4641
|
|
|
"\x05label\x12\x06\x1a\x04node\n" + |
4642
|
|
|
"\x14\n" + |
4643
|
|
|
"\x04lang\x12\f\x1a\n" + |
4644
|
|
|
"javascript\n" + |
4645
|
|
|
"Y\n" + |
4646
|
|
|
"\x06source\x12O\x1aMlet res = client.schema.list({\n" + |
4647
|
|
|
" tenantId: \"t1\",\n" + |
4648
|
|
|
" continuousToken: \"\"\n" + |
4649
|
|
|
"})\n" + |
4650
|
|
|
"\xf7\x01*\xf4\x01\n" + |
4651
|
|
|
"\x0f\n" + |
4652
|
|
|
"\x05label\x12\x06\x1a\x04cURL\n" + |
4653
|
|
|
"\x0e\n" + |
4654
|
|
|
"\x04lang\x12\x06\x1a\x04curl\n" + |
4655
|
|
|
"\xd0\x01\n" + |
4656
|
|
|
"\x06source\x12\xc5\x01\x1a\xc2\x01curl --location --request POST 'localhost:3476/v1/tenants/{tenant_id}/schemas/list' \\\n" + |
4657
|
|
|
"--header 'Content-Type: application/json' \\\n" + |
4658
|
|
|
"--data-raw '{\n" + |
4659
|
|
|
" \"page_size\": 20,\n" + |
4660
|
|
|
" \"continuous_token\": \"\"\n" + |
4661
|
|
|
"}'\x82\xd3\xe4\x93\x02):\x01*\"$/v1/tenants/{tenant_id}/schemas/list2\xe5D\n" + |
4662
|
|
|
"\x04Data\x12\xb6\x15\n" + |
4663
|
|
|
"\x05Write\x12\x19.base.v1.DataWriteRequest\x1a\x1a.base.v1.DataWriteResponse\"\xf5\x14\x92A\xc4\x14\n" + |
4664
|
|
|
"\x04Data\x12\n" + |
4665
|
|
|
"write data*\n" + |
4666
|
|
|
"data.writej\xa3\x14\n" + |
4667
|
|
|
"\rx-codeSamples\x12\x91\x142\x8e\x14\n" + |
4668
|
|
|
"\xb6\a*\xb3\a\n" + |
4669
|
|
|
"\r\n" + |
4670
|
|
|
"\x05label\x12\x04\x1a\x02go\n" + |
4671
|
|
|
"\f\n" + |
4672
|
|
|
"\x04lang\x12\x04\x1a\x02go\n" + |
4673
|
|
|
"\x93\a\n" + |
4674
|
|
|
"\x06source\x12\x88\a\x1a\x85\a// Convert the wrapped attribute value into Any proto message\n" + |
4675
|
|
|
"value, err := anypb.New(&v1.BooleanValue{\n" + |
4676
|
|
|
" Data: true,\n" + |
4677
|
|
|
"})\n" + |
4678
|
|
|
"if err != nil {\n" + |
4679
|
|
|
" // Handle error\n" + |
4680
|
|
|
"}\n" + |
4681
|
|
|
"\n" + |
4682
|
|
|
"cr, err := client.Data.Write(context.Background(), &v1.DataWriteRequest{\n" + |
4683
|
|
|
" TenantId: \"t1\",\n" + |
4684
|
|
|
" Metadata: &v1.DataWriteRequestMetadata{\n" + |
4685
|
|
|
" SchemaVersion: \"\",\n" + |
4686
|
|
|
" },\n" + |
4687
|
|
|
" Tuples: []*v1.Tuple{\n" + |
4688
|
|
|
" {\n" + |
4689
|
|
|
" Entity: &v1.Entity{\n" + |
4690
|
|
|
" Type: \"document\",\n" + |
4691
|
|
|
" Id: \"1\",\n" + |
4692
|
|
|
" },\n" + |
4693
|
|
|
" Relation: \"editor\",\n" + |
4694
|
|
|
" Subject: &v1.Subject{\n" + |
4695
|
|
|
" Type: \"user\",\n" + |
4696
|
|
|
" Id: \"1\",\n" + |
4697
|
|
|
" Relation: \"\",\n" + |
4698
|
|
|
" },\n" + |
4699
|
|
|
" },\n" + |
4700
|
|
|
" },\n" + |
4701
|
|
|
" Attributes: []*v1.Attribute{\n" + |
4702
|
|
|
" {\n" + |
4703
|
|
|
" Entity: &v1.Entity{\n" + |
4704
|
|
|
" Type: \"document\",\n" + |
4705
|
|
|
" Id: \"1\",\n" + |
4706
|
|
|
" },\n" + |
4707
|
|
|
" Attribute: \"is_private\",\n" + |
4708
|
|
|
" Value: value,\n" + |
4709
|
|
|
" },\n" + |
4710
|
|
|
" },\n" + |
4711
|
|
|
"})\n" + |
4712
|
|
|
"\x80\x06*\xfd\x05\n" + |
4713
|
|
|
"\x0f\n" + |
4714
|
|
|
"\x05label\x12\x06\x1a\x04node\n" + |
4715
|
|
|
"\x14\n" + |
4716
|
|
|
"\x04lang\x12\f\x1a\n" + |
4717
|
|
|
"javascript\n" + |
4718
|
|
|
"\xd3\x05\n" + |
4719
|
|
|
"\x06source\x12\xc8\x05\x1a\xc5\x05const booleanValue = BooleanValue.fromJSON({ data: true });\n" + |
4720
|
|
|
"\n" + |
4721
|
|
|
"const value = Any.fromJSON({\n" + |
4722
|
|
|
" typeUrl: 'type.googleapis.com/base.v1.BooleanValue',\n" + |
4723
|
|
|
" value: BooleanValue.encode(booleanValue).finish()\n" + |
4724
|
|
|
"});\n" + |
4725
|
|
|
"\n" + |
4726
|
|
|
"client.data.write({\n" + |
4727
|
|
|
" tenantId: \"t1\",\n" + |
4728
|
|
|
" metadata: {\n" + |
4729
|
|
|
" schemaVersion: \"\"\n" + |
4730
|
|
|
" },\n" + |
4731
|
|
|
" tuples: [{\n" + |
4732
|
|
|
" entity: {\n" + |
4733
|
|
|
" type: \"document\",\n" + |
4734
|
|
|
" id: \"1\"\n" + |
4735
|
|
|
" },\n" + |
4736
|
|
|
" relation: \"editor\",\n" + |
4737
|
|
|
" subject: {\n" + |
4738
|
|
|
" type: \"user\",\n" + |
4739
|
|
|
" id: \"1\"\n" + |
4740
|
|
|
" }\n" + |
4741
|
|
|
" }],\n" + |
4742
|
|
|
" attributes: [{\n" + |
4743
|
|
|
" entity: {\n" + |
4744
|
|
|
" type: \"document\",\n" + |
4745
|
|
|
" id: \"1\"\n" + |
4746
|
|
|
" },\n" + |
4747
|
|
|
" attribute: \"is_private\",\n" + |
4748
|
|
|
" value: value,\n" + |
4749
|
|
|
" }]\n" + |
4750
|
|
|
"}).then((response) => {\n" + |
4751
|
|
|
" // handle response\n" + |
4752
|
|
|
"})\n" + |
4753
|
|
|
"\xcf\x06*\xcc\x06\n" + |
4754
|
|
|
"\x0f\n" + |
4755
|
|
|
"\x05label\x12\x06\x1a\x04cURL\n" + |
4756
|
|
|
"\x0e\n" + |
4757
|
|
|
"\x04lang\x12\x06\x1a\x04curl\n" + |
4758
|
|
|
"\xa8\x06\n" + |
4759
|
|
|
"\x06source\x12\x9d\x06\x1a\x9a\x06curl --location --request POST 'localhost:3476/v1/tenants/{tenant_id}/data/write' \\\n" + |
4760
|
|
|
"--header 'Content-Type: application/json' \\\n" + |
4761
|
|
|
"--data-raw '{\n" + |
4762
|
|
|
" \"metadata\": {\n" + |
4763
|
|
|
" \"schema_version\": \"\"\n" + |
4764
|
|
|
" },\n" + |
4765
|
|
|
" \"tuples\": [\n" + |
4766
|
|
|
" {\n" + |
4767
|
|
|
" \"entity\": {\n" + |
4768
|
|
|
" \"type\": \"document\",\n" + |
4769
|
|
|
" \"id\": \"1\"\n" + |
4770
|
|
|
" },\n" + |
4771
|
|
|
" \"relation\": \"editor\",\n" + |
4772
|
|
|
" \"subject\": {\n" + |
4773
|
|
|
" \"type\": \"user\",\n" + |
4774
|
|
|
" \"id\": \"1\"\n" + |
4775
|
|
|
" }\n" + |
4776
|
|
|
" }\n" + |
4777
|
|
|
" ],\n" + |
4778
|
|
|
" \"attributes\": [\n" + |
4779
|
|
|
" {\n" + |
4780
|
|
|
" \"entity\": {\n" + |
4781
|
|
|
" \"type\": \"document\",\n" + |
4782
|
|
|
" \"id\": \"1\"\n" + |
4783
|
|
|
" },\n" + |
4784
|
|
|
" \"attribute\": \"is_private\",\n" + |
4785
|
|
|
" \"value\": {\n" + |
4786
|
|
|
" \"@type\": \"type.googleapis.com/base.v1.BooleanValue\",\n" + |
4787
|
|
|
" \"data\": true\n" + |
4788
|
|
|
" }\n" + |
4789
|
|
|
" }\n" + |
4790
|
|
|
" ]\n" + |
4791
|
|
|
"}'\x82\xd3\xe4\x93\x02':\x01*\"\"/v1/tenants/{tenant_id}/data/write\x12\xc6\x01\n" + |
4792
|
|
|
"\x12WriteRelationships\x12!.base.v1.RelationshipWriteRequest\x1a\".base.v1.RelationshipWriteResponse\"i\x92A0\n" + |
4793
|
|
|
"\x04Data\x12\x13write relationships*\x13relationships.write\x82\xd3\xe4\x93\x020:\x01*\"+/v1/tenants/{tenant_id}/relationships/write\x12\xd1\f\n" + |
4794
|
|
|
"\x11ReadRelationships\x12 .base.v1.RelationshipReadRequest\x1a!.base.v1.RelationshipReadResponse\"\xf6\v\x92A\xb8\v\n" + |
4795
|
|
|
"\x04Data\x12\x12read relationships*\x17data.relationships.readj\x82\v\n" + |
4796
|
|
|
"\rx-codeSamples\x12\xf0\n" + |
4797
|
|
|
"2\xed\n" + |
4798
|
|
|
"\n" + |
4799
|
|
|
"\xa6\x04*\xa3\x04\n" + |
4800
|
|
|
"\r\n" + |
4801
|
|
|
"\x05label\x12\x04\x1a\x02go\n" + |
4802
|
|
|
"\f\n" + |
4803
|
|
|
"\x04lang\x12\x04\x1a\x02go\n" + |
4804
|
|
|
"\x83\x04\n" + |
4805
|
|
|
"\x06source\x12\xf8\x03\x1a\xf5\x03rr, err := client.Data.ReadRelationships(context.Background(), &v1.Data.RelationshipReadRequest{\n" + |
4806
|
|
|
" TenantId: \"t1\",\n" + |
4807
|
|
|
" Metadata: &v1.Data.RelationshipReadRequestMetadata{\n" + |
4808
|
|
|
" SnapToken: \"\"\n" + |
4809
|
|
|
" },\n" + |
4810
|
|
|
" Filter: &v1.TupleFilter{\n" + |
4811
|
|
|
" Entity: &v1.EntityFilter{\n" + |
4812
|
|
|
" Type: \"organization\",\n" + |
4813
|
|
|
" Ids: []string{\"1\"},\n" + |
4814
|
|
|
" },\n" + |
4815
|
|
|
" Relation: \"member\",\n" + |
4816
|
|
|
" Subject: &v1.SubjectFilter{\n" + |
4817
|
|
|
" Type: \"\",\n" + |
4818
|
|
|
" Id: []string{\"\"},\n" + |
4819
|
|
|
" Relation: \"\"\n" + |
4820
|
|
|
" }\n" + |
4821
|
|
|
" }\n" + |
4822
|
|
|
"})\n" + |
4823
|
|
|
"\x84\x03*\x81\x03\n" + |
4824
|
|
|
"\x0f\n" + |
4825
|
|
|
"\x05label\x12\x06\x1a\x04node\n" + |
4826
|
|
|
"\x14\n" + |
4827
|
|
|
"\x04lang\x12\f\x1a\n" + |
4828
|
|
|
"javascript\n" + |
4829
|
|
|
"\xd7\x02\n" + |
4830
|
|
|
"\x06source\x12\xcc\x02\x1a\xc9\x02client.data.readRelationships({\n" + |
4831
|
|
|
" tenantId: \"t1\",\n" + |
4832
|
|
|
" metadata: {\n" + |
4833
|
|
|
" snap_token: \"\",\n" + |
4834
|
|
|
" },\n" + |
4835
|
|
|
" filter: {\n" + |
4836
|
|
|
" entity: {\n" + |
4837
|
|
|
" type: \"organization\",\n" + |
4838
|
|
|
" ids: [\n" + |
4839
|
|
|
" \"1\"\n" + |
4840
|
|
|
" ]\n" + |
4841
|
|
|
" },\n" + |
4842
|
|
|
" relation: \"member\",\n" + |
4843
|
|
|
" subject: {\n" + |
4844
|
|
|
" type: \"\",\n" + |
4845
|
|
|
" ids: [],\n" + |
4846
|
|
|
" relation: \"\"\n" + |
4847
|
|
|
" }\n" + |
4848
|
|
|
" }\n" + |
4849
|
|
|
"}).then((response) => {\n" + |
4850
|
|
|
" // handle response\n" + |
4851
|
|
|
"})\n" + |
4852
|
|
|
"\xba\x03*\xb7\x03\n" + |
4853
|
|
|
"\x0f\n" + |
4854
|
|
|
"\x05label\x12\x06\x1a\x04cURL\n" + |
4855
|
|
|
"\x0e\n" + |
4856
|
|
|
"\x04lang\x12\x06\x1a\x04curl\n" + |
4857
|
|
|
"\x93\x03\n" + |
4858
|
|
|
"\x06source\x12\x88\x03\x1a\x85\x03curl --location --request POST 'localhost:3476/v1/tenants/{tenant_id}/data/relationships/read' \\\n" + |
4859
|
|
|
"--header 'Content-Type: application/json' \\\n" + |
4860
|
|
|
"--data-raw '{\n" + |
4861
|
|
|
" metadata: {\n" + |
4862
|
|
|
" snap_token: \"\",\n" + |
4863
|
|
|
" },\n" + |
4864
|
|
|
" filter: {\n" + |
4865
|
|
|
" entity: {\n" + |
4866
|
|
|
" type: \"organization\",\n" + |
4867
|
|
|
" ids: [\n" + |
4868
|
|
|
" \"1\"\n" + |
4869
|
|
|
" ]\n" + |
4870
|
|
|
" },\n" + |
4871
|
|
|
" relation: \"member\",\n" + |
4872
|
|
|
" subject: {\n" + |
4873
|
|
|
" type: \"\",\n" + |
4874
|
|
|
" ids: [],\n" + |
4875
|
|
|
" relation: \"\"\n" + |
4876
|
|
|
" }\n" + |
4877
|
|
|
" }\n" + |
4878
|
|
|
"}'\x82\xd3\xe4\x93\x024:\x01*\"//v1/tenants/{tenant_id}/data/relationships/read\x12\xdc\n" + |
4879
|
|
|
"\n" + |
4880
|
|
|
"\x0eReadAttributes\x12\x1d.base.v1.AttributeReadRequest\x1a\x1e.base.v1.AttributeReadResponse\"\x8a\n" + |
4881
|
|
|
"\x92A\xcf\t\n" + |
4882
|
|
|
"\x04Data\x12\x0fread attributes*\x14data.attributes.readj\x9f\t\n" + |
4883
|
|
|
"\rx-codeSamples\x12\x8d\t2\x8a\t\n" + |
4884
|
|
|
"\xb5\x03*\xb2\x03\n" + |
4885
|
|
|
"\r\n" + |
4886
|
|
|
"\x05label\x12\x04\x1a\x02go\n" + |
4887
|
|
|
"\f\n" + |
4888
|
|
|
"\x04lang\x12\x04\x1a\x02go\n" + |
4889
|
|
|
"\x92\x03\n" + |
4890
|
|
|
"\x06source\x12\x87\x03\x1a\x84\x03rr, err := client.Data.ReadAttributes(context.Background(), &v1.Data.AttributeReadRequest{\n" + |
4891
|
|
|
" TenantId: \"t1\",\n" + |
4892
|
|
|
" Metadata: &v1.Data.AttributeReadRequestMetadata{\n" + |
4893
|
|
|
" SnapToken: \"\",\n" + |
4894
|
|
|
" },\n" + |
4895
|
|
|
" Filter: &v1.AttributeFilter{\n" + |
4896
|
|
|
" Entity: &v1.EntityFilter{\n" + |
4897
|
|
|
" Type: \"organization\",\n" + |
4898
|
|
|
" Ids: []string{\"1\"},\n" + |
4899
|
|
|
" },\n" + |
4900
|
|
|
" Attributes: []string{\"private\"},\n" + |
4901
|
|
|
" },\n" + |
4902
|
|
|
"})\n" + |
4903
|
|
|
"\xcb\x02*\xc8\x02\n" + |
4904
|
|
|
"\x0f\n" + |
4905
|
|
|
"\x05label\x12\x06\x1a\x04node\n" + |
4906
|
|
|
"\x14\n" + |
4907
|
|
|
"\x04lang\x12\f\x1a\n" + |
4908
|
|
|
"javascript\n" + |
4909
|
|
|
"\x9e\x02\n" + |
4910
|
|
|
"\x06source\x12\x93\x02\x1a\x90\x02client.data.readAttributes({\n" + |
4911
|
|
|
" tenantId: \"t1\",\n" + |
4912
|
|
|
" metadata: {\n" + |
4913
|
|
|
" snap_token: \"\",\n" + |
4914
|
|
|
" },\n" + |
4915
|
|
|
" filter: {\n" + |
4916
|
|
|
" entity: {\n" + |
4917
|
|
|
" type: \"organization\",\n" + |
4918
|
|
|
" ids: [\n" + |
4919
|
|
|
" \"1\"\n" + |
4920
|
|
|
" ]\n" + |
4921
|
|
|
" },\n" + |
4922
|
|
|
" attributes: [\n" + |
4923
|
|
|
" \"private\"\n" + |
4924
|
|
|
" ],\n" + |
4925
|
|
|
" }\n" + |
4926
|
|
|
"}).then((response) => {\n" + |
4927
|
|
|
" // handle response\n" + |
4928
|
|
|
"})\n" + |
4929
|
|
|
"\x81\x03*\xfe\x02\n" + |
4930
|
|
|
"\x0f\n" + |
4931
|
|
|
"\x05label\x12\x06\x1a\x04cURL\n" + |
4932
|
|
|
"\x0e\n" + |
4933
|
|
|
"\x04lang\x12\x06\x1a\x04curl\n" + |
4934
|
|
|
"\xda\x02\n" + |
4935
|
|
|
"\x06source\x12\xcf\x02\x1a\xcc\x02curl --location --request POST 'localhost:3476/v1/tenants/{tenant_id}/data/attributes/read' \\\n" + |
4936
|
|
|
"--header 'Content-Type: application/json' \\\n" + |
4937
|
|
|
"--data-raw '{\n" + |
4938
|
|
|
" metadata: {\n" + |
4939
|
|
|
" snap_token: \"\",\n" + |
4940
|
|
|
" },\n" + |
4941
|
|
|
" filter: {\n" + |
4942
|
|
|
" entity: {\n" + |
4943
|
|
|
" type: \"organization\",\n" + |
4944
|
|
|
" ids: [\n" + |
4945
|
|
|
" \"1\"\n" + |
4946
|
|
|
" ]\n" + |
4947
|
|
|
" },\n" + |
4948
|
|
|
" attributes: [\n" + |
4949
|
|
|
" \"private\"\n" + |
4950
|
|
|
" ],\n" + |
4951
|
|
|
" }\n" + |
4952
|
|
|
"}'\x82\xd3\xe4\x93\x021:\x01*\",/v1/tenants/{tenant_id}/data/attributes/read\x12\xa9\f\n" + |
4953
|
|
|
"\x06Delete\x12\x1a.base.v1.DataDeleteRequest\x1a\x1b.base.v1.DataDeleteResponse\"\xe5\v\x92A\xb3\v\n" + |
4954
|
|
|
"\x04Data\x12\vdelete data*\vdata.deletej\x90\v\n" + |
4955
|
|
|
"\rx-codeSamples\x12\xfe\n" + |
4956
|
|
|
"2\xfb\n" + |
4957
|
|
|
"\n" + |
4958
|
|
|
"\x8f\x04*\x8c\x04\n" + |
4959
|
|
|
"\r\n" + |
4960
|
|
|
"\x05label\x12\x04\x1a\x02go\n" + |
4961
|
|
|
"\f\n" + |
4962
|
|
|
"\x04lang\x12\x04\x1a\x02go\n" + |
4963
|
|
|
"\xec\x03\n" + |
4964
|
|
|
"\x06source\x12\xe1\x03\x1a\xde\x03rr, err := client.Data.Delete(context.Background(), &v1.DataDeleteRequest{\n" + |
4965
|
|
|
" TenantId: \"t1\",\n" + |
4966
|
|
|
" Metadata: &v1.DataDeleteRequestMetadata{\n" + |
4967
|
|
|
" SnapToken: \"\",\n" + |
4968
|
|
|
" },\n" + |
4969
|
|
|
" TupleFilter: &v1.TupleFilter{\n" + |
4970
|
|
|
" Entity: &v1.EntityFilter{\n" + |
4971
|
|
|
" Type: \"organization\",\n" + |
4972
|
|
|
" Ids: []string{\"1\"},\n" + |
4973
|
|
|
" },\n" + |
4974
|
|
|
" Relation: \"admin\",\n" + |
4975
|
|
|
" Subject: &v1.SubjectFilter{\n" + |
4976
|
|
|
" Type: \"user\",\n" + |
4977
|
|
|
" Id: []string{\"1\"},\n" + |
4978
|
|
|
" Relation: \"\"\n" + |
4979
|
|
|
" }\n" + |
4980
|
|
|
" }\n" + |
4981
|
|
|
"})\n" + |
4982
|
|
|
"\x94\x03*\x91\x03\n" + |
4983
|
|
|
"\x0f\n" + |
4984
|
|
|
"\x05label\x12\x06\x1a\x04node\n" + |
4985
|
|
|
"\x14\n" + |
4986
|
|
|
"\x04lang\x12\f\x1a\n" + |
4987
|
|
|
"javascript\n" + |
4988
|
|
|
"\xe7\x02\n" + |
4989
|
|
|
"\x06source\x12\xdc\x02\x1a\xd9\x02client.data.delete({\n" + |
4990
|
|
|
" tenantId: \"t1\",\n" + |
4991
|
|
|
" metadata: {\n" + |
4992
|
|
|
" snap_token: \"\",\n" + |
4993
|
|
|
" },\n" + |
4994
|
|
|
" tupleFilter: {\n" + |
4995
|
|
|
" entity: {\n" + |
4996
|
|
|
" type: \"organization\",\n" + |
4997
|
|
|
" ids: [\n" + |
4998
|
|
|
" \"1\"\n" + |
4999
|
|
|
" ]\n" + |
5000
|
|
|
" },\n" + |
5001
|
|
|
" relation: \"admin\",\n" + |
5002
|
|
|
" subject: {\n" + |
5003
|
|
|
" type: \"user\",\n" + |
5004
|
|
|
" ids: [\n" + |
5005
|
|
|
" \"1\"\n" + |
5006
|
|
|
" ],\n" + |
5007
|
|
|
" relation: \"\"\n" + |
5008
|
|
|
" }\n" + |
5009
|
|
|
" }\n" + |
5010
|
|
|
"}).then((response) => {\n" + |
5011
|
|
|
" // handle response\n" + |
5012
|
|
|
"})\n" + |
5013
|
|
|
"\xcf\x03*\xcc\x03\n" + |
5014
|
|
|
"\x0f\n" + |
5015
|
|
|
"\x05label\x12\x06\x1a\x04cURL\n" + |
5016
|
|
|
"\x0e\n" + |
5017
|
|
|
"\x04lang\x12\x06\x1a\x04curl\n" + |
5018
|
|
|
"\xa8\x03\n" + |
5019
|
|
|
"\x06source\x12\x9d\x03\x1a\x9a\x03curl --location --request POST 'localhost:3476/v1/tenants/{tenant_id}/data/delete' \\\n" + |
5020
|
|
|
"--header 'Content-Type: application/json' \\\n" + |
5021
|
|
|
"--data-raw '{\n" + |
5022
|
|
|
" \"tuple_filter\": {\n" + |
5023
|
|
|
" \"entity\": {\n" + |
5024
|
|
|
" \"type\": \"organization\",\n" + |
5025
|
|
|
" \"ids\": [\n" + |
5026
|
|
|
" \"1\"\n" + |
5027
|
|
|
" ]\n" + |
5028
|
|
|
" },\n" + |
5029
|
|
|
" \"relation\": \"admin\",\n" + |
5030
|
|
|
" \"subject\": {\n" + |
5031
|
|
|
" \"type\": \"user\",\n" + |
5032
|
|
|
" \"ids\": [\n" + |
5033
|
|
|
" \"1\"\n" + |
5034
|
|
|
" ],\n" + |
5035
|
|
|
" \"relation\": \"\"\n" + |
5036
|
|
|
" }\n" + |
5037
|
|
|
" },\n" + |
5038
|
|
|
" \"attribute_filter\": {}\n" + |
5039
|
|
|
"}'\x82\xd3\xe4\x93\x02(:\x01*\"#/v1/tenants/{tenant_id}/data/delete\x12\xcc\x01\n" + |
5040
|
|
|
"\x13DeleteRelationships\x12\".base.v1.RelationshipDeleteRequest\x1a#.base.v1.RelationshipDeleteResponse\"l\x92A2\n" + |
5041
|
|
|
"\x04Data\x12\x14delete relationships*\x14relationships.delete\x82\xd3\xe4\x93\x021:\x01*\",/v1/tenants/{tenant_id}/relationships/delete\x12\xac\b\n" + |
5042
|
|
|
"\tRunBundle\x12\x19.base.v1.BundleRunRequest\x1a\x1a.base.v1.BundleRunResponse\"\xe7\a\x92A\xb1\a\n" + |
5043
|
|
|
"\x04Data\x12\n" + |
5044
|
|
|
"run bundle*\n" + |
5045
|
|
|
"bundle.runj\x90\a\n" + |
5046
|
|
|
"\rx-codeSamples\x12\xfe\x062\xfb\x06\n" + |
5047
|
|
|
"\xa5\x02*\xa2\x02\n" + |
5048
|
|
|
"\r\n" + |
5049
|
|
|
"\x05label\x12\x04\x1a\x02go\n" + |
5050
|
|
|
"\f\n" + |
5051
|
|
|
"\x04lang\x12\x04\x1a\x02go\n" + |
5052
|
|
|
"\x82\x02\n" + |
5053
|
|
|
"\x06source\x12\xf7\x01\x1a\xf4\x01rr, err := client.Data.RunBundle(context.Background(), &v1.BundleRunRequest{\n" + |
5054
|
|
|
" TenantId: \"t1\",\n" + |
5055
|
|
|
" Name: \"organization_created\",\n" + |
5056
|
|
|
" Arguments: map[string]string{\n" + |
5057
|
|
|
" \"creatorID\": \"564\",\n" + |
5058
|
|
|
" \"organizationID\": \"789\",\n" + |
5059
|
|
|
" },\n" + |
5060
|
|
|
"})\n" + |
5061
|
|
|
"\x8a\x02*\x87\x02\n" + |
5062
|
|
|
"\x0f\n" + |
5063
|
|
|
"\x05label\x12\x06\x1a\x04node\n" + |
5064
|
|
|
"\x14\n" + |
5065
|
|
|
"\x04lang\x12\f\x1a\n" + |
5066
|
|
|
"javascript\n" + |
5067
|
|
|
"\xdd\x01\n" + |
5068
|
|
|
"\x06source\x12\xd2\x01\x1a\xcf\x01client.data.runBundle({\n" + |
5069
|
|
|
" tenantId: \"t1\",\n" + |
5070
|
|
|
" name: \"organization_created\",\n" + |
5071
|
|
|
" arguments: {\n" + |
5072
|
|
|
" creatorID: \"564\",\n" + |
5073
|
|
|
" organizationID: \"789\",\n" + |
5074
|
|
|
" }\n" + |
5075
|
|
|
"}).then((response) => {\n" + |
5076
|
|
|
" // handle response\n" + |
5077
|
|
|
"})\n" + |
5078
|
|
|
"\xc3\x02*\xc0\x02\n" + |
5079
|
|
|
"\x0f\n" + |
5080
|
|
|
"\x05label\x12\x06\x1a\x04cURL\n" + |
5081
|
|
|
"\x0e\n" + |
5082
|
|
|
"\x04lang\x12\x06\x1a\x04curl\n" + |
5083
|
|
|
"\x9c\x02\n" + |
5084
|
|
|
"\x06source\x12\x91\x02\x1a\x8e\x02curl --location --request POST 'localhost:3476/v1/tenants/{tenant_id}/data/run-bundle' \\\n" + |
5085
|
|
|
"--header 'Content-Type: application/json' \\\n" + |
5086
|
|
|
"--data-raw '{\n" + |
5087
|
|
|
" \"name\": \"organization_created\",\n" + |
5088
|
|
|
" \"arguments\": {\n" + |
5089
|
|
|
" \"creatorID\": \"564\",\n" + |
5090
|
|
|
" \"organizationID\": \"789\"\n" + |
5091
|
|
|
" }\n" + |
5092
|
|
|
"}'\x82\xd3\xe4\x93\x02,:\x01*\"'/v1/tenants/{tenant_id}/data/run-bundle2\xc0!\n" + |
5093
|
|
|
"\x06Bundle\x12\x80\x15\n" + |
5094
|
|
|
"\x05Write\x12\x1b.base.v1.BundleWriteRequest\x1a\x1c.base.v1.BundleWriteResponse\"\xbb\x14\x92A\x88\x14\n" + |
5095
|
|
|
"\x06Bundle\x12\fwrite bundle*\fbundle.writej\xe1\x13\n" + |
5096
|
|
|
"\rx-codeSamples\x12\xcf\x132\xcc\x13\n" + |
5097
|
|
|
"\xd3\x06*\xd0\x06\n" + |
5098
|
|
|
"\r\n" + |
5099
|
|
|
"\x05label\x12\x04\x1a\x02go\n" + |
5100
|
|
|
"\f\n" + |
5101
|
|
|
"\x04lang\x12\x04\x1a\x02go\n" + |
5102
|
|
|
"\xb0\x06\n" + |
5103
|
|
|
"\x06source\x12\xa5\x06\x1a\xa2\x06rr, err := client.Bundle.Write(context.Background(), &v1.BundleWriteRequest{\n" + |
5104
|
|
|
" TenantId: \"t1\",\n" + |
5105
|
|
|
" Bundles: []*v1.DataBundle{\n" + |
5106
|
|
|
" {\n" + |
5107
|
|
|
" Name: \"organization_created\",\n" + |
5108
|
|
|
" Arguments: []string{\n" + |
5109
|
|
|
" \"creatorID\",\n" + |
5110
|
|
|
" \"organizationID\",\n" + |
5111
|
|
|
" },\n" + |
5112
|
|
|
" Operations: []*v1.Operation{\n" + |
5113
|
|
|
" {\n" + |
5114
|
|
|
" RelationshipsWrite: []string{\n" + |
5115
|
|
|
" \"organization:{{.organizationID}}#admin@user:{{.creatorID}}\",\n" + |
5116
|
|
|
" \"organization:{{.organizationID}}#manager@user:{{.creatorID}}\",\n" + |
5117
|
|
|
" },\n" + |
5118
|
|
|
" AttributesWrite: []string{\n" + |
5119
|
|
|
" \"organization:{{.organizationID}}$public|boolean:false\",\n" + |
5120
|
|
|
" },\n" + |
5121
|
|
|
" },\n" + |
5122
|
|
|
" },\n" + |
5123
|
|
|
" },\n" + |
5124
|
|
|
" },\n" + |
5125
|
|
|
"})\n" + |
5126
|
|
|
"\x9b\x06*\x98\x06\n" + |
5127
|
|
|
"\x0f\n" + |
5128
|
|
|
"\x05label\x12\x06\x1a\x04node\n" + |
5129
|
|
|
"\x14\n" + |
5130
|
|
|
"\x04lang\x12\f\x1a\n" + |
5131
|
|
|
"javascript\n" + |
5132
|
|
|
"\xee\x05\n" + |
5133
|
|
|
"\x06source\x12\xe3\x05\x1a\xe0\x05client.bundle.write({\n" + |
5134
|
|
|
" tenantId: \"t1\",\n" + |
5135
|
|
|
" bundles: [\n" + |
5136
|
|
|
" {\n" + |
5137
|
|
|
" name: \"organization_created\",\n" + |
5138
|
|
|
" arguments: [\n" + |
5139
|
|
|
" \"creatorID\",\n" + |
5140
|
|
|
" \"organizationID\",\n" + |
5141
|
|
|
" ],\n" + |
5142
|
|
|
" operations: [\n" + |
5143
|
|
|
" {\n" + |
5144
|
|
|
" relationships_write: [\n" + |
5145
|
|
|
" \"organization:{{.organizationID}}#admin@user:{{.creatorID}}\",\n" + |
5146
|
|
|
" \"organization:{{.organizationID}}#manager@user:{{.creatorID}}\",\n" + |
5147
|
|
|
" ],\n" + |
5148
|
|
|
" attributes_write: [\n" + |
5149
|
|
|
" \"organization:{{.organizationID}}$public|boolean:false\",\n" + |
5150
|
|
|
" ]\n" + |
5151
|
|
|
" }\n" + |
5152
|
|
|
" ]\n" + |
5153
|
|
|
" }\n" + |
5154
|
|
|
" ]\n" + |
5155
|
|
|
"}).then((response) => {\n" + |
5156
|
|
|
" // handle response\n" + |
5157
|
|
|
"})\n" + |
5158
|
|
|
"\xd5\x06*\xd2\x06\n" + |
5159
|
|
|
"\x0f\n" + |
5160
|
|
|
"\x05label\x12\x06\x1a\x04cURL\n" + |
5161
|
|
|
"\x0e\n" + |
5162
|
|
|
"\x04lang\x12\x06\x1a\x04curl\n" + |
5163
|
|
|
"\xae\x06\n" + |
5164
|
|
|
"\x06source\x12\xa3\x06\x1a\xa0\x06curl --location --request POST 'localhost:3476/v1/tenants/{tenant_id}/bundle/write' \\\n" + |
5165
|
|
|
"--header 'Content-Type: application/json' \\\n" + |
5166
|
|
|
"--data-raw '{\n" + |
5167
|
|
|
" \"bundles\": [\n" + |
5168
|
|
|
" {\n" + |
5169
|
|
|
" \"name\": \"organization_created\",\n" + |
5170
|
|
|
" \"arguments\": [\n" + |
5171
|
|
|
" \"creatorID\",\n" + |
5172
|
|
|
" \"organizationID\"\n" + |
5173
|
|
|
" ],\n" + |
5174
|
|
|
" \"operations\": [\n" + |
5175
|
|
|
" {\n" + |
5176
|
|
|
" \"relationships_write\": [\n" + |
5177
|
|
|
" \"organization:{{.organizationID}}#admin@user:{{.creatorID}}\",\n" + |
5178
|
|
|
" \"organization:{{.organizationID}}#manager@user:{{.creatorID}}\"\n" + |
5179
|
|
|
" ],\n" + |
5180
|
|
|
" \"attributes_write\": [\n" + |
5181
|
|
|
" \"organization:{{.organizationID}}$public|boolean:false\"\n" + |
5182
|
|
|
" ]\n" + |
5183
|
|
|
" }\n" + |
5184
|
|
|
" ]\n" + |
5185
|
|
|
" }\n" + |
5186
|
|
|
" ]\n" + |
5187
|
|
|
"}'\x82\xd3\xe4\x93\x02):\x01*\"$/v1/tenants/{tenant_id}/bundle/write\x12\x8d\x06\n" + |
5188
|
|
|
"\x04Read\x12\x1a.base.v1.BundleReadRequest\x1a\x1b.base.v1.BundleReadResponse\"\xcb\x05\x92A\x99\x05\n" + |
5189
|
|
|
"\x06Bundle\x12\vread bundle*\vbundle.readj\xf4\x04\n" + |
5190
|
|
|
"\rx-codeSamples\x12\xe2\x042\xdf\x04\n" + |
5191
|
|
|
"\xb8\x01*\xb5\x01\n" + |
5192
|
|
|
"\r\n" + |
5193
|
|
|
"\x05label\x12\x04\x1a\x02go\n" + |
5194
|
|
|
"\f\n" + |
5195
|
|
|
"\x04lang\x12\x04\x1a\x02go\n" + |
5196
|
|
|
"\x95\x01\n" + |
5197
|
|
|
"\x06source\x12\x8a\x01\x1a\x87\x01rr, err := client.Bundle.Read(context.Background(), &v1.BundleReadRequest{\n" + |
5198
|
|
|
" TenantId: \"t1\",\n" + |
5199
|
|
|
" Name: \"organization_created\",\n" + |
5200
|
|
|
"})\n" + |
5201
|
|
|
"\xb5\x01*\xb2\x01\n" + |
5202
|
|
|
"\x0f\n" + |
5203
|
|
|
"\x05label\x12\x06\x1a\x04node\n" + |
5204
|
|
|
"\x14\n" + |
5205
|
|
|
"\x04lang\x12\f\x1a\n" + |
5206
|
|
|
"javascript\n" + |
5207
|
|
|
"\x88\x01\n" + |
5208
|
|
|
"\x06source\x12~\x1a|client.bundle.read({\n" + |
5209
|
|
|
" tenantId: \"t1\",\n" + |
5210
|
|
|
" name: \"organization_created\",\n" + |
5211
|
|
|
"}).then((response) => {\n" + |
5212
|
|
|
" // handle response\n" + |
5213
|
|
|
"})\n" + |
5214
|
|
|
"\xe9\x01*\xe6\x01\n" + |
5215
|
|
|
"\x0f\n" + |
5216
|
|
|
"\x05label\x12\x06\x1a\x04cURL\n" + |
5217
|
|
|
"\x0e\n" + |
5218
|
|
|
"\x04lang\x12\x06\x1a\x04curl\n" + |
5219
|
|
|
"\xc2\x01\n" + |
5220
|
|
|
"\x06source\x12\xb7\x01\x1a\xb4\x01curl --location --request POST 'localhost:3476/v1/tenants/{tenant_id}/bundle/read' \\\n" + |
5221
|
|
|
"--header 'Content-Type: application/json' \\\n" + |
5222
|
|
|
"--data-raw '{\n" + |
5223
|
|
|
" \"name\": \"organization_created\"\n" + |
5224
|
|
|
"}'\x82\xd3\xe4\x93\x02(:\x01*\"#/v1/tenants/{tenant_id}/bundle/read\x12\xa2\x06\n" + |
5225
|
|
|
"\x06Delete\x12\x1c.base.v1.BundleDeleteRequest\x1a\x1d.base.v1.BundleDeleteResponse\"\xda\x05\x92A\xa6\x05\n" + |
5226
|
|
|
"\x06Bundle\x12\rdelete bundle*\rbundle.deletej\xfd\x04\n" + |
5227
|
|
|
"\rx-codeSamples\x12\xeb\x042\xe8\x04\n" + |
5228
|
|
|
"\xbc\x01*\xb9\x01\n" + |
5229
|
|
|
"\r\n" + |
5230
|
|
|
"\x05label\x12\x04\x1a\x02go\n" + |
5231
|
|
|
"\f\n" + |
5232
|
|
|
"\x04lang\x12\x04\x1a\x02go\n" + |
5233
|
|
|
"\x99\x01\n" + |
5234
|
|
|
"\x06source\x12\x8e\x01\x1a\x8b\x01rr, err := client.Bundle.Delete(context.Background(), &v1.BundleDeleteRequest{\n" + |
5235
|
|
|
" TenantId: \"t1\",\n" + |
5236
|
|
|
" Name: \"organization_created\",\n" + |
5237
|
|
|
"})\n" + |
5238
|
|
|
"\xb8\x01*\xb5\x01\n" + |
5239
|
|
|
"\x0f\n" + |
5240
|
|
|
"\x05label\x12\x06\x1a\x04node\n" + |
5241
|
|
|
"\x14\n" + |
5242
|
|
|
"\x04lang\x12\f\x1a\n" + |
5243
|
|
|
"javascript\n" + |
5244
|
|
|
"\x8b\x01\n" + |
5245
|
|
|
"\x06source\x12\x80\x01\x1a~client.bundle.delete({\n" + |
5246
|
|
|
" tenantId: \"t1\",\n" + |
5247
|
|
|
" name: \"organization_created\",\n" + |
5248
|
|
|
"}).then((response) => {\n" + |
5249
|
|
|
" // handle response\n" + |
5250
|
|
|
"})\n" + |
5251
|
|
|
"\xeb\x01*\xe8\x01\n" + |
5252
|
|
|
"\x0f\n" + |
5253
|
|
|
"\x05label\x12\x06\x1a\x04cURL\n" + |
5254
|
|
|
"\x0e\n" + |
5255
|
|
|
"\x04lang\x12\x06\x1a\x04curl\n" + |
5256
|
|
|
"\xc4\x01\n" + |
5257
|
|
|
"\x06source\x12\xb9\x01\x1a\xb6\x01curl --location --request POST 'localhost:3476/v1/tenants/{tenant_id}/bundle/delete' \\\n" + |
5258
|
|
|
"--header 'Content-Type: application/json' \\\n" + |
5259
|
|
|
"--data-raw '{\n" + |
5260
|
|
|
" \"name\": \"organization_created\"\n" + |
5261
|
|
|
"}'\x82\xd3\xe4\x93\x02*:\x01*\"%/v1/tenants/{tenant_id}/bundle/delete2\xc1\x0f\n" + |
5262
|
|
|
"\aTenancy\x12\xbe\x05\n" + |
5263
|
|
|
"\x06Create\x12\x1c.base.v1.TenantCreateRequest\x1a\x1d.base.v1.TenantCreateResponse\"\xf6\x04\x92A\xd5\x04\n" + |
5264
|
|
|
"\aTenancy\x12\rcreate tenant*\x0etenants.createj\xaa\x04\n" + |
5265
|
|
|
"\rx-codeSamples\x12\x98\x042\x95\x04\n" + |
5266
|
|
|
"\x9b\x01*\x98\x01\n" + |
5267
|
|
|
"\r\n" + |
5268
|
|
|
"\x05label\x12\x04\x1a\x02go\n" + |
5269
|
|
|
"\f\n" + |
5270
|
|
|
"\x04lang\x12\x04\x1a\x02go\n" + |
5271
|
|
|
"y\n" + |
5272
|
|
|
"\x06source\x12o\x1amrr, err := client.Tenancy.Create(context.Background(), &v1.TenantCreateRequest{\n" + |
5273
|
|
|
" Id: \"\",\n" + |
5274
|
|
|
" Name: \"\"\n" + |
5275
|
|
|
"})\n" + |
5276
|
|
|
"\x98\x01*\x95\x01\n" + |
5277
|
|
|
"\x0f\n" + |
5278
|
|
|
"\x05label\x12\x06\x1a\x04node\n" + |
5279
|
|
|
"\x14\n" + |
5280
|
|
|
"\x04lang\x12\f\x1a\n" + |
5281
|
|
|
"javascript\n" + |
5282
|
|
|
"l\n" + |
5283
|
|
|
"\x06source\x12b\x1a`client.tenancy.create({\n" + |
5284
|
|
|
" id: \"\",\n" + |
5285
|
|
|
" name: \"\"\n" + |
5286
|
|
|
"}).then((response) => {\n" + |
5287
|
|
|
" // handle response\n" + |
5288
|
|
|
"})\n" + |
5289
|
|
|
"\xd9\x01*\xd6\x01\n" + |
5290
|
|
|
"\x0f\n" + |
5291
|
|
|
"\x05label\x12\x06\x1a\x04cURL\n" + |
5292
|
|
|
"\x0e\n" + |
5293
|
|
|
"\x04lang\x12\x06\x1a\x04curl\n" + |
5294
|
|
|
"\xb2\x01\n" + |
5295
|
|
|
"\x06source\x12\xa7\x01\x1a\xa4\x01curl --location --request POST 'http://localhost:3476/v1/tenants/create' \\\n" + |
5296
|
|
|
"--header 'Content-Type: application/json' \\\n" + |
5297
|
|
|
"--data-raw '{\n" + |
5298
|
|
|
" \"id\": \"\",\n" + |
5299
|
|
|
" \"name\": \"\"\n" + |
5300
|
|
|
"}'\x82\xd3\xe4\x93\x02\x17:\x01*\"\x12/v1/tenants/create\x12\xba\x04\n" + |
5301
|
|
|
"\x06Delete\x12\x1c.base.v1.TenantDeleteRequest\x1a\x1d.base.v1.TenantDeleteResponse\"\xf2\x03\x92A\xd6\x03\n" + |
5302
|
|
|
"\aTenancy\x12\rdelete tenant*\x0etenants.deletej\xab\x03\n" + |
5303
|
|
|
"\rx-codeSamples\x12\x99\x032\x96\x03\n" + |
5304
|
|
|
"\x8b\x01*\x88\x01\n" + |
5305
|
|
|
"\r\n" + |
5306
|
|
|
"\x05label\x12\x04\x1a\x02go\n" + |
5307
|
|
|
"\f\n" + |
5308
|
|
|
"\x04lang\x12\x04\x1a\x02go\n" + |
5309
|
|
|
"i\n" + |
5310
|
|
|
"\x06source\x12_\x1a]rr, err := client.Tenancy.Delete(context.Background(), &v1.TenantDeleteRequest{\n" + |
5311
|
|
|
" Id: \"\"\n" + |
5312
|
|
|
"})\n" + |
5313
|
|
|
"\x8c\x01*\x89\x01\n" + |
5314
|
|
|
"\x0f\n" + |
5315
|
|
|
"\x05label\x12\x06\x1a\x04node\n" + |
5316
|
|
|
"\x14\n" + |
5317
|
|
|
"\x04lang\x12\f\x1a\n" + |
5318
|
|
|
"javascript\n" + |
5319
|
|
|
"`\n" + |
5320
|
|
|
"\x06source\x12V\x1aTclient.tenancy.delete({\n" + |
5321
|
|
|
" id: \"\",\n" + |
5322
|
|
|
"}).then((response) => {\n" + |
5323
|
|
|
" // handle response\n" + |
5324
|
|
|
"})\n" + |
5325
|
|
|
"w*u\n" + |
5326
|
|
|
"\x0f\n" + |
5327
|
|
|
"\x05label\x12\x06\x1a\x04cURL\n" + |
5328
|
|
|
"\x0e\n" + |
5329
|
|
|
"\x04lang\x12\x06\x1a\x04curl\n" + |
5330
|
|
|
"R\n" + |
5331
|
|
|
"\x06source\x12H\x1aFcurl --location --request DELETE 'http://localhost:3476/v1/tenants/t1'\x82\xd3\xe4\x93\x02\x12*\x10/v1/tenants/{id}\x12\xb7\x05\n" + |
5332
|
|
|
"\x04List\x12\x1a.base.v1.TenantListRequest\x1a\x1b.base.v1.TenantListResponse\"\xf5\x04\x92A\xd6\x04\n" + |
5333
|
|
|
"\aTenancy\x12\flist tenants*\ftenants.listj\xae\x04\n" + |
5334
|
|
|
"\rx-codeSamples\x12\x9c\x042\x99\x04\n" + |
5335
|
|
|
"\xa8\x01*\xa5\x01\n" + |
5336
|
|
|
"\r\n" + |
5337
|
|
|
"\x05label\x12\x04\x1a\x02go\n" + |
5338
|
|
|
"\f\n" + |
5339
|
|
|
"\x04lang\x12\x04\x1a\x02go\n" + |
5340
|
|
|
"\x85\x01\n" + |
5341
|
|
|
"\x06source\x12{\x1aycr, err := client.Tenancy.List(context.Background(), &v1.TenantListRequest{\n" + |
5342
|
|
|
" PageSize: 20,\n" + |
5343
|
|
|
" ContinuousToken: \"\",\n" + |
5344
|
|
|
"})\n" + |
5345
|
|
|
"\x85\x01*\x82\x01\n" + |
5346
|
|
|
"\x0f\n" + |
5347
|
|
|
"\x05label\x12\x06\x1a\x04node\n" + |
5348
|
|
|
"\x14\n" + |
5349
|
|
|
"\x04lang\x12\f\x1a\n" + |
5350
|
|
|
"javascript\n" + |
5351
|
|
|
"Y\n" + |
5352
|
|
|
"\x06source\x12O\x1aMlet res = client.tenancy.list({\n" + |
5353
|
|
|
" pageSize: 20,\n" + |
5354
|
|
|
" continuousToken: \"\",\n" + |
5355
|
|
|
"})\n" + |
5356
|
|
|
"\xe3\x01*\xe0\x01\n" + |
5357
|
|
|
"\x0f\n" + |
5358
|
|
|
"\x05label\x12\x06\x1a\x04cURL\n" + |
5359
|
|
|
"\x0e\n" + |
5360
|
|
|
"\x04lang\x12\x06\x1a\x04curl\n" + |
5361
|
|
|
"\xbc\x01\n" + |
5362
|
|
|
"\x06source\x12\xb1\x01\x1a\xae\x01curl --location --request POST 'localhost:3476/v1/tenants/list' \\\n" + |
5363
|
|
|
"--header 'Content-Type: application/json' \\\n" + |
5364
|
|
|
"--data-raw '{\n" + |
5365
|
|
|
" \"page_size\": 20,\n" + |
5366
|
|
|
" \"continuous_token\": \"\"\n" + |
5367
|
|
|
"}'\x82\xd3\xe4\x93\x02\x15:\x01*\"\x10/v1/tenants/listB\x8a\x01\n" + |
5368
|
|
|
"\vcom.base.v1B\fServiceProtoP\x01Z0github.com/Permify/permify/pkg/pb/base/v1;basev1\xa2\x02\x03BXX\xaa\x02\aBase.V1\xca\x02\aBase\\V1\xe2\x02\x13Base\\V1\\GPBMetadata\xea\x02\bBase::V1b\x06proto3" |
5369
|
|
|
|
5370
|
|
|
var ( |
5371
|
|
|
file_base_v1_service_proto_rawDescOnce sync.Once |
5372
|
|
|
file_base_v1_service_proto_rawDescData []byte |
5373
|
|
|
) |
5374
|
|
|
|
5375
|
|
|
func file_base_v1_service_proto_rawDescGZIP() []byte { |
5376
|
|
|
file_base_v1_service_proto_rawDescOnce.Do(func() { |
5377
|
|
|
file_base_v1_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_base_v1_service_proto_rawDesc), len(file_base_v1_service_proto_rawDesc))) |
5378
|
|
|
}) |
5379
|
|
|
return file_base_v1_service_proto_rawDescData |
5380
|
|
|
} |
5381
|
|
|
|
5382
|
|
|
var file_base_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 67) |
5383
|
|
|
var file_base_v1_service_proto_goTypes = []any{ |
5384
|
|
|
(*PermissionCheckRequest)(nil), // 0: base.v1.PermissionCheckRequest |
5385
|
|
|
(*PermissionCheckRequestMetadata)(nil), // 1: base.v1.PermissionCheckRequestMetadata |
5386
|
|
|
(*PermissionCheckResponse)(nil), // 2: base.v1.PermissionCheckResponse |
5387
|
|
|
(*PermissionCheckResponseMetadata)(nil), // 3: base.v1.PermissionCheckResponseMetadata |
5388
|
|
|
(*PermissionExpandRequest)(nil), // 4: base.v1.PermissionExpandRequest |
5389
|
|
|
(*PermissionExpandRequestMetadata)(nil), // 5: base.v1.PermissionExpandRequestMetadata |
5390
|
|
|
(*PermissionExpandResponse)(nil), // 6: base.v1.PermissionExpandResponse |
5391
|
|
|
(*PermissionLookupEntityRequest)(nil), // 7: base.v1.PermissionLookupEntityRequest |
5392
|
|
|
(*PermissionLookupEntityRequestMetadata)(nil), // 8: base.v1.PermissionLookupEntityRequestMetadata |
5393
|
|
|
(*PermissionLookupEntityResponse)(nil), // 9: base.v1.PermissionLookupEntityResponse |
5394
|
|
|
(*PermissionLookupEntityStreamResponse)(nil), // 10: base.v1.PermissionLookupEntityStreamResponse |
5395
|
|
|
(*PermissionEntityFilterRequest)(nil), // 11: base.v1.PermissionEntityFilterRequest |
5396
|
|
|
(*PermissionEntityFilterRequestMetadata)(nil), // 12: base.v1.PermissionEntityFilterRequestMetadata |
5397
|
|
|
(*PermissionLookupSubjectRequest)(nil), // 13: base.v1.PermissionLookupSubjectRequest |
5398
|
|
|
(*PermissionLookupSubjectRequestMetadata)(nil), // 14: base.v1.PermissionLookupSubjectRequestMetadata |
5399
|
|
|
(*PermissionLookupSubjectResponse)(nil), // 15: base.v1.PermissionLookupSubjectResponse |
5400
|
|
|
(*PermissionSubjectPermissionRequest)(nil), // 16: base.v1.PermissionSubjectPermissionRequest |
5401
|
|
|
(*PermissionSubjectPermissionRequestMetadata)(nil), // 17: base.v1.PermissionSubjectPermissionRequestMetadata |
5402
|
|
|
(*PermissionSubjectPermissionResponse)(nil), // 18: base.v1.PermissionSubjectPermissionResponse |
5403
|
|
|
(*WatchRequest)(nil), // 19: base.v1.WatchRequest |
5404
|
|
|
(*WatchResponse)(nil), // 20: base.v1.WatchResponse |
5405
|
|
|
(*SchemaWriteRequest)(nil), // 21: base.v1.SchemaWriteRequest |
5406
|
|
|
(*SchemaWriteResponse)(nil), // 22: base.v1.SchemaWriteResponse |
5407
|
|
|
(*SchemaPartialWriteRequest)(nil), // 23: base.v1.SchemaPartialWriteRequest |
5408
|
|
|
(*SchemaPartialWriteRequestMetadata)(nil), // 24: base.v1.SchemaPartialWriteRequestMetadata |
5409
|
|
|
(*SchemaPartialWriteResponse)(nil), // 25: base.v1.SchemaPartialWriteResponse |
5410
|
|
|
(*SchemaReadRequest)(nil), // 26: base.v1.SchemaReadRequest |
5411
|
|
|
(*SchemaReadRequestMetadata)(nil), // 27: base.v1.SchemaReadRequestMetadata |
5412
|
|
|
(*SchemaReadResponse)(nil), // 28: base.v1.SchemaReadResponse |
5413
|
|
|
(*SchemaListRequest)(nil), // 29: base.v1.SchemaListRequest |
5414
|
|
|
(*SchemaListResponse)(nil), // 30: base.v1.SchemaListResponse |
5415
|
|
|
(*SchemaList)(nil), // 31: base.v1.SchemaList |
5416
|
|
|
(*DataWriteRequest)(nil), // 32: base.v1.DataWriteRequest |
5417
|
|
|
(*DataWriteRequestMetadata)(nil), // 33: base.v1.DataWriteRequestMetadata |
5418
|
|
|
(*DataWriteResponse)(nil), // 34: base.v1.DataWriteResponse |
5419
|
|
|
(*RelationshipWriteRequest)(nil), // 35: base.v1.RelationshipWriteRequest |
5420
|
|
|
(*RelationshipWriteRequestMetadata)(nil), // 36: base.v1.RelationshipWriteRequestMetadata |
5421
|
|
|
(*RelationshipWriteResponse)(nil), // 37: base.v1.RelationshipWriteResponse |
5422
|
|
|
(*RelationshipReadRequest)(nil), // 38: base.v1.RelationshipReadRequest |
5423
|
|
|
(*RelationshipReadRequestMetadata)(nil), // 39: base.v1.RelationshipReadRequestMetadata |
5424
|
|
|
(*RelationshipReadResponse)(nil), // 40: base.v1.RelationshipReadResponse |
5425
|
|
|
(*AttributeReadRequest)(nil), // 41: base.v1.AttributeReadRequest |
5426
|
|
|
(*AttributeReadRequestMetadata)(nil), // 42: base.v1.AttributeReadRequestMetadata |
5427
|
|
|
(*AttributeReadResponse)(nil), // 43: base.v1.AttributeReadResponse |
5428
|
|
|
(*DataDeleteRequest)(nil), // 44: base.v1.DataDeleteRequest |
5429
|
|
|
(*DataDeleteResponse)(nil), // 45: base.v1.DataDeleteResponse |
5430
|
|
|
(*RelationshipDeleteRequest)(nil), // 46: base.v1.RelationshipDeleteRequest |
5431
|
|
|
(*RelationshipDeleteResponse)(nil), // 47: base.v1.RelationshipDeleteResponse |
5432
|
|
|
(*BundleRunRequest)(nil), // 48: base.v1.BundleRunRequest |
5433
|
|
|
(*BundleRunResponse)(nil), // 49: base.v1.BundleRunResponse |
5434
|
|
|
(*BundleWriteRequest)(nil), // 50: base.v1.BundleWriteRequest |
5435
|
|
|
(*BundleWriteResponse)(nil), // 51: base.v1.BundleWriteResponse |
5436
|
|
|
(*BundleReadRequest)(nil), // 52: base.v1.BundleReadRequest |
5437
|
|
|
(*BundleReadResponse)(nil), // 53: base.v1.BundleReadResponse |
5438
|
|
|
(*BundleDeleteRequest)(nil), // 54: base.v1.BundleDeleteRequest |
5439
|
|
|
(*BundleDeleteResponse)(nil), // 55: base.v1.BundleDeleteResponse |
5440
|
|
|
(*TenantCreateRequest)(nil), // 56: base.v1.TenantCreateRequest |
5441
|
|
|
(*TenantCreateResponse)(nil), // 57: base.v1.TenantCreateResponse |
5442
|
|
|
(*TenantDeleteRequest)(nil), // 58: base.v1.TenantDeleteRequest |
5443
|
|
|
(*TenantDeleteResponse)(nil), // 59: base.v1.TenantDeleteResponse |
5444
|
|
|
(*TenantListRequest)(nil), // 60: base.v1.TenantListRequest |
5445
|
|
|
(*TenantListResponse)(nil), // 61: base.v1.TenantListResponse |
5446
|
|
|
nil, // 62: base.v1.PermissionLookupEntityRequest.ScopeEntry |
5447
|
|
|
nil, // 63: base.v1.PermissionEntityFilterRequest.ScopeEntry |
5448
|
|
|
nil, // 64: base.v1.PermissionSubjectPermissionResponse.ResultsEntry |
5449
|
|
|
nil, // 65: base.v1.SchemaPartialWriteRequest.PartialsEntry |
5450
|
|
|
nil, // 66: base.v1.BundleRunRequest.ArgumentsEntry |
5451
|
|
|
(*Entity)(nil), // 67: base.v1.Entity |
5452
|
|
|
(*Subject)(nil), // 68: base.v1.Subject |
5453
|
|
|
(*Context)(nil), // 69: base.v1.Context |
5454
|
|
|
(*Argument)(nil), // 70: base.v1.Argument |
5455
|
|
|
(CheckResult)(0), // 71: base.v1.CheckResult |
5456
|
|
|
(*Expand)(nil), // 72: base.v1.Expand |
5457
|
|
|
(*Entrance)(nil), // 73: base.v1.Entrance |
5458
|
|
|
(*RelationReference)(nil), // 74: base.v1.RelationReference |
5459
|
|
|
(*DataChanges)(nil), // 75: base.v1.DataChanges |
5460
|
|
|
(*SchemaDefinition)(nil), // 76: base.v1.SchemaDefinition |
5461
|
|
|
(*Tuple)(nil), // 77: base.v1.Tuple |
5462
|
|
|
(*Attribute)(nil), // 78: base.v1.Attribute |
5463
|
|
|
(*TupleFilter)(nil), // 79: base.v1.TupleFilter |
5464
|
|
|
(*AttributeFilter)(nil), // 80: base.v1.AttributeFilter |
5465
|
|
|
(*DataBundle)(nil), // 81: base.v1.DataBundle |
5466
|
|
|
(*Tenant)(nil), // 82: base.v1.Tenant |
5467
|
|
|
(*StringArrayValue)(nil), // 83: base.v1.StringArrayValue |
5468
|
|
|
(*Partials)(nil), // 84: base.v1.Partials |
5469
|
|
|
} |
5470
|
|
|
var file_base_v1_service_proto_depIdxs = []int32{ |
5471
|
|
|
1, // 0: base.v1.PermissionCheckRequest.metadata:type_name -> base.v1.PermissionCheckRequestMetadata |
5472
|
|
|
67, // 1: base.v1.PermissionCheckRequest.entity:type_name -> base.v1.Entity |
5473
|
|
|
68, // 2: base.v1.PermissionCheckRequest.subject:type_name -> base.v1.Subject |
5474
|
|
|
69, // 3: base.v1.PermissionCheckRequest.context:type_name -> base.v1.Context |
5475
|
|
|
70, // 4: base.v1.PermissionCheckRequest.arguments:type_name -> base.v1.Argument |
5476
|
|
|
71, // 5: base.v1.PermissionCheckResponse.can:type_name -> base.v1.CheckResult |
5477
|
|
|
3, // 6: base.v1.PermissionCheckResponse.metadata:type_name -> base.v1.PermissionCheckResponseMetadata |
5478
|
|
|
5, // 7: base.v1.PermissionExpandRequest.metadata:type_name -> base.v1.PermissionExpandRequestMetadata |
5479
|
|
|
67, // 8: base.v1.PermissionExpandRequest.entity:type_name -> base.v1.Entity |
5480
|
|
|
69, // 9: base.v1.PermissionExpandRequest.context:type_name -> base.v1.Context |
5481
|
|
|
70, // 10: base.v1.PermissionExpandRequest.arguments:type_name -> base.v1.Argument |
5482
|
|
|
72, // 11: base.v1.PermissionExpandResponse.tree:type_name -> base.v1.Expand |
5483
|
|
|
8, // 12: base.v1.PermissionLookupEntityRequest.metadata:type_name -> base.v1.PermissionLookupEntityRequestMetadata |
5484
|
|
|
68, // 13: base.v1.PermissionLookupEntityRequest.subject:type_name -> base.v1.Subject |
5485
|
|
|
69, // 14: base.v1.PermissionLookupEntityRequest.context:type_name -> base.v1.Context |
5486
|
|
|
62, // 15: base.v1.PermissionLookupEntityRequest.scope:type_name -> base.v1.PermissionLookupEntityRequest.ScopeEntry |
5487
|
|
|
12, // 16: base.v1.PermissionEntityFilterRequest.metadata:type_name -> base.v1.PermissionEntityFilterRequestMetadata |
5488
|
|
|
73, // 17: base.v1.PermissionEntityFilterRequest.entrance:type_name -> base.v1.Entrance |
5489
|
|
|
68, // 18: base.v1.PermissionEntityFilterRequest.subject:type_name -> base.v1.Subject |
5490
|
|
|
69, // 19: base.v1.PermissionEntityFilterRequest.context:type_name -> base.v1.Context |
5491
|
|
|
63, // 20: base.v1.PermissionEntityFilterRequest.scope:type_name -> base.v1.PermissionEntityFilterRequest.ScopeEntry |
5492
|
|
|
14, // 21: base.v1.PermissionLookupSubjectRequest.metadata:type_name -> base.v1.PermissionLookupSubjectRequestMetadata |
5493
|
|
|
67, // 22: base.v1.PermissionLookupSubjectRequest.entity:type_name -> base.v1.Entity |
5494
|
|
|
74, // 23: base.v1.PermissionLookupSubjectRequest.subject_reference:type_name -> base.v1.RelationReference |
5495
|
|
|
69, // 24: base.v1.PermissionLookupSubjectRequest.context:type_name -> base.v1.Context |
5496
|
|
|
70, // 25: base.v1.PermissionLookupSubjectRequest.arguments:type_name -> base.v1.Argument |
5497
|
|
|
17, // 26: base.v1.PermissionSubjectPermissionRequest.metadata:type_name -> base.v1.PermissionSubjectPermissionRequestMetadata |
5498
|
|
|
67, // 27: base.v1.PermissionSubjectPermissionRequest.entity:type_name -> base.v1.Entity |
5499
|
|
|
68, // 28: base.v1.PermissionSubjectPermissionRequest.subject:type_name -> base.v1.Subject |
5500
|
|
|
69, // 29: base.v1.PermissionSubjectPermissionRequest.context:type_name -> base.v1.Context |
5501
|
|
|
64, // 30: base.v1.PermissionSubjectPermissionResponse.results:type_name -> base.v1.PermissionSubjectPermissionResponse.ResultsEntry |
5502
|
|
|
75, // 31: base.v1.WatchResponse.changes:type_name -> base.v1.DataChanges |
5503
|
|
|
24, // 32: base.v1.SchemaPartialWriteRequest.metadata:type_name -> base.v1.SchemaPartialWriteRequestMetadata |
5504
|
|
|
65, // 33: base.v1.SchemaPartialWriteRequest.partials:type_name -> base.v1.SchemaPartialWriteRequest.PartialsEntry |
5505
|
|
|
27, // 34: base.v1.SchemaReadRequest.metadata:type_name -> base.v1.SchemaReadRequestMetadata |
5506
|
|
|
76, // 35: base.v1.SchemaReadResponse.schema:type_name -> base.v1.SchemaDefinition |
5507
|
|
|
31, // 36: base.v1.SchemaListResponse.schemas:type_name -> base.v1.SchemaList |
5508
|
|
|
33, // 37: base.v1.DataWriteRequest.metadata:type_name -> base.v1.DataWriteRequestMetadata |
5509
|
|
|
77, // 38: base.v1.DataWriteRequest.tuples:type_name -> base.v1.Tuple |
5510
|
|
|
78, // 39: base.v1.DataWriteRequest.attributes:type_name -> base.v1.Attribute |
5511
|
|
|
36, // 40: base.v1.RelationshipWriteRequest.metadata:type_name -> base.v1.RelationshipWriteRequestMetadata |
5512
|
|
|
77, // 41: base.v1.RelationshipWriteRequest.tuples:type_name -> base.v1.Tuple |
5513
|
|
|
39, // 42: base.v1.RelationshipReadRequest.metadata:type_name -> base.v1.RelationshipReadRequestMetadata |
5514
|
|
|
79, // 43: base.v1.RelationshipReadRequest.filter:type_name -> base.v1.TupleFilter |
5515
|
|
|
77, // 44: base.v1.RelationshipReadResponse.tuples:type_name -> base.v1.Tuple |
5516
|
|
|
42, // 45: base.v1.AttributeReadRequest.metadata:type_name -> base.v1.AttributeReadRequestMetadata |
5517
|
|
|
80, // 46: base.v1.AttributeReadRequest.filter:type_name -> base.v1.AttributeFilter |
5518
|
|
|
78, // 47: base.v1.AttributeReadResponse.attributes:type_name -> base.v1.Attribute |
5519
|
|
|
79, // 48: base.v1.DataDeleteRequest.tuple_filter:type_name -> base.v1.TupleFilter |
5520
|
|
|
80, // 49: base.v1.DataDeleteRequest.attribute_filter:type_name -> base.v1.AttributeFilter |
5521
|
|
|
79, // 50: base.v1.RelationshipDeleteRequest.filter:type_name -> base.v1.TupleFilter |
5522
|
|
|
66, // 51: base.v1.BundleRunRequest.arguments:type_name -> base.v1.BundleRunRequest.ArgumentsEntry |
5523
|
|
|
81, // 52: base.v1.BundleWriteRequest.bundles:type_name -> base.v1.DataBundle |
5524
|
|
|
81, // 53: base.v1.BundleReadResponse.bundle:type_name -> base.v1.DataBundle |
5525
|
|
|
82, // 54: base.v1.TenantCreateResponse.tenant:type_name -> base.v1.Tenant |
5526
|
|
|
82, // 55: base.v1.TenantListResponse.tenants:type_name -> base.v1.Tenant |
5527
|
|
|
83, // 56: base.v1.PermissionLookupEntityRequest.ScopeEntry.value:type_name -> base.v1.StringArrayValue |
5528
|
|
|
83, // 57: base.v1.PermissionEntityFilterRequest.ScopeEntry.value:type_name -> base.v1.StringArrayValue |
5529
|
|
|
71, // 58: base.v1.PermissionSubjectPermissionResponse.ResultsEntry.value:type_name -> base.v1.CheckResult |
5530
|
|
|
84, // 59: base.v1.SchemaPartialWriteRequest.PartialsEntry.value:type_name -> base.v1.Partials |
5531
|
|
|
0, // 60: base.v1.Permission.Check:input_type -> base.v1.PermissionCheckRequest |
5532
|
|
|
4, // 61: base.v1.Permission.Expand:input_type -> base.v1.PermissionExpandRequest |
5533
|
|
|
7, // 62: base.v1.Permission.LookupEntity:input_type -> base.v1.PermissionLookupEntityRequest |
5534
|
|
|
7, // 63: base.v1.Permission.LookupEntityStream:input_type -> base.v1.PermissionLookupEntityRequest |
5535
|
|
|
13, // 64: base.v1.Permission.LookupSubject:input_type -> base.v1.PermissionLookupSubjectRequest |
5536
|
|
|
16, // 65: base.v1.Permission.SubjectPermission:input_type -> base.v1.PermissionSubjectPermissionRequest |
5537
|
|
|
19, // 66: base.v1.Watch.Watch:input_type -> base.v1.WatchRequest |
5538
|
|
|
21, // 67: base.v1.Schema.Write:input_type -> base.v1.SchemaWriteRequest |
5539
|
|
|
23, // 68: base.v1.Schema.PartialWrite:input_type -> base.v1.SchemaPartialWriteRequest |
5540
|
|
|
26, // 69: base.v1.Schema.Read:input_type -> base.v1.SchemaReadRequest |
5541
|
|
|
29, // 70: base.v1.Schema.List:input_type -> base.v1.SchemaListRequest |
5542
|
|
|
32, // 71: base.v1.Data.Write:input_type -> base.v1.DataWriteRequest |
5543
|
|
|
35, // 72: base.v1.Data.WriteRelationships:input_type -> base.v1.RelationshipWriteRequest |
5544
|
|
|
38, // 73: base.v1.Data.ReadRelationships:input_type -> base.v1.RelationshipReadRequest |
5545
|
|
|
41, // 74: base.v1.Data.ReadAttributes:input_type -> base.v1.AttributeReadRequest |
5546
|
|
|
44, // 75: base.v1.Data.Delete:input_type -> base.v1.DataDeleteRequest |
5547
|
|
|
46, // 76: base.v1.Data.DeleteRelationships:input_type -> base.v1.RelationshipDeleteRequest |
5548
|
|
|
48, // 77: base.v1.Data.RunBundle:input_type -> base.v1.BundleRunRequest |
5549
|
|
|
50, // 78: base.v1.Bundle.Write:input_type -> base.v1.BundleWriteRequest |
5550
|
|
|
52, // 79: base.v1.Bundle.Read:input_type -> base.v1.BundleReadRequest |
5551
|
|
|
54, // 80: base.v1.Bundle.Delete:input_type -> base.v1.BundleDeleteRequest |
5552
|
|
|
56, // 81: base.v1.Tenancy.Create:input_type -> base.v1.TenantCreateRequest |
5553
|
|
|
58, // 82: base.v1.Tenancy.Delete:input_type -> base.v1.TenantDeleteRequest |
5554
|
|
|
60, // 83: base.v1.Tenancy.List:input_type -> base.v1.TenantListRequest |
5555
|
|
|
2, // 84: base.v1.Permission.Check:output_type -> base.v1.PermissionCheckResponse |
5556
|
|
|
6, // 85: base.v1.Permission.Expand:output_type -> base.v1.PermissionExpandResponse |
5557
|
|
|
9, // 86: base.v1.Permission.LookupEntity:output_type -> base.v1.PermissionLookupEntityResponse |
5558
|
|
|
10, // 87: base.v1.Permission.LookupEntityStream:output_type -> base.v1.PermissionLookupEntityStreamResponse |
5559
|
|
|
15, // 88: base.v1.Permission.LookupSubject:output_type -> base.v1.PermissionLookupSubjectResponse |
5560
|
|
|
18, // 89: base.v1.Permission.SubjectPermission:output_type -> base.v1.PermissionSubjectPermissionResponse |
5561
|
|
|
20, // 90: base.v1.Watch.Watch:output_type -> base.v1.WatchResponse |
5562
|
|
|
22, // 91: base.v1.Schema.Write:output_type -> base.v1.SchemaWriteResponse |
5563
|
|
|
25, // 92: base.v1.Schema.PartialWrite:output_type -> base.v1.SchemaPartialWriteResponse |
5564
|
|
|
28, // 93: base.v1.Schema.Read:output_type -> base.v1.SchemaReadResponse |
5565
|
|
|
30, // 94: base.v1.Schema.List:output_type -> base.v1.SchemaListResponse |
5566
|
|
|
34, // 95: base.v1.Data.Write:output_type -> base.v1.DataWriteResponse |
5567
|
|
|
37, // 96: base.v1.Data.WriteRelationships:output_type -> base.v1.RelationshipWriteResponse |
5568
|
|
|
40, // 97: base.v1.Data.ReadRelationships:output_type -> base.v1.RelationshipReadResponse |
5569
|
|
|
43, // 98: base.v1.Data.ReadAttributes:output_type -> base.v1.AttributeReadResponse |
5570
|
|
|
45, // 99: base.v1.Data.Delete:output_type -> base.v1.DataDeleteResponse |
5571
|
|
|
47, // 100: base.v1.Data.DeleteRelationships:output_type -> base.v1.RelationshipDeleteResponse |
5572
|
|
|
49, // 101: base.v1.Data.RunBundle:output_type -> base.v1.BundleRunResponse |
5573
|
|
|
51, // 102: base.v1.Bundle.Write:output_type -> base.v1.BundleWriteResponse |
5574
|
|
|
53, // 103: base.v1.Bundle.Read:output_type -> base.v1.BundleReadResponse |
5575
|
|
|
55, // 104: base.v1.Bundle.Delete:output_type -> base.v1.BundleDeleteResponse |
5576
|
|
|
57, // 105: base.v1.Tenancy.Create:output_type -> base.v1.TenantCreateResponse |
5577
|
|
|
59, // 106: base.v1.Tenancy.Delete:output_type -> base.v1.TenantDeleteResponse |
5578
|
|
|
61, // 107: base.v1.Tenancy.List:output_type -> base.v1.TenantListResponse |
5579
|
|
|
84, // [84:108] is the sub-list for method output_type |
5580
|
|
|
60, // [60:84] is the sub-list for method input_type |
5581
|
|
|
60, // [60:60] is the sub-list for extension type_name |
5582
|
|
|
60, // [60:60] is the sub-list for extension extendee |
5583
|
|
|
0, // [0:60] is the sub-list for field type_name |
5584
|
|
|
} |
5585
|
|
|
|
5586
|
|
|
func init() { file_base_v1_service_proto_init() } |
5587
|
|
|
func file_base_v1_service_proto_init() { |
5588
|
|
|
if File_base_v1_service_proto != nil { |
5589
|
|
|
return |
5590
|
|
|
} |
5591
|
|
|
file_base_v1_base_proto_init() |
5592
|
|
|
type x struct{} |
5593
|
|
|
out := protoimpl.TypeBuilder{ |
5594
|
|
|
File: protoimpl.DescBuilder{ |
5595
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
5596
|
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_base_v1_service_proto_rawDesc), len(file_base_v1_service_proto_rawDesc)), |
5597
|
|
|
NumEnums: 0, |
5598
|
|
|
NumMessages: 67, |
5599
|
|
|
NumExtensions: 0, |
5600
|
|
|
NumServices: 6, |
5601
|
|
|
}, |
5602
|
|
|
GoTypes: file_base_v1_service_proto_goTypes, |
5603
|
|
|
DependencyIndexes: file_base_v1_service_proto_depIdxs, |
5604
|
|
|
MessageInfos: file_base_v1_service_proto_msgTypes, |
5605
|
|
|
}.Build() |
5606
|
|
|
File_base_v1_service_proto = out.File |
5607
|
|
|
file_base_v1_service_proto_goTypes = nil |
5608
|
|
|
file_base_v1_service_proto_depIdxs = nil |
5609
|
|
|
} |
5610
|
|
|
|