123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353 |
- syntax = "proto3";
- package google.cloud.audit;
- import "google/api/field_behavior.proto";
- import "google/protobuf/any.proto";
- import "google/protobuf/struct.proto";
- import "google/rpc/context/attribute_context.proto";
- import "google/rpc/status.proto";
- option cc_enable_arenas = true;
- option go_package = "google.golang.org/genproto/googleapis/cloud/audit;audit";
- option java_multiple_files = true;
- option java_outer_classname = "AuditLogProto";
- option java_package = "com.google.cloud.audit";
- message AuditLog {
-
-
- string service_name = 7;
-
-
-
-
-
-
- string method_name = 8;
-
-
-
-
-
-
- string resource_name = 11;
-
- ResourceLocation resource_location = 20;
-
-
-
-
-
-
-
- google.protobuf.Struct resource_original_state = 19;
-
-
- int64 num_response_items = 12;
-
- google.rpc.Status status = 2;
-
- AuthenticationInfo authentication_info = 3;
-
-
-
- repeated AuthorizationInfo authorization_info = 9;
-
-
-
- PolicyViolationInfo policy_violation_info = 25;
-
- RequestMetadata request_metadata = 4;
-
-
-
-
-
-
- google.protobuf.Struct request = 16;
-
-
-
-
-
-
- google.protobuf.Struct response = 17;
-
-
- google.protobuf.Struct metadata = 18;
-
-
-
- google.protobuf.Any service_data = 15 [deprecated = true];
- }
- message AuthenticationInfo {
-
-
-
-
-
-
- string principal_email = 1;
-
-
- string authority_selector = 2;
-
-
-
-
- google.protobuf.Struct third_party_principal = 4;
-
-
-
-
-
- string service_account_key_name = 5;
-
-
-
-
-
- repeated ServiceAccountDelegationInfo service_account_delegation_info = 6;
-
-
- string principal_subject = 8;
- }
- message AuthorizationInfo {
-
-
-
-
-
-
- string resource = 1;
-
- string permission = 2;
-
-
- bool granted = 3;
-
-
-
-
-
-
- google.rpc.context.AttributeContext.Resource resource_attributes = 5;
- }
- message RequestMetadata {
-
-
-
-
-
-
-
-
-
-
-
- string caller_ip = 1;
-
-
-
-
-
-
-
-
-
-
-
- string caller_supplied_user_agent = 2;
-
-
-
-
-
-
-
- string caller_network = 3;
-
-
-
-
-
-
-
-
- google.rpc.context.AttributeContext.Request request_attributes = 7;
-
-
-
-
-
- google.rpc.context.AttributeContext.Peer destination_attributes = 8;
- }
- message ResourceLocation {
-
-
-
-
-
-
-
-
- repeated string current_locations = 1;
-
-
-
-
-
-
-
-
- repeated string original_locations = 2;
- }
- message ServiceAccountDelegationInfo {
-
- message FirstPartyPrincipal {
-
- string principal_email = 1;
-
- google.protobuf.Struct service_metadata = 2;
- }
-
- message ThirdPartyPrincipal {
-
- google.protobuf.Struct third_party_claims = 1;
- }
-
-
-
-
-
-
- string principal_subject = 3;
-
-
- oneof Authority {
-
- FirstPartyPrincipal first_party_principal = 1;
-
- ThirdPartyPrincipal third_party_principal = 2;
- }
- }
- message PolicyViolationInfo {
-
- OrgPolicyViolationInfo org_policy_violation_info = 1;
- }
- message OrgPolicyViolationInfo {
-
-
-
- google.protobuf.Struct payload = 1 [(google.api.field_behavior) = OPTIONAL];
-
-
- string resource_type = 2 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
-
-
- map<string, string> resource_tags = 3 [(google.api.field_behavior) = OPTIONAL];
-
- repeated ViolationInfo violation_info = 4 [(google.api.field_behavior) = OPTIONAL];
- }
- message ViolationInfo {
-
- enum PolicyType {
-
- POLICY_TYPE_UNSPECIFIED = 0;
-
- BOOLEAN_CONSTRAINT = 1;
-
- LIST_CONSTRAINT = 2;
-
- CUSTOM_CONSTRAINT = 3;
- }
-
- string constraint = 1 [(google.api.field_behavior) = OPTIONAL];
-
- string error_message = 2 [(google.api.field_behavior) = OPTIONAL];
-
-
-
- string checked_value = 3 [(google.api.field_behavior) = OPTIONAL];
-
- PolicyType policy_type = 4 [(google.api.field_behavior) = OPTIONAL];
- }
|