/
araali_api_service.pb.go
6010 lines (5349 loc) · 219 KB
/
araali_api_service.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
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
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright(c) 2022-current. Araali Networks Inc.
//
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source code package.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.0-devel
// protoc v3.7.1
// source: araali_api_service.proto
package araali_api_service
import (
context "context"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
//*
// Type of a link Alert or PolicyInfo
type LinkState int32
const (
LinkState_BASELINE_ALERT LinkState = 0 // Alert
LinkState_DEFINED_POLICY LinkState = 1 // Currently active policy
LinkState_SNOOZED_POLICY LinkState = 2 // Policy that was discovered but removed/snoozed
LinkState_DENIED_POLICY LinkState = 3 // Deny policy
)
// Enum value maps for LinkState.
var (
LinkState_name = map[int32]string{
0: "BASELINE_ALERT",
1: "DEFINED_POLICY",
2: "SNOOZED_POLICY",
3: "DENIED_POLICY",
}
LinkState_value = map[string]int32{
"BASELINE_ALERT": 0,
"DEFINED_POLICY": 1,
"SNOOZED_POLICY": 2,
"DENIED_POLICY": 3,
}
)
func (x LinkState) Enum() *LinkState {
p := new(LinkState)
*p = x
return p
}
func (x LinkState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (LinkState) Descriptor() protoreflect.EnumDescriptor {
return file_araali_api_service_proto_enumTypes[0].Descriptor()
}
func (LinkState) Type() protoreflect.EnumType {
return &file_araali_api_service_proto_enumTypes[0]
}
func (x LinkState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use LinkState.Descriptor instead.
func (LinkState) EnumDescriptor() ([]byte, []int) {
return file_araali_api_service_proto_rawDescGZIP(), []int{0}
}
type FortifyYamlType int32
const (
FortifyYamlType_UNKNOWN FortifyYamlType = 0 // Unknown
FortifyYamlType_HELM_VALUES_FILE FortifyYamlType = 1 // Generate helm values file for helm chart based approach
FortifyYamlType_HELM_CONTROLLER_VALUES_FILE FortifyYamlType = 2 // Generate controller helm values file for helm chart
)
// Enum value maps for FortifyYamlType.
var (
FortifyYamlType_name = map[int32]string{
0: "UNKNOWN",
1: "HELM_VALUES_FILE",
2: "HELM_CONTROLLER_VALUES_FILE",
}
FortifyYamlType_value = map[string]int32{
"UNKNOWN": 0,
"HELM_VALUES_FILE": 1,
"HELM_CONTROLLER_VALUES_FILE": 2,
}
)
func (x FortifyYamlType) Enum() *FortifyYamlType {
p := new(FortifyYamlType)
*p = x
return p
}
func (x FortifyYamlType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (FortifyYamlType) Descriptor() protoreflect.EnumDescriptor {
return file_araali_api_service_proto_enumTypes[1].Descriptor()
}
func (FortifyYamlType) Type() protoreflect.EnumType {
return &file_araali_api_service_proto_enumTypes[1]
}
func (x FortifyYamlType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use FortifyYamlType.Descriptor instead.
func (FortifyYamlType) EnumDescriptor() ([]byte, []int) {
return file_araali_api_service_proto_rawDescGZIP(), []int{1}
}
//* Enum for specifying the role of a user
type AraaliUser_Role int32
const (
AraaliUser_ADMIN AraaliUser_Role = 0 // Enables user to create, modify other users
AraaliUser_USER AraaliUser_Role = 1 // Set if the user is not an administrator
)
// Enum value maps for AraaliUser_Role.
var (
AraaliUser_Role_name = map[int32]string{
0: "ADMIN",
1: "USER",
}
AraaliUser_Role_value = map[string]int32{
"ADMIN": 0,
"USER": 1,
}
)
func (x AraaliUser_Role) Enum() *AraaliUser_Role {
p := new(AraaliUser_Role)
*p = x
return p
}
func (x AraaliUser_Role) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (AraaliUser_Role) Descriptor() protoreflect.EnumDescriptor {
return file_araali_api_service_proto_enumTypes[2].Descriptor()
}
func (AraaliUser_Role) Type() protoreflect.EnumType {
return &file_araali_api_service_proto_enumTypes[2]
}
func (x AraaliUser_Role) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use AraaliUser_Role.Descriptor instead.
func (AraaliUser_Role) EnumDescriptor() ([]byte, []int) {
return file_araali_api_service_proto_rawDescGZIP(), []int{1, 0}
}
//* Return status codes for the Araali APIs
type AraaliAPIResponse_ReturnCode int32
const (
AraaliAPIResponse_SUCCESS AraaliAPIResponse_ReturnCode = 0 // API call succeeded
AraaliAPIResponse_FAILURE AraaliAPIResponse_ReturnCode = 1 // API call failed
AraaliAPIResponse_UNKNOWN AraaliAPIResponse_ReturnCode = 2 // Status unknown (Should never happen)
)
// Enum value maps for AraaliAPIResponse_ReturnCode.
var (
AraaliAPIResponse_ReturnCode_name = map[int32]string{
0: "SUCCESS",
1: "FAILURE",
2: "UNKNOWN",
}
AraaliAPIResponse_ReturnCode_value = map[string]int32{
"SUCCESS": 0,
"FAILURE": 1,
"UNKNOWN": 2,
}
)
func (x AraaliAPIResponse_ReturnCode) Enum() *AraaliAPIResponse_ReturnCode {
p := new(AraaliAPIResponse_ReturnCode)
*p = x
return p
}
func (x AraaliAPIResponse_ReturnCode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (AraaliAPIResponse_ReturnCode) Descriptor() protoreflect.EnumDescriptor {
return file_araali_api_service_proto_enumTypes[3].Descriptor()
}
func (AraaliAPIResponse_ReturnCode) Type() protoreflect.EnumType {
return &file_araali_api_service_proto_enumTypes[3]
}
func (x AraaliAPIResponse_ReturnCode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use AraaliAPIResponse_ReturnCode.Descriptor instead.
func (AraaliAPIResponse_ReturnCode) EnumDescriptor() ([]byte, []int) {
return file_araali_api_service_proto_rawDescGZIP(), []int{7, 0}
}
//* State of the asset
type Asset_AssetState int32
const (
Asset_DELETED Asset_AssetState = 0 // Asset has been deleted
Asset_ACTIVE Asset_AssetState = 1 // Asset is active
Asset_INACTIVE Asset_AssetState = 2 // Asset is inactive
)
// Enum value maps for Asset_AssetState.
var (
Asset_AssetState_name = map[int32]string{
0: "DELETED",
1: "ACTIVE",
2: "INACTIVE",
}
Asset_AssetState_value = map[string]int32{
"DELETED": 0,
"ACTIVE": 1,
"INACTIVE": 2,
}
)
func (x Asset_AssetState) Enum() *Asset_AssetState {
p := new(Asset_AssetState)
*p = x
return p
}
func (x Asset_AssetState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Asset_AssetState) Descriptor() protoreflect.EnumDescriptor {
return file_araali_api_service_proto_enumTypes[4].Descriptor()
}
func (Asset_AssetState) Type() protoreflect.EnumType {
return &file_araali_api_service_proto_enumTypes[4]
}
func (x Asset_AssetState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Asset_AssetState.Descriptor instead.
func (Asset_AssetState) EnumDescriptor() ([]byte, []int) {
return file_araali_api_service_proto_rawDescGZIP(), []int{13, 0}
}
//* Type of the asset
type Asset_AssetType int32
const (
Asset_UNKNOWN_ASSET Asset_AssetType = 0 // Unknown asset type
Asset_VIRTUAL_MACHINE Asset_AssetType = 1 // Virtual Machine type
Asset_CONTAINER Asset_AssetType = 2 // Container type
)
// Enum value maps for Asset_AssetType.
var (
Asset_AssetType_name = map[int32]string{
0: "UNKNOWN_ASSET",
1: "VIRTUAL_MACHINE",
2: "CONTAINER",
}
Asset_AssetType_value = map[string]int32{
"UNKNOWN_ASSET": 0,
"VIRTUAL_MACHINE": 1,
"CONTAINER": 2,
}
)
func (x Asset_AssetType) Enum() *Asset_AssetType {
p := new(Asset_AssetType)
*p = x
return p
}
func (x Asset_AssetType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Asset_AssetType) Descriptor() protoreflect.EnumDescriptor {
return file_araali_api_service_proto_enumTypes[5].Descriptor()
}
func (Asset_AssetType) Type() protoreflect.EnumType {
return &file_araali_api_service_proto_enumTypes[5]
}
func (x Asset_AssetType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Asset_AssetType.Descriptor instead.
func (Asset_AssetType) EnumDescriptor() ([]byte, []int) {
return file_araali_api_service_proto_rawDescGZIP(), []int{13, 1}
}
//* Mode the asset is in
// TAP - Tap's into telemetry to discover policies (no enforcement).
// INLINE - Firewall embedded inline to enforce policies if needed (enforcement).
type Asset_AssetMode int32
const (
Asset_TAP Asset_AssetMode = 0 // No enforcement/visibility mode
Asset_INLINE Asset_AssetMode = 1 // Inline enforcement mode
Asset_TRANSITIONING_TAP_TO_INLINE Asset_AssetMode = 2 // Transitioning from TAP to INLINE
Asset_TRANSITIONING_INLINE_TO_TAP Asset_AssetMode = 3 // Transitioning from INLINE to TAP
)
// Enum value maps for Asset_AssetMode.
var (
Asset_AssetMode_name = map[int32]string{
0: "TAP",
1: "INLINE",
2: "TRANSITIONING_TAP_TO_INLINE",
3: "TRANSITIONING_INLINE_TO_TAP",
}
Asset_AssetMode_value = map[string]int32{
"TAP": 0,
"INLINE": 1,
"TRANSITIONING_TAP_TO_INLINE": 2,
"TRANSITIONING_INLINE_TO_TAP": 3,
}
)
func (x Asset_AssetMode) Enum() *Asset_AssetMode {
p := new(Asset_AssetMode)
*p = x
return p
}
func (x Asset_AssetMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Asset_AssetMode) Descriptor() protoreflect.EnumDescriptor {
return file_araali_api_service_proto_enumTypes[6].Descriptor()
}
func (Asset_AssetMode) Type() protoreflect.EnumType {
return &file_araali_api_service_proto_enumTypes[6]
}
func (x Asset_AssetMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Asset_AssetMode.Descriptor instead.
func (Asset_AssetMode) EnumDescriptor() ([]byte, []int) {
return file_araali_api_service_proto_rawDescGZIP(), []int{13, 2}
}
type Vulnerability_Severity int32
const (
Vulnerability_NONE Vulnerability_Severity = 0 // No severity
Vulnerability_LOW Vulnerability_Severity = 1 // Low severity
Vulnerability_MEDIUM Vulnerability_Severity = 2 // Medium severity
Vulnerability_HIGH Vulnerability_Severity = 3 // High severity
Vulnerability_CRITICAL Vulnerability_Severity = 4 // Critical severity
)
// Enum value maps for Vulnerability_Severity.
var (
Vulnerability_Severity_name = map[int32]string{
0: "NONE",
1: "LOW",
2: "MEDIUM",
3: "HIGH",
4: "CRITICAL",
}
Vulnerability_Severity_value = map[string]int32{
"NONE": 0,
"LOW": 1,
"MEDIUM": 2,
"HIGH": 3,
"CRITICAL": 4,
}
)
func (x Vulnerability_Severity) Enum() *Vulnerability_Severity {
p := new(Vulnerability_Severity)
*p = x
return p
}
func (x Vulnerability_Severity) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Vulnerability_Severity) Descriptor() protoreflect.EnumDescriptor {
return file_araali_api_service_proto_enumTypes[7].Descriptor()
}
func (Vulnerability_Severity) Type() protoreflect.EnumType {
return &file_araali_api_service_proto_enumTypes[7]
}
func (x Vulnerability_Severity) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Vulnerability_Severity.Descriptor instead.
func (Vulnerability_Severity) EnumDescriptor() ([]byte, []int) {
return file_araali_api_service_proto_rawDescGZIP(), []int{14, 0}
}
type NonAraaliEndpoint_EndpointGroup int32
const (
NonAraaliEndpoint_UNKNOWN_GROUP NonAraaliEndpoint_EndpointGroup = 0
NonAraaliEndpoint_WORLD NonAraaliEndpoint_EndpointGroup = 1
NonAraaliEndpoint_HOME NonAraaliEndpoint_EndpointGroup = 2
)
// Enum value maps for NonAraaliEndpoint_EndpointGroup.
var (
NonAraaliEndpoint_EndpointGroup_name = map[int32]string{
0: "UNKNOWN_GROUP",
1: "WORLD",
2: "HOME",
}
NonAraaliEndpoint_EndpointGroup_value = map[string]int32{
"UNKNOWN_GROUP": 0,
"WORLD": 1,
"HOME": 2,
}
)
func (x NonAraaliEndpoint_EndpointGroup) Enum() *NonAraaliEndpoint_EndpointGroup {
p := new(NonAraaliEndpoint_EndpointGroup)
*p = x
return p
}
func (x NonAraaliEndpoint_EndpointGroup) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (NonAraaliEndpoint_EndpointGroup) Descriptor() protoreflect.EnumDescriptor {
return file_araali_api_service_proto_enumTypes[8].Descriptor()
}
func (NonAraaliEndpoint_EndpointGroup) Type() protoreflect.EnumType {
return &file_araali_api_service_proto_enumTypes[8]
}
func (x NonAraaliEndpoint_EndpointGroup) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use NonAraaliEndpoint_EndpointGroup.Descriptor instead.
func (NonAraaliEndpoint_EndpointGroup) EnumDescriptor() ([]byte, []int) {
return file_araali_api_service_proto_rawDescGZIP(), []int{22, 0}
}
type AlertInfo_Status int32
const (
AlertInfo_UNKNOWN_STATUS AlertInfo_Status = 0
AlertInfo_OPEN AlertInfo_Status = 1
AlertInfo_CLOSED AlertInfo_Status = 2
)
// Enum value maps for AlertInfo_Status.
var (
AlertInfo_Status_name = map[int32]string{
0: "UNKNOWN_STATUS",
1: "OPEN",
2: "CLOSED",
}
AlertInfo_Status_value = map[string]int32{
"UNKNOWN_STATUS": 0,
"OPEN": 1,
"CLOSED": 2,
}
)
func (x AlertInfo_Status) Enum() *AlertInfo_Status {
p := new(AlertInfo_Status)
*p = x
return p
}
func (x AlertInfo_Status) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (AlertInfo_Status) Descriptor() protoreflect.EnumDescriptor {
return file_araali_api_service_proto_enumTypes[9].Descriptor()
}
func (AlertInfo_Status) Type() protoreflect.EnumType {
return &file_araali_api_service_proto_enumTypes[9]
}
func (x AlertInfo_Status) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use AlertInfo_Status.Descriptor instead.
func (AlertInfo_Status) EnumDescriptor() ([]byte, []int) {
return file_araali_api_service_proto_rawDescGZIP(), []int{24, 0}
}
//* Direction of the link araali-araali, araali-ingress etc
type Link_LinkDirection int32
const (
Link_UNKNOWN_DIRECTION Link_LinkDirection = 0 // Unknown
Link_NON_ARAALI_INGRESS Link_LinkDirection = 1 // Ingress from an unprotected non-araali endpoint
Link_ARAALI_INGRESS Link_LinkDirection = 2 // Ingress from an araali protected endpoint
Link_NON_ARAALI_EGRESS Link_LinkDirection = 3 // Egress to an unprotected non-araali endpoint
Link_ARAALI_EGRESS Link_LinkDirection = 4 // Egress to an araali protected endpoint
Link_INTERNAL Link_LinkDirection = 5 // Link between two araali endpoints within an app
)
// Enum value maps for Link_LinkDirection.
var (
Link_LinkDirection_name = map[int32]string{
0: "UNKNOWN_DIRECTION",
1: "NON_ARAALI_INGRESS",
2: "ARAALI_INGRESS",
3: "NON_ARAALI_EGRESS",
4: "ARAALI_EGRESS",
5: "INTERNAL",
}
Link_LinkDirection_value = map[string]int32{
"UNKNOWN_DIRECTION": 0,
"NON_ARAALI_INGRESS": 1,
"ARAALI_INGRESS": 2,
"NON_ARAALI_EGRESS": 3,
"ARAALI_EGRESS": 4,
"INTERNAL": 5,
}
)
func (x Link_LinkDirection) Enum() *Link_LinkDirection {
p := new(Link_LinkDirection)
*p = x
return p
}
func (x Link_LinkDirection) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Link_LinkDirection) Descriptor() protoreflect.EnumDescriptor {
return file_araali_api_service_proto_enumTypes[10].Descriptor()
}
func (Link_LinkDirection) Type() protoreflect.EnumType {
return &file_araali_api_service_proto_enumTypes[10]
}
func (x Link_LinkDirection) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Link_LinkDirection.Descriptor instead.
func (Link_LinkDirection) EnumDescriptor() ([]byte, []int) {
return file_araali_api_service_proto_rawDescGZIP(), []int{26, 0}
}
//* Type of lens
type Lens_LensType int32
const (
Lens_UNKNOWN_LENS Lens_LensType = 0 // Unspecified
Lens_ZONE_APP Lens_LensType = 1 // Zone/App level
Lens_SERVICE Lens_LensType = 2 // Service level
Lens_ZONE Lens_LensType = 3 // Zone level
Lens_PROCESS Lens_LensType = 4 // Process level
Lens_CONTAINER Lens_LensType = 5 // Container level
Lens_TENANT Lens_LensType = 6 // Tenant level
)
// Enum value maps for Lens_LensType.
var (
Lens_LensType_name = map[int32]string{
0: "UNKNOWN_LENS",
1: "ZONE_APP",
2: "SERVICE",
3: "ZONE",
4: "PROCESS",
5: "CONTAINER",
6: "TENANT",
}
Lens_LensType_value = map[string]int32{
"UNKNOWN_LENS": 0,
"ZONE_APP": 1,
"SERVICE": 2,
"ZONE": 3,
"PROCESS": 4,
"CONTAINER": 5,
"TENANT": 6,
}
)
func (x Lens_LensType) Enum() *Lens_LensType {
p := new(Lens_LensType)
*p = x
return p
}
func (x Lens_LensType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Lens_LensType) Descriptor() protoreflect.EnumDescriptor {
return file_araali_api_service_proto_enumTypes[11].Descriptor()
}
func (Lens_LensType) Type() protoreflect.EnumType {
return &file_araali_api_service_proto_enumTypes[11]
}
func (x Lens_LensType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Lens_LensType.Descriptor instead.
func (Lens_LensType) EnumDescriptor() ([]byte, []int) {
return file_araali_api_service_proto_rawDescGZIP(), []int{30, 0}
}
//*
// Tenant object identifying the tenant in API calls.
type Tenant struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
//* Id of the tenant
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
//* Admin e-mail of the tenant.
// Also adds an ADMIN role user in this tenant.
AdminEmail string `protobuf:"bytes,2,opt,name=admin_email,json=adminEmail,proto3" json:"admin_email,omitempty"`
}
func (x *Tenant) Reset() {
*x = Tenant{}
if protoimpl.UnsafeEnabled {
mi := &file_araali_api_service_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Tenant) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Tenant) ProtoMessage() {}
func (x *Tenant) ProtoReflect() protoreflect.Message {
mi := &file_araali_api_service_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Tenant.ProtoReflect.Descriptor instead.
func (*Tenant) Descriptor() ([]byte, []int) {
return file_araali_api_service_proto_rawDescGZIP(), []int{0}
}
func (x *Tenant) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Tenant) GetAdminEmail() string {
if x != nil {
return x.AdminEmail
}
return ""
}
//*
// User object identifying the user in API calls.
type AraaliUser struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
//* E-mail of the registering user
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
//* Role of the registering user
Role AraaliUser_Role `protobuf:"varint,2,opt,name=role,proto3,enum=araali_api_service.AraaliUser_Role" json:"role,omitempty"`
//* Enables role to have access to zone-apps
// TRUE - Enable modify access to zone-apps
// FALSE - Enable read-only access to zone-apps.
IsSiteAdmin bool `protobuf:"varint,3,opt,name=is_site_admin,json=isSiteAdmin,proto3" json:"is_site_admin,omitempty"`
}
func (x *AraaliUser) Reset() {
*x = AraaliUser{}
if protoimpl.UnsafeEnabled {
mi := &file_araali_api_service_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AraaliUser) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AraaliUser) ProtoMessage() {}
func (x *AraaliUser) ProtoReflect() protoreflect.Message {
mi := &file_araali_api_service_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AraaliUser.ProtoReflect.Descriptor instead.
func (*AraaliUser) Descriptor() ([]byte, []int) {
return file_araali_api_service_proto_rawDescGZIP(), []int{1}
}
func (x *AraaliUser) GetEmail() string {
if x != nil {
return x.Email
}
return ""
}
func (x *AraaliUser) GetRole() AraaliUser_Role {
if x != nil {
return x.Role
}
return AraaliUser_ADMIN
}
func (x *AraaliUser) GetIsSiteAdmin() bool {
if x != nil {
return x.IsSiteAdmin
}
return false
}
type CreateTenantRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
//* Information required to create the tenant
Tenant *Tenant `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
}
func (x *CreateTenantRequest) Reset() {
*x = CreateTenantRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_araali_api_service_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateTenantRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateTenantRequest) ProtoMessage() {}
func (x *CreateTenantRequest) ProtoReflect() protoreflect.Message {
mi := &file_araali_api_service_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateTenantRequest.ProtoReflect.Descriptor instead.
func (*CreateTenantRequest) Descriptor() ([]byte, []int) {
return file_araali_api_service_proto_rawDescGZIP(), []int{2}
}
func (x *CreateTenantRequest) GetTenant() *Tenant {
if x != nil {
return x.Tenant
}
return nil
}
type CreateTenantResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
//* Success/Failure of the API call
Response *AraaliAPIResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
//* Handle for the newly created tenant
Tenant *Tenant `protobuf:"bytes,2,opt,name=tenant,proto3" json:"tenant,omitempty"`
}
func (x *CreateTenantResponse) Reset() {
*x = CreateTenantResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_araali_api_service_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateTenantResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateTenantResponse) ProtoMessage() {}
func (x *CreateTenantResponse) ProtoReflect() protoreflect.Message {
mi := &file_araali_api_service_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateTenantResponse.ProtoReflect.Descriptor instead.
func (*CreateTenantResponse) Descriptor() ([]byte, []int) {
return file_araali_api_service_proto_rawDescGZIP(), []int{3}
}
func (x *CreateTenantResponse) GetResponse() *AraaliAPIResponse {
if x != nil {
return x.Response
}
return nil
}
func (x *CreateTenantResponse) GetTenant() *Tenant {
if x != nil {
return x.Tenant
}
return nil
}
type DeleteTenantRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
//* Tenant being deleted
Tenant *Tenant `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
}
func (x *DeleteTenantRequest) Reset() {
*x = DeleteTenantRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_araali_api_service_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteTenantRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteTenantRequest) ProtoMessage() {}
func (x *DeleteTenantRequest) ProtoReflect() protoreflect.Message {
mi := &file_araali_api_service_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteTenantRequest.ProtoReflect.Descriptor instead.
func (*DeleteTenantRequest) Descriptor() ([]byte, []int) {
return file_araali_api_service_proto_rawDescGZIP(), []int{4}
}
func (x *DeleteTenantRequest) GetTenant() *Tenant {
if x != nil {
return x.Tenant
}
return nil
}
type AddUserRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
//* Tenant of the user being added
Tenant *Tenant `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
//* Information required to create the tenant
User *AraaliUser `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
}
func (x *AddUserRequest) Reset() {
*x = AddUserRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_araali_api_service_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AddUserRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AddUserRequest) ProtoMessage() {}
func (x *AddUserRequest) ProtoReflect() protoreflect.Message {
mi := &file_araali_api_service_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AddUserRequest.ProtoReflect.Descriptor instead.
func (*AddUserRequest) Descriptor() ([]byte, []int) {
return file_araali_api_service_proto_rawDescGZIP(), []int{5}
}
func (x *AddUserRequest) GetTenant() *Tenant {
if x != nil {
return x.Tenant
}
return nil
}
func (x *AddUserRequest) GetUser() *AraaliUser {
if x != nil {
return x.User
}
return nil
}