public sealed class AuditConfig : Protobuf.IMessage<AuditConfig>, Protobuf.IBufferMessage
Specifies the audit configuration for a service.
The configuration determines which permission types are logged, and what
identities, if any, are exempted from logging.
An AuditConfig must have one or more AuditLogConfigs.
If there are AuditConfigs for both allServices and a specific service,
the union of the two AuditConfigs is used for that service: the log_types
specified in each AuditConfig are enabled, and the exempted_members in each
AuditLogConfig are exempted.
For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
logging. It also exempts jose@example.com from DATA_READ logging, and
aliya@example.com from DATA_WRITE logging.
Specifies a service that will be enabled for audit logging.
For example, storage.googleapis.com, cloudsql.googleapis.com.
allServices is a special value that covers all services.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003e\u003ccode\u003eAuditConfig\u003c/code\u003e is a class that specifies the audit configuration for a service, determining which permission types are logged and which identities are exempted from logging.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eAuditConfig\u003c/code\u003e is version 3.4.0, with multiple previous versions available, including 2.4.0, 3.3.0, 3.2.0, 3.1.0, 3.0.0, 2.3.0, and 2.2.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAuditConfig\u003c/code\u003e uses \u003ccode\u003eAuditLogConfigs\u003c/code\u003e to configure logging for different permission types and can specify exempted members for each log type, and the combination of multiple \u003ccode\u003eAuditConfigs\u003c/code\u003e is possible, particularly with an \u003ccode\u003eallServices\u003c/code\u003e service.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements \u003ccode\u003eProtobuf.IMessage<AuditConfig>\u003c/code\u003e and \u003ccode\u003eProtobuf.IBufferMessage\u003c/code\u003e, and it inherits from the base class \u003ccode\u003eObject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAuditConfig\u003c/code\u003e class includes properties for \u003ccode\u003eAuditLogConfigs\u003c/code\u003e which is a collection that specifies the logging configuration for each type of permission and \u003ccode\u003eService\u003c/code\u003e which specifies the service to be audited.\u003c/p\u003e\n"]]],[],null,[]]