@lansweeper/permissions-grpc 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/gen-proto/image.json +1 -1
- package/gen-proto/index.d.ts +1 -0
- package/gen-proto/index.js +3 -1
- package/gen-proto/limits/limits_grpc_pb.js +1 -0
- package/gen-proto/limits/limits_pb.d.ts +72 -0
- package/gen-proto/limits/limits_pb.js +460 -0
- package/gen-proto/permissions_grpc_pb.d.ts +34 -0
- package/gen-proto/permissions_grpc_pb.js +38 -0
- package/gen-proto/permissions_pb.d.ts +45 -0
- package/gen-proto/permissions_pb.js +343 -2
- package/generated-go/permissions.pb.go +263 -110
- package/generated-go/permissions_grpc.pb.go +91 -1
- package/package.json +5 -2
- package/proto/limits/limits.proto +29 -0
- package/proto/permissions.proto +15 -0
- package/protodeps.yaml +4 -0
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-go v1.
|
|
4
|
-
// protoc v3.
|
|
3
|
+
// protoc-gen-go v1.31.0
|
|
4
|
+
// protoc v3.19.1
|
|
5
5
|
// source: permissions.proto
|
|
6
6
|
|
|
7
7
|
package generated_go
|
|
8
8
|
|
|
9
9
|
import (
|
|
10
|
+
generated_go "github.com/Lansweeper/lansweeperapis/packages/shared/generated-go"
|
|
10
11
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
11
12
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
12
13
|
reflect "reflect"
|
|
@@ -280,6 +281,100 @@ func (x *GetUserPermissionsResponse) GetPermissions() map[string]*GetUserPermiss
|
|
|
280
281
|
return nil
|
|
281
282
|
}
|
|
282
283
|
|
|
284
|
+
type GetSitesLimitsRequest struct {
|
|
285
|
+
state protoimpl.MessageState
|
|
286
|
+
sizeCache protoimpl.SizeCache
|
|
287
|
+
unknownFields protoimpl.UnknownFields
|
|
288
|
+
|
|
289
|
+
SiteIds []string `protobuf:"bytes,1,rep,name=site_ids,json=siteIds,proto3" json:"site_ids,omitempty"`
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
func (x *GetSitesLimitsRequest) Reset() {
|
|
293
|
+
*x = GetSitesLimitsRequest{}
|
|
294
|
+
if protoimpl.UnsafeEnabled {
|
|
295
|
+
mi := &file_permissions_proto_msgTypes[4]
|
|
296
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
297
|
+
ms.StoreMessageInfo(mi)
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
func (x *GetSitesLimitsRequest) String() string {
|
|
302
|
+
return protoimpl.X.MessageStringOf(x)
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
func (*GetSitesLimitsRequest) ProtoMessage() {}
|
|
306
|
+
|
|
307
|
+
func (x *GetSitesLimitsRequest) ProtoReflect() protoreflect.Message {
|
|
308
|
+
mi := &file_permissions_proto_msgTypes[4]
|
|
309
|
+
if protoimpl.UnsafeEnabled && x != nil {
|
|
310
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
311
|
+
if ms.LoadMessageInfo() == nil {
|
|
312
|
+
ms.StoreMessageInfo(mi)
|
|
313
|
+
}
|
|
314
|
+
return ms
|
|
315
|
+
}
|
|
316
|
+
return mi.MessageOf(x)
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
// Deprecated: Use GetSitesLimitsRequest.ProtoReflect.Descriptor instead.
|
|
320
|
+
func (*GetSitesLimitsRequest) Descriptor() ([]byte, []int) {
|
|
321
|
+
return file_permissions_proto_rawDescGZIP(), []int{4}
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
func (x *GetSitesLimitsRequest) GetSiteIds() []string {
|
|
325
|
+
if x != nil {
|
|
326
|
+
return x.SiteIds
|
|
327
|
+
}
|
|
328
|
+
return nil
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
type GetSitesLimitsResponse struct {
|
|
332
|
+
state protoimpl.MessageState
|
|
333
|
+
sizeCache protoimpl.SizeCache
|
|
334
|
+
unknownFields protoimpl.UnknownFields
|
|
335
|
+
|
|
336
|
+
SiteLimits map[string]*generated_go.SiteLimits `protobuf:"bytes,1,rep,name=site_limits,json=siteLimits,proto3" json:"site_limits,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
func (x *GetSitesLimitsResponse) Reset() {
|
|
340
|
+
*x = GetSitesLimitsResponse{}
|
|
341
|
+
if protoimpl.UnsafeEnabled {
|
|
342
|
+
mi := &file_permissions_proto_msgTypes[5]
|
|
343
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
344
|
+
ms.StoreMessageInfo(mi)
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
func (x *GetSitesLimitsResponse) String() string {
|
|
349
|
+
return protoimpl.X.MessageStringOf(x)
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
func (*GetSitesLimitsResponse) ProtoMessage() {}
|
|
353
|
+
|
|
354
|
+
func (x *GetSitesLimitsResponse) ProtoReflect() protoreflect.Message {
|
|
355
|
+
mi := &file_permissions_proto_msgTypes[5]
|
|
356
|
+
if protoimpl.UnsafeEnabled && x != nil {
|
|
357
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
358
|
+
if ms.LoadMessageInfo() == nil {
|
|
359
|
+
ms.StoreMessageInfo(mi)
|
|
360
|
+
}
|
|
361
|
+
return ms
|
|
362
|
+
}
|
|
363
|
+
return mi.MessageOf(x)
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
// Deprecated: Use GetSitesLimitsResponse.ProtoReflect.Descriptor instead.
|
|
367
|
+
func (*GetSitesLimitsResponse) Descriptor() ([]byte, []int) {
|
|
368
|
+
return file_permissions_proto_rawDescGZIP(), []int{5}
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
func (x *GetSitesLimitsResponse) GetSiteLimits() map[string]*generated_go.SiteLimits {
|
|
372
|
+
if x != nil {
|
|
373
|
+
return x.SiteLimits
|
|
374
|
+
}
|
|
375
|
+
return nil
|
|
376
|
+
}
|
|
377
|
+
|
|
283
378
|
type GetUserPermissionsResponse_Permissions struct {
|
|
284
379
|
state protoimpl.MessageState
|
|
285
380
|
sizeCache protoimpl.SizeCache
|
|
@@ -293,7 +388,7 @@ type GetUserPermissionsResponse_Permissions struct {
|
|
|
293
388
|
func (x *GetUserPermissionsResponse_Permissions) Reset() {
|
|
294
389
|
*x = GetUserPermissionsResponse_Permissions{}
|
|
295
390
|
if protoimpl.UnsafeEnabled {
|
|
296
|
-
mi := &file_permissions_proto_msgTypes[
|
|
391
|
+
mi := &file_permissions_proto_msgTypes[7]
|
|
297
392
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
298
393
|
ms.StoreMessageInfo(mi)
|
|
299
394
|
}
|
|
@@ -306,7 +401,7 @@ func (x *GetUserPermissionsResponse_Permissions) String() string {
|
|
|
306
401
|
func (*GetUserPermissionsResponse_Permissions) ProtoMessage() {}
|
|
307
402
|
|
|
308
403
|
func (x *GetUserPermissionsResponse_Permissions) ProtoReflect() protoreflect.Message {
|
|
309
|
-
mi := &file_permissions_proto_msgTypes[
|
|
404
|
+
mi := &file_permissions_proto_msgTypes[7]
|
|
310
405
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
311
406
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
312
407
|
if ms.LoadMessageInfo() == nil {
|
|
@@ -348,94 +443,120 @@ var File_permissions_proto protoreflect.FileDescriptor
|
|
|
348
443
|
var file_permissions_proto_rawDesc = []byte{
|
|
349
444
|
0x0a, 0x11, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72,
|
|
350
445
|
0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73,
|
|
351
|
-
0x73, 0x69, 0x6f, 0x6e,
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
0x6f, 0x6e, 0x73,
|
|
366
|
-
|
|
367
|
-
0x63, 0x6f, 0x70, 0x65, 0x73,
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
0x52, 0x75, 0x6c, 0x65, 0x73,
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
0x65,
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
0x73,
|
|
394
|
-
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
|
|
395
|
-
0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73,
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
0x6f, 0x6e, 0x73,
|
|
401
|
-
|
|
402
|
-
0x63, 0x6f, 0x70, 0x65, 0x73,
|
|
403
|
-
|
|
404
|
-
|
|
446
|
+
0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x13, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x2f, 0x6c, 0x69, 0x6d,
|
|
447
|
+
0x69, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x80, 0x01, 0x0a, 0x16, 0x43, 0x68,
|
|
448
|
+
0x65, 0x63, 0x6b, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71,
|
|
449
|
+
0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x69, 0x74, 0x65, 0x49, 0x64, 0x18, 0x01,
|
|
450
|
+
0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x69, 0x74, 0x65, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09,
|
|
451
|
+
0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
452
|
+
0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63,
|
|
453
|
+
0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69,
|
|
454
|
+
0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x64, 0x18, 0x04, 0x20,
|
|
455
|
+
0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x64, 0x22, 0xdc, 0x02, 0x0a,
|
|
456
|
+
0x17, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
|
|
457
|
+
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x72, 0x61, 0x6e,
|
|
458
|
+
0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74,
|
|
459
|
+
0x65, 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69,
|
|
460
|
+
0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61,
|
|
461
|
+
0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x73, 0x73, 0x65,
|
|
462
|
+
0x74, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x61,
|
|
463
|
+
0x73, 0x73, 0x65, 0x74, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x12, 0x64, 0x65,
|
|
464
|
+
0x72, 0x69, 0x76, 0x65, 0x64, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73,
|
|
465
|
+
0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, 0x64, 0x65, 0x72, 0x69, 0x76, 0x65, 0x64, 0x50,
|
|
466
|
+
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x6a, 0x0a, 0x10, 0x61, 0x73,
|
|
467
|
+
0x73, 0x65, 0x74, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x05,
|
|
468
|
+
0x20, 0x03, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x65, 0x72, 0x6d,
|
|
469
|
+
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x65, 0x72, 0x6d,
|
|
470
|
+
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x41,
|
|
471
|
+
0x73, 0x73, 0x65, 0x74, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x45,
|
|
472
|
+
0x6e, 0x74, 0x72, 0x79, 0x52, 0x10, 0x61, 0x73, 0x73, 0x65, 0x74, 0x53, 0x63, 0x6f, 0x70, 0x65,
|
|
473
|
+
0x73, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x43, 0x0a, 0x15, 0x41, 0x73, 0x73, 0x65, 0x74, 0x53,
|
|
474
|
+
0x63, 0x6f, 0x70, 0x65, 0x73, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
|
|
475
|
+
0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
|
|
476
|
+
0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
|
477
|
+
0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x76, 0x0a, 0x19, 0x47,
|
|
478
|
+
0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
|
|
479
|
+
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72,
|
|
480
|
+
0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
|
|
481
|
+
0x12, 0x16, 0x0a, 0x06, 0x73, 0x69, 0x74, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
|
482
|
+
0x52, 0x06, 0x73, 0x69, 0x74, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x07, 0x74, 0x72, 0x61, 0x63,
|
|
483
|
+
0x65, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x74, 0x72, 0x61,
|
|
484
|
+
0x63, 0x65, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x74, 0x72, 0x61, 0x63,
|
|
485
|
+
0x65, 0x49, 0x64, 0x22, 0x8d, 0x04, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50,
|
|
486
|
+
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
|
487
|
+
0x73, 0x65, 0x12, 0x5e, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
|
|
488
|
+
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70,
|
|
489
|
+
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65,
|
|
490
|
+
0x72, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70,
|
|
491
|
+
0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73,
|
|
492
|
+
0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
|
|
493
|
+
0x6e, 0x73, 0x1a, 0x95, 0x02, 0x0a, 0x0b, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
|
|
494
|
+
0x6e, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69,
|
|
495
|
+
0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61,
|
|
496
|
+
0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x73, 0x73, 0x65,
|
|
497
|
+
0x74, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x61,
|
|
498
|
+
0x73, 0x73, 0x65, 0x74, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x12, 0x79, 0x0a, 0x10, 0x61, 0x73,
|
|
499
|
+
0x73, 0x65, 0x74, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x03,
|
|
500
|
+
0x20, 0x03, 0x28, 0x0b, 0x32, 0x4d, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x65, 0x72, 0x6d,
|
|
501
|
+
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50, 0x65,
|
|
502
|
+
0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
|
503
|
+
0x65, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x41, 0x73,
|
|
504
|
+
0x73, 0x65, 0x74, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x45, 0x6e,
|
|
505
|
+
0x74, 0x72, 0x79, 0x52, 0x10, 0x61, 0x73, 0x73, 0x65, 0x74, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x73,
|
|
506
|
+
0x52, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x43, 0x0a, 0x15, 0x41, 0x73, 0x73, 0x65, 0x74, 0x53, 0x63,
|
|
507
|
+
0x6f, 0x70, 0x65, 0x73, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10,
|
|
508
|
+
0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79,
|
|
509
|
+
0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
510
|
+
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x77, 0x0a, 0x10, 0x50, 0x65,
|
|
511
|
+
0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10,
|
|
512
|
+
0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79,
|
|
513
|
+
0x12, 0x4d, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
|
514
|
+
0x37, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
|
|
405
515
|
0x6e, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73,
|
|
406
516
|
0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x65, 0x72,
|
|
407
|
-
0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73,
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
|
|
433
|
-
|
|
434
|
-
0x65,
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
517
|
+
0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,
|
|
518
|
+
0x02, 0x38, 0x01, 0x22, 0x32, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x53, 0x69, 0x74, 0x65, 0x73, 0x4c,
|
|
519
|
+
0x69, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08,
|
|
520
|
+
0x73, 0x69, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07,
|
|
521
|
+
0x73, 0x69, 0x74, 0x65, 0x49, 0x64, 0x73, 0x22, 0xda, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x53,
|
|
522
|
+
0x69, 0x74, 0x65, 0x73, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
|
523
|
+
0x73, 0x65, 0x12, 0x58, 0x0a, 0x0b, 0x73, 0x69, 0x74, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74,
|
|
524
|
+
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70,
|
|
525
|
+
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x69, 0x74,
|
|
526
|
+
0x65, 0x73, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
|
527
|
+
0x2e, 0x53, 0x69, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79,
|
|
528
|
+
0x52, 0x0a, 0x73, 0x69, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x1a, 0x66, 0x0a, 0x0f,
|
|
529
|
+
0x53, 0x69, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
|
|
530
|
+
0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
|
|
531
|
+
0x79, 0x12, 0x3d, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
|
|
532
|
+
0x32, 0x27, 0x2e, 0x6c, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x65, 0x70, 0x65, 0x72, 0x2e, 0x73, 0x68,
|
|
533
|
+
0x61, 0x72, 0x65, 0x64, 0x2e, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53,
|
|
534
|
+
0x69, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
|
|
535
|
+
0x3a, 0x02, 0x38, 0x01, 0x32, 0xf1, 0x01, 0x0a, 0x16, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x65,
|
|
536
|
+
0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,
|
|
537
|
+
0x66, 0x0a, 0x0f, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
|
|
538
|
+
0x6f, 0x6e, 0x12, 0x27, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73,
|
|
539
|
+
0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73,
|
|
540
|
+
0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x63, 0x68,
|
|
541
|
+
0x65, 0x63, 0x6b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x68,
|
|
542
|
+
0x65, 0x63, 0x6b, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73,
|
|
543
|
+
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6f, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x55, 0x73,
|
|
544
|
+
0x65, 0x72, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2a, 0x2e,
|
|
545
|
+
0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e,
|
|
546
|
+
0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
|
|
547
|
+
0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x63, 0x68, 0x65, 0x63,
|
|
548
|
+
0x6b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x55,
|
|
549
|
+
0x73, 0x65, 0x72, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65,
|
|
550
|
+
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x32, 0x79, 0x0a, 0x12, 0x53, 0x69, 0x74, 0x65,
|
|
551
|
+
0x73, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x63,
|
|
552
|
+
0x0a, 0x0e, 0x47, 0x65, 0x74, 0x53, 0x69, 0x74, 0x65, 0x73, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73,
|
|
553
|
+
0x12, 0x26, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
|
|
554
|
+
0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x69, 0x74, 0x65, 0x73, 0x4c, 0x69, 0x6d, 0x69, 0x74,
|
|
555
|
+
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b,
|
|
556
|
+
0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x69,
|
|
557
|
+
0x74, 0x65, 0x73, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
|
558
|
+
0x65, 0x22, 0x00, 0x42, 0x10, 0x5a, 0x0e, 0x2e, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74,
|
|
559
|
+
0x65, 0x64, 0x2d, 0x67, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
439
560
|
}
|
|
440
561
|
|
|
441
562
|
var (
|
|
@@ -450,31 +571,39 @@ func file_permissions_proto_rawDescGZIP() []byte {
|
|
|
450
571
|
return file_permissions_proto_rawDescData
|
|
451
572
|
}
|
|
452
573
|
|
|
453
|
-
var file_permissions_proto_msgTypes = make([]protoimpl.MessageInfo,
|
|
574
|
+
var file_permissions_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
|
|
454
575
|
var file_permissions_proto_goTypes = []interface{}{
|
|
455
576
|
(*CheckPermissionRequest)(nil), // 0: checkpermission.CheckPermissionRequest
|
|
456
577
|
(*CheckPermissionResponse)(nil), // 1: checkpermission.CheckPermissionResponse
|
|
457
578
|
(*GetUserPermissionsRequest)(nil), // 2: checkpermission.GetUserPermissionsRequest
|
|
458
579
|
(*GetUserPermissionsResponse)(nil), // 3: checkpermission.GetUserPermissionsResponse
|
|
459
|
-
nil,
|
|
460
|
-
(*
|
|
461
|
-
nil,
|
|
462
|
-
nil, // 7: checkpermission.GetUserPermissionsResponse.Permissions
|
|
580
|
+
(*GetSitesLimitsRequest)(nil), // 4: checkpermission.GetSitesLimitsRequest
|
|
581
|
+
(*GetSitesLimitsResponse)(nil), // 5: checkpermission.GetSitesLimitsResponse
|
|
582
|
+
nil, // 6: checkpermission.CheckPermissionResponse.AssetScopesRulesEntry
|
|
583
|
+
(*GetUserPermissionsResponse_Permissions)(nil), // 7: checkpermission.GetUserPermissionsResponse.Permissions
|
|
584
|
+
nil, // 8: checkpermission.GetUserPermissionsResponse.PermissionsEntry
|
|
585
|
+
nil, // 9: checkpermission.GetUserPermissionsResponse.Permissions.AssetScopesRulesEntry
|
|
586
|
+
nil, // 10: checkpermission.GetSitesLimitsResponse.SiteLimitsEntry
|
|
587
|
+
(*generated_go.SiteLimits)(nil), // 11: lansweeper.shared.limits.v1.SiteLimits
|
|
463
588
|
}
|
|
464
589
|
var file_permissions_proto_depIdxs = []int32{
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
590
|
+
6, // 0: checkpermission.CheckPermissionResponse.assetScopesRules:type_name -> checkpermission.CheckPermissionResponse.AssetScopesRulesEntry
|
|
591
|
+
8, // 1: checkpermission.GetUserPermissionsResponse.permissions:type_name -> checkpermission.GetUserPermissionsResponse.PermissionsEntry
|
|
592
|
+
10, // 2: checkpermission.GetSitesLimitsResponse.site_limits:type_name -> checkpermission.GetSitesLimitsResponse.SiteLimitsEntry
|
|
593
|
+
9, // 3: checkpermission.GetUserPermissionsResponse.Permissions.assetScopesRules:type_name -> checkpermission.GetUserPermissionsResponse.Permissions.AssetScopesRulesEntry
|
|
594
|
+
7, // 4: checkpermission.GetUserPermissionsResponse.PermissionsEntry.value:type_name -> checkpermission.GetUserPermissionsResponse.Permissions
|
|
595
|
+
11, // 5: checkpermission.GetSitesLimitsResponse.SiteLimitsEntry.value:type_name -> lansweeper.shared.limits.v1.SiteLimits
|
|
596
|
+
0, // 6: checkpermission.CheckPermissionService.CheckPermission:input_type -> checkpermission.CheckPermissionRequest
|
|
597
|
+
2, // 7: checkpermission.CheckPermissionService.GetUserPermissions:input_type -> checkpermission.GetUserPermissionsRequest
|
|
598
|
+
4, // 8: checkpermission.SitesLimitsService.GetSitesLimits:input_type -> checkpermission.GetSitesLimitsRequest
|
|
599
|
+
1, // 9: checkpermission.CheckPermissionService.CheckPermission:output_type -> checkpermission.CheckPermissionResponse
|
|
600
|
+
3, // 10: checkpermission.CheckPermissionService.GetUserPermissions:output_type -> checkpermission.GetUserPermissionsResponse
|
|
601
|
+
5, // 11: checkpermission.SitesLimitsService.GetSitesLimits:output_type -> checkpermission.GetSitesLimitsResponse
|
|
602
|
+
9, // [9:12] is the sub-list for method output_type
|
|
603
|
+
6, // [6:9] is the sub-list for method input_type
|
|
604
|
+
6, // [6:6] is the sub-list for extension type_name
|
|
605
|
+
6, // [6:6] is the sub-list for extension extendee
|
|
606
|
+
0, // [0:6] is the sub-list for field type_name
|
|
478
607
|
}
|
|
479
608
|
|
|
480
609
|
func init() { file_permissions_proto_init() }
|
|
@@ -531,7 +660,31 @@ func file_permissions_proto_init() {
|
|
|
531
660
|
return nil
|
|
532
661
|
}
|
|
533
662
|
}
|
|
663
|
+
file_permissions_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
664
|
+
switch v := v.(*GetSitesLimitsRequest); i {
|
|
665
|
+
case 0:
|
|
666
|
+
return &v.state
|
|
667
|
+
case 1:
|
|
668
|
+
return &v.sizeCache
|
|
669
|
+
case 2:
|
|
670
|
+
return &v.unknownFields
|
|
671
|
+
default:
|
|
672
|
+
return nil
|
|
673
|
+
}
|
|
674
|
+
}
|
|
534
675
|
file_permissions_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
676
|
+
switch v := v.(*GetSitesLimitsResponse); i {
|
|
677
|
+
case 0:
|
|
678
|
+
return &v.state
|
|
679
|
+
case 1:
|
|
680
|
+
return &v.sizeCache
|
|
681
|
+
case 2:
|
|
682
|
+
return &v.unknownFields
|
|
683
|
+
default:
|
|
684
|
+
return nil
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
file_permissions_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
535
688
|
switch v := v.(*GetUserPermissionsResponse_Permissions); i {
|
|
536
689
|
case 0:
|
|
537
690
|
return &v.state
|
|
@@ -551,9 +704,9 @@ func file_permissions_proto_init() {
|
|
|
551
704
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
552
705
|
RawDescriptor: file_permissions_proto_rawDesc,
|
|
553
706
|
NumEnums: 0,
|
|
554
|
-
NumMessages:
|
|
707
|
+
NumMessages: 11,
|
|
555
708
|
NumExtensions: 0,
|
|
556
|
-
NumServices:
|
|
709
|
+
NumServices: 2,
|
|
557
710
|
},
|
|
558
711
|
GoTypes: file_permissions_proto_goTypes,
|
|
559
712
|
DependencyIndexes: file_permissions_proto_depIdxs,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
3
|
// - protoc-gen-go-grpc v1.3.0
|
|
4
|
-
// - protoc v3.
|
|
4
|
+
// - protoc v3.19.1
|
|
5
5
|
// source: permissions.proto
|
|
6
6
|
|
|
7
7
|
package generated_go
|
|
@@ -145,3 +145,93 @@ var CheckPermissionService_ServiceDesc = grpc.ServiceDesc{
|
|
|
145
145
|
Streams: []grpc.StreamDesc{},
|
|
146
146
|
Metadata: "permissions.proto",
|
|
147
147
|
}
|
|
148
|
+
|
|
149
|
+
const (
|
|
150
|
+
SitesLimitsService_GetSitesLimits_FullMethodName = "/checkpermission.SitesLimitsService/GetSitesLimits"
|
|
151
|
+
)
|
|
152
|
+
|
|
153
|
+
// SitesLimitsServiceClient is the client API for SitesLimitsService service.
|
|
154
|
+
//
|
|
155
|
+
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
|
156
|
+
type SitesLimitsServiceClient interface {
|
|
157
|
+
GetSitesLimits(ctx context.Context, in *GetSitesLimitsRequest, opts ...grpc.CallOption) (*GetSitesLimitsResponse, error)
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
type sitesLimitsServiceClient struct {
|
|
161
|
+
cc grpc.ClientConnInterface
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
func NewSitesLimitsServiceClient(cc grpc.ClientConnInterface) SitesLimitsServiceClient {
|
|
165
|
+
return &sitesLimitsServiceClient{cc}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
func (c *sitesLimitsServiceClient) GetSitesLimits(ctx context.Context, in *GetSitesLimitsRequest, opts ...grpc.CallOption) (*GetSitesLimitsResponse, error) {
|
|
169
|
+
out := new(GetSitesLimitsResponse)
|
|
170
|
+
err := c.cc.Invoke(ctx, SitesLimitsService_GetSitesLimits_FullMethodName, in, out, opts...)
|
|
171
|
+
if err != nil {
|
|
172
|
+
return nil, err
|
|
173
|
+
}
|
|
174
|
+
return out, nil
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// SitesLimitsServiceServer is the server API for SitesLimitsService service.
|
|
178
|
+
// All implementations must embed UnimplementedSitesLimitsServiceServer
|
|
179
|
+
// for forward compatibility
|
|
180
|
+
type SitesLimitsServiceServer interface {
|
|
181
|
+
GetSitesLimits(context.Context, *GetSitesLimitsRequest) (*GetSitesLimitsResponse, error)
|
|
182
|
+
mustEmbedUnimplementedSitesLimitsServiceServer()
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// UnimplementedSitesLimitsServiceServer must be embedded to have forward compatible implementations.
|
|
186
|
+
type UnimplementedSitesLimitsServiceServer struct {
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
func (UnimplementedSitesLimitsServiceServer) GetSitesLimits(context.Context, *GetSitesLimitsRequest) (*GetSitesLimitsResponse, error) {
|
|
190
|
+
return nil, status.Errorf(codes.Unimplemented, "method GetSitesLimits not implemented")
|
|
191
|
+
}
|
|
192
|
+
func (UnimplementedSitesLimitsServiceServer) mustEmbedUnimplementedSitesLimitsServiceServer() {}
|
|
193
|
+
|
|
194
|
+
// UnsafeSitesLimitsServiceServer may be embedded to opt out of forward compatibility for this service.
|
|
195
|
+
// Use of this interface is not recommended, as added methods to SitesLimitsServiceServer will
|
|
196
|
+
// result in compilation errors.
|
|
197
|
+
type UnsafeSitesLimitsServiceServer interface {
|
|
198
|
+
mustEmbedUnimplementedSitesLimitsServiceServer()
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
func RegisterSitesLimitsServiceServer(s grpc.ServiceRegistrar, srv SitesLimitsServiceServer) {
|
|
202
|
+
s.RegisterService(&SitesLimitsService_ServiceDesc, srv)
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
func _SitesLimitsService_GetSitesLimits_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
206
|
+
in := new(GetSitesLimitsRequest)
|
|
207
|
+
if err := dec(in); err != nil {
|
|
208
|
+
return nil, err
|
|
209
|
+
}
|
|
210
|
+
if interceptor == nil {
|
|
211
|
+
return srv.(SitesLimitsServiceServer).GetSitesLimits(ctx, in)
|
|
212
|
+
}
|
|
213
|
+
info := &grpc.UnaryServerInfo{
|
|
214
|
+
Server: srv,
|
|
215
|
+
FullMethod: SitesLimitsService_GetSitesLimits_FullMethodName,
|
|
216
|
+
}
|
|
217
|
+
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
218
|
+
return srv.(SitesLimitsServiceServer).GetSitesLimits(ctx, req.(*GetSitesLimitsRequest))
|
|
219
|
+
}
|
|
220
|
+
return interceptor(ctx, in, info, handler)
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
// SitesLimitsService_ServiceDesc is the grpc.ServiceDesc for SitesLimitsService service.
|
|
224
|
+
// It's only intended for direct use with grpc.RegisterService,
|
|
225
|
+
// and not to be introspected or modified (even as a copy)
|
|
226
|
+
var SitesLimitsService_ServiceDesc = grpc.ServiceDesc{
|
|
227
|
+
ServiceName: "checkpermission.SitesLimitsService",
|
|
228
|
+
HandlerType: (*SitesLimitsServiceServer)(nil),
|
|
229
|
+
Methods: []grpc.MethodDesc{
|
|
230
|
+
{
|
|
231
|
+
MethodName: "GetSitesLimits",
|
|
232
|
+
Handler: _SitesLimitsService_GetSitesLimits_Handler,
|
|
233
|
+
},
|
|
234
|
+
},
|
|
235
|
+
Streams: []grpc.StreamDesc{},
|
|
236
|
+
Metadata: "permissions.proto",
|
|
237
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lansweeper/permissions-grpc",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Permissions grpc",
|
|
5
5
|
"main": "gen-proto/index.js",
|
|
6
6
|
"types": "gen-proto/index.d.ts",
|
|
@@ -15,5 +15,8 @@
|
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@grpc/grpc-js": "^1.6.2"
|
|
17
17
|
},
|
|
18
|
-
"
|
|
18
|
+
"scripts": {
|
|
19
|
+
"prepublishOnly": "cp -r ../../shared/limits ./proto"
|
|
20
|
+
},
|
|
21
|
+
"gitHead": "8db70939b49fefd64cf58cf8e595dcee64135e35"
|
|
19
22
|
}
|