public RepeatedField<AuthorizationInfo> AuthorizationInfo { get; }
Authorization information. If there are multiple
resources or permissions involved, then there is
one AuthorizationInfo element for each {resource, permission} tuple.
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.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eAuditLog\u003c/code\u003e class, part of the Google Cloud Audit API, provides a common format for logging API operations within Google Cloud Platform, and the latest version is 2.5.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAuditLog\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing a structured way to represent audit log data.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eAuditLog\u003c/code\u003e class include \u003ccode\u003eAuthenticationInfo\u003c/code\u003e, \u003ccode\u003eAuthorizationInfo\u003c/code\u003e, \u003ccode\u003eRequest\u003c/code\u003e, \u003ccode\u003eResponse\u003c/code\u003e, and \u003ccode\u003eStatus\u003c/code\u003e, which capture details about the authenticated user, permissions, request and response data, and the overall status of the operation.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties for service-specific data, \u003ccode\u003eMetadata\u003c/code\u003e and \u003ccode\u003eServiceData\u003c/code\u003e, and the \u003ccode\u003eMethodName\u003c/code\u003e and \u003ccode\u003eServiceName\u003c/code\u003e properties identify the API method and service involved in the operation.\u003c/p\u003e\n"],["\u003cp\u003eThe class contains a number of properties related to the target of the operation such as the \u003ccode\u003eResourceName\u003c/code\u003e and \u003ccode\u003eResourceLocation\u003c/code\u003e, as well as the \u003ccode\u003eNumResponseItems\u003c/code\u003e to provide information on the amount of items returned in the operation.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Audit API - Class AuditLog (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit.AuditLog)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Audit/2.4.0/Google.Cloud.Audit.AuditLog)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Audit/2.3.0/Google.Cloud.Audit.AuditLog)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Audit/2.2.0/Google.Cloud.Audit.AuditLog)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Audit/2.1.0/Google.Cloud.Audit.AuditLog)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Audit/2.0.0/Google.Cloud.Audit.AuditLog)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Audit/1.1.0/Google.Cloud.Audit.AuditLog)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Audit/1.0.0/Google.Cloud.Audit.AuditLog) \n\n public sealed class AuditLog : IMessage\u003cAuditLog\u003e, IEquatable\u003cAuditLog\u003e, IDeepCloneable\u003cAuditLog\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Audit API class AuditLog.\n\nCommon audit log format for Google Cloud Platform API operations. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AuditLog \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AuditLog](/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit.AuditLog), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AuditLog](/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit.AuditLog), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AuditLog](/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit.AuditLog), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Audit](/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit)\n\nAssembly\n--------\n\nGoogle.Cloud.Audit.dll\n\nConstructors\n------------\n\n### AuditLog()\n\n public AuditLog()\n\n### AuditLog(AuditLog)\n\n public AuditLog(AuditLog other)\n\nProperties\n----------\n\n### AuthenticationInfo\n\n public AuthenticationInfo AuthenticationInfo { get; set; }\n\nAuthentication information.\n\n### AuthorizationInfo\n\n public RepeatedField\u003cAuthorizationInfo\u003e AuthorizationInfo { get; }\n\nAuthorization information. If there are multiple\nresources or permissions involved, then there is\none AuthorizationInfo element for each {resource, permission} tuple.\n\n### Metadata\n\n public Struct Metadata { get; set; }\n\nOther service-specific data about the request, response, and other\ninformation associated with the current audited event.\n\n### MethodName\n\n public string MethodName { get; set; }\n\nThe name of the service method or operation.\nFor API calls, this should be the name of the API method.\nFor example, \n\n \"google.cloud.bigquery.v2.TableService.InsertTable\"\n \"google.logging.v2.ConfigServiceV2.CreateSink\"\n\n### NumResponseItems\n\n public long NumResponseItems { get; set; }\n\nThe number of items returned from a List or Query API method,\nif applicable.\n\n### PolicyViolationInfo\n\n public PolicyViolationInfo PolicyViolationInfo { get; set; }\n\nIndicates the policy violations for this request. If the request\nis denied by the policy, violation information will be logged\nhere.\n\n### Request\n\n public Struct Request { get; set; }\n\nThe operation request. This may not include all request parameters,\nsuch as those that are too large, privacy-sensitive, or duplicated\nelsewhere in the log record.\nIt should never include user-generated data, such as file contents.\nWhen the JSON object represented here has a proto equivalent, the proto\nname will be indicated in the `@type` property.\n\n### RequestMetadata\n\n public RequestMetadata RequestMetadata { get; set; }\n\nMetadata about the operation.\n\n### ResourceLocation\n\n public ResourceLocation ResourceLocation { get; set; }\n\nThe resource location information.\n\n### ResourceName\n\n public string ResourceName { get; set; }\n\nThe resource or collection that is the target of the operation.\nThe name is a scheme-less URI, not including the API service name.\nFor example: \n\n \"projects/PROJECT_ID/zones/us-central1-a/instances\"\n \"projects/PROJECT_ID/datasets/DATASET_ID\"\n\n### ResourceOriginalState\n\n public Struct ResourceOriginalState { get; set; }\n\nThe resource's original state before mutation. Present only for\noperations which have successfully modified the targeted resource(s).\nIn general, this field should contain all changed fields, except those\nthat are already been included in `request`, `response`, `metadata` or\n`service_data` fields.\nWhen the JSON object represented here has a proto equivalent,\nthe proto name will be indicated in the `@type` property.\n\n### Response\n\n public Struct Response { get; set; }\n\nThe operation response. This may not include all response elements,\nsuch as those that are too large, privacy-sensitive, or duplicated\nelsewhere in the log record.\nIt should never include user-generated data, such as file contents.\nWhen the JSON object represented here has a proto equivalent, the proto\nname will be indicated in the `@type` property.\n\n### ServiceData\n\n [Obsolete]\n public Any ServiceData { get; set; }\n\nDeprecated. Use the `metadata` field instead.\nOther service-specific data about the request, response, and other\nactivities.\n\n### ServiceName\n\n public string ServiceName { get; set; }\n\nThe name of the API service performing the operation. For example,\n`\"compute.googleapis.com\"`.\n\n### Status\n\n public Status Status { get; set; }\n\nThe status of the overall operation."]]