Compute V1 Client - Class AuditLogConfig (1.5.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: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.cloud.compute.v1.AuditLogConfig

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ exempted_members array

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

↳ ignore_child_exemptions bool

This is deprecated and has no effect. Do not use.

↳ log_type string

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.

Generated from protobuf field repeated string exempted_members = 232615576;

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.

Generated from protobuf field repeated string exempted_members = 232615576;

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getIgnoreChildExemptions

This is deprecated and has no effect. Do not use.

Generated from protobuf field optional bool ignore_child_exemptions = 70141850;

Returns
TypeDescription
bool

hasIgnoreChildExemptions

clearIgnoreChildExemptions

setIgnoreChildExemptions

This is deprecated and has no effect. Do not use.

Generated from protobuf field optional bool ignore_child_exemptions = 70141850;

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getLogType

The log type that this config enables.

Check the LogType enum for the list of possible values.

Generated from protobuf field optional string log_type = 403115861;

Returns
TypeDescription
string

hasLogType

clearLogType

setLogType

The log type that this config enables.

Check the LogType enum for the list of possible values.

Generated from protobuf field optional string log_type = 403115861;

Parameter
NameDescription
var string
Returns
TypeDescription
$this