-
Notifications
You must be signed in to change notification settings - Fork 1
/
security.pb.go
4198 lines (4062 loc) · 114 KB
/
security.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
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: security.proto
package v1
import (
context "context"
fmt "fmt"
v1 "github.com/arangodb-managed/apis/common/v1"
types "github.com/gogo/protobuf/types"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
io "io"
math "math"
math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// IPAllowlist represents a list of CIDR ranges from which a deployment is accessible.
type IPAllowlist struct {
// System identifier of the allowlist.
// This is a read-only value.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// URL of the allowlist.
// This is a read-only value.
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
// Name of the allowlist.
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
// Description of the allowlist.
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
// Identifier of the project that contains this allowlist.
ProjectId string `protobuf:"bytes,5,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// List of CIDR ranges.
// Values must follow format as defined in RFC 4632 and RFC 4291.
CidrRanges []string `protobuf:"bytes,6,rep,name=cidr_ranges,json=cidrRanges,proto3" json:"cidr_ranges,omitempty"`
// The creation timestamp of this allowlist.
// This is a read-only value.
CreatedAt *types.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// The deletion timestamp of the allowlist
// This is a read-only value.
DeletedAt *types.Timestamp `protobuf:"bytes,8,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
// Set when this allowlist is deleted.
// This is a read-only value.
IsDeleted bool `protobuf:"varint,9,opt,name=is_deleted,json=isDeleted,proto3" json:"is_deleted,omitempty"`
// Identifier of the user who created this allowlist.
// This is a read-only value.
CreatedById string `protobuf:"bytes,10,opt,name=created_by_id,json=createdById,proto3" json:"created_by_id,omitempty"`
// If set, this allow list cannot be deleted.
// To delete, first update the with locked set to false.
Locked bool `protobuf:"varint,11,opt,name=locked,proto3" json:"locked,omitempty"`
// The list of warnings which are related to the IP allow list.
// This is a read-only value.
Warnings []string `protobuf:"bytes,12,rep,name=warnings,proto3" json:"warnings,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *IPAllowlist) Reset() { *m = IPAllowlist{} }
func (m *IPAllowlist) String() string { return proto.CompactTextString(m) }
func (*IPAllowlist) ProtoMessage() {}
func (*IPAllowlist) Descriptor() ([]byte, []int) {
return fileDescriptor_55a487c716a8b59c, []int{0}
}
func (m *IPAllowlist) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *IPAllowlist) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_IPAllowlist.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *IPAllowlist) XXX_Merge(src proto.Message) {
xxx_messageInfo_IPAllowlist.Merge(m, src)
}
func (m *IPAllowlist) XXX_Size() int {
return m.Size()
}
func (m *IPAllowlist) XXX_DiscardUnknown() {
xxx_messageInfo_IPAllowlist.DiscardUnknown(m)
}
var xxx_messageInfo_IPAllowlist proto.InternalMessageInfo
func (m *IPAllowlist) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *IPAllowlist) GetUrl() string {
if m != nil {
return m.Url
}
return ""
}
func (m *IPAllowlist) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *IPAllowlist) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *IPAllowlist) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
func (m *IPAllowlist) GetCidrRanges() []string {
if m != nil {
return m.CidrRanges
}
return nil
}
func (m *IPAllowlist) GetCreatedAt() *types.Timestamp {
if m != nil {
return m.CreatedAt
}
return nil
}
func (m *IPAllowlist) GetDeletedAt() *types.Timestamp {
if m != nil {
return m.DeletedAt
}
return nil
}
func (m *IPAllowlist) GetIsDeleted() bool {
if m != nil {
return m.IsDeleted
}
return false
}
func (m *IPAllowlist) GetCreatedById() string {
if m != nil {
return m.CreatedById
}
return ""
}
func (m *IPAllowlist) GetLocked() bool {
if m != nil {
return m.Locked
}
return false
}
func (m *IPAllowlist) GetWarnings() []string {
if m != nil {
return m.Warnings
}
return nil
}
// List of IP allowlists.
type IPAllowlistList struct {
Items []*IPAllowlist `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *IPAllowlistList) Reset() { *m = IPAllowlistList{} }
func (m *IPAllowlistList) String() string { return proto.CompactTextString(m) }
func (*IPAllowlistList) ProtoMessage() {}
func (*IPAllowlistList) Descriptor() ([]byte, []int) {
return fileDescriptor_55a487c716a8b59c, []int{1}
}
func (m *IPAllowlistList) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *IPAllowlistList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_IPAllowlistList.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *IPAllowlistList) XXX_Merge(src proto.Message) {
xxx_messageInfo_IPAllowlistList.Merge(m, src)
}
func (m *IPAllowlistList) XXX_Size() int {
return m.Size()
}
func (m *IPAllowlistList) XXX_DiscardUnknown() {
xxx_messageInfo_IPAllowlistList.DiscardUnknown(m)
}
var xxx_messageInfo_IPAllowlistList proto.InternalMessageInfo
func (m *IPAllowlistList) GetItems() []*IPAllowlist {
if m != nil {
return m.Items
}
return nil
}
// IAMProvider provides configuration for a custom Identity & Access management provider
// for deployments.
type IAMProvider struct {
// System identifier of the provider.
// This is a read-only value.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// URL of the provider.
// This is a read-only value.
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
// Name of the provider.
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
// Description of the provider.
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
// Identifier of the project that contains this provider.
ProjectId string `protobuf:"bytes,5,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// Type of provider
Type string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"`
// The creation timestamp of this provider.
// This is a read-only value.
CreatedAt *types.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// The deletion timestamp of the provider
// This is a read-only value.
DeletedAt *types.Timestamp `protobuf:"bytes,8,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
// Set when this provider is deleted.
// This is a read-only value.
IsDeleted bool `protobuf:"varint,9,opt,name=is_deleted,json=isDeleted,proto3" json:"is_deleted,omitempty"`
// Identifier of the user who created this provider.
// This is a read-only value.
CreatedById string `protobuf:"bytes,10,opt,name=created_by_id,json=createdById,proto3" json:"created_by_id,omitempty"`
// Set when this provider is the default in its project.
// This is a read-only value.
IsDefault bool `protobuf:"varint,11,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"`
// If set, this IAM provider cannot be deleted.
// To delete, first update the with locked set to false.
Locked bool `protobuf:"varint,12,opt,name=locked,proto3" json:"locked,omitempty"`
LdapSettings *IAMProvider_LDAPSettings `protobuf:"bytes,101,opt,name=ldap_settings,json=ldapSettings,proto3" json:"ldap_settings,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *IAMProvider) Reset() { *m = IAMProvider{} }
func (m *IAMProvider) String() string { return proto.CompactTextString(m) }
func (*IAMProvider) ProtoMessage() {}
func (*IAMProvider) Descriptor() ([]byte, []int) {
return fileDescriptor_55a487c716a8b59c, []int{2}
}
func (m *IAMProvider) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *IAMProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_IAMProvider.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *IAMProvider) XXX_Merge(src proto.Message) {
xxx_messageInfo_IAMProvider.Merge(m, src)
}
func (m *IAMProvider) XXX_Size() int {
return m.Size()
}
func (m *IAMProvider) XXX_DiscardUnknown() {
xxx_messageInfo_IAMProvider.DiscardUnknown(m)
}
var xxx_messageInfo_IAMProvider proto.InternalMessageInfo
func (m *IAMProvider) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *IAMProvider) GetUrl() string {
if m != nil {
return m.Url
}
return ""
}
func (m *IAMProvider) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *IAMProvider) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *IAMProvider) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
func (m *IAMProvider) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *IAMProvider) GetCreatedAt() *types.Timestamp {
if m != nil {
return m.CreatedAt
}
return nil
}
func (m *IAMProvider) GetDeletedAt() *types.Timestamp {
if m != nil {
return m.DeletedAt
}
return nil
}
func (m *IAMProvider) GetIsDeleted() bool {
if m != nil {
return m.IsDeleted
}
return false
}
func (m *IAMProvider) GetCreatedById() string {
if m != nil {
return m.CreatedById
}
return ""
}
func (m *IAMProvider) GetIsDefault() bool {
if m != nil {
return m.IsDefault
}
return false
}
func (m *IAMProvider) GetLocked() bool {
if m != nil {
return m.Locked
}
return false
}
func (m *IAMProvider) GetLdapSettings() *IAMProvider_LDAPSettings {
if m != nil {
return m.LdapSettings
}
return nil
}
// LDAP provider specific settings
type IAMProvider_LDAPSettings struct {
// Hostname or IP address of the server
Server string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
// Port number of the server (defaults to 389)
Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
// Base distinguished name under which the search takes place
BaseDistinguishedName string `protobuf:"bytes,3,opt,name=base_distinguished_name,json=baseDistinguishedName,proto3" json:"base_distinguished_name,omitempty"`
// distinguished name for a read-only LDAP user to which ArangoDB can bind to search the LDAP server
BindDistinguishedName string `protobuf:"bytes,4,opt,name=bind_distinguished_name,json=bindDistinguishedName,proto3" json:"bind_distinguished_name,omitempty"`
// Password name for a read-only LDAP user to which ArangoDB can bind to search the LDAP server.
// This is a set-only field. During get/list requests, this field will be empty.
BindPassword string `protobuf:"bytes,5,opt,name=bind_password,json=bindPassword,proto3" json:"bind_password,omitempty"`
// Refresh rate in seconds (defaults to 300)
RefreshRate int32 `protobuf:"varint,6,opt,name=refresh_rate,json=refreshRate,proto3" json:"refresh_rate,omitempty"`
// PEM encoded version of the CA certificate used by the LDAP server.
TlsCaCertificatePem string `protobuf:"bytes,10,opt,name=tls_ca_certificate_pem,json=tlsCaCertificatePem,proto3" json:"tls_ca_certificate_pem,omitempty"`
// If set, calls into the underlying LDAP library are serialized.
// This option can be used to work around thread-unsafe LDAP library functionality.
Serialized bool `protobuf:"varint,20,opt,name=serialized,proto3" json:"serialized,omitempty"`
// Timeout (in seconds) used when waiting to enter the LDAP library call serialization lock.
// This is only meaningful when serialized has been set to true.
SerializeTimeoutSec int32 `protobuf:"varint,21,opt,name=serialize_timeout_sec,json=serializeTimeoutSec,proto3" json:"serialize_timeout_sec,omitempty"`
// Number of retries to attempt a connection to the LDAP server.
// Setting this to values greater than zero will make ArangoDB retry to contact the
// LDAP server in case no connection can be made initially.
Retries int32 `protobuf:"varint,22,opt,name=retries,proto3" json:"retries,omitempty"`
// If set, the LDAP library will implicitly restart connections.
Restart bool `protobuf:"varint,23,opt,name=restart,proto3" json:"restart,omitempty"`
// If set, the LDAP library will implicitly chase referrals.
Referrals bool `protobuf:"varint,24,opt,name=referrals,proto3" json:"referrals,omitempty"`
// Timeout value (in seconds) for synchronous LDAP API calls (a value of 0 means default timeout).
TimeoutSec int32 `protobuf:"varint,25,opt,name=timeout_sec,json=timeoutSec,proto3" json:"timeout_sec,omitempty"`
// Timeout value (in seconds) after which network operations following the initial
// connection return in case of no activity (a value of 0 means default timeout).
NetworkTimeoutSec int32 `protobuf:"varint,26,opt,name=network_timeout_sec,json=networkTimeoutSec,proto3" json:"network_timeout_sec,omitempty"`
// If set, the LDAP library will connect asynchronously.
AsyncConnect bool `protobuf:"varint,27,opt,name=async_connect,json=asyncConnect,proto3" json:"async_connect,omitempty"`
// Prefix for simple authentication
Prefix string `protobuf:"bytes,100,opt,name=prefix,proto3" json:"prefix,omitempty"`
// Suffix for simple authentication
Suffix string `protobuf:"bytes,101,opt,name=suffix,proto3" json:"suffix,omitempty"`
// LDAP search scope with possible values "base" (just search the base distinguished name),
// "sub" (recursive search under the base distinguished name) or
// "one" (search the base’s immediate children) (default: "sub").
SearchScope string `protobuf:"bytes,200,opt,name=search_scope,json=searchScope,proto3" json:"search_scope,omitempty"`
// LDAP filter expression which limits the set of LDAP users being considered
// (default: "objectClass=*"" which means all objects).
SearchFilter string `protobuf:"bytes,201,opt,name=search_filter,json=searchFilter,proto3" json:"search_filter,omitempty"`
// Specifies the attribute in the user objects which is used to match the ArangoDB user name (default: "uid").
SearchAttribute string `protobuf:"bytes,202,opt,name=search_attribute,json=searchAttribute,proto3" json:"search_attribute,omitempty"`
// If set, this field specifies the name of the attribute used to fetch the roles of a user.
RolesAttributeName string `protobuf:"bytes,300,opt,name=roles_attribute_name,json=rolesAttributeName,proto3" json:"roles_attribute_name,omitempty"`
// If set, then the string {USER} in the value of this field is replaced with the distinguished
// name of the authenticated LDAP user and the resulting search expression is used to
// match distinguished names of LDAP objects representing roles of that user.
RolesSearch string `protobuf:"bytes,301,opt,name=roles_search,json=rolesSearch,proto3" json:"roles_search,omitempty"`
// Regular expression that is used to filter roles.
// Only roles that match the regular expression are used.
RolesInclude string `protobuf:"bytes,400,opt,name=roles_include,json=rolesInclude,proto3" json:"roles_include,omitempty"`
// Regular expression that is used to filter roles.
// Only roles that do not match the regular expression are used.
RolesExclude string `protobuf:"bytes,401,opt,name=roles_exclude,json=rolesExclude,proto3" json:"roles_exclude,omitempty"`
// A regular expression in the format of a replacement text (/re/text/).
// This regular expression is applied to the role name found.
// This is especially useful in the roles-search variant to extract the real role name out of the dn value.
RolesTransformation string `protobuf:"bytes,402,opt,name=roles_transformation,json=rolesTransformation,proto3" json:"roles_transformation,omitempty"`
// Name of role associated with the superuser.
// Any user belonging to this role gains superuser status.
// This role is checked after applying the roles_transformation expression.
SuperUserRole string `protobuf:"bytes,403,opt,name=super_user_role,json=superUserRole,proto3" json:"super_user_role,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *IAMProvider_LDAPSettings) Reset() { *m = IAMProvider_LDAPSettings{} }
func (m *IAMProvider_LDAPSettings) String() string { return proto.CompactTextString(m) }
func (*IAMProvider_LDAPSettings) ProtoMessage() {}
func (*IAMProvider_LDAPSettings) Descriptor() ([]byte, []int) {
return fileDescriptor_55a487c716a8b59c, []int{2, 0}
}
func (m *IAMProvider_LDAPSettings) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *IAMProvider_LDAPSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_IAMProvider_LDAPSettings.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *IAMProvider_LDAPSettings) XXX_Merge(src proto.Message) {
xxx_messageInfo_IAMProvider_LDAPSettings.Merge(m, src)
}
func (m *IAMProvider_LDAPSettings) XXX_Size() int {
return m.Size()
}
func (m *IAMProvider_LDAPSettings) XXX_DiscardUnknown() {
xxx_messageInfo_IAMProvider_LDAPSettings.DiscardUnknown(m)
}
var xxx_messageInfo_IAMProvider_LDAPSettings proto.InternalMessageInfo
func (m *IAMProvider_LDAPSettings) GetServer() string {
if m != nil {
return m.Server
}
return ""
}
func (m *IAMProvider_LDAPSettings) GetPort() int32 {
if m != nil {
return m.Port
}
return 0
}
func (m *IAMProvider_LDAPSettings) GetBaseDistinguishedName() string {
if m != nil {
return m.BaseDistinguishedName
}
return ""
}
func (m *IAMProvider_LDAPSettings) GetBindDistinguishedName() string {
if m != nil {
return m.BindDistinguishedName
}
return ""
}
func (m *IAMProvider_LDAPSettings) GetBindPassword() string {
if m != nil {
return m.BindPassword
}
return ""
}
func (m *IAMProvider_LDAPSettings) GetRefreshRate() int32 {
if m != nil {
return m.RefreshRate
}
return 0
}
func (m *IAMProvider_LDAPSettings) GetTlsCaCertificatePem() string {
if m != nil {
return m.TlsCaCertificatePem
}
return ""
}
func (m *IAMProvider_LDAPSettings) GetSerialized() bool {
if m != nil {
return m.Serialized
}
return false
}
func (m *IAMProvider_LDAPSettings) GetSerializeTimeoutSec() int32 {
if m != nil {
return m.SerializeTimeoutSec
}
return 0
}
func (m *IAMProvider_LDAPSettings) GetRetries() int32 {
if m != nil {
return m.Retries
}
return 0
}
func (m *IAMProvider_LDAPSettings) GetRestart() bool {
if m != nil {
return m.Restart
}
return false
}
func (m *IAMProvider_LDAPSettings) GetReferrals() bool {
if m != nil {
return m.Referrals
}
return false
}
func (m *IAMProvider_LDAPSettings) GetTimeoutSec() int32 {
if m != nil {
return m.TimeoutSec
}
return 0
}
func (m *IAMProvider_LDAPSettings) GetNetworkTimeoutSec() int32 {
if m != nil {
return m.NetworkTimeoutSec
}
return 0
}
func (m *IAMProvider_LDAPSettings) GetAsyncConnect() bool {
if m != nil {
return m.AsyncConnect
}
return false
}
func (m *IAMProvider_LDAPSettings) GetPrefix() string {
if m != nil {
return m.Prefix
}
return ""
}
func (m *IAMProvider_LDAPSettings) GetSuffix() string {
if m != nil {
return m.Suffix
}
return ""
}
func (m *IAMProvider_LDAPSettings) GetSearchScope() string {
if m != nil {
return m.SearchScope
}
return ""
}
func (m *IAMProvider_LDAPSettings) GetSearchFilter() string {
if m != nil {
return m.SearchFilter
}
return ""
}
func (m *IAMProvider_LDAPSettings) GetSearchAttribute() string {
if m != nil {
return m.SearchAttribute
}
return ""
}
func (m *IAMProvider_LDAPSettings) GetRolesAttributeName() string {
if m != nil {
return m.RolesAttributeName
}
return ""
}
func (m *IAMProvider_LDAPSettings) GetRolesSearch() string {
if m != nil {
return m.RolesSearch
}
return ""
}
func (m *IAMProvider_LDAPSettings) GetRolesInclude() string {
if m != nil {
return m.RolesInclude
}
return ""
}
func (m *IAMProvider_LDAPSettings) GetRolesExclude() string {
if m != nil {
return m.RolesExclude
}
return ""
}
func (m *IAMProvider_LDAPSettings) GetRolesTransformation() string {
if m != nil {
return m.RolesTransformation
}
return ""
}
func (m *IAMProvider_LDAPSettings) GetSuperUserRole() string {
if m != nil {
return m.SuperUserRole
}
return ""
}
// List of IAM providers.
type IAMProviderList struct {
Items []*IAMProvider `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *IAMProviderList) Reset() { *m = IAMProviderList{} }
func (m *IAMProviderList) String() string { return proto.CompactTextString(m) }
func (*IAMProviderList) ProtoMessage() {}
func (*IAMProviderList) Descriptor() ([]byte, []int) {
return fileDescriptor_55a487c716a8b59c, []int{3}
}
func (m *IAMProviderList) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *IAMProviderList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_IAMProviderList.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *IAMProviderList) XXX_Merge(src proto.Message) {
xxx_messageInfo_IAMProviderList.Merge(m, src)
}
func (m *IAMProviderList) XXX_Size() int {
return m.Size()
}
func (m *IAMProviderList) XXX_DiscardUnknown() {
xxx_messageInfo_IAMProviderList.DiscardUnknown(m)
}
var xxx_messageInfo_IAMProviderList proto.InternalMessageInfo
func (m *IAMProviderList) GetItems() []*IAMProvider {
if m != nil {
return m.Items
}
return nil
}
func init() {
proto.RegisterType((*IPAllowlist)(nil), "arangodb.cloud.security.v1.IPAllowlist")
proto.RegisterType((*IPAllowlistList)(nil), "arangodb.cloud.security.v1.IPAllowlistList")
proto.RegisterType((*IAMProvider)(nil), "arangodb.cloud.security.v1.IAMProvider")
proto.RegisterType((*IAMProvider_LDAPSettings)(nil), "arangodb.cloud.security.v1.IAMProvider.LDAPSettings")
proto.RegisterType((*IAMProviderList)(nil), "arangodb.cloud.security.v1.IAMProviderList")
}
func init() { proto.RegisterFile("security.proto", fileDescriptor_55a487c716a8b59c) }
var fileDescriptor_55a487c716a8b59c = []byte{
// 1335 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x57, 0x4d, 0x6f, 0x1b, 0x45,
0x18, 0x66, 0xf3, 0xd5, 0x7a, 0x6c, 0x27, 0xcd, 0xa4, 0x49, 0x07, 0x53, 0xd2, 0xd4, 0x2d, 0x6a,
0x14, 0xa8, 0xad, 0xb8, 0x7c, 0x88, 0x56, 0x45, 0xb8, 0x49, 0x5b, 0x59, 0x2a, 0x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17, 0x2a, 0x63, 0x5c, 0x9d, 0x92, 0xf5, 0xa9, 0x83, 0xe6, 0x4d, 0xff, 0x3f, 0x72,
0x35, 0x0f, 0xfb, 0x55, 0x24, 0x55, 0x5c, 0x1b, 0xa7, 0x8a, 0x43, 0xe3, 0x8f, 0x7e, 0xa2, 0x4f,
0xc9, 0xf8, 0x3b, 0xbf, 0x17, 0x47, 0x37, 0x3e, 0xed, 0xc6, 0x43, 0x41, 0x89, 0xf1, 0x53, 0x8f,
0xca, 0xa7, 0x60, 0xfc, 0xd1, 0x6a, 0x07, 0x19, 0x3f, 0xa5, 0x63, 0x8f, 0xf1, 0x53, 0x7a, 0xc6,
0xdd, 0x6a, 0x7c, 0x4d, 0x47, 0x35, 0x7e, 0x4a, 0xe8, 0x2e, 0xe3, 0x3f, 0x53, 0x99, 0x07, 0x18,
0x7f, 0xf7, 0xd5, 0xed, 0x32, 0xfe, 0x51, 0xab, 0xf9, 0x6f, 0x8c, 0xbf, 0xa7, 0x8a, 0xdf, 0x3a,
0x68, 0xb1, 0x09, 0xd2, 0x3e, 0xa0, 0xff, 0xd1, 0x15, 0x1d, 0xaa, 0xe7, 0x86, 0xd6, 0xf3, 0x76,
0xf1, 0xca, 0x01, 0x9e, 0xdf, 0xaf, 0x84, 0x65, 0xfb, 0xd6, 0xbf, 0xec, 0xac, 0x5d, 0x7b, 0xeb,
0xf1, 0x93, 0x65, 0xe7, 0x97, 0x27, 0xcb, 0xce, 0x6f, 0x4f, 0x96, 0x9d, 0xaf, 0x7e, 0x5f, 0x7e,
0xee, 0xc3, 0x57, 0x52, 0x7f, 0xd2, 0x13, 0x11, 0x17, 0xbb, 0x34, 0xa4, 0x1d, 0xf0, 0xd5, 0x66,
0x22, 0xbd, 0x5b, 0x6b, 0x46, 0xff, 0x3d, 0xb9, 0xf4, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0x63,
0x52, 0xea, 0xa8, 0x1f, 0x10, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// SecurityServiceClient is the client API for SecurityService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type SecurityServiceClient interface {
// Get the current API version of this service.
// Required permissions:
// - None
GetAPIVersion(ctx context.Context, in *v1.Empty, opts ...grpc.CallOption) (*v1.Version, error)
// Fetch all IP allowlists that belong to the project identified by the given
// context ID.
// Required permissions:
// - security.ipallowlist.list on the project identified by the given context ID.
ListIPAllowlists(ctx context.Context, in *v1.ListOptions, opts ...grpc.CallOption) (*IPAllowlistList, error)
// Fetch an IP allowlist by its id.
// Required permissions:
// - security.ipallowlist.get on the IP allowlist
GetIPAllowlist(ctx context.Context, in *v1.IDOptions, opts ...grpc.CallOption) (*IPAllowlist, error)
// Create a new IP allowlist
// Required permissions:
// - security.ipallowlist.create on the project that owns the IP allowlist.
CreateIPAllowlist(ctx context.Context, in *IPAllowlist, opts ...grpc.CallOption) (*IPAllowlist, error)
// Update an IP allowlist
// Required permissions:
// - security.ipallowlist.update on the IP allowlist
UpdateIPAllowlist(ctx context.Context, in *IPAllowlist, opts ...grpc.CallOption) (*IPAllowlist, error)
// Delete an IP allowlist.
// Note that IP allowlists are initially only marked for deletion.
// Once all their dependent deployments are removed, the allowlist is removed.
// Required permissions:
// - security.ipallowlist.delete on the IP allowlist
DeleteIPAllowlist(ctx context.Context, in *v1.IDOptions, opts ...grpc.CallOption) (*v1.Empty, error)
// Fetch all IAM providers that belong to the project identified by the given
// context ID.
// Required permissions:
// - security.iamprovider.list on the project identified by the given context ID.
ListIAMProviders(ctx context.Context, in *v1.ListOptions, opts ...grpc.CallOption) (*IAMProviderList, error)
// Fetch an IAM provider by its id.
// Required permissions:
// - security.iamprovider.get on the IAM provider
GetIAMProvider(ctx context.Context, in *v1.IDOptions, opts ...grpc.CallOption) (*IAMProvider, error)
// Create a new IAM provider
// Required permissions:
// - security.iamprovider.create on the project that owns the IAM provider.
CreateIAMProvider(ctx context.Context, in *IAMProvider, opts ...grpc.CallOption) (*IAMProvider, error)
// Update an IAM provider
// Required permissions:
// - security.iamprovider.update on the IAM provider
UpdateIAMProvider(ctx context.Context, in *IAMProvider, opts ...grpc.CallOption) (*IAMProvider, error)
// Delete an IAM provider.
// Note that IAM providers are initially only marked for deletion.
// Once all their dependent deployments are removed, the provider is removed.
// Required permissions:
// - security.iamprovider.delete on the IP whitelist
DeleteIAMProvider(ctx context.Context, in *v1.IDOptions, opts ...grpc.CallOption) (*v1.Empty, error)
// Mark the given IAM provider as default for its containing project.
// Required permissions:
// - security.iamprovider.set-default on the project that owns the provider.
SetDefaultIAMProvider(ctx context.Context, in *IAMProvider, opts ...grpc.CallOption) (*v1.Empty, error)
}
type securityServiceClient struct {
cc *grpc.ClientConn
}
func NewSecurityServiceClient(cc *grpc.ClientConn) SecurityServiceClient {
return &securityServiceClient{cc}
}
func (c *securityServiceClient) GetAPIVersion(ctx context.Context, in *v1.Empty, opts ...grpc.CallOption) (*v1.Version, error) {
out := new(v1.Version)
err := c.cc.Invoke(ctx, "/arangodb.cloud.security.v1.SecurityService/GetAPIVersion", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *securityServiceClient) ListIPAllowlists(ctx context.Context, in *v1.ListOptions, opts ...grpc.CallOption) (*IPAllowlistList, error) {
out := new(IPAllowlistList)
err := c.cc.Invoke(ctx, "/arangodb.cloud.security.v1.SecurityService/ListIPAllowlists", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *securityServiceClient) GetIPAllowlist(ctx context.Context, in *v1.IDOptions, opts ...grpc.CallOption) (*IPAllowlist, error) {
out := new(IPAllowlist)
err := c.cc.Invoke(ctx, "/arangodb.cloud.security.v1.SecurityService/GetIPAllowlist", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *securityServiceClient) CreateIPAllowlist(ctx context.Context, in *IPAllowlist, opts ...grpc.CallOption) (*IPAllowlist, error) {
out := new(IPAllowlist)
err := c.cc.Invoke(ctx, "/arangodb.cloud.security.v1.SecurityService/CreateIPAllowlist", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *securityServiceClient) UpdateIPAllowlist(ctx context.Context, in *IPAllowlist, opts ...grpc.CallOption) (*IPAllowlist, error) {
out := new(IPAllowlist)
err := c.cc.Invoke(ctx, "/arangodb.cloud.security.v1.SecurityService/UpdateIPAllowlist", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *securityServiceClient) DeleteIPAllowlist(ctx context.Context, in *v1.IDOptions, opts ...grpc.CallOption) (*v1.Empty, error) {
out := new(v1.Empty)
err := c.cc.Invoke(ctx, "/arangodb.cloud.security.v1.SecurityService/DeleteIPAllowlist", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *securityServiceClient) ListIAMProviders(ctx context.Context, in *v1.ListOptions, opts ...grpc.CallOption) (*IAMProviderList, error) {
out := new(IAMProviderList)
err := c.cc.Invoke(ctx, "/arangodb.cloud.security.v1.SecurityService/ListIAMProviders", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *securityServiceClient) GetIAMProvider(ctx context.Context, in *v1.IDOptions, opts ...grpc.CallOption) (*IAMProvider, error) {
out := new(IAMProvider)
err := c.cc.Invoke(ctx, "/arangodb.cloud.security.v1.SecurityService/GetIAMProvider", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *securityServiceClient) CreateIAMProvider(ctx context.Context, in *IAMProvider, opts ...grpc.CallOption) (*IAMProvider, error) {
out := new(IAMProvider)
err := c.cc.Invoke(ctx, "/arangodb.cloud.security.v1.SecurityService/CreateIAMProvider", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *securityServiceClient) UpdateIAMProvider(ctx context.Context, in *IAMProvider, opts ...grpc.CallOption) (*IAMProvider, error) {
out := new(IAMProvider)
err := c.cc.Invoke(ctx, "/arangodb.cloud.security.v1.SecurityService/UpdateIAMProvider", in, out, opts...)
if err != nil {
return nil, err