| 1 |
// Copyright 2025 Google LLC |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 16 |
// versions: |
| 17 |
// protoc-gen-go v1.35.2 |
| 18 |
// protoc v4.25.7 |
| 19 |
// source: google/iam/v1/policy.proto |
| 20 |
|
| 21 |
package iampb |
| 22 |
|
| 23 |
import ( |
| 24 |
expr "google.golang.org/genproto/googleapis/type/expr" |
| 25 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 26 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 27 |
reflect "reflect" |
| 28 |
sync "sync" |
| 29 |
) |
| 30 |
|
| 31 |
const ( |
| 32 |
// Verify that this generated code is sufficiently up-to-date. |
| 33 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 34 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 35 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 36 |
) |
| 37 |
|
| 38 |
// The list of valid permission types for which logging can be configured. |
| 39 |
// Admin writes are always logged, and are not configurable. |
| 40 |
type AuditLogConfig_LogType int32 |
| 41 |
|
| 42 |
const ( |
| 43 |
// Default case. Should never be this. |
| 44 |
AuditLogConfig_LOG_TYPE_UNSPECIFIED AuditLogConfig_LogType = 0 |
| 45 |
// Admin reads. Example: CloudIAM getIamPolicy |
| 46 |
AuditLogConfig_ADMIN_READ AuditLogConfig_LogType = 1 |
| 47 |
// Data writes. Example: CloudSQL Users create |
| 48 |
AuditLogConfig_DATA_WRITE AuditLogConfig_LogType = 2 |
| 49 |
// Data reads. Example: CloudSQL Users list |
| 50 |
AuditLogConfig_DATA_READ AuditLogConfig_LogType = 3 |
| 51 |
) |
| 52 |
|
| 53 |
// Enum value maps for AuditLogConfig_LogType. |
| 54 |
var ( |
| 55 |
AuditLogConfig_LogType_name = map[int32]string{ |
| 56 |
0: "LOG_TYPE_UNSPECIFIED", |
| 57 |
1: "ADMIN_READ", |
| 58 |
2: "DATA_WRITE", |
| 59 |
3: "DATA_READ", |
| 60 |
} |
| 61 |
AuditLogConfig_LogType_value = map[string]int32{ |
| 62 |
"LOG_TYPE_UNSPECIFIED": 0, |
| 63 |
"ADMIN_READ": 1, |
| 64 |
"DATA_WRITE": 2, |
| 65 |
"DATA_READ": 3, |
| 66 |
} |
| 67 |
) |
| 68 |
|
| 69 |
func (x AuditLogConfig_LogType) Enum() *AuditLogConfig_LogType { |
| 70 |
p := new(AuditLogConfig_LogType) |
| 71 |
*p = x |
| 72 |
return p |
| 73 |
} |
| 74 |
|
| 75 |
func (x AuditLogConfig_LogType) String() string { |
| 76 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 77 |
} |
| 78 |
|
| 79 |
func (AuditLogConfig_LogType) Descriptor() protoreflect.EnumDescriptor { |
| 80 |
return file_google_iam_v1_policy_proto_enumTypes[0].Descriptor() |
| 81 |
} |
| 82 |
|
| 83 |
func (AuditLogConfig_LogType) Type() protoreflect.EnumType { |
| 84 |
return &file_google_iam_v1_policy_proto_enumTypes[0] |
| 85 |
} |
| 86 |
|
| 87 |
func (x AuditLogConfig_LogType) Number() protoreflect.EnumNumber { |
| 88 |
return protoreflect.EnumNumber(x) |
| 89 |
} |
| 90 |
|
| 91 |
// Deprecated: Use AuditLogConfig_LogType.Descriptor instead. |
| 92 |
func (AuditLogConfig_LogType) EnumDescriptor() ([]byte, []int) { |
| 93 |
return file_google_iam_v1_policy_proto_rawDescGZIP(), []int{3, 0} |
| 94 |
} |
| 95 |
|
| 96 |
// The type of action performed on a Binding in a policy. |
| 97 |
type BindingDelta_Action int32 |
| 98 |
|
| 99 |
const ( |
| 100 |
// Unspecified. |
| 101 |
BindingDelta_ACTION_UNSPECIFIED BindingDelta_Action = 0 |
| 102 |
// Addition of a Binding. |
| 103 |
BindingDelta_ADD BindingDelta_Action = 1 |
| 104 |
// Removal of a Binding. |
| 105 |
BindingDelta_REMOVE BindingDelta_Action = 2 |
| 106 |
) |
| 107 |
|
| 108 |
// Enum value maps for BindingDelta_Action. |
| 109 |
var ( |
| 110 |
BindingDelta_Action_name = map[int32]string{ |
| 111 |
0: "ACTION_UNSPECIFIED", |
| 112 |
1: "ADD", |
| 113 |
2: "REMOVE", |
| 114 |
} |
| 115 |
BindingDelta_Action_value = map[string]int32{ |
| 116 |
"ACTION_UNSPECIFIED": 0, |
| 117 |
"ADD": 1, |
| 118 |
"REMOVE": 2, |
| 119 |
} |
| 120 |
) |
| 121 |
|
| 122 |
func (x BindingDelta_Action) Enum() *BindingDelta_Action { |
| 123 |
p := new(BindingDelta_Action) |
| 124 |
*p = x |
| 125 |
return p |
| 126 |
} |
| 127 |
|
| 128 |
func (x BindingDelta_Action) String() string { |
| 129 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 130 |
} |
| 131 |
|
| 132 |
func (BindingDelta_Action) Descriptor() protoreflect.EnumDescriptor { |
| 133 |
return file_google_iam_v1_policy_proto_enumTypes[1].Descriptor() |
| 134 |
} |
| 135 |
|
| 136 |
func (BindingDelta_Action) Type() protoreflect.EnumType { |
| 137 |
return &file_google_iam_v1_policy_proto_enumTypes[1] |
| 138 |
} |
| 139 |
|
| 140 |
func (x BindingDelta_Action) Number() protoreflect.EnumNumber { |
| 141 |
return protoreflect.EnumNumber(x) |
| 142 |
} |
| 143 |
|
| 144 |
// Deprecated: Use BindingDelta_Action.Descriptor instead. |
| 145 |
func (BindingDelta_Action) EnumDescriptor() ([]byte, []int) { |
| 146 |
return file_google_iam_v1_policy_proto_rawDescGZIP(), []int{5, 0} |
| 147 |
} |
| 148 |
|
| 149 |
// The type of action performed on an audit configuration in a policy. |
| 150 |
type AuditConfigDelta_Action int32 |
| 151 |
|
| 152 |
const ( |
| 153 |
// Unspecified. |
| 154 |
AuditConfigDelta_ACTION_UNSPECIFIED AuditConfigDelta_Action = 0 |
| 155 |
// Addition of an audit configuration. |
| 156 |
AuditConfigDelta_ADD AuditConfigDelta_Action = 1 |
| 157 |
// Removal of an audit configuration. |
| 158 |
AuditConfigDelta_REMOVE AuditConfigDelta_Action = 2 |
| 159 |
) |
| 160 |
|
| 161 |
// Enum value maps for AuditConfigDelta_Action. |
| 162 |
var ( |
| 163 |
AuditConfigDelta_Action_name = map[int32]string{ |
| 164 |
0: "ACTION_UNSPECIFIED", |
| 165 |
1: "ADD", |
| 166 |
2: "REMOVE", |
| 167 |
} |
| 168 |
AuditConfigDelta_Action_value = map[string]int32{ |
| 169 |
"ACTION_UNSPECIFIED": 0, |
| 170 |
"ADD": 1, |
| 171 |
"REMOVE": 2, |
| 172 |
} |
| 173 |
) |
| 174 |
|
| 175 |
func (x AuditConfigDelta_Action) Enum() *AuditConfigDelta_Action { |
| 176 |
p := new(AuditConfigDelta_Action) |
| 177 |
*p = x |
| 178 |
return p |
| 179 |
} |
| 180 |
|
| 181 |
func (x AuditConfigDelta_Action) String() string { |
| 182 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 183 |
} |
| 184 |
|
| 185 |
func (AuditConfigDelta_Action) Descriptor() protoreflect.EnumDescriptor { |
| 186 |
return file_google_iam_v1_policy_proto_enumTypes[2].Descriptor() |
| 187 |
} |
| 188 |
|
| 189 |
func (AuditConfigDelta_Action) Type() protoreflect.EnumType { |
| 190 |
return &file_google_iam_v1_policy_proto_enumTypes[2] |
| 191 |
} |
| 192 |
|
| 193 |
func (x AuditConfigDelta_Action) Number() protoreflect.EnumNumber { |
| 194 |
return protoreflect.EnumNumber(x) |
| 195 |
} |
| 196 |
|
| 197 |
// Deprecated: Use AuditConfigDelta_Action.Descriptor instead. |
| 198 |
func (AuditConfigDelta_Action) EnumDescriptor() ([]byte, []int) { |
| 199 |
return file_google_iam_v1_policy_proto_rawDescGZIP(), []int{6, 0} |
| 200 |
} |
| 201 |
|
| 202 |
// An Identity and Access Management (IAM) policy, which specifies access |
| 203 |
// controls for Google Cloud resources. |
| 204 |
// |
| 205 |
// A `Policy` is a collection of `bindings`. A `binding` binds one or more |
| 206 |
// `members`, or principals, to a single `role`. Principals can be user |
| 207 |
// accounts, service accounts, Google groups, and domains (such as G Suite). A |
| 208 |
// `role` is a named list of permissions; each `role` can be an IAM predefined |
| 209 |
// role or a user-created custom role. |
| 210 |
// |
| 211 |
// For some types of Google Cloud resources, a `binding` can also specify a |
| 212 |
// `condition`, which is a logical expression that allows access to a resource |
| 213 |
// only if the expression evaluates to `true`. A condition can add constraints |
| 214 |
// based on attributes of the request, the resource, or both. To learn which |
| 215 |
// resources support conditions in their IAM policies, see the |
| 216 |
// [IAM |
| 217 |
// documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
| 218 |
// |
| 219 |
// **JSON example:** |
| 220 |
// |
| 221 |
// ``` |
| 222 |
// |
| 223 |
// { |
| 224 |
// "bindings": [ |
| 225 |
// { |
| 226 |
// "role": "roles/resourcemanager.organizationAdmin", |
| 227 |
// "members": [ |
| 228 |
// "user:[email protected]", |
| 229 |
// "group:[email protected]", |
| 230 |
// "domain:google.com", |
| 231 |
// "serviceAccount:[email protected]" |
| 232 |
// ] |
| 233 |
// }, |
| 234 |
// { |
| 235 |
// "role": "roles/resourcemanager.organizationViewer", |
| 236 |
// "members": [ |
| 237 |
// "user:[email protected]" |
| 238 |
// ], |
| 239 |
// "condition": { |
| 240 |
// "title": "expirable access", |
| 241 |
// "description": "Does not grant access after Sep 2020", |
| 242 |
// "expression": "request.time < |
| 243 |
// timestamp('2020-10-01T00:00:00.000Z')", |
| 244 |
// } |
| 245 |
// } |
| 246 |
// ], |
| 247 |
// "etag": "BwWWja0YfJA=", |
| 248 |
// "version": 3 |
| 249 |
// } |
| 250 |
// |
| 251 |
// ``` |
| 252 |
// |
| 253 |
// **YAML example:** |
| 254 |
// |
| 255 |
// ``` |
| 256 |
// |
| 257 |
// bindings: |
| 258 |
// - members: |
| 259 |
// - user:[email protected] |
| 260 |
// - group:[email protected] |
| 261 |
// - domain:google.com |
| 262 |
// - serviceAccount:[email protected] |
| 263 |
// role: roles/resourcemanager.organizationAdmin |
| 264 |
// - members: |
| 265 |
// - user:[email protected] |
| 266 |
// role: roles/resourcemanager.organizationViewer |
| 267 |
// condition: |
| 268 |
// title: expirable access |
| 269 |
// description: Does not grant access after Sep 2020 |
| 270 |
// expression: request.time < timestamp('2020-10-01T00:00:00.000Z') |
| 271 |
// etag: BwWWja0YfJA= |
| 272 |
// version: 3 |
| 273 |
// |
| 274 |
// ``` |
| 275 |
// |
| 276 |
// For a description of IAM and its features, see the |
| 277 |
// [IAM documentation](https://cloud.google.com/iam/docs/). |
| 278 |
type Policy struct { |
| 279 |
state protoimpl.MessageState |
| 280 |
sizeCache protoimpl.SizeCache |
| 281 |
unknownFields protoimpl.UnknownFields |
| 282 |
|
| 283 |
// Specifies the format of the policy. |
| 284 |
// |
| 285 |
// Valid values are `0`, `1`, and `3`. Requests that specify an invalid value |
| 286 |
// are rejected. |
| 287 |
// |
| 288 |
// Any operation that affects conditional role bindings must specify version |
| 289 |
// `3`. This requirement applies to the following operations: |
| 290 |
// |
| 291 |
// - Getting a policy that includes a conditional role binding |
| 292 |
// - Adding a conditional role binding to a policy |
| 293 |
// - Changing a conditional role binding in a policy |
| 294 |
// - Removing any role binding, with or without a condition, from a policy |
| 295 |
// that includes conditions |
| 296 |
// |
| 297 |
// **Important:** If you use IAM Conditions, you must include the `etag` field |
| 298 |
// whenever you call `setIamPolicy`. If you omit this field, then IAM allows |
| 299 |
// you to overwrite a version `3` policy with a version `1` policy, and all of |
| 300 |
// the conditions in the version `3` policy are lost. |
| 301 |
// |
| 302 |
// If a policy does not include any conditions, operations on that policy may |
| 303 |
// specify any valid version or leave the field unset. |
| 304 |
// |
| 305 |
// To learn which resources support conditions in their IAM policies, see the |
| 306 |
// [IAM |
| 307 |
// documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
| 308 |
Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` |
| 309 |
// Associates a list of `members`, or principals, with a `role`. Optionally, |
| 310 |
// may specify a `condition` that determines how and when the `bindings` are |
| 311 |
// applied. Each of the `bindings` must contain at least one principal. |
| 312 |
// |
| 313 |
// The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 |
| 314 |
// of these principals can be Google groups. Each occurrence of a principal |
| 315 |
// counts towards these limits. For example, if the `bindings` grant 50 |
| 316 |
// different roles to `user:[email protected]`, and not to any other |
| 317 |
// principal, then you can add another 1,450 principals to the `bindings` in |
| 318 |
// the `Policy`. |
| 319 |
Bindings []*Binding `protobuf:"bytes,4,rep,name=bindings,proto3" json:"bindings,omitempty"` |
| 320 |
// Specifies cloud audit logging configuration for this policy. |
| 321 |
AuditConfigs []*AuditConfig `protobuf:"bytes,6,rep,name=audit_configs,json=auditConfigs,proto3" json:"audit_configs,omitempty"` |
| 322 |
// `etag` is used for optimistic concurrency control as a way to help |
| 323 |
// prevent simultaneous updates of a policy from overwriting each other. |
| 324 |
// It is strongly suggested that systems make use of the `etag` in the |
| 325 |
// read-modify-write cycle to perform policy updates in order to avoid race |
| 326 |
// conditions: An `etag` is returned in the response to `getIamPolicy`, and |
| 327 |
// systems are expected to put that etag in the request to `setIamPolicy` to |
| 328 |
// ensure that their change will be applied to the same version of the policy. |
| 329 |
// |
| 330 |
// **Important:** If you use IAM Conditions, you must include the `etag` field |
| 331 |
// whenever you call `setIamPolicy`. If you omit this field, then IAM allows |
| 332 |
// you to overwrite a version `3` policy with a version `1` policy, and all of |
| 333 |
// the conditions in the version `3` policy are lost. |
| 334 |
Etag []byte `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"` |
| 335 |
} |
| 336 |
|
| 337 |
func (x *Policy) Reset() { |
| 338 |
*x = Policy{} |
| 339 |
mi := &file_google_iam_v1_policy_proto_msgTypes[0] |
| 340 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 341 |
ms.StoreMessageInfo(mi) |
| 342 |
} |
| 343 |
|
| 344 |
func (x *Policy) String() string { |
| 345 |
return protoimpl.X.MessageStringOf(x) |
| 346 |
} |
| 347 |
|
| 348 |
func (*Policy) ProtoMessage() {} |
| 349 |
|
| 350 |
func (x *Policy) ProtoReflect() protoreflect.Message { |
| 351 |
mi := &file_google_iam_v1_policy_proto_msgTypes[0] |
| 352 |
if x != nil { |
| 353 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 354 |
if ms.LoadMessageInfo() == nil { |
| 355 |
ms.StoreMessageInfo(mi) |
| 356 |
} |
| 357 |
return ms |
| 358 |
} |
| 359 |
return mi.MessageOf(x) |
| 360 |
} |
| 361 |
|
| 362 |
// Deprecated: Use Policy.ProtoReflect.Descriptor instead. |
| 363 |
func (*Policy) Descriptor() ([]byte, []int) { |
| 364 |
return file_google_iam_v1_policy_proto_rawDescGZIP(), []int{0} |
| 365 |
} |
| 366 |
|
| 367 |
func (x *Policy) GetVersion() int32 { |
| 368 |
if x != nil { |
| 369 |
return x.Version |
| 370 |
} |
| 371 |
return 0 |
| 372 |
} |
| 373 |
|
| 374 |
func (x *Policy) GetBindings() []*Binding { |
| 375 |
if x != nil { |
| 376 |
return x.Bindings |
| 377 |
} |
| 378 |
return nil |
| 379 |
} |
| 380 |
|
| 381 |
func (x *Policy) GetAuditConfigs() []*AuditConfig { |
| 382 |
if x != nil { |
| 383 |
return x.AuditConfigs |
| 384 |
} |
| 385 |
return nil |
| 386 |
} |
| 387 |
|
| 388 |
func (x *Policy) GetEtag() []byte { |
| 389 |
if x != nil { |
| 390 |
return x.Etag |
| 391 |
} |
| 392 |
return nil |
| 393 |
} |
| 394 |
|
| 395 |
// Associates `members`, or principals, with a `role`. |
| 396 |
type Binding struct { |
| 397 |
state protoimpl.MessageState |
| 398 |
sizeCache protoimpl.SizeCache |
| 399 |
unknownFields protoimpl.UnknownFields |
| 400 |
|
| 401 |
// Role that is assigned to the list of `members`, or principals. |
| 402 |
// For example, `roles/viewer`, `roles/editor`, or `roles/owner`. |
| 403 |
Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` |
| 404 |
// Specifies the principals requesting access for a Google Cloud resource. |
| 405 |
// `members` can have the following values: |
| 406 |
// |
| 407 |
// - `allUsers`: A special identifier that represents anyone who is |
| 408 |
// on the internet; with or without a Google account. |
| 409 |
// |
| 410 |
// - `allAuthenticatedUsers`: A special identifier that represents anyone |
| 411 |
// who is authenticated with a Google account or a service account. |
| 412 |
// |
| 413 |
// - `user:{emailid}`: An email address that represents a specific Google |
| 414 |
// account. For example, `[email protected]` . |
| 415 |
// |
| 416 |
// - `serviceAccount:{emailid}`: An email address that represents a service |
| 417 |
// account. For example, `[email protected]`. |
| 418 |
// |
| 419 |
// - `group:{emailid}`: An email address that represents a Google group. |
| 420 |
// For example, `[email protected]`. |
| 421 |
// |
| 422 |
// - `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique |
| 423 |
// identifier) representing a user that has been recently deleted. For |
| 424 |
// example, `[email protected]?uid=123456789012345678901`. If the user is |
| 425 |
// recovered, this value reverts to `user:{emailid}` and the recovered user |
| 426 |
// retains the role in the binding. |
| 427 |
// |
| 428 |
// - `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus |
| 429 |
// unique identifier) representing a service account that has been recently |
| 430 |
// deleted. For example, |
| 431 |
// `[email protected]?uid=123456789012345678901`. |
| 432 |
// If the service account is undeleted, this value reverts to |
| 433 |
// `serviceAccount:{emailid}` and the undeleted service account retains the |
| 434 |
// role in the binding. |
| 435 |
// |
| 436 |
// - `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique |
| 437 |
// identifier) representing a Google group that has been recently |
| 438 |
// deleted. For example, `[email protected]?uid=123456789012345678901`. If |
| 439 |
// the group is recovered, this value reverts to `group:{emailid}` and the |
| 440 |
// recovered group retains the role in the binding. |
| 441 |
// |
| 442 |
// - `domain:{domain}`: The G Suite domain (primary) that represents all the |
| 443 |
// users of that domain. For example, `google.com` or `example.com`. |
| 444 |
Members []string `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"` |
| 445 |
// The condition that is associated with this binding. |
| 446 |
// |
| 447 |
// If the condition evaluates to `true`, then this binding applies to the |
| 448 |
// current request. |
| 449 |
// |
| 450 |
// If the condition evaluates to `false`, then this binding does not apply to |
| 451 |
// the current request. However, a different role binding might grant the same |
| 452 |
// role to one or more of the principals in this binding. |
| 453 |
// |
| 454 |
// To learn which resources support conditions in their IAM policies, see the |
| 455 |
// [IAM |
| 456 |
// documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
| 457 |
Condition *expr.Expr `protobuf:"bytes,3,opt,name=condition,proto3" json:"condition,omitempty"` |
| 458 |
} |
| 459 |
|
| 460 |
func (x *Binding) Reset() { |
| 461 |
*x = Binding{} |
| 462 |
mi := &file_google_iam_v1_policy_proto_msgTypes[1] |
| 463 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 464 |
ms.StoreMessageInfo(mi) |
| 465 |
} |
| 466 |
|
| 467 |
func (x *Binding) String() string { |
| 468 |
return protoimpl.X.MessageStringOf(x) |
| 469 |
} |
| 470 |
|
| 471 |
func (*Binding) ProtoMessage() {} |
| 472 |
|
| 473 |
func (x *Binding) ProtoReflect() protoreflect.Message { |
| 474 |
mi := &file_google_iam_v1_policy_proto_msgTypes[1] |
| 475 |
if x != nil { |
| 476 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 477 |
if ms.LoadMessageInfo() == nil { |
| 478 |
ms.StoreMessageInfo(mi) |
| 479 |
} |
| 480 |
return ms |
| 481 |
} |
| 482 |
return mi.MessageOf(x) |
| 483 |
} |
| 484 |
|
| 485 |
// Deprecated: Use Binding.ProtoReflect.Descriptor instead. |
| 486 |
func (*Binding) Descriptor() ([]byte, []int) { |
| 487 |
return file_google_iam_v1_policy_proto_rawDescGZIP(), []int{1} |
| 488 |
} |
| 489 |
|
| 490 |
func (x *Binding) GetRole() string { |
| 491 |
if x != nil { |
| 492 |
return x.Role |
| 493 |
} |
| 494 |
return "" |
| 495 |
} |
| 496 |
|
| 497 |
func (x *Binding) GetMembers() []string { |
| 498 |
if x != nil { |
| 499 |
return x.Members |
| 500 |
} |
| 501 |
return nil |
| 502 |
} |
| 503 |
|
| 504 |
func (x *Binding) GetCondition() *expr.Expr { |
| 505 |
if x != nil { |
| 506 |
return x.Condition |
| 507 |
} |
| 508 |
return nil |
| 509 |
} |
| 510 |
|
| 511 |
// Specifies the audit configuration for a service. |
| 512 |
// The configuration determines which permission types are logged, and what |
| 513 |
// identities, if any, are exempted from logging. |
| 514 |
// An AuditConfig must have one or more AuditLogConfigs. |
| 515 |
// |
| 516 |
// If there are AuditConfigs for both `allServices` and a specific service, |
| 517 |
// the union of the two AuditConfigs is used for that service: the log_types |
| 518 |
// specified in each AuditConfig are enabled, and the exempted_members in each |
| 519 |
// AuditLogConfig are exempted. |
| 520 |
// |
| 521 |
// Example Policy with multiple AuditConfigs: |
| 522 |
// |
| 523 |
// { |
| 524 |
// "audit_configs": [ |
| 525 |
// { |
| 526 |
// "service": "allServices", |
| 527 |
// "audit_log_configs": [ |
| 528 |
// { |
| 529 |
// "log_type": "DATA_READ", |
| 530 |
// "exempted_members": [ |
| 531 |
// "user:[email protected]" |
| 532 |
// ] |
| 533 |
// }, |
| 534 |
// { |
| 535 |
// "log_type": "DATA_WRITE" |
| 536 |
// }, |
| 537 |
// { |
| 538 |
// "log_type": "ADMIN_READ" |
| 539 |
// } |
| 540 |
// ] |
| 541 |
// }, |
| 542 |
// { |
| 543 |
// "service": "sampleservice.googleapis.com", |
| 544 |
// "audit_log_configs": [ |
| 545 |
// { |
| 546 |
// "log_type": "DATA_READ" |
| 547 |
// }, |
| 548 |
// { |
| 549 |
// "log_type": "DATA_WRITE", |
| 550 |
// "exempted_members": [ |
| 551 |
// "user:[email protected]" |
| 552 |
// ] |
| 553 |
// } |
| 554 |
// ] |
| 555 |
// } |
| 556 |
// ] |
| 557 |
// } |
| 558 |
// |
| 559 |
// For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ |
| 560 |
// logging. It also exempts `[email protected]` from DATA_READ logging, and |
| 561 |
// `[email protected]` from DATA_WRITE logging. |
| 562 |
type AuditConfig struct { |
| 563 |
state protoimpl.MessageState |
| 564 |
sizeCache protoimpl.SizeCache |
| 565 |
unknownFields protoimpl.UnknownFields |
| 566 |
|
| 567 |
// Specifies a service that will be enabled for audit logging. |
| 568 |
// For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. |
| 569 |
// `allServices` is a special value that covers all services. |
| 570 |
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` |
| 571 |
// The configuration for logging of each type of permission. |
| 572 |
AuditLogConfigs []*AuditLogConfig `protobuf:"bytes,3,rep,name=audit_log_configs,json=auditLogConfigs,proto3" json:"audit_log_configs,omitempty"` |
| 573 |
} |
| 574 |
|
| 575 |
func (x *AuditConfig) Reset() { |
| 576 |
*x = AuditConfig{} |
| 577 |
mi := &file_google_iam_v1_policy_proto_msgTypes[2] |
| 578 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 579 |
ms.StoreMessageInfo(mi) |
| 580 |
} |
| 581 |
|
| 582 |
func (x *AuditConfig) String() string { |
| 583 |
return protoimpl.X.MessageStringOf(x) |
| 584 |
} |
| 585 |
|
| 586 |
func (*AuditConfig) ProtoMessage() {} |
| 587 |
|
| 588 |
func (x *AuditConfig) ProtoReflect() protoreflect.Message { |
| 589 |
mi := &file_google_iam_v1_policy_proto_msgTypes[2] |
| 590 |
if x != nil { |
| 591 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 592 |
if ms.LoadMessageInfo() == nil { |
| 593 |
ms.StoreMessageInfo(mi) |
| 594 |
} |
| 595 |
return ms |
| 596 |
} |
| 597 |
return mi.MessageOf(x) |
| 598 |
} |
| 599 |
|
| 600 |
// Deprecated: Use AuditConfig.ProtoReflect.Descriptor instead. |
| 601 |
func (*AuditConfig) Descriptor() ([]byte, []int) { |
| 602 |
return file_google_iam_v1_policy_proto_rawDescGZIP(), []int{2} |
| 603 |
} |
| 604 |
|
| 605 |
func (x *AuditConfig) GetService() string { |
| 606 |
if x != nil { |
| 607 |
return x.Service |
| 608 |
} |
| 609 |
return "" |
| 610 |
} |
| 611 |
|
| 612 |
func (x *AuditConfig) GetAuditLogConfigs() []*AuditLogConfig { |
| 613 |
if x != nil { |
| 614 |
return x.AuditLogConfigs |
| 615 |
} |
| 616 |
return nil |
| 617 |
} |
| 618 |
|
| 619 |
// Provides the configuration for logging a type of permissions. |
| 620 |
// Example: |
| 621 |
// |
| 622 |
// { |
| 623 |
// "audit_log_configs": [ |
| 624 |
// { |
| 625 |
// "log_type": "DATA_READ", |
| 626 |
// "exempted_members": [ |
| 627 |
// "user:[email protected]" |
| 628 |
// ] |
| 629 |
// }, |
| 630 |
// { |
| 631 |
// "log_type": "DATA_WRITE" |
| 632 |
// } |
| 633 |
// ] |
| 634 |
// } |
| 635 |
// |
| 636 |
// This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting |
| 637 |
// [email protected] from DATA_READ logging. |
| 638 |
type AuditLogConfig struct { |
| 639 |
state protoimpl.MessageState |
| 640 |
sizeCache protoimpl.SizeCache |
| 641 |
unknownFields protoimpl.UnknownFields |
| 642 |
|
| 643 |
// The log type that this config enables. |
| 644 |
LogType AuditLogConfig_LogType `protobuf:"varint,1,opt,name=log_type,json=logType,proto3,enum=google.iam.v1.AuditLogConfig_LogType" json:"log_type,omitempty"` |
| 645 |
// Specifies the identities that do not cause logging for this type of |
| 646 |
// permission. |
| 647 |
// Follows the same format of |
| 648 |
// [Binding.members][google.iam.v1.Binding.members]. |
| 649 |
ExemptedMembers []string `protobuf:"bytes,2,rep,name=exempted_members,json=exemptedMembers,proto3" json:"exempted_members,omitempty"` |
| 650 |
} |
| 651 |
|
| 652 |
func (x *AuditLogConfig) Reset() { |
| 653 |
*x = AuditLogConfig{} |
| 654 |
mi := &file_google_iam_v1_policy_proto_msgTypes[3] |
| 655 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 656 |
ms.StoreMessageInfo(mi) |
| 657 |
} |
| 658 |
|
| 659 |
func (x *AuditLogConfig) String() string { |
| 660 |
return protoimpl.X.MessageStringOf(x) |
| 661 |
} |
| 662 |
|
| 663 |
func (*AuditLogConfig) ProtoMessage() {} |
| 664 |
|
| 665 |
func (x *AuditLogConfig) ProtoReflect() protoreflect.Message { |
| 666 |
mi := &file_google_iam_v1_policy_proto_msgTypes[3] |
| 667 |
if x != nil { |
| 668 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 669 |
if ms.LoadMessageInfo() == nil { |
| 670 |
ms.StoreMessageInfo(mi) |
| 671 |
} |
| 672 |
return ms |
| 673 |
} |
| 674 |
return mi.MessageOf(x) |
| 675 |
} |
| 676 |
|
| 677 |
// Deprecated: Use AuditLogConfig.ProtoReflect.Descriptor instead. |
| 678 |
func (*AuditLogConfig) Descriptor() ([]byte, []int) { |
| 679 |
return file_google_iam_v1_policy_proto_rawDescGZIP(), []int{3} |
| 680 |
} |
| 681 |
|
| 682 |
func (x *AuditLogConfig) GetLogType() AuditLogConfig_LogType { |
| 683 |
if x != nil { |
| 684 |
return x.LogType |
| 685 |
} |
| 686 |
return AuditLogConfig_LOG_TYPE_UNSPECIFIED |
| 687 |
} |
| 688 |
|
| 689 |
func (x *AuditLogConfig) GetExemptedMembers() []string { |
| 690 |
if x != nil { |
| 691 |
return x.ExemptedMembers |
| 692 |
} |
| 693 |
return nil |
| 694 |
} |
| 695 |
|
| 696 |
// The difference delta between two policies. |
| 697 |
type PolicyDelta struct { |
| 698 |
state protoimpl.MessageState |
| 699 |
sizeCache protoimpl.SizeCache |
| 700 |
unknownFields protoimpl.UnknownFields |
| 701 |
|
| 702 |
// The delta for Bindings between two policies. |
| 703 |
BindingDeltas []*BindingDelta `protobuf:"bytes,1,rep,name=binding_deltas,json=bindingDeltas,proto3" json:"binding_deltas,omitempty"` |
| 704 |
// The delta for AuditConfigs between two policies. |
| 705 |
AuditConfigDeltas []*AuditConfigDelta `protobuf:"bytes,2,rep,name=audit_config_deltas,json=auditConfigDeltas,proto3" json:"audit_config_deltas,omitempty"` |
| 706 |
} |
| 707 |
|
| 708 |
func (x *PolicyDelta) Reset() { |
| 709 |
*x = PolicyDelta{} |
| 710 |
mi := &file_google_iam_v1_policy_proto_msgTypes[4] |
| 711 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 712 |
ms.StoreMessageInfo(mi) |
| 713 |
} |
| 714 |
|
| 715 |
func (x *PolicyDelta) String() string { |
| 716 |
return protoimpl.X.MessageStringOf(x) |
| 717 |
} |
| 718 |
|
| 719 |
func (*PolicyDelta) ProtoMessage() {} |
| 720 |
|
| 721 |
func (x *PolicyDelta) ProtoReflect() protoreflect.Message { |
| 722 |
mi := &file_google_iam_v1_policy_proto_msgTypes[4] |
| 723 |
if x != nil { |
| 724 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 725 |
if ms.LoadMessageInfo() == nil { |
| 726 |
ms.StoreMessageInfo(mi) |
| 727 |
} |
| 728 |
return ms |
| 729 |
} |
| 730 |
return mi.MessageOf(x) |
| 731 |
} |
| 732 |
|
| 733 |
// Deprecated: Use PolicyDelta.ProtoReflect.Descriptor instead. |
| 734 |
func (*PolicyDelta) Descriptor() ([]byte, []int) { |
| 735 |
return file_google_iam_v1_policy_proto_rawDescGZIP(), []int{4} |
| 736 |
} |
| 737 |
|
| 738 |
func (x *PolicyDelta) GetBindingDeltas() []*BindingDelta { |
| 739 |
if x != nil { |
| 740 |
return x.BindingDeltas |
| 741 |
} |
| 742 |
return nil |
| 743 |
} |
| 744 |
|
| 745 |
func (x *PolicyDelta) GetAuditConfigDeltas() []*AuditConfigDelta { |
| 746 |
if x != nil { |
| 747 |
return x.AuditConfigDeltas |
| 748 |
} |
| 749 |
return nil |
| 750 |
} |
| 751 |
|
| 752 |
// One delta entry for Binding. Each individual change (only one member in each |
| 753 |
// entry) to a binding will be a separate entry. |
| 754 |
type BindingDelta struct { |
| 755 |
state protoimpl.MessageState |
| 756 |
sizeCache protoimpl.SizeCache |
| 757 |
unknownFields protoimpl.UnknownFields |
| 758 |
|
| 759 |
// The action that was performed on a Binding. |
| 760 |
// Required |
| 761 |
Action BindingDelta_Action `protobuf:"varint,1,opt,name=action,proto3,enum=google.iam.v1.BindingDelta_Action" json:"action,omitempty"` |
| 762 |
// Role that is assigned to `members`. |
| 763 |
// For example, `roles/viewer`, `roles/editor`, or `roles/owner`. |
| 764 |
// Required |
| 765 |
Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` |
| 766 |
// A single identity requesting access for a Google Cloud resource. |
| 767 |
// Follows the same format of Binding.members. |
| 768 |
// Required |
| 769 |
Member string `protobuf:"bytes,3,opt,name=member,proto3" json:"member,omitempty"` |
| 770 |
// The condition that is associated with this binding. |
| 771 |
Condition *expr.Expr `protobuf:"bytes,4,opt,name=condition,proto3" json:"condition,omitempty"` |
| 772 |
} |
| 773 |
|
| 774 |
func (x *BindingDelta) Reset() { |
| 775 |
*x = BindingDelta{} |
| 776 |
mi := &file_google_iam_v1_policy_proto_msgTypes[5] |
| 777 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 778 |
ms.StoreMessageInfo(mi) |
| 779 |
} |
| 780 |
|
| 781 |
func (x *BindingDelta) String() string { |
| 782 |
return protoimpl.X.MessageStringOf(x) |
| 783 |
} |
| 784 |
|
| 785 |
func (*BindingDelta) ProtoMessage() {} |
| 786 |
|
| 787 |
func (x *BindingDelta) ProtoReflect() protoreflect.Message { |
| 788 |
mi := &file_google_iam_v1_policy_proto_msgTypes[5] |
| 789 |
if x != nil { |
| 790 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 791 |
if ms.LoadMessageInfo() == nil { |
| 792 |
ms.StoreMessageInfo(mi) |
| 793 |
} |
| 794 |
return ms |
| 795 |
} |
| 796 |
return mi.MessageOf(x) |
| 797 |
} |
| 798 |
|
| 799 |
// Deprecated: Use BindingDelta.ProtoReflect.Descriptor instead. |
| 800 |
func (*BindingDelta) Descriptor() ([]byte, []int) { |
| 801 |
return file_google_iam_v1_policy_proto_rawDescGZIP(), []int{5} |
| 802 |
} |
| 803 |
|
| 804 |
func (x *BindingDelta) GetAction() BindingDelta_Action { |
| 805 |
if x != nil { |
| 806 |
return x.Action |
| 807 |
} |
| 808 |
return BindingDelta_ACTION_UNSPECIFIED |
| 809 |
} |
| 810 |
|
| 811 |
func (x *BindingDelta) GetRole() string { |
| 812 |
if x != nil { |
| 813 |
return x.Role |
| 814 |
} |
| 815 |
return "" |
| 816 |
} |
| 817 |
|
| 818 |
func (x *BindingDelta) GetMember() string { |
| 819 |
if x != nil { |
| 820 |
return x.Member |
| 821 |
} |
| 822 |
return "" |
| 823 |
} |
| 824 |
|
| 825 |
func (x *BindingDelta) GetCondition() *expr.Expr { |
| 826 |
if x != nil { |
| 827 |
return x.Condition |
| 828 |
} |
| 829 |
return nil |
| 830 |
} |
| 831 |
|
| 832 |
// One delta entry for AuditConfig. Each individual change (only one |
| 833 |
// exempted_member in each entry) to a AuditConfig will be a separate entry. |
| 834 |
type AuditConfigDelta struct { |
| 835 |
state protoimpl.MessageState |
| 836 |
sizeCache protoimpl.SizeCache |
| 837 |
unknownFields protoimpl.UnknownFields |
| 838 |
|
| 839 |
// The action that was performed on an audit configuration in a policy. |
| 840 |
// Required |
| 841 |
Action AuditConfigDelta_Action `protobuf:"varint,1,opt,name=action,proto3,enum=google.iam.v1.AuditConfigDelta_Action" json:"action,omitempty"` |
| 842 |
// Specifies a service that was configured for Cloud Audit Logging. |
| 843 |
// For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. |
| 844 |
// `allServices` is a special value that covers all services. |
| 845 |
// Required |
| 846 |
Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` |
| 847 |
// A single identity that is exempted from "data access" audit |
| 848 |
// logging for the `service` specified above. |
| 849 |
// Follows the same format of Binding.members. |
| 850 |
ExemptedMember string `protobuf:"bytes,3,opt,name=exempted_member,json=exemptedMember,proto3" json:"exempted_member,omitempty"` |
| 851 |
// Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always |
| 852 |
// enabled, and cannot be configured. |
| 853 |
// Required |
| 854 |
LogType string `protobuf:"bytes,4,opt,name=log_type,json=logType,proto3" json:"log_type,omitempty"` |
| 855 |
} |
| 856 |
|
| 857 |
func (x *AuditConfigDelta) Reset() { |
| 858 |
*x = AuditConfigDelta{} |
| 859 |
mi := &file_google_iam_v1_policy_proto_msgTypes[6] |
| 860 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 861 |
ms.StoreMessageInfo(mi) |
| 862 |
} |
| 863 |
|
| 864 |
func (x *AuditConfigDelta) String() string { |
| 865 |
return protoimpl.X.MessageStringOf(x) |
| 866 |
} |
| 867 |
|
| 868 |
func (*AuditConfigDelta) ProtoMessage() {} |
| 869 |
|
| 870 |
func (x *AuditConfigDelta) ProtoReflect() protoreflect.Message { |
| 871 |
mi := &file_google_iam_v1_policy_proto_msgTypes[6] |
| 872 |
if x != nil { |
| 873 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 874 |
if ms.LoadMessageInfo() == nil { |
| 875 |
ms.StoreMessageInfo(mi) |
| 876 |
} |
| 877 |
return ms |
| 878 |
} |
| 879 |
return mi.MessageOf(x) |
| 880 |
} |
| 881 |
|
| 882 |
// Deprecated: Use AuditConfigDelta.ProtoReflect.Descriptor instead. |
| 883 |
func (*AuditConfigDelta) Descriptor() ([]byte, []int) { |
| 884 |
return file_google_iam_v1_policy_proto_rawDescGZIP(), []int{6} |
| 885 |
} |
| 886 |
|
| 887 |
func (x *AuditConfigDelta) GetAction() AuditConfigDelta_Action { |
| 888 |
if x != nil { |
| 889 |
return x.Action |
| 890 |
} |
| 891 |
return AuditConfigDelta_ACTION_UNSPECIFIED |
| 892 |
} |
| 893 |
|
| 894 |
func (x *AuditConfigDelta) GetService() string { |
| 895 |
if x != nil { |
| 896 |
return x.Service |
| 897 |
} |
| 898 |
return "" |
| 899 |
} |
| 900 |
|
| 901 |
func (x *AuditConfigDelta) GetExemptedMember() string { |
| 902 |
if x != nil { |
| 903 |
return x.ExemptedMember |
| 904 |
} |
| 905 |
return "" |
| 906 |
} |
| 907 |
|
| 908 |
func (x *AuditConfigDelta) GetLogType() string { |
| 909 |
if x != nil { |
| 910 |
return x.LogType |
| 911 |
} |
| 912 |
return "" |
| 913 |
} |
| 914 |
|
| 915 |
var File_google_iam_v1_policy_proto protoreflect.FileDescriptor |
| 916 |
|
| 917 |
var file_google_iam_v1_policy_proto_rawDesc = []byte{ |
| 918 |
0x0a, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, |
| 919 |
0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x67, 0x6f, |
| 920 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x1a, 0x16, 0x67, 0x6f, 0x6f, |
| 921 |
0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x70, 0x72, |
| 922 |
0x6f, 0x74, 0x6f, 0x22, 0xab, 0x01, 0x0a, 0x06, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x18, |
| 923 |
0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, |
| 924 |
0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x08, 0x62, 0x69, 0x6e, 0x64, |
| 925 |
0x69, 0x6e, 0x67, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, |
| 926 |
0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x69, |
| 927 |
0x6e, 0x67, 0x52, 0x08, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x3f, 0x0a, 0x0d, |
| 928 |
0x61, 0x75, 0x64, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x06, 0x20, |
| 929 |
0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, |
| 930 |
0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x64, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, |
| 931 |
0x0c, 0x61, 0x75, 0x64, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x12, 0x12, 0x0a, |
| 932 |
0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x65, 0x74, 0x61, |
| 933 |
0x67, 0x22, 0x68, 0x0a, 0x07, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x12, 0x0a, 0x04, |
| 934 |
0x72, 0x6f, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, |
| 935 |
0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, |
| 936 |
0x09, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6f, |
| 937 |
0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, |
| 938 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, |
| 939 |
0x52, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x72, 0x0a, 0x0b, 0x41, |
| 940 |
0x75, 0x64, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, |
| 941 |
0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, |
| 942 |
0x76, 0x69, 0x63, 0x65, 0x12, 0x49, 0x0a, 0x11, 0x61, 0x75, 0x64, 0x69, 0x74, 0x5f, 0x6c, 0x6f, |
| 943 |
0x67, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, |
| 944 |
0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, |
| 945 |
0x41, 0x75, 0x64, 0x69, 0x74, 0x4c, 0x6f, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0f, |
| 946 |
0x61, 0x75, 0x64, 0x69, 0x74, 0x4c, 0x6f, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x22, |
| 947 |
0xd1, 0x01, 0x0a, 0x0e, 0x41, 0x75, 0x64, 0x69, 0x74, 0x4c, 0x6f, 0x67, 0x43, 0x6f, 0x6e, 0x66, |
| 948 |
0x69, 0x67, 0x12, 0x40, 0x0a, 0x08, 0x6c, 0x6f, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, |
| 949 |
0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, |
| 950 |
0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x64, 0x69, 0x74, 0x4c, 0x6f, 0x67, 0x43, 0x6f, 0x6e, |
| 951 |
0x66, 0x69, 0x67, 0x2e, 0x4c, 0x6f, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x6c, 0x6f, 0x67, |
| 952 |
0x54, 0x79, 0x70, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x74, 0x65, 0x64, |
| 953 |
0x5f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, |
| 954 |
0x65, 0x78, 0x65, 0x6d, 0x70, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x22, |
| 955 |
0x52, 0x0a, 0x07, 0x4c, 0x6f, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x14, 0x4c, 0x4f, |
| 956 |
0x47, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, |
| 957 |
0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x5f, 0x52, 0x45, |
| 958 |
0x41, 0x44, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x57, 0x52, 0x49, |
| 959 |
0x54, 0x45, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x52, 0x45, 0x41, |
| 960 |
0x44, 0x10, 0x03, 0x22, 0xa2, 0x01, 0x0a, 0x0b, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x44, 0x65, |
| 961 |
0x6c, 0x74, 0x61, 0x12, 0x42, 0x0a, 0x0e, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x64, |
| 962 |
0x65, 0x6c, 0x74, 0x61, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, |
| 963 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x69, 0x6e, 0x64, |
| 964 |
0x69, 0x6e, 0x67, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x52, 0x0d, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, |
| 965 |
0x67, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x73, 0x12, 0x4f, 0x0a, 0x13, 0x61, 0x75, 0x64, 0x69, 0x74, |
| 966 |
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x73, 0x18, 0x02, |
| 967 |
0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, |
| 968 |
0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x64, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, |
| 969 |
0x44, 0x65, 0x6c, 0x74, 0x61, 0x52, 0x11, 0x61, 0x75, 0x64, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x66, |
| 970 |
0x69, 0x67, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x73, 0x22, 0xde, 0x01, 0x0a, 0x0c, 0x42, 0x69, 0x6e, |
| 971 |
0x64, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x12, 0x3a, 0x0a, 0x06, 0x61, 0x63, 0x74, |
| 972 |
0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 973 |
0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, |
| 974 |
0x67, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, |
| 975 |
0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x02, 0x20, |
| 976 |
0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d, |
| 977 |
0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, |
| 978 |
0x72, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, |
| 979 |
0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, |
| 980 |
0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, |
| 981 |
0x6f, 0x6e, 0x22, 0x35, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x12, |
| 982 |
0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, |
| 983 |
0x45, 0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x44, 0x44, 0x10, 0x01, 0x12, 0x0a, 0x0a, |
| 984 |
0x06, 0x52, 0x45, 0x4d, 0x4f, 0x56, 0x45, 0x10, 0x02, 0x22, 0xe7, 0x01, 0x0a, 0x10, 0x41, 0x75, |
| 985 |
0x64, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x12, 0x3e, |
| 986 |
0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, |
| 987 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x41, |
| 988 |
0x75, 0x64, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x2e, |
| 989 |
0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, |
| 990 |
0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, |
| 991 |
0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x78, 0x65, 0x6d, |
| 992 |
0x70, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, |
| 993 |
0x09, 0x52, 0x0e, 0x65, 0x78, 0x65, 0x6d, 0x70, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x6d, 0x62, 0x65, |
| 994 |
0x72, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x6f, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, |
| 995 |
0x01, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x6f, 0x67, 0x54, 0x79, 0x70, 0x65, 0x22, 0x35, 0x0a, 0x06, |
| 996 |
0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, |
| 997 |
0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x07, |
| 998 |
0x0a, 0x03, 0x41, 0x44, 0x44, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x52, 0x45, 0x4d, 0x4f, 0x56, |
| 999 |
0x45, 0x10, 0x02, 0x42, 0x7c, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 1000 |
0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, |
| 1001 |
0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x29, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, |
| 1002 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x69, 0x61, 0x6d, |
| 1003 |
0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x69, 0x61, 0x6d, 0x70, 0x62, 0x3b, 0x69, 0x61, 0x6d, |
| 1004 |
0x70, 0x62, 0xf8, 0x01, 0x01, 0xaa, 0x02, 0x13, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, |
| 1005 |
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x49, 0x61, 0x6d, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x13, 0x47, 0x6f, |
| 1006 |
0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x49, 0x61, 0x6d, 0x5c, 0x56, |
| 1007 |
0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 1008 |
} |
| 1009 |
|
| 1010 |
var ( |
| 1011 |
file_google_iam_v1_policy_proto_rawDescOnce sync.Once |
| 1012 |
file_google_iam_v1_policy_proto_rawDescData = file_google_iam_v1_policy_proto_rawDesc |
| 1013 |
) |
| 1014 |
|
| 1015 |
func file_google_iam_v1_policy_proto_rawDescGZIP() []byte { |
| 1016 |
file_google_iam_v1_policy_proto_rawDescOnce.Do(func() { |
| 1017 |
file_google_iam_v1_policy_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_iam_v1_policy_proto_rawDescData) |
| 1018 |
}) |
| 1019 |
return file_google_iam_v1_policy_proto_rawDescData |
| 1020 |
} |
| 1021 |
|
| 1022 |
var file_google_iam_v1_policy_proto_enumTypes = make([]protoimpl.EnumInfo, 3) |
| 1023 |
var file_google_iam_v1_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 7) |
| 1024 |
var file_google_iam_v1_policy_proto_goTypes = []any{ |
| 1025 |
(AuditLogConfig_LogType)(0), // 0: google.iam.v1.AuditLogConfig.LogType |
| 1026 |
(BindingDelta_Action)(0), // 1: google.iam.v1.BindingDelta.Action |
| 1027 |
(AuditConfigDelta_Action)(0), // 2: google.iam.v1.AuditConfigDelta.Action |
| 1028 |
(*Policy)(nil), // 3: google.iam.v1.Policy |
| 1029 |
(*Binding)(nil), // 4: google.iam.v1.Binding |
| 1030 |
(*AuditConfig)(nil), // 5: google.iam.v1.AuditConfig |
| 1031 |
(*AuditLogConfig)(nil), // 6: google.iam.v1.AuditLogConfig |
| 1032 |
(*PolicyDelta)(nil), // 7: google.iam.v1.PolicyDelta |
| 1033 |
(*BindingDelta)(nil), // 8: google.iam.v1.BindingDelta |
| 1034 |
(*AuditConfigDelta)(nil), // 9: google.iam.v1.AuditConfigDelta |
| 1035 |
(*expr.Expr)(nil), // 10: google.type.Expr |
| 1036 |
} |
| 1037 |
var file_google_iam_v1_policy_proto_depIdxs = []int32{ |
| 1038 |
4, // 0: google.iam.v1.Policy.bindings:type_name -> google.iam.v1.Binding |
| 1039 |
5, // 1: google.iam.v1.Policy.audit_configs:type_name -> google.iam.v1.AuditConfig |
| 1040 |
10, // 2: google.iam.v1.Binding.condition:type_name -> google.type.Expr |
| 1041 |
6, // 3: google.iam.v1.AuditConfig.audit_log_configs:type_name -> google.iam.v1.AuditLogConfig |
| 1042 |
0, // 4: google.iam.v1.AuditLogConfig.log_type:type_name -> google.iam.v1.AuditLogConfig.LogType |
| 1043 |
8, // 5: google.iam.v1.PolicyDelta.binding_deltas:type_name -> google.iam.v1.BindingDelta |
| 1044 |
9, // 6: google.iam.v1.PolicyDelta.audit_config_deltas:type_name -> google.iam.v1.AuditConfigDelta |
| 1045 |
1, // 7: google.iam.v1.BindingDelta.action:type_name -> google.iam.v1.BindingDelta.Action |
| 1046 |
10, // 8: google.iam.v1.BindingDelta.condition:type_name -> google.type.Expr |
| 1047 |
2, // 9: google.iam.v1.AuditConfigDelta.action:type_name -> google.iam.v1.AuditConfigDelta.Action |
| 1048 |
10, // [10:10] is the sub-list for method output_type |
| 1049 |
10, // [10:10] is the sub-list for method input_type |
| 1050 |
10, // [10:10] is the sub-list for extension type_name |
| 1051 |
10, // [10:10] is the sub-list for extension extendee |
| 1052 |
0, // [0:10] is the sub-list for field type_name |
| 1053 |
} |
| 1054 |
|
| 1055 |
func init() { file_google_iam_v1_policy_proto_init() } |
| 1056 |
func file_google_iam_v1_policy_proto_init() { |
| 1057 |
if File_google_iam_v1_policy_proto != nil { |
| 1058 |
return |
| 1059 |
} |
| 1060 |
type x struct{} |
| 1061 |
out := protoimpl.TypeBuilder{ |
| 1062 |
File: protoimpl.DescBuilder{ |
| 1063 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 1064 |
RawDescriptor: file_google_iam_v1_policy_proto_rawDesc, |
| 1065 |
NumEnums: 3, |
| 1066 |
NumMessages: 7, |
| 1067 |
NumExtensions: 0, |
| 1068 |
NumServices: 0, |
| 1069 |
}, |
| 1070 |
GoTypes: file_google_iam_v1_policy_proto_goTypes, |
| 1071 |
DependencyIndexes: file_google_iam_v1_policy_proto_depIdxs, |
| 1072 |
EnumInfos: file_google_iam_v1_policy_proto_enumTypes, |
| 1073 |
MessageInfos: file_google_iam_v1_policy_proto_msgTypes, |
| 1074 |
}.Build() |
| 1075 |
File_google_iam_v1_policy_proto = out.File |
| 1076 |
file_google_iam_v1_policy_proto_rawDesc = nil |
| 1077 |
file_google_iam_v1_policy_proto_goTypes = nil |
| 1078 |
file_google_iam_v1_policy_proto_depIdxs = nil |
| 1079 |
} |