github.com/cloudwan/edgelq-sdk@v1.15.4/audit/proto/v1/common.proto (about) 1 syntax = "proto3"; 2 3 package ntt.audit.v1; 4 5 import "google/protobuf/any.proto"; 6 import "google/protobuf/timestamp.proto"; 7 8 option go_package = "github.com/cloudwan/edgelq-sdk/audit/resources/v1/common"; 9 option java_multiple_files = true; 10 option java_outer_classname = "CommonProto"; 11 option java_package = "com.ntt.audit.pb.v1"; 12 13 // Information about authorized principal who sent a request 14 message Authentication { 15 // Name of the principal, for example: "user:our_new_admin@example.com" 16 string principal = 1; 17 18 // Principal type - user, serviceAccount, anonymous 19 string principal_type = 2; 20 } 21 22 // Information about authorization applicable for a request. 23 message Authorization { 24 // List of permissions that were granted 25 repeated string granted_permissions = 1; 26 27 // List of permissions that were denied 28 repeated string denied_permissions = 2; 29 } 30 31 // Information about service processing a request 32 message ServiceData { 33 // Fully qualified service name executing a request 34 string name = 1; 35 36 // Region of the service handling this request. 37 string region_id = 2; 38 39 // Server hostname handling this request. 40 string hostname = 3; 41 } 42 43 // State of the object - can be resource, request or response. 44 // DEPRECATED 45 message ObjectState { 46 // Object data 47 google.protobuf.Any data = 1; 48 49 // Values for all of the labels listed in the associated audited 50 // object descriptor - they are extracted from protobuf object 51 // and used for filtering 52 map<string, string> labels = 2; 53 } 54 55 message LabelDescriptor { 56 // The label key. 57 string key = 1; 58 59 // List of versions where label is supported 60 repeated string versions = 2; 61 } 62 63 // LabelKeySet is used for defining PromotedLabelKeySets on Object descriptors 64 message LabelKeySet { 65 repeated string label_keys = 1; 66 67 // List of versions where label set is supported 68 repeated string versions = 2; 69 } 70 71 // A time interval extending just after a start time through an end time. 72 // If the start time is the same as the end time, then the interval 73 // represents a single point in time. 74 message TimeInterval { 75 // Optional - end of the time interval. If not provided, current 76 // time will be assumed. 77 google.protobuf.Timestamp end_time = 2; 78 79 // Required. The beginning of the time interval. The start time must not be 80 // later than the end time. 81 google.protobuf.Timestamp start_time = 1; 82 }