github.com/cloudwan/edgelq-sdk@v1.15.4/audit/proto/v1alpha2/common.proto (about) 1 syntax = "proto3"; 2 3 package ntt.audit.v1alpha2; 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/v1alpha2/common"; 9 option java_multiple_files = true; 10 option java_outer_classname = "CommonProto"; 11 option java_package = "com.ntt.audit.pb.v1alpha2"; 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 40 // State of the object - can be resource, request or response. 41 // DEPRECATED 42 message ObjectState { 43 // Object data 44 google.protobuf.Any data = 1; 45 46 // Values for all of the labels listed in the associated audited 47 // object descriptor - they are extracted from protobuf object 48 // and used for filtering 49 map<string, string> labels = 2; 50 } 51 52 message LabelDescriptor { 53 // The label key. 54 string key = 1; 55 56 // List of versions where label is supported 57 repeated string versions = 2; 58 } 59 60 // LabelKeySet is used for defining PromotedLabelKeySets on Object descriptors 61 message LabelKeySet { 62 repeated string label_keys = 1; 63 64 // List of versions where label set is supported 65 repeated string versions = 2; 66 } 67 68 // A time interval extending just after a start time through an end time. 69 // If the start time is the same as the end time, then the interval 70 // represents a single point in time. 71 message TimeInterval { 72 // Optional - end of the time interval. If not provided, current 73 // time will be assumed. 74 google.protobuf.Timestamp end_time = 2; 75 76 // Required. The beginning of the time interval. The start time must not be 77 // later than the end time. 78 google.protobuf.Timestamp start_time = 1; 79 }