Documentation
¶
Index ¶
- Variables
- type AuditContext
- func (*AuditContext) Descriptor() ([]byte, []int)deprecated
- func (x *AuditContext) GetAuditLog() []byte
- func (x *AuditContext) GetScrubbedRequest() *structpb.Struct
- func (x *AuditContext) GetScrubbedResponse() *structpb.Struct
- func (x *AuditContext) GetScrubbedResponseItemCount() int32
- func (x *AuditContext) GetTargetResource() string
- func (*AuditContext) ProtoMessage()
- func (x *AuditContext) ProtoReflect() protoreflect.Message
- func (x *AuditContext) Reset()
- func (x *AuditContext) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_google_rpc_context_audit_context_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AuditContext ¶
type AuditContext struct {
// Serialized audit log.
AuditLog []byte `protobuf:"bytes,1,opt,name=audit_log,json=auditLog,proto3" json:"audit_log,omitempty"`
// An API request message that is scrubbed based on the method annotation.
// This field should only be filled if audit_log field is present.
// Service Control will use this to assemble a complete log for Cloud Audit
// Logs and Google internal audit logs.
ScrubbedRequest *structpb.Struct `protobuf:"bytes,2,opt,name=scrubbed_request,json=scrubbedRequest,proto3" json:"scrubbed_request,omitempty"`
// An API response message that is scrubbed based on the method annotation.
// This field should only be filled if audit_log field is present.
// Service Control will use this to assemble a complete log for Cloud Audit
// Logs and Google internal audit logs.
ScrubbedResponse *structpb.Struct `protobuf:"bytes,3,opt,name=scrubbed_response,json=scrubbedResponse,proto3" json:"scrubbed_response,omitempty"`
// Number of scrubbed response items.
ScrubbedResponseItemCount int32 `` /* 141-byte string literal not displayed */
// Audit resource name which is scrubbed.
TargetResource string `protobuf:"bytes,5,opt,name=target_resource,json=targetResource,proto3" json:"target_resource,omitempty"`
// contains filtered or unexported fields
}
`AuditContext` provides information that is needed for audit logging.
func (*AuditContext) Descriptor
deprecated
func (*AuditContext) Descriptor() ([]byte, []int)
Deprecated: Use AuditContext.ProtoReflect.Descriptor instead.
func (*AuditContext) GetAuditLog ¶
func (x *AuditContext) GetAuditLog() []byte
func (*AuditContext) GetScrubbedRequest ¶
func (x *AuditContext) GetScrubbedRequest() *structpb.Struct
func (*AuditContext) GetScrubbedResponse ¶
func (x *AuditContext) GetScrubbedResponse() *structpb.Struct
func (*AuditContext) GetScrubbedResponseItemCount ¶
func (x *AuditContext) GetScrubbedResponseItemCount() int32
func (*AuditContext) GetTargetResource ¶
func (x *AuditContext) GetTargetResource() string
func (*AuditContext) ProtoMessage ¶
func (*AuditContext) ProtoMessage()
func (*AuditContext) ProtoReflect ¶
func (x *AuditContext) ProtoReflect() protoreflect.Message
func (*AuditContext) Reset ¶
func (x *AuditContext) Reset()
func (*AuditContext) String ¶
func (x *AuditContext) String() string
Click to show internal directories.
Click to hide internal directories.