-
Notifications
You must be signed in to change notification settings - Fork 180
/
idm.pb.go
2516 lines (2184 loc) · 89.8 KB
/
idm.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-go. DO NOT EDIT.
// source: idm.proto
/*
Package idm is a generated protocol buffer package.
It is generated from these files:
idm.proto
It has these top-level messages:
CreateRoleRequest
CreateRoleResponse
DeleteRoleRequest
DeleteRoleResponse
SearchRoleRequest
SearchRoleResponse
CountRoleResponse
Role
RoleSingleQuery
CreateUserRequest
CreateUserResponse
BindUserRequest
BindUserResponse
DeleteUserRequest
DeleteUserResponse
SearchUserRequest
SearchUserResponse
CountUserResponse
User
UserSingleQuery
CreateWorkspaceRequest
CreateWorkspaceResponse
DeleteWorkspaceRequest
DeleteWorkspaceResponse
SearchWorkspaceRequest
SearchWorkspaceResponse
Workspace
WorkspaceSingleQuery
CreateACLRequest
CreateACLResponse
ExpireACLRequest
ExpireACLResponse
DeleteACLRequest
DeleteACLResponse
SearchACLRequest
SearchACLResponse
ACLAction
ACL
ACLSingleQuery
UserMeta
UserMetaNamespace
UpdateUserMetaRequest
UpdateUserMetaResponse
SearchUserMetaRequest
SearchUserMetaResponse
UpdateUserMetaNamespaceRequest
UpdateUserMetaNamespaceResponse
ListUserMetaNamespaceRequest
ListUserMetaNamespaceResponse
ChangeEvent
PolicyEngineRequest
PolicyEngineResponse
PolicyCondition
Policy
PolicyGroup
StorePolicyGroupRequest
StorePolicyGroupResponse
DeletePolicyGroupRequest
DeletePolicyGroupResponse
ListPolicyGroupsRequest
ListPolicyGroupsResponse
*/
package idm
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import service "github.com/pydio/cells/common/service/proto"
import tree "github.com/pydio/cells/common/proto/tree"
import _ "github.com/mwitkow/go-proto-validators"
// 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.ProtoPackageIsVersion2 // please upgrade the proto package
type NodeType int32
const (
NodeType_UNKNOWN NodeType = 0
NodeType_USER NodeType = 1
NodeType_GROUP NodeType = 2
)
var NodeType_name = map[int32]string{
0: "UNKNOWN",
1: "USER",
2: "GROUP",
}
var NodeType_value = map[string]int32{
"UNKNOWN": 0,
"USER": 1,
"GROUP": 2,
}
func (x NodeType) String() string {
return proto.EnumName(NodeType_name, int32(x))
}
func (NodeType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
type WorkspaceScope int32
const (
WorkspaceScope_ANY WorkspaceScope = 0
WorkspaceScope_ADMIN WorkspaceScope = 1
WorkspaceScope_ROOM WorkspaceScope = 2
WorkspaceScope_LINK WorkspaceScope = 3
)
var WorkspaceScope_name = map[int32]string{
0: "ANY",
1: "ADMIN",
2: "ROOM",
3: "LINK",
}
var WorkspaceScope_value = map[string]int32{
"ANY": 0,
"ADMIN": 1,
"ROOM": 2,
"LINK": 3,
}
func (x WorkspaceScope) String() string {
return proto.EnumName(WorkspaceScope_name, int32(x))
}
func (WorkspaceScope) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
// Message Types for ChangeEvent
type ChangeEventType int32
const (
ChangeEventType_CREATE ChangeEventType = 0
ChangeEventType_READ ChangeEventType = 1
ChangeEventType_UPDATE ChangeEventType = 2
ChangeEventType_DELETE ChangeEventType = 3
ChangeEventType_LOGIN ChangeEventType = 4
ChangeEventType_LOGOUT ChangeEventType = 5
)
var ChangeEventType_name = map[int32]string{
0: "CREATE",
1: "READ",
2: "UPDATE",
3: "DELETE",
4: "LOGIN",
5: "LOGOUT",
}
var ChangeEventType_value = map[string]int32{
"CREATE": 0,
"READ": 1,
"UPDATE": 2,
"DELETE": 3,
"LOGIN": 4,
"LOGOUT": 5,
}
func (x ChangeEventType) String() string {
return proto.EnumName(ChangeEventType_name, int32(x))
}
func (ChangeEventType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
type PolicyEffect int32
const (
PolicyEffect_unknown PolicyEffect = 0
PolicyEffect_deny PolicyEffect = 1
PolicyEffect_allow PolicyEffect = 2
)
var PolicyEffect_name = map[int32]string{
0: "unknown",
1: "deny",
2: "allow",
}
var PolicyEffect_value = map[string]int32{
"unknown": 0,
"deny": 1,
"allow": 2,
}
func (x PolicyEffect) String() string {
return proto.EnumName(PolicyEffect_name, int32(x))
}
func (PolicyEffect) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
type PolicyResourceGroup int32
const (
PolicyResourceGroup_rest PolicyResourceGroup = 0
PolicyResourceGroup_acl PolicyResourceGroup = 1
PolicyResourceGroup_oidc PolicyResourceGroup = 2
)
var PolicyResourceGroup_name = map[int32]string{
0: "rest",
1: "acl",
2: "oidc",
}
var PolicyResourceGroup_value = map[string]int32{
"rest": 0,
"acl": 1,
"oidc": 2,
}
func (x PolicyResourceGroup) String() string {
return proto.EnumName(PolicyResourceGroup_name, int32(x))
}
func (PolicyResourceGroup) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
type UpdateUserMetaRequest_UserMetaOp int32
const (
UpdateUserMetaRequest_PUT UpdateUserMetaRequest_UserMetaOp = 0
UpdateUserMetaRequest_DELETE UpdateUserMetaRequest_UserMetaOp = 1
)
var UpdateUserMetaRequest_UserMetaOp_name = map[int32]string{
0: "PUT",
1: "DELETE",
}
var UpdateUserMetaRequest_UserMetaOp_value = map[string]int32{
"PUT": 0,
"DELETE": 1,
}
func (x UpdateUserMetaRequest_UserMetaOp) String() string {
return proto.EnumName(UpdateUserMetaRequest_UserMetaOp_name, int32(x))
}
func (UpdateUserMetaRequest_UserMetaOp) EnumDescriptor() ([]byte, []int) {
return fileDescriptor0, []int{41, 0}
}
type UpdateUserMetaNamespaceRequest_UserMetaNsOp int32
const (
UpdateUserMetaNamespaceRequest_PUT UpdateUserMetaNamespaceRequest_UserMetaNsOp = 0
UpdateUserMetaNamespaceRequest_DELETE UpdateUserMetaNamespaceRequest_UserMetaNsOp = 1
)
var UpdateUserMetaNamespaceRequest_UserMetaNsOp_name = map[int32]string{
0: "PUT",
1: "DELETE",
}
var UpdateUserMetaNamespaceRequest_UserMetaNsOp_value = map[string]int32{
"PUT": 0,
"DELETE": 1,
}
func (x UpdateUserMetaNamespaceRequest_UserMetaNsOp) String() string {
return proto.EnumName(UpdateUserMetaNamespaceRequest_UserMetaNsOp_name, int32(x))
}
func (UpdateUserMetaNamespaceRequest_UserMetaNsOp) EnumDescriptor() ([]byte, []int) {
return fileDescriptor0, []int{45, 0}
}
// *****************************************************************************
// Messages structure
// *****************************************************************************
type CreateRoleRequest struct {
Role *Role `protobuf:"bytes,1,opt,name=Role" json:"Role,omitempty"`
}
func (m *CreateRoleRequest) Reset() { *m = CreateRoleRequest{} }
func (m *CreateRoleRequest) String() string { return proto.CompactTextString(m) }
func (*CreateRoleRequest) ProtoMessage() {}
func (*CreateRoleRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *CreateRoleRequest) GetRole() *Role {
if m != nil {
return m.Role
}
return nil
}
type CreateRoleResponse struct {
Role *Role `protobuf:"bytes,1,opt,name=Role" json:"Role,omitempty"`
}
func (m *CreateRoleResponse) Reset() { *m = CreateRoleResponse{} }
func (m *CreateRoleResponse) String() string { return proto.CompactTextString(m) }
func (*CreateRoleResponse) ProtoMessage() {}
func (*CreateRoleResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *CreateRoleResponse) GetRole() *Role {
if m != nil {
return m.Role
}
return nil
}
type DeleteRoleRequest struct {
Query *service.Query `protobuf:"bytes,1,opt,name=Query" json:"Query,omitempty"`
}
func (m *DeleteRoleRequest) Reset() { *m = DeleteRoleRequest{} }
func (m *DeleteRoleRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteRoleRequest) ProtoMessage() {}
func (*DeleteRoleRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *DeleteRoleRequest) GetQuery() *service.Query {
if m != nil {
return m.Query
}
return nil
}
type DeleteRoleResponse struct {
RowsDeleted int64 `protobuf:"varint,1,opt,name=RowsDeleted" json:"RowsDeleted,omitempty"`
}
func (m *DeleteRoleResponse) Reset() { *m = DeleteRoleResponse{} }
func (m *DeleteRoleResponse) String() string { return proto.CompactTextString(m) }
func (*DeleteRoleResponse) ProtoMessage() {}
func (*DeleteRoleResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *DeleteRoleResponse) GetRowsDeleted() int64 {
if m != nil {
return m.RowsDeleted
}
return 0
}
type SearchRoleRequest struct {
Query *service.Query `protobuf:"bytes,1,opt,name=Query" json:"Query,omitempty"`
}
func (m *SearchRoleRequest) Reset() { *m = SearchRoleRequest{} }
func (m *SearchRoleRequest) String() string { return proto.CompactTextString(m) }
func (*SearchRoleRequest) ProtoMessage() {}
func (*SearchRoleRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *SearchRoleRequest) GetQuery() *service.Query {
if m != nil {
return m.Query
}
return nil
}
type SearchRoleResponse struct {
Role *Role `protobuf:"bytes,1,opt,name=Role" json:"Role,omitempty"`
}
func (m *SearchRoleResponse) Reset() { *m = SearchRoleResponse{} }
func (m *SearchRoleResponse) String() string { return proto.CompactTextString(m) }
func (*SearchRoleResponse) ProtoMessage() {}
func (*SearchRoleResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *SearchRoleResponse) GetRole() *Role {
if m != nil {
return m.Role
}
return nil
}
type CountRoleResponse struct {
Count int32 `protobuf:"varint,1,opt,name=Count" json:"Count,omitempty"`
}
func (m *CountRoleResponse) Reset() { *m = CountRoleResponse{} }
func (m *CountRoleResponse) String() string { return proto.CompactTextString(m) }
func (*CountRoleResponse) ProtoMessage() {}
func (*CountRoleResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *CountRoleResponse) GetCount() int32 {
if m != nil {
return m.Count
}
return 0
}
// Role represents a generic set of permissions that can be applied to any users or groups.
type Role struct {
// Unique identifier of this role
Uuid string `protobuf:"bytes,1,opt,name=Uuid" json:"Uuid,omitempty"`
// Label of this role
Label string `protobuf:"bytes,2,opt,name=Label" json:"Label,omitempty"`
// Whether this role represents a user team or not
IsTeam bool `protobuf:"varint,3,opt,name=IsTeam" json:"IsTeam,omitempty"`
// Whether this role is attached to a Group object
GroupRole bool `protobuf:"varint,4,opt,name=GroupRole" json:"GroupRole,omitempty"`
// Whether this role is attached to a User object
UserRole bool `protobuf:"varint,5,opt,name=UserRole" json:"UserRole,omitempty"`
// Last modification date of the role
LastUpdated int32 `protobuf:"varint,6,opt,name=LastUpdated" json:"LastUpdated,omitempty"`
// List of profiles (standard, shared, admin) on which the role will be automatically applied
AutoApplies []string `protobuf:"bytes,7,rep,name=AutoApplies" json:"AutoApplies,omitempty"`
// List of policies for securing this role access
Policies []*service.ResourcePolicy `protobuf:"bytes,8,rep,name=Policies" json:"Policies,omitempty"`
// Whether the policies resolve into an editable state
PoliciesContextEditable bool `protobuf:"varint,9,opt,name=PoliciesContextEditable" json:"PoliciesContextEditable,omitempty"`
// Is used in a stack of roles, this one will always be applied last.
ForceOverride bool `protobuf:"varint,10,opt,name=ForceOverride" json:"ForceOverride,omitempty"`
}
func (m *Role) Reset() { *m = Role{} }
func (m *Role) String() string { return proto.CompactTextString(m) }
func (*Role) ProtoMessage() {}
func (*Role) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
func (m *Role) GetUuid() string {
if m != nil {
return m.Uuid
}
return ""
}
func (m *Role) GetLabel() string {
if m != nil {
return m.Label
}
return ""
}
func (m *Role) GetIsTeam() bool {
if m != nil {
return m.IsTeam
}
return false
}
func (m *Role) GetGroupRole() bool {
if m != nil {
return m.GroupRole
}
return false
}
func (m *Role) GetUserRole() bool {
if m != nil {
return m.UserRole
}
return false
}
func (m *Role) GetLastUpdated() int32 {
if m != nil {
return m.LastUpdated
}
return 0
}
func (m *Role) GetAutoApplies() []string {
if m != nil {
return m.AutoApplies
}
return nil
}
func (m *Role) GetPolicies() []*service.ResourcePolicy {
if m != nil {
return m.Policies
}
return nil
}
func (m *Role) GetPoliciesContextEditable() bool {
if m != nil {
return m.PoliciesContextEditable
}
return false
}
func (m *Role) GetForceOverride() bool {
if m != nil {
return m.ForceOverride
}
return false
}
// RoleSingleQuery is the basic unit for building queries to Roles.
type RoleSingleQuery struct {
// Look for roles by Uuid
Uuid []string `protobuf:"bytes,1,rep,name=Uuid" json:"Uuid,omitempty"`
// Look for roles by label, eventually using wildchar
Label string `protobuf:"bytes,2,opt,name=Label" json:"Label,omitempty"`
// Look for team roles only
IsTeam bool `protobuf:"varint,3,opt,name=IsTeam" json:"IsTeam,omitempty"`
// Look for group roles only
IsGroupRole bool `protobuf:"varint,4,opt,name=IsGroupRole" json:"IsGroupRole,omitempty"`
// Look for user roles only
IsUserRole bool `protobuf:"varint,5,opt,name=IsUserRole" json:"IsUserRole,omitempty"`
// Look for roles that have any value in the autoApplies field
HasAutoApply bool `protobuf:"varint,6,opt,name=HasAutoApply" json:"HasAutoApply,omitempty"`
// Negate the query
Not bool `protobuf:"varint,7,opt,name=not" json:"not,omitempty"`
}
func (m *RoleSingleQuery) Reset() { *m = RoleSingleQuery{} }
func (m *RoleSingleQuery) String() string { return proto.CompactTextString(m) }
func (*RoleSingleQuery) ProtoMessage() {}
func (*RoleSingleQuery) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
func (m *RoleSingleQuery) GetUuid() []string {
if m != nil {
return m.Uuid
}
return nil
}
func (m *RoleSingleQuery) GetLabel() string {
if m != nil {
return m.Label
}
return ""
}
func (m *RoleSingleQuery) GetIsTeam() bool {
if m != nil {
return m.IsTeam
}
return false
}
func (m *RoleSingleQuery) GetIsGroupRole() bool {
if m != nil {
return m.IsGroupRole
}
return false
}
func (m *RoleSingleQuery) GetIsUserRole() bool {
if m != nil {
return m.IsUserRole
}
return false
}
func (m *RoleSingleQuery) GetHasAutoApply() bool {
if m != nil {
return m.HasAutoApply
}
return false
}
func (m *RoleSingleQuery) GetNot() bool {
if m != nil {
return m.Not
}
return false
}
// *****************************************************************************
// Messages structure
// *****************************************************************************
type CreateUserRequest struct {
User *User `protobuf:"bytes,1,opt,name=User" json:"User,omitempty"`
}
func (m *CreateUserRequest) Reset() { *m = CreateUserRequest{} }
func (m *CreateUserRequest) String() string { return proto.CompactTextString(m) }
func (*CreateUserRequest) ProtoMessage() {}
func (*CreateUserRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
func (m *CreateUserRequest) GetUser() *User {
if m != nil {
return m.User
}
return nil
}
type CreateUserResponse struct {
User *User `protobuf:"bytes,1,opt,name=User" json:"User,omitempty"`
}
func (m *CreateUserResponse) Reset() { *m = CreateUserResponse{} }
func (m *CreateUserResponse) String() string { return proto.CompactTextString(m) }
func (*CreateUserResponse) ProtoMessage() {}
func (*CreateUserResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
func (m *CreateUserResponse) GetUser() *User {
if m != nil {
return m.User
}
return nil
}
type BindUserRequest struct {
UserName string `protobuf:"bytes,1,opt,name=userName" json:"userName,omitempty"`
Password string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"`
}
func (m *BindUserRequest) Reset() { *m = BindUserRequest{} }
func (m *BindUserRequest) String() string { return proto.CompactTextString(m) }
func (*BindUserRequest) ProtoMessage() {}
func (*BindUserRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
func (m *BindUserRequest) GetUserName() string {
if m != nil {
return m.UserName
}
return ""
}
func (m *BindUserRequest) GetPassword() string {
if m != nil {
return m.Password
}
return ""
}
type BindUserResponse struct {
User *User `protobuf:"bytes,1,opt,name=User" json:"User,omitempty"`
}
func (m *BindUserResponse) Reset() { *m = BindUserResponse{} }
func (m *BindUserResponse) String() string { return proto.CompactTextString(m) }
func (*BindUserResponse) ProtoMessage() {}
func (*BindUserResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
func (m *BindUserResponse) GetUser() *User {
if m != nil {
return m.User
}
return nil
}
type DeleteUserRequest struct {
Query *service.Query `protobuf:"bytes,1,opt,name=Query" json:"Query,omitempty"`
}
func (m *DeleteUserRequest) Reset() { *m = DeleteUserRequest{} }
func (m *DeleteUserRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteUserRequest) ProtoMessage() {}
func (*DeleteUserRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
func (m *DeleteUserRequest) GetQuery() *service.Query {
if m != nil {
return m.Query
}
return nil
}
type DeleteUserResponse struct {
RowsDeleted int64 `protobuf:"varint,1,opt,name=RowsDeleted" json:"RowsDeleted,omitempty"`
}
func (m *DeleteUserResponse) Reset() { *m = DeleteUserResponse{} }
func (m *DeleteUserResponse) String() string { return proto.CompactTextString(m) }
func (*DeleteUserResponse) ProtoMessage() {}
func (*DeleteUserResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
func (m *DeleteUserResponse) GetRowsDeleted() int64 {
if m != nil {
return m.RowsDeleted
}
return 0
}
type SearchUserRequest struct {
Query *service.Query `protobuf:"bytes,1,opt,name=Query" json:"Query,omitempty"`
}
func (m *SearchUserRequest) Reset() { *m = SearchUserRequest{} }
func (m *SearchUserRequest) String() string { return proto.CompactTextString(m) }
func (*SearchUserRequest) ProtoMessage() {}
func (*SearchUserRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
func (m *SearchUserRequest) GetQuery() *service.Query {
if m != nil {
return m.Query
}
return nil
}
type SearchUserResponse struct {
User *User `protobuf:"bytes,1,opt,name=User" json:"User,omitempty"`
}
func (m *SearchUserResponse) Reset() { *m = SearchUserResponse{} }
func (m *SearchUserResponse) String() string { return proto.CompactTextString(m) }
func (*SearchUserResponse) ProtoMessage() {}
func (*SearchUserResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
func (m *SearchUserResponse) GetUser() *User {
if m != nil {
return m.User
}
return nil
}
type CountUserResponse struct {
Count int32 `protobuf:"varint,1,opt,name=Count" json:"Count,omitempty"`
}
func (m *CountUserResponse) Reset() { *m = CountUserResponse{} }
func (m *CountUserResponse) String() string { return proto.CompactTextString(m) }
func (*CountUserResponse) ProtoMessage() {}
func (*CountUserResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} }
func (m *CountUserResponse) GetCount() int32 {
if m != nil {
return m.Count
}
return 0
}
// User can represent either a User or a Group
type User struct {
// User unique identifier
Uuid string `protobuf:"bytes,1,opt,name=Uuid" json:"Uuid,omitempty"`
// Path to the parent group
GroupPath string `protobuf:"bytes,2,opt,name=GroupPath" json:"GroupPath,omitempty"`
// A free list of attributes
Attributes map[string]string `protobuf:"bytes,3,rep,name=Attributes" json:"Attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// List of roles applied to this user or group
Roles []*Role `protobuf:"bytes,4,rep,name=Roles" json:"Roles,omitempty"`
// User login is used to connect, field is empty for groups
Login string `protobuf:"bytes,5,opt,name=Login" json:"Login,omitempty"`
// Password can be passed to be updated (but never read back), field is empty for groups
Password string `protobuf:"bytes,6,opt,name=Password" json:"Password,omitempty"`
// OldPassword must be set when a user updates her own password
OldPassword string `protobuf:"bytes,11,opt,name=OldPassword" json:"OldPassword,omitempty"`
// Whether this object is a group or a user
IsGroup bool `protobuf:"varint,7,opt,name=IsGroup" json:"IsGroup,omitempty"`
// Label of the group, field is empty for users
GroupLabel string `protobuf:"bytes,8,opt,name=GroupLabel" json:"GroupLabel,omitempty"`
// Last successful connection timestamp
LastConnected int32 `protobuf:"varint,12,opt,name=LastConnected" json:"LastConnected,omitempty"`
// Policies securing access to this user
Policies []*service.ResourcePolicy `protobuf:"bytes,9,rep,name=Policies" json:"Policies,omitempty"`
// Context-resolved to quickly check if user is editable or not.
PoliciesContextEditable bool `protobuf:"varint,10,opt,name=PoliciesContextEditable" json:"PoliciesContextEditable,omitempty"`
}
func (m *User) Reset() { *m = User{} }
func (m *User) String() string { return proto.CompactTextString(m) }
func (*User) ProtoMessage() {}
func (*User) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
func (m *User) GetUuid() string {
if m != nil {
return m.Uuid
}
return ""
}
func (m *User) GetGroupPath() string {
if m != nil {
return m.GroupPath
}
return ""
}
func (m *User) GetAttributes() map[string]string {
if m != nil {
return m.Attributes
}
return nil
}
func (m *User) GetRoles() []*Role {
if m != nil {
return m.Roles
}
return nil
}
func (m *User) GetLogin() string {
if m != nil {
return m.Login
}
return ""
}
func (m *User) GetPassword() string {
if m != nil {
return m.Password
}
return ""
}
func (m *User) GetOldPassword() string {
if m != nil {
return m.OldPassword
}
return ""
}
func (m *User) GetIsGroup() bool {
if m != nil {
return m.IsGroup
}
return false
}
func (m *User) GetGroupLabel() string {
if m != nil {
return m.GroupLabel
}
return ""
}
func (m *User) GetLastConnected() int32 {
if m != nil {
return m.LastConnected
}
return 0
}
func (m *User) GetPolicies() []*service.ResourcePolicy {
if m != nil {
return m.Policies
}
return nil
}
func (m *User) GetPoliciesContextEditable() bool {
if m != nil {
return m.PoliciesContextEditable
}
return false
}
type UserSingleQuery struct {
Uuid string `protobuf:"bytes,11,opt,name=Uuid" json:"Uuid,omitempty"`
Login string `protobuf:"bytes,1,opt,name=Login" json:"Login,omitempty"`
Password string `protobuf:"bytes,2,opt,name=Password" json:"Password,omitempty"`
// Search on group path, and if so, search recursively
GroupPath string `protobuf:"bytes,3,opt,name=GroupPath" json:"GroupPath,omitempty"`
Recursive bool `protobuf:"varint,4,opt,name=Recursive" json:"Recursive,omitempty"`
// Search a specific group by path
FullPath string `protobuf:"bytes,12,opt,name=FullPath" json:"FullPath,omitempty"`
// Search on attribute
AttributeName string `protobuf:"bytes,5,opt,name=AttributeName" json:"AttributeName,omitempty"`
AttributeValue string `protobuf:"bytes,6,opt,name=AttributeValue" json:"AttributeValue,omitempty"`
AttributeAnyValue bool `protobuf:"varint,7,opt,name=AttributeAnyValue" json:"AttributeAnyValue,omitempty"`
// Search on roles
HasRole string `protobuf:"bytes,8,opt,name=HasRole" json:"HasRole,omitempty"`
NodeType NodeType `protobuf:"varint,9,opt,name=NodeType,enum=idm.NodeType" json:"NodeType,omitempty"`
// Shortcut for pydio:profile attribute
HasProfile string `protobuf:"bytes,13,opt,name=HasProfile" json:"HasProfile,omitempty"`
// Compare to last connection date, starting with > or <
ConnectedSince string `protobuf:"bytes,14,opt,name=ConnectedSince" json:"ConnectedSince,omitempty"`
Not bool `protobuf:"varint,10,opt,name=not" json:"not,omitempty"`
}
func (m *UserSingleQuery) Reset() { *m = UserSingleQuery{} }
func (m *UserSingleQuery) String() string { return proto.CompactTextString(m) }
func (*UserSingleQuery) ProtoMessage() {}
func (*UserSingleQuery) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} }
func (m *UserSingleQuery) GetUuid() string {
if m != nil {
return m.Uuid
}
return ""
}
func (m *UserSingleQuery) GetLogin() string {
if m != nil {
return m.Login
}
return ""
}
func (m *UserSingleQuery) GetPassword() string {
if m != nil {
return m.Password
}
return ""
}
func (m *UserSingleQuery) GetGroupPath() string {
if m != nil {
return m.GroupPath
}
return ""
}
func (m *UserSingleQuery) GetRecursive() bool {
if m != nil {
return m.Recursive
}
return false
}
func (m *UserSingleQuery) GetFullPath() string {
if m != nil {
return m.FullPath
}
return ""
}
func (m *UserSingleQuery) GetAttributeName() string {
if m != nil {
return m.AttributeName
}
return ""
}
func (m *UserSingleQuery) GetAttributeValue() string {
if m != nil {
return m.AttributeValue
}
return ""
}
func (m *UserSingleQuery) GetAttributeAnyValue() bool {
if m != nil {
return m.AttributeAnyValue
}
return false
}
func (m *UserSingleQuery) GetHasRole() string {
if m != nil {
return m.HasRole
}
return ""
}
func (m *UserSingleQuery) GetNodeType() NodeType {
if m != nil {
return m.NodeType
}
return NodeType_UNKNOWN
}
func (m *UserSingleQuery) GetHasProfile() string {
if m != nil {
return m.HasProfile
}
return ""
}
func (m *UserSingleQuery) GetConnectedSince() string {
if m != nil {
return m.ConnectedSince
}
return ""
}
func (m *UserSingleQuery) GetNot() bool {
if m != nil {
return m.Not
}
return false
}
// *****************************************************************************
// Messages structure
// *****************************************************************************
type CreateWorkspaceRequest struct {
Workspace *Workspace `protobuf:"bytes,1,opt,name=Workspace" json:"Workspace,omitempty"`
}
func (m *CreateWorkspaceRequest) Reset() { *m = CreateWorkspaceRequest{} }
func (m *CreateWorkspaceRequest) String() string { return proto.CompactTextString(m) }
func (*CreateWorkspaceRequest) ProtoMessage() {}
func (*CreateWorkspaceRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} }
func (m *CreateWorkspaceRequest) GetWorkspace() *Workspace {
if m != nil {
return m.Workspace
}
return nil
}
type CreateWorkspaceResponse struct {
Workspace *Workspace `protobuf:"bytes,1,opt,name=Workspace" json:"Workspace,omitempty"`
}
func (m *CreateWorkspaceResponse) Reset() { *m = CreateWorkspaceResponse{} }
func (m *CreateWorkspaceResponse) String() string { return proto.CompactTextString(m) }
func (*CreateWorkspaceResponse) ProtoMessage() {}
func (*CreateWorkspaceResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} }
func (m *CreateWorkspaceResponse) GetWorkspace() *Workspace {
if m != nil {
return m.Workspace
}
return nil
}
type DeleteWorkspaceRequest struct {
Query *service.Query `protobuf:"bytes,1,opt,name=Query" json:"Query,omitempty"`
}
func (m *DeleteWorkspaceRequest) Reset() { *m = DeleteWorkspaceRequest{} }
func (m *DeleteWorkspaceRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteWorkspaceRequest) ProtoMessage() {}
func (*DeleteWorkspaceRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{22} }
func (m *DeleteWorkspaceRequest) GetQuery() *service.Query {