AuditLog

com.google.cloud.audit.audit_log.AuditLog
See theAuditLog companion object
final case class AuditLog(serviceName: String, methodName: String, resourceName: String, resourceLocation: Option[ResourceLocation], resourceOriginalState: Option[Struct], numResponseItems: Long, status: Option[Status], authenticationInfo: Option[AuthenticationInfo], authorizationInfo: Seq[AuthorizationInfo], policyViolationInfo: Option[PolicyViolationInfo], requestMetadata: Option[RequestMetadata], request: Option[Struct], response: Option[Struct], metadata: Option[Struct], serviceData: Option[Any], unknownFields: UnknownFieldSet) extends GeneratedMessage with Updatable[AuditLog]

Common audit log format for Google Cloud Platform API operations.

Attributes

authenticationInfo

Authentication information.

authorizationInfo

Authorization information. If there are multiple resources or permissions involved, then there is one AuthorizationInfo element for each {resource, permission} tuple.

metadata

Other service-specific data about the request, response, and other information associated with the current audited event.

methodName

The name of the service method or operation. For API calls, this should be the name of the API method. For example, "google.cloud.bigquery.v2.TableService.InsertTable" "google.logging.v2.ConfigServiceV2.CreateSink"

numResponseItems

The number of items returned from a List or Query API method, if applicable.

policyViolationInfo

Indicates the policy violations for this request. If the request is denied by the policy, violation information will be logged here.

request

The operation request. This may not include all request parameters, such as those that are too large, privacy-sensitive, or duplicated elsewhere in the log record. It should never include user-generated data, such as file contents. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

requestMetadata

Metadata about the operation.

resourceLocation

The resource location information.

resourceName

The resource or collection that is the target of the operation. The name is a scheme-less URI, not including the API service name. For example: "projects/PROJECT_ID/zones/us-central1-a/instances" "projects/PROJECT_ID/datasets/DATASET_ID"

resourceOriginalState

The resource's original state before mutation. Present only for operations which have successfully modified the targeted resource(s). In general, this field should contain all changed fields, except those that are already been included in request, response, metadata or service_data fields. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

response

The operation response. This may not include all response elements, such as those that are too large, privacy-sensitive, or duplicated elsewhere in the log record. It should never include user-generated data, such as file contents. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

serviceData

Deprecated. Use the metadata field instead. Other service-specific data about the request, response, and other activities.

serviceName

The name of the API service performing the operation. For example, "compute.googleapis.com".

status

The status of the overall operation.

Companion:
object
Source:
AuditLog.scala
Graph
Supertypes
trait Updatable[AuditLog]
trait GeneratedMessage
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

Attributes

Source:
AuditLog.scala

Attributes

Source:
AuditLog.scala

Attributes

Source:
AuditLog.scala
def getField(`__field`: FieldDescriptor): PValue

Attributes

Source:
AuditLog.scala
def getFieldByNumber(`__fieldNumber`: Int): Any

Attributes

Source:
AuditLog.scala

Attributes

Source:
AuditLog.scala

Attributes

Source:
AuditLog.scala

Attributes

Source:
AuditLog.scala

Attributes

Source:
AuditLog.scala

Attributes

Source:
AuditLog.scala
override def serializedSize: Int

Attributes

Definition Classes
GeneratedMessage
Source:
AuditLog.scala

Returns a human-readable ASCII format representation of this message.

Returns a human-readable ASCII format representation of this message.

The original message can be decoded from this format by using fromAscii on the companion object.

Attributes

Returns:

human-readable representation of this message.

Source:
AuditLog.scala

Attributes

Source:
AuditLog.scala

Attributes

Source:
AuditLog.scala

Attributes

Source:
AuditLog.scala

Attributes

Source:
AuditLog.scala

Attributes

Source:
AuditLog.scala

Attributes

Source:
AuditLog.scala

Attributes

Source:
AuditLog.scala

Attributes

Source:
AuditLog.scala

Attributes

Source:
AuditLog.scala
def withUnknownFields(`__v`: UnknownFieldSet): AuditLog

Attributes

Source:
AuditLog.scala
def writeTo(`_output__`: CodedOutputStream): Unit

Serializes the message into the given coded output stream

Serializes the message into the given coded output stream

Attributes

Source:
AuditLog.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
final def toByteArray: Array[Byte]

Serializes the message and returns a byte array containing its raw bytes

Serializes the message and returns a byte array containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
Source:
GeneratedMessageCompanion.scala
final def toByteString: ByteString

Serializes the message and returns a ByteString containing its raw bytes

Serializes the message and returns a ByteString containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
Source:
GeneratedMessageCompanion.scala
final def toPMessage: PMessage

Attributes

Inherited from:
GeneratedMessage
Source:
GeneratedMessageCompanion.scala
def update(ms: Lens[AuditLog, AuditLog] => () => AuditLog*): A

Attributes

Inherited from:
Updatable
Source:
Lenses.scala
final def writeDelimitedTo(output: OutputStream): Unit

Attributes

Inherited from:
GeneratedMessage
Source:
GeneratedMessageCompanion.scala
final def writeTo(output: OutputStream): Unit

Serializes the message into the given output stream

Serializes the message into the given output stream

Attributes

Inherited from:
GeneratedMessage
Source:
GeneratedMessageCompanion.scala