xref: /aosp_15_r20/external/googleapis/google/cloud/securitycenter/v1/iam_binding.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1// Copyright 2023 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
15syntax = "proto3";
16
17package google.cloud.securitycenter.v1;
18
19option csharp_namespace = "Google.Cloud.SecurityCenter.V1";
20option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb";
21option java_multiple_files = true;
22option java_outer_classname = "IamBindingProto";
23option java_package = "com.google.cloud.securitycenter.v1";
24option php_namespace = "Google\\Cloud\\SecurityCenter\\V1";
25option ruby_package = "Google::Cloud::SecurityCenter::V1";
26
27// Represents a particular IAM binding, which captures a member's role addition,
28// removal, or state.
29message IamBinding {
30  // The type of action performed on a Binding in a policy.
31  enum Action {
32    // Unspecified.
33    ACTION_UNSPECIFIED = 0;
34
35    // Addition of a Binding.
36    ADD = 1;
37
38    // Removal of a Binding.
39    REMOVE = 2;
40  }
41
42  // The action that was performed on a Binding.
43  Action action = 1;
44
45  // Role that is assigned to "members".
46  // For example, "roles/viewer", "roles/editor", or "roles/owner".
47  string role = 2;
48
49  // A single identity requesting access for a Cloud Platform resource, for
50  // example, "[email protected]".
51  string member = 3;
52}
53