Skip to content

Instantly share code, notes, and snippets.

@grnadav
Created July 4, 2017 07:14
Show Gist options
  • Save grnadav/75143d6c2d55d5a18ea1a37c53d1f656 to your computer and use it in GitHub Desktop.
Save grnadav/75143d6c2d55d5a18ea1a37c53d1f656 to your computer and use it in GitHub Desktop.
Protobuf representation of IAM AuditData
syntax = "proto3";
package google.iam.v1.logging;
option java_package = "com.google.iam.v1.logging";
option java_multiple_files = true;
// Generated from https://cloud.google.com/iam/reference/rest/v1/AuditData
// Issue to track in case they make the proto public https://github.com/googleapis/googleapis/issues/187
// generate Java code using protoc compiler: protoc audit_data.proto --java_out=.
message AuditData {
PolicyDelta policyDelta = 2;
}
message PolicyDelta {
repeated BindingDelta bindingDeltas = 1;
}
message BindingDelta {
enum Action {
ACTION_UNSPECIFIED = 0;
ADD = 1;
REMOVE = 2;
}
Action action = 1;
string role = 2;
string member = 3;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment