Reference documentation and code samples for the Google API Common Protos Client class AuditContext.
AuditContext
provides information that is needed for audit logging.
Generated from protobuf message google.rpc.context.AuditContext
Namespace
Google \ Rpc \ ContextMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ audit_log
string
Serialized audit log.
↳ scrubbed_request
Google\Protobuf\Struct
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.
↳ scrubbed_response
Google\Protobuf\Struct
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.
↳ scrubbed_response_item_count
int
Number of scrubbed response items.
↳ target_resource
string
Audit resource name which is scrubbed.
getAuditLog
Serialized audit log.
string
setAuditLog
Serialized audit log.
var
string
$this
getScrubbedRequest
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.
hasScrubbedRequest
clearScrubbedRequest
setScrubbedRequest
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.
$this
getScrubbedResponse
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.
hasScrubbedResponse
clearScrubbedResponse
setScrubbedResponse
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.
$this
getScrubbedResponseItemCount
Number of scrubbed response items.
int
setScrubbedResponseItemCount
Number of scrubbed response items.
var
int
$this
getTargetResource
Audit resource name which is scrubbed.
string
setTargetResource
Audit resource name which is scrubbed.
var
string
$this