-
Notifications
You must be signed in to change notification settings - Fork 15
/
wrapper.pb.go
118 lines (107 loc) · 4.6 KB
/
wrapper.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
package auth
import (
"fmt"
"github.com/gogo/protobuf/types"
"strings"
)
type GetUsersResponseWrapper struct {
Users []*UserWrapper `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
type UserWrapper struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
ResourceVersion string `protobuf:"bytes,2,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"`
Spec *UserSpecWrapper `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"`
State UserState `protobuf:"varint,4,opt,name=state,proto3,enum=api.auth.v1.UserState" json:"state,omitempty"`
RequestId string `protobuf:"bytes,5,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
Invitation *Invitation `protobuf:"bytes,6,opt,name=invitation,proto3" json:"invitation,omitempty"`
CreatedTime *types.Timestamp `protobuf:"bytes,7,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"`
LastModifiedTime *types.Timestamp `protobuf:"bytes,8,opt,name=last_modified_time,json=lastModifiedTime,proto3" json:"last_modified_time,omitempty"`
}
type UserSpecWrapper struct {
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
AccountRole AccountRole `protobuf:"bytes,3,opt,name=account_role,json=accountRole,proto3" json:"account_role,omitempty"`
NamespacePermissions []NamespacePermission `protobuf:"bytes,4,opt,name=namespace_permissions,json=namespacePermissions,proto3" json:"namespace_permissions,omitempty"`
}
type AccountRole struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
}
type NamespacePermission struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
Permission string `protobuf:"bytes,3,opt,name=permission,proto3" json:"permission,omitempty"`
}
func (*GetUsersResponseWrapper) Reset() {}
func (*GetUsersResponseWrapper) ProtoMessage() {}
func (this *GetUsersResponseWrapper) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&GetUsersResponse{`,
`Users:` + fmt.Sprintf("%v", this.Users) + `,`,
`NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`,
`}`,
}, "")
return s
}
func (*UserWrapper) Reset() {}
func (*UserWrapper) ProtoMessage() {}
func (this *UserWrapper) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&User{`,
`Id:` + fmt.Sprintf("%v", this.Id) + `,`,
`ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`,
`Spec:` + strings.Replace(this.Spec.String(), "UserSpec", "UserSpec", 1) + `,`,
`State:` + fmt.Sprintf("%v", this.State) + `,`,
`RequestId:` + fmt.Sprintf("%v", this.RequestId) + `,`,
`Invitation:` + strings.Replace(this.Invitation.String(), "Invitation", "Invitation", 1) + `,`,
`CreatedTime:` + strings.Replace(fmt.Sprintf("%v", this.CreatedTime), "Timestamp", "types.Timestamp", 1) + `,`,
`LastModifiedTime:` + strings.Replace(fmt.Sprintf("%v", this.LastModifiedTime), "Timestamp", "types.Timestamp", 1) + `,`,
`}`,
}, "")
return s
}
func (*UserSpecWrapper) Reset() {}
func (*UserSpecWrapper) ProtoMessage() {}
func (this *UserSpecWrapper) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&UserSpec{`,
`Email:` + fmt.Sprintf("%v", this.Email) + `,`,
`AccountRole:` + fmt.Sprintf("%v", this.AccountRole) + `,`,
`NamespacePermissions:` + fmt.Sprintf("%v", this.NamespacePermissions) + `,`,
`}`,
}, "")
return s
}
func (*AccountRole) Reset() {}
func (*AccountRole) ProtoMessage() {}
func (this *AccountRole) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&AccountRole{`,
`Id:` + fmt.Sprintf("%v", this.Id) + `,`,
`Role:` + fmt.Sprintf("%v", this.Role) + `,`,
`}`,
}, "")
return s
}
func (*NamespacePermission) Reset() {}
func (*NamespacePermission) ProtoMessage() {}
func (this *NamespacePermission) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&NamespacePermission{`,
`Id:` + fmt.Sprintf("%v", this.Id) + `,`,
`Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
`Permission:` + fmt.Sprintf("%v", this.Permission) + `,`,
`}`,
}, "")
return s
}