1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/cloud/audit/audit_log.proto
5 Package audit is a generated protocol buffer package.
7 It is generated from these files:
8 google/cloud/audit/audit_log.proto
10 It has these top-level messages:
18 import proto "github.com/golang/protobuf/proto"
21 import _ "google.golang.org/genproto/googleapis/api/annotations"
22 import google_protobuf1 "github.com/golang/protobuf/ptypes/any"
23 import google_protobuf2 "github.com/golang/protobuf/ptypes/struct"
24 import google_rpc "google.golang.org/genproto/googleapis/rpc/status"
26 // Reference imports to suppress errors if they are not otherwise used.
31 // This is a compile-time assertion to ensure that this generated file
32 // is compatible with the proto package it is being compiled against.
33 // A compilation error at this line likely means your copy of the
34 // proto package needs to be updated.
35 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
37 // Common audit log format for Google Cloud Platform API operations.
38 type AuditLog struct {
39 // The name of the API service performing the operation. For example,
40 // `"datastore.googleapis.com"`.
41 ServiceName string `protobuf:"bytes,7,opt,name=service_name,json=serviceName" json:"service_name,omitempty"`
42 // The name of the service method or operation.
43 // For API calls, this should be the name of the API method.
46 // "google.datastore.v1.Datastore.RunQuery"
47 // "google.logging.v1.LoggingService.DeleteLog"
48 MethodName string `protobuf:"bytes,8,opt,name=method_name,json=methodName" json:"method_name,omitempty"`
49 // The resource or collection that is the target of the operation.
50 // The name is a scheme-less URI, not including the API service name.
53 // "shelves/SHELF_ID/books"
54 // "shelves/SHELF_ID/books/BOOK_ID"
55 ResourceName string `protobuf:"bytes,11,opt,name=resource_name,json=resourceName" json:"resource_name,omitempty"`
56 // The number of items returned from a List or Query API method,
58 NumResponseItems int64 `protobuf:"varint,12,opt,name=num_response_items,json=numResponseItems" json:"num_response_items,omitempty"`
59 // The status of the overall operation.
60 Status *google_rpc.Status `protobuf:"bytes,2,opt,name=status" json:"status,omitempty"`
61 // Authentication information.
62 AuthenticationInfo *AuthenticationInfo `protobuf:"bytes,3,opt,name=authentication_info,json=authenticationInfo" json:"authentication_info,omitempty"`
63 // Authorization information. If there are multiple
64 // resources or permissions involved, then there is
65 // one AuthorizationInfo element for each {resource, permission} tuple.
66 AuthorizationInfo []*AuthorizationInfo `protobuf:"bytes,9,rep,name=authorization_info,json=authorizationInfo" json:"authorization_info,omitempty"`
67 // Metadata about the operation.
68 RequestMetadata *RequestMetadata `protobuf:"bytes,4,opt,name=request_metadata,json=requestMetadata" json:"request_metadata,omitempty"`
69 // The operation request. This may not include all request parameters,
70 // such as those that are too large, privacy-sensitive, or duplicated
71 // elsewhere in the log record.
72 // It should never include user-generated data, such as file contents.
73 // When the JSON object represented here has a proto equivalent, the proto
74 // name will be indicated in the `@type` property.
75 Request *google_protobuf2.Struct `protobuf:"bytes,16,opt,name=request" json:"request,omitempty"`
76 // The operation response. This may not include all response elements,
77 // such as those that are too large, privacy-sensitive, or duplicated
78 // elsewhere in the log record.
79 // It should never include user-generated data, such as file contents.
80 // When the JSON object represented here has a proto equivalent, the proto
81 // name will be indicated in the `@type` property.
82 Response *google_protobuf2.Struct `protobuf:"bytes,17,opt,name=response" json:"response,omitempty"`
83 // Other service-specific data about the request, response, and other
85 ServiceData *google_protobuf1.Any `protobuf:"bytes,15,opt,name=service_data,json=serviceData" json:"service_data,omitempty"`
88 func (m *AuditLog) Reset() { *m = AuditLog{} }
89 func (m *AuditLog) String() string { return proto.CompactTextString(m) }
90 func (*AuditLog) ProtoMessage() {}
91 func (*AuditLog) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
93 func (m *AuditLog) GetServiceName() string {
100 func (m *AuditLog) GetMethodName() string {
107 func (m *AuditLog) GetResourceName() string {
109 return m.ResourceName
114 func (m *AuditLog) GetNumResponseItems() int64 {
116 return m.NumResponseItems
121 func (m *AuditLog) GetStatus() *google_rpc.Status {
128 func (m *AuditLog) GetAuthenticationInfo() *AuthenticationInfo {
130 return m.AuthenticationInfo
135 func (m *AuditLog) GetAuthorizationInfo() []*AuthorizationInfo {
137 return m.AuthorizationInfo
142 func (m *AuditLog) GetRequestMetadata() *RequestMetadata {
144 return m.RequestMetadata
149 func (m *AuditLog) GetRequest() *google_protobuf2.Struct {
156 func (m *AuditLog) GetResponse() *google_protobuf2.Struct {
163 func (m *AuditLog) GetServiceData() *google_protobuf1.Any {
170 // Authentication information for the operation.
171 type AuthenticationInfo struct {
172 // The email address of the authenticated user making the request.
173 PrincipalEmail string `protobuf:"bytes,1,opt,name=principal_email,json=principalEmail" json:"principal_email,omitempty"`
176 func (m *AuthenticationInfo) Reset() { *m = AuthenticationInfo{} }
177 func (m *AuthenticationInfo) String() string { return proto.CompactTextString(m) }
178 func (*AuthenticationInfo) ProtoMessage() {}
179 func (*AuthenticationInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
181 func (m *AuthenticationInfo) GetPrincipalEmail() string {
183 return m.PrincipalEmail
188 // Authorization information for the operation.
189 type AuthorizationInfo struct {
190 // The resource being accessed, as a REST-style string. For example:
192 // bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID
193 Resource string `protobuf:"bytes,1,opt,name=resource" json:"resource,omitempty"`
194 // The required IAM permission.
195 Permission string `protobuf:"bytes,2,opt,name=permission" json:"permission,omitempty"`
196 // Whether or not authorization for `resource` and `permission`
198 Granted bool `protobuf:"varint,3,opt,name=granted" json:"granted,omitempty"`
201 func (m *AuthorizationInfo) Reset() { *m = AuthorizationInfo{} }
202 func (m *AuthorizationInfo) String() string { return proto.CompactTextString(m) }
203 func (*AuthorizationInfo) ProtoMessage() {}
204 func (*AuthorizationInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
206 func (m *AuthorizationInfo) GetResource() string {
213 func (m *AuthorizationInfo) GetPermission() string {
220 func (m *AuthorizationInfo) GetGranted() bool {
227 // Metadata about the request.
228 type RequestMetadata struct {
229 // The IP address of the caller.
230 CallerIp string `protobuf:"bytes,1,opt,name=caller_ip,json=callerIp" json:"caller_ip,omitempty"`
231 // The user agent of the caller.
232 // This information is not authenticated and should be treated accordingly.
235 // + `google-api-python-client/1.4.0`:
236 // The request was made by the Google API client for Python.
237 // + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`:
238 // The request was made by the Google Cloud SDK CLI (gcloud).
239 // + `AppEngine-Google; (+http://code.google.com/appengine; appid: s~my-project`:
240 // The request was made from the `my-project` App Engine app.
241 CallerSuppliedUserAgent string `protobuf:"bytes,2,opt,name=caller_supplied_user_agent,json=callerSuppliedUserAgent" json:"caller_supplied_user_agent,omitempty"`
244 func (m *RequestMetadata) Reset() { *m = RequestMetadata{} }
245 func (m *RequestMetadata) String() string { return proto.CompactTextString(m) }
246 func (*RequestMetadata) ProtoMessage() {}
247 func (*RequestMetadata) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
249 func (m *RequestMetadata) GetCallerIp() string {
256 func (m *RequestMetadata) GetCallerSuppliedUserAgent() string {
258 return m.CallerSuppliedUserAgent
264 proto.RegisterType((*AuditLog)(nil), "google.cloud.audit.AuditLog")
265 proto.RegisterType((*AuthenticationInfo)(nil), "google.cloud.audit.AuthenticationInfo")
266 proto.RegisterType((*AuthorizationInfo)(nil), "google.cloud.audit.AuthorizationInfo")
267 proto.RegisterType((*RequestMetadata)(nil), "google.cloud.audit.RequestMetadata")
270 func init() { proto.RegisterFile("google/cloud/audit/audit_log.proto", fileDescriptor0) }
272 var fileDescriptor0 = []byte{
273 // 576 bytes of a gzipped FileDescriptorProto
274 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x94, 0x5f, 0x6f, 0xd3, 0x30,
275 0x14, 0xc5, 0x55, 0x36, 0x6d, 0xad, 0xbb, 0xd1, 0xd6, 0x20, 0x1a, 0xca, 0x04, 0xa5, 0x13, 0x50,
276 0x21, 0x94, 0x88, 0xed, 0x61, 0x0f, 0x13, 0x0f, 0x9d, 0xe0, 0xa1, 0x12, 0x4c, 0x53, 0x0a, 0x42,
277 0xe2, 0x25, 0x72, 0x93, 0xdb, 0xcc, 0x22, 0xb1, 0x8d, 0xff, 0x20, 0x8d, 0xef, 0xcc, 0x77, 0x40,
278 0xbd, 0x71, 0x4a, 0xd7, 0x0e, 0x5e, 0x2c, 0xf9, 0x9c, 0xdf, 0xbd, 0x76, 0xaf, 0x4f, 0x43, 0x46,
279 0xb9, 0x94, 0x79, 0x01, 0x51, 0x5a, 0x48, 0x97, 0x45, 0xcc, 0x65, 0xdc, 0x56, 0x6b, 0x52, 0xc8,
280 0x3c, 0x54, 0x5a, 0x5a, 0x49, 0x69, 0xc5, 0x84, 0xc8, 0x84, 0xe8, 0x0e, 0x8e, 0x7c, 0x1d, 0x53,
281 0x3c, 0x62, 0x42, 0x48, 0xcb, 0x2c, 0x97, 0xc2, 0x54, 0x15, 0x83, 0xc7, 0xde, 0xc5, 0xdd, 0xdc,
282 0x2d, 0x22, 0x26, 0x6e, 0xbc, 0x75, 0xb4, 0x69, 0x19, 0xab, 0x5d, 0x6a, 0xbd, 0xdb, 0xf7, 0xae,
283 0x56, 0x69, 0x64, 0x2c, 0xb3, 0xce, 0x77, 0x1c, 0xfd, 0xde, 0x25, 0xcd, 0xc9, 0xf2, 0xe4, 0x8f,
284 0x32, 0xa7, 0xcf, 0xc9, 0x81, 0x01, 0xfd, 0x93, 0xa7, 0x90, 0x08, 0x56, 0x42, 0xb0, 0x3f, 0x6c,
285 0x8c, 0x5b, 0x71, 0xdb, 0x6b, 0x97, 0xac, 0x04, 0xfa, 0x8c, 0xb4, 0x4b, 0xb0, 0xd7, 0x32, 0xab,
286 0x88, 0x26, 0x12, 0xa4, 0x92, 0x10, 0x38, 0x26, 0x87, 0x1a, 0x8c, 0x74, 0xba, 0x6e, 0xd2, 0x46,
287 0xe4, 0xa0, 0x16, 0x11, 0x7a, 0x43, 0xa8, 0x70, 0x65, 0xa2, 0xc1, 0x28, 0x29, 0x0c, 0x24, 0xdc,
288 0x42, 0x69, 0x82, 0x83, 0x61, 0x63, 0xbc, 0x13, 0x77, 0x85, 0x2b, 0x63, 0x6f, 0x4c, 0x97, 0x3a,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