1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package iam
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_v2beta_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_v2beta_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_v2beta_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_v2beta_deny_proto protoreflect.FileDescriptor
190
191 var file_google_iam_v2beta_deny_proto_rawDesc = []byte{
192 0x0a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x32, 0x62,
193 0x65, 0x74, 0x61, 0x2f, 0x64, 0x65, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11,
194 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74,
195 0x61, 0x1a, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x65,
196 0x78, 0x70, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8c, 0x02, 0x0a, 0x08, 0x44, 0x65,
197 0x6e, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x64, 0x65, 0x6e, 0x69, 0x65, 0x64,
198 0x5f, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
199 0x09, 0x52, 0x10, 0x64, 0x65, 0x6e, 0x69, 0x65, 0x64, 0x50, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70,
200 0x61, 0x6c, 0x73, 0x12, 0x31, 0x0a, 0x14, 0x65, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e,
201 0x5f, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,
202 0x09, 0x52, 0x13, 0x65, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x69, 0x6e,
203 0x63, 0x69, 0x70, 0x61, 0x6c, 0x73, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x6e, 0x69, 0x65, 0x64,
204 0x5f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03,
205 0x28, 0x09, 0x52, 0x11, 0x64, 0x65, 0x6e, 0x69, 0x65, 0x64, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73,
206 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x33, 0x0a, 0x15, 0x65, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69,
207 0x6f, 0x6e, 0x5f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04,
208 0x20, 0x03, 0x28, 0x09, 0x52, 0x14, 0x65, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50,
209 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3c, 0x0a, 0x10, 0x64, 0x65,
210 0x6e, 0x69, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05,
211 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79,
212 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52, 0x0f, 0x64, 0x65, 0x6e, 0x69, 0x61, 0x6c, 0x43,
213 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x92, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d,
214 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x32, 0x62, 0x65,
215 0x74, 0x61, 0x42, 0x0d, 0x44, 0x65, 0x6e, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74,
216 0x6f, 0x50, 0x01, 0x5a, 0x34, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61,
217 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
218 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76,
219 0x32, 0x62, 0x65, 0x74, 0x61, 0x3b, 0x69, 0x61, 0x6d, 0xaa, 0x02, 0x17, 0x47, 0x6f, 0x6f, 0x67,
220 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x49, 0x61, 0x6d, 0x2e, 0x56, 0x32, 0x42,
221 0x65, 0x74, 0x61, 0xca, 0x02, 0x17, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f,
222 0x75, 0x64, 0x5c, 0x49, 0x61, 0x6d, 0x5c, 0x56, 0x32, 0x62, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70,
223 0x72, 0x6f, 0x74, 0x6f, 0x33,
224 }
225
226 var (
227 file_google_iam_v2beta_deny_proto_rawDescOnce sync.Once
228 file_google_iam_v2beta_deny_proto_rawDescData = file_google_iam_v2beta_deny_proto_rawDesc
229 )
230
231 func file_google_iam_v2beta_deny_proto_rawDescGZIP() []byte {
232 file_google_iam_v2beta_deny_proto_rawDescOnce.Do(func() {
233 file_google_iam_v2beta_deny_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_iam_v2beta_deny_proto_rawDescData)
234 })
235 return file_google_iam_v2beta_deny_proto_rawDescData
236 }
237
238 var file_google_iam_v2beta_deny_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
239 var file_google_iam_v2beta_deny_proto_goTypes = []interface{}{
240 (*DenyRule)(nil),
241 (*expr.Expr)(nil),
242 }
243 var file_google_iam_v2beta_deny_proto_depIdxs = []int32{
244 1,
245 1,
246 1,
247 1,
248 1,
249 0,
250 }
251
252 func init() { file_google_iam_v2beta_deny_proto_init() }
253 func file_google_iam_v2beta_deny_proto_init() {
254 if File_google_iam_v2beta_deny_proto != nil {
255 return
256 }
257 if !protoimpl.UnsafeEnabled {
258 file_google_iam_v2beta_deny_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
259 switch v := v.(*DenyRule); i {
260 case 0:
261 return &v.state
262 case 1:
263 return &v.sizeCache
264 case 2:
265 return &v.unknownFields
266 default:
267 return nil
268 }
269 }
270 }
271 type x struct{}
272 out := protoimpl.TypeBuilder{
273 File: protoimpl.DescBuilder{
274 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
275 RawDescriptor: file_google_iam_v2beta_deny_proto_rawDesc,
276 NumEnums: 0,
277 NumMessages: 1,
278 NumExtensions: 0,
279 NumServices: 0,
280 },
281 GoTypes: file_google_iam_v2beta_deny_proto_goTypes,
282 DependencyIndexes: file_google_iam_v2beta_deny_proto_depIdxs,
283 MessageInfos: file_google_iam_v2beta_deny_proto_msgTypes,
284 }.Build()
285 File_google_iam_v2beta_deny_proto = out.File
286 file_google_iam_v2beta_deny_proto_rawDesc = nil
287 file_google_iam_v2beta_deny_proto_goTypes = nil
288 file_google_iam_v2beta_deny_proto_depIdxs = nil
289 }
290
View as plain text