Google API Common Protos V1 Client - Class AuditLogConfig (4.12.3)

Reference documentation and code samples for the Google API Common Protos V1 Client class AuditLogConfig.

Provides the configuration for logging a type of permissions.

Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.

Generated from protobuf message google.iam.v1.AuditLogConfig

Namespace

Google \ Cloud \ Iam \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ log_type
int

The log type that this config enables.

↳ exempted_members
array

Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members .

getLogType

The log type that this config enables.

Returns
Type
Description
int

setLogType

The log type that this config enables.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getExemptedMembers

Specifies the identities that do not cause logging for this type of permission.

Follows the same format of Binding.members .

Returns
Type
Description

setExemptedMembers

Specifies the identities that do not cause logging for this type of permission.

Follows the same format of Binding.members .

Parameter
Name
Description
var
string[]
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: