Compute V1 Client - Class AuditLogConfig (1.20.0)

Reference documentation and code samples for the Compute V1 Client class AuditLogConfig.

Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:[email protected]" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting [email protected] from DATA_READ logging.

Generated from protobuf message google.cloud.compute.v1.AuditLogConfig

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ exempted_membersarray

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

↳ ignore_child_exemptionsbool
↳ log_typestring

The log type that this config enables. Check the LogType enum for the list of possible values.

getExemptedMembers

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setExemptedMembers

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

Parameter
NameDescription
varstring[]
Returns
TypeDescription
$this

getIgnoreChildExemptions

Generated from protobuf field optional bool ignore_child_exemptions = 70141850;

Returns
TypeDescription
bool

hasIgnoreChildExemptions

clearIgnoreChildExemptions

setIgnoreChildExemptions

Generated from protobuf field optional bool ignore_child_exemptions = 70141850;

Parameter
NameDescription
varbool
Returns
TypeDescription
$this

getLogType

The log type that this config enables.

Check the LogType enum for the list of possible values.

Returns
TypeDescription
string

hasLogType

clearLogType

setLogType

The log type that this config enables.

Check the LogType enum for the list of possible values.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this