1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package iampb
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 expr "google.golang.org/genproto/googleapis/type/expr"
28 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
29 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
30 )
31
32 const (
33
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39
40 type DenyRule struct {
41 state protoimpl.MessageState
42 sizeCache protoimpl.SizeCache
43 unknownFields protoimpl.UnknownFields
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 DeniedPrincipals []string `protobuf:"bytes,1,rep,name=denied_principals,json=deniedPrincipals,proto3" json:"denied_principals,omitempty"`
86
87
88
89
90
91
92
93
94 ExceptionPrincipals []string `protobuf:"bytes,2,rep,name=exception_principals,json=exceptionPrincipals,proto3" json:"exception_principals,omitempty"`
95
96
97
98
99 DeniedPermissions []string `protobuf:"bytes,3,rep,name=denied_permissions,json=deniedPermissions,proto3" json:"denied_permissions,omitempty"`
100
101
102
103
104
105
106
107 ExceptionPermissions []string `protobuf:"bytes,4,rep,name=exception_permissions,json=exceptionPermissions,proto3" json:"exception_permissions,omitempty"`
108
109
110
111
112
113
114
115
116
117
118
119 DenialCondition *expr.Expr `protobuf:"bytes,5,opt,name=denial_condition,json=denialCondition,proto3" json:"denial_condition,omitempty"`
120 }
121
122 func (x *DenyRule) Reset() {
123 *x = DenyRule{}
124 if protoimpl.UnsafeEnabled {
125 mi := &file_google_iam_v2_deny_proto_msgTypes[0]
126 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
127 ms.StoreMessageInfo(mi)
128 }
129 }
130
131 func (x *DenyRule) String() string {
132 return protoimpl.X.MessageStringOf(x)
133 }
134
135 func (*DenyRule) ProtoMessage() {}
136
137 func (x *DenyRule) ProtoReflect() protoreflect.Message {
138 mi := &file_google_iam_v2_deny_proto_msgTypes[0]
139 if protoimpl.UnsafeEnabled && x != nil {
140 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
141 if ms.LoadMessageInfo() == nil {
142 ms.StoreMessageInfo(mi)
143 }
144 return ms
145 }
146 return mi.MessageOf(x)
147 }
148
149
150 func (*DenyRule) Descriptor() ([]byte, []int) {
151 return file_google_iam_v2_deny_proto_rawDescGZIP(), []int{0}
152 }
153
154 func (x *DenyRule) GetDeniedPrincipals() []string {
155 if x != nil {
156 return x.DeniedPrincipals
157 }
158 return nil
159 }
160
161 func (x *DenyRule) GetExceptionPrincipals() []string {
162 if x != nil {
163 return x.ExceptionPrincipals
164 }
165 return nil
166 }
167
168 func (x *DenyRule) GetDeniedPermissions() []string {
169 if x != nil {
170 return x.DeniedPermissions
171 }
172 return nil
173 }
174
175 func (x *DenyRule) GetExceptionPermissions() []string {
176 if x != nil {
177 return x.ExceptionPermissions
178 }
179 return nil
180 }
181
182 func (x *DenyRule) GetDenialCondition() *expr.Expr {
183 if x != nil {
184 return x.DenialCondition
185 }
186 return nil
187 }
188
189 var File_google_iam_v2_deny_proto protoreflect.FileDescriptor
190
191 var file_google_iam_v2_deny_proto_rawDesc = []byte{
192 0x0a, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x32, 0x2f,
193 0x64, 0x65, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x67, 0x6f, 0x6f, 0x67,
194 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x32, 0x1a, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
195 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
196 0x6f, 0x22, 0x8c, 0x02, 0x0a, 0x08, 0x44, 0x65, 0x6e, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x2b,
197 0x0a, 0x11, 0x64, 0x65, 0x6e, 0x69, 0x65, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70,
198 0x61, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 0x64, 0x65, 0x6e, 0x69, 0x65,
199 0x64, 0x50, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x73, 0x12, 0x31, 0x0a, 0x14, 0x65,
200 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70,
201 0x61, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x13, 0x65, 0x78, 0x63, 0x65, 0x70,
202 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x73, 0x12, 0x2d,
203 0x0a, 0x12, 0x64, 0x65, 0x6e, 0x69, 0x65, 0x64, 0x5f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73,
204 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x64, 0x65, 0x6e, 0x69,
205 0x65, 0x64, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x33, 0x0a,
206 0x15, 0x65, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x65, 0x72, 0x6d, 0x69,
207 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x14, 0x65, 0x78,
208 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
209 0x6e, 0x73, 0x12, 0x3c, 0x0a, 0x10, 0x64, 0x65, 0x6e, 0x69, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x6e,
210 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67,
211 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52,
212 0x0f, 0x64, 0x65, 0x6e, 0x69, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e,
213 0x42, 0x7b, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69,
214 0x61, 0x6d, 0x2e, 0x76, 0x32, 0x42, 0x0d, 0x44, 0x65, 0x6e, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x50,
215 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x29, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f,
216 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x69, 0x61, 0x6d, 0x2f,
217 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x69, 0x61, 0x6d, 0x70, 0x62, 0x3b, 0x69, 0x61, 0x6d, 0x70,
218 0x62, 0xaa, 0x02, 0x13, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64,
219 0x2e, 0x49, 0x61, 0x6d, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x13, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
220 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x49, 0x61, 0x6d, 0x5c, 0x56, 0x32, 0x62, 0x06, 0x70,
221 0x72, 0x6f, 0x74, 0x6f, 0x33,
222 }
223
224 var (
225 file_google_iam_v2_deny_proto_rawDescOnce sync.Once
226 file_google_iam_v2_deny_proto_rawDescData = file_google_iam_v2_deny_proto_rawDesc
227 )
228
229 func file_google_iam_v2_deny_proto_rawDescGZIP() []byte {
230 file_google_iam_v2_deny_proto_rawDescOnce.Do(func() {
231 file_google_iam_v2_deny_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_iam_v2_deny_proto_rawDescData)
232 })
233 return file_google_iam_v2_deny_proto_rawDescData
234 }
235
236 var file_google_iam_v2_deny_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
237 var file_google_iam_v2_deny_proto_goTypes = []interface{}{
238 (*DenyRule)(nil),
239 (*expr.Expr)(nil),
240 }
241 var file_google_iam_v2_deny_proto_depIdxs = []int32{
242 1,
243 1,
244 1,
245 1,
246 1,
247 0,
248 }
249
250 func init() { file_google_iam_v2_deny_proto_init() }
251 func file_google_iam_v2_deny_proto_init() {
252 if File_google_iam_v2_deny_proto != nil {
253 return
254 }
255 if !protoimpl.UnsafeEnabled {
256 file_google_iam_v2_deny_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
257 switch v := v.(*DenyRule); i {
258 case 0:
259 return &v.state
260 case 1:
261 return &v.sizeCache
262 case 2:
263 return &v.unknownFields
264 default:
265 return nil
266 }
267 }
268 }
269 type x struct{}
270 out := protoimpl.TypeBuilder{
271 File: protoimpl.DescBuilder{
272 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
273 RawDescriptor: file_google_iam_v2_deny_proto_rawDesc,
274 NumEnums: 0,
275 NumMessages: 1,
276 NumExtensions: 0,
277 NumServices: 0,
278 },
279 GoTypes: file_google_iam_v2_deny_proto_goTypes,
280 DependencyIndexes: file_google_iam_v2_deny_proto_depIdxs,
281 MessageInfos: file_google_iam_v2_deny_proto_msgTypes,
282 }.Build()
283 File_google_iam_v2_deny_proto = out.File
284 file_google_iam_v2_deny_proto_rawDesc = nil
285 file_google_iam_v2_deny_proto_goTypes = nil
286 file_google_iam_v2_deny_proto_depIdxs = nil
287 }
288
View as plain text