proto/auditlogs/v0/auditlogs.pb.go (448 lines of code) (raw):

// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // Code generated by protoc-gen-go. DO NOT EDIT. // source: proto/auditlogs/v0/auditlogs.proto // Package v1 provides protocol buffer for AuditLogs API. package v1 import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" duration "github.com/golang/protobuf/ptypes/duration" _struct "github.com/golang/protobuf/ptypes/struct" timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package // Decision is the result of an auth check. type Decision int32 const ( Decision_UNSPECIFIED Decision = 0 Decision_PASS Decision = 1 Decision_FAIL Decision = 2 ) var Decision_name = map[int32]string{ 0: "UNSPECIFIED", 1: "PASS", 2: "FAIL", } var Decision_value = map[string]int32{ "UNSPECIFIED": 0, "PASS": 1, "FAIL": 2, } func (x Decision) String() string { return proto.EnumName(Decision_name, int32(x)) } func (Decision) EnumDescriptor() ([]byte, []int) { return fileDescriptor_1be582115e76de27, []int{0} } // LogType is the type of log. type LogType int32 const ( LogType_NONE LogType = 0 LogType_REQUEST LogType = 1 LogType_POLICY LogType = 2 ) var LogType_name = map[int32]string{ 0: "NONE", 1: "REQUEST", 2: "POLICY", } var LogType_value = map[string]int32{ "NONE": 0, "REQUEST": 1, "POLICY": 2, } func (x LogType) String() string { return proto.EnumName(LogType_name, int32(x)) } func (LogType) EnumDescriptor() ([]byte, []int) { return fileDescriptor_1be582115e76de27, []int{1} } // An AuditLog records request for access. They contain the following // information: // - Where: the name of the service that made the decision. // - What: the requested Action (e.g. read/write/...) and // the Resource (e.g. GCS bucket, a resource at an endpoint). // - When: the time the decision was made. // - Who: the identity and authentication information for the requester. // - Decision: the authorization decision, and the reason for it. // - Metadata: the request, response, status code, tracing id, etc. type AuditLog struct { // Name of the audit log. // Format: `users/{user_id}/logs/{log_id}`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Type of log entry. could be "access" or "policy". Type LogType `protobuf:"varint,2,opt,name=type,proto3,enum=AuditLogs.v1.LogType" json:"type,omitempty"` // ServiceName is the name of the service which made the decision. ServiceName string `protobuf:"bytes,3,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` // ServiceType is the type of the service which made the decision. ServiceType string `protobuf:"bytes,4,opt,name=service_type,json=serviceType,proto3" json:"service_type,omitempty"` // TokenID is the id of the token, maybe "jti". TokenId string `protobuf:"bytes,5,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` // TokenSubject is the "sub" of the token. TokenSubject string `protobuf:"bytes,6,opt,name=token_subject,json=tokenSubject,proto3" json:"token_subject,omitempty"` // TokenIssuer is the iss of the token. TokenIssuer string `protobuf:"bytes,7,opt,name=token_issuer,json=tokenIssuer,proto3" json:"token_issuer,omitempty"` // Decision is the PassAuthCheck if the request passes the auth check. Decision Decision `protobuf:"varint,8,opt,name=decision,proto3,enum=AuditLogs.v1.Decision" json:"decision,omitempty"` // ErrorType of deny. // TODO: consider making this an enum. ErrorType string `protobuf:"bytes,9,opt,name=error_type,json=errorType,proto3" json:"error_type,omitempty"` // The reason for the deny decision. Reason string `protobuf:"bytes,10,opt,name=reason,proto3" json:"reason,omitempty"` // Time at which the decision was made. Time *timestamp.Timestamp `protobuf:"bytes,11,opt,name=time,proto3" json:"time,omitempty"` // ResourceName is the name of the resource that was target of the operation. ResourceName string `protobuf:"bytes,12,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` // MethodName is the name of the service method or operation. MethodName string `protobuf:"bytes,13,opt,name=method_name,json=methodName,proto3" json:"method_name,omitempty"` // TracingID is the id of request from proxies. TracingId string `protobuf:"bytes,14,opt,name=tracing_id,json=tracingId,proto3" json:"tracing_id,omitempty"` // Requester's IP. CallerIp string `protobuf:"bytes,15,opt,name=caller_ip,json=callerIp,proto3" json:"caller_ip,omitempty"` // HTTP Response Code. HttpResponseCode int64 `protobuf:"varint,16,opt,name=http_response_code,json=httpResponseCode,proto3" json:"http_response_code,omitempty"` // HTTP Request. HttpRequest *_struct.Struct `protobuf:"bytes,17,opt,name=http_request,json=httpRequest,proto3" json:"http_request,omitempty"` // TTL that user requested for the access. Ttl *duration.Duration `protobuf:"bytes,19,opt,name=ttl,proto3" json:"ttl,omitempty"` // CartId of the request. CartId string `protobuf:"bytes,20,opt,name=cart_id,json=cartId,proto3" json:"cart_id,omitempty"` // ConfigRevision that the request using. ConfigRevision string `protobuf:"bytes,21,opt,name=config_revision,json=configRevision,proto3" json:"config_revision,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *AuditLog) Reset() { *m = AuditLog{} } func (m *AuditLog) String() string { return proto.CompactTextString(m) } func (*AuditLog) ProtoMessage() {} func (*AuditLog) Descriptor() ([]byte, []int) { return fileDescriptor_1be582115e76de27, []int{0} } func (m *AuditLog) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AuditLog.Unmarshal(m, b) } func (m *AuditLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_AuditLog.Marshal(b, m, deterministic) } func (m *AuditLog) XXX_Merge(src proto.Message) { xxx_messageInfo_AuditLog.Merge(m, src) } func (m *AuditLog) XXX_Size() int { return xxx_messageInfo_AuditLog.Size(m) } func (m *AuditLog) XXX_DiscardUnknown() { xxx_messageInfo_AuditLog.DiscardUnknown(m) } var xxx_messageInfo_AuditLog proto.InternalMessageInfo func (m *AuditLog) GetName() string { if m != nil { return m.Name } return "" } func (m *AuditLog) GetType() LogType { if m != nil { return m.Type } return LogType_NONE } func (m *AuditLog) GetServiceName() string { if m != nil { return m.ServiceName } return "" } func (m *AuditLog) GetServiceType() string { if m != nil { return m.ServiceType } return "" } func (m *AuditLog) GetTokenId() string { if m != nil { return m.TokenId } return "" } func (m *AuditLog) GetTokenSubject() string { if m != nil { return m.TokenSubject } return "" } func (m *AuditLog) GetTokenIssuer() string { if m != nil { return m.TokenIssuer } return "" } func (m *AuditLog) GetDecision() Decision { if m != nil { return m.Decision } return Decision_UNSPECIFIED } func (m *AuditLog) GetErrorType() string { if m != nil { return m.ErrorType } return "" } func (m *AuditLog) GetReason() string { if m != nil { return m.Reason } return "" } func (m *AuditLog) GetTime() *timestamp.Timestamp { if m != nil { return m.Time } return nil } func (m *AuditLog) GetResourceName() string { if m != nil { return m.ResourceName } return "" } func (m *AuditLog) GetMethodName() string { if m != nil { return m.MethodName } return "" } func (m *AuditLog) GetTracingId() string { if m != nil { return m.TracingId } return "" } func (m *AuditLog) GetCallerIp() string { if m != nil { return m.CallerIp } return "" } func (m *AuditLog) GetHttpResponseCode() int64 { if m != nil { return m.HttpResponseCode } return 0 } func (m *AuditLog) GetHttpRequest() *_struct.Struct { if m != nil { return m.HttpRequest } return nil } func (m *AuditLog) GetTtl() *duration.Duration { if m != nil { return m.Ttl } return nil } func (m *AuditLog) GetCartId() string { if m != nil { return m.CartId } return "" } func (m *AuditLog) GetConfigRevision() string { if m != nil { return m.ConfigRevision } return "" } type ListAuditLogsRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ListAuditLogsRequest) Reset() { *m = ListAuditLogsRequest{} } func (m *ListAuditLogsRequest) String() string { return proto.CompactTextString(m) } func (*ListAuditLogsRequest) ProtoMessage() {} func (*ListAuditLogsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_1be582115e76de27, []int{1} } func (m *ListAuditLogsRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListAuditLogsRequest.Unmarshal(m, b) } func (m *ListAuditLogsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ListAuditLogsRequest.Marshal(b, m, deterministic) } func (m *ListAuditLogsRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_ListAuditLogsRequest.Merge(m, src) } func (m *ListAuditLogsRequest) XXX_Size() int { return xxx_messageInfo_ListAuditLogsRequest.Size(m) } func (m *ListAuditLogsRequest) XXX_DiscardUnknown() { xxx_messageInfo_ListAuditLogsRequest.DiscardUnknown(m) } var xxx_messageInfo_ListAuditLogsRequest proto.InternalMessageInfo func (m *ListAuditLogsRequest) GetUserId() string { if m != nil { return m.UserId } return "" } func (m *ListAuditLogsRequest) GetFilter() string { if m != nil { return m.Filter } return "" } func (m *ListAuditLogsRequest) GetPageSize() int32 { if m != nil { return m.PageSize } return 0 } func (m *ListAuditLogsRequest) GetPageToken() string { if m != nil { return m.PageToken } return "" } type ListAuditLogsResponse struct { AuditLogs []*AuditLog `protobuf:"bytes,1,rep,name=audit_logs,json=auditLogs,proto3" json:"audit_logs,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ListAuditLogsResponse) Reset() { *m = ListAuditLogsResponse{} } func (m *ListAuditLogsResponse) String() string { return proto.CompactTextString(m) } func (*ListAuditLogsResponse) ProtoMessage() {} func (*ListAuditLogsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_1be582115e76de27, []int{2} } func (m *ListAuditLogsResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListAuditLogsResponse.Unmarshal(m, b) } func (m *ListAuditLogsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ListAuditLogsResponse.Marshal(b, m, deterministic) } func (m *ListAuditLogsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_ListAuditLogsResponse.Merge(m, src) } func (m *ListAuditLogsResponse) XXX_Size() int { return xxx_messageInfo_ListAuditLogsResponse.Size(m) } func (m *ListAuditLogsResponse) XXX_DiscardUnknown() { xxx_messageInfo_ListAuditLogsResponse.DiscardUnknown(m) } var xxx_messageInfo_ListAuditLogsResponse proto.InternalMessageInfo func (m *ListAuditLogsResponse) GetAuditLogs() []*AuditLog { if m != nil { return m.AuditLogs } return nil } func (m *ListAuditLogsResponse) GetNextPageToken() string { if m != nil { return m.NextPageToken } return "" } func init() { proto.RegisterEnum("AuditLogs.v1.Decision", Decision_name, Decision_value) proto.RegisterEnum("AuditLogs.v1.LogType", LogType_name, LogType_value) proto.RegisterType((*AuditLog)(nil), "AuditLogs.v1.AuditLog") proto.RegisterType((*ListAuditLogsRequest)(nil), "AuditLogs.v1.ListAuditLogsRequest") proto.RegisterType((*ListAuditLogsResponse)(nil), "AuditLogs.v1.ListAuditLogsResponse") } func init() { proto.RegisterFile("proto/auditlogs/v0/auditlogs.proto", fileDescriptor_1be582115e76de27) } var fileDescriptor_1be582115e76de27 = []byte{ // 804 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0xdd, 0x72, 0xdb, 0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 0x85, 0x90, 0xeb, 0x60, 0xc5, 0x68, 0xa6, 0x57, 0x09, 0x95, 0xec, 0x78, 0xc1, 0x52, 0x26, 0xa9, 0x66, 0xe9, 0x31, 0x4d, 0x12, 0xa6, 0xd4, 0xb1, 0xbb, 0x3e, 0x2a, 0xb8, 0x73, 0xba, 0x55, 0xb0, 0x39, 0xb9, 0xa9, 0x23, 0xf0, 0xd5, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x71, 0x47, 0x62, 0xe7, 0xd4, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion6 // AuditLogsClient is the client API for AuditLogs service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type AuditLogsClient interface { // Lists the AuditLogs Logs. ListAuditLogs(ctx context.Context, in *ListAuditLogsRequest, opts ...grpc.CallOption) (*ListAuditLogsResponse, error) } type auditLogsClient struct { cc grpc.ClientConnInterface } func NewAuditLogsClient(cc grpc.ClientConnInterface) AuditLogsClient { return &auditLogsClient{cc} } func (c *auditLogsClient) ListAuditLogs(ctx context.Context, in *ListAuditLogsRequest, opts ...grpc.CallOption) (*ListAuditLogsResponse, error) { out := new(ListAuditLogsResponse) err := c.cc.Invoke(ctx, "/AuditLogs.v1.AuditLogs/ListAuditLogs", in, out, opts...) if err != nil { return nil, err } return out, nil } // AuditLogsServer is the server API for AuditLogs service. type AuditLogsServer interface { // Lists the AuditLogs Logs. ListAuditLogs(context.Context, *ListAuditLogsRequest) (*ListAuditLogsResponse, error) } // UnimplementedAuditLogsServer can be embedded to have forward compatible implementations. type UnimplementedAuditLogsServer struct { } func (*UnimplementedAuditLogsServer) ListAuditLogs(ctx context.Context, req *ListAuditLogsRequest) (*ListAuditLogsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListAuditLogs not implemented") } func RegisterAuditLogsServer(s *grpc.Server, srv AuditLogsServer) { s.RegisterService(&_AuditLogs_serviceDesc, srv) } func _AuditLogs_ListAuditLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListAuditLogsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AuditLogsServer).ListAuditLogs(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/AuditLogs.v1.AuditLogs/ListAuditLogs", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AuditLogsServer).ListAuditLogs(ctx, req.(*ListAuditLogsRequest)) } return interceptor(ctx, in, info, handler) } var _AuditLogs_serviceDesc = grpc.ServiceDesc{ ServiceName: "AuditLogs.v1.AuditLogs", HandlerType: (*AuditLogsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListAuditLogs", Handler: _AuditLogs_ListAuditLogs_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/auditlogs/v0/auditlogs.proto", }