Compute V1 Client - Class RouterNatLogConfig (1.12.1)

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

Configuration of logging on a NAT.

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ enable bool

Indicates whether or not to export logs. This is false by default.

↳ filter string

Specify the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. This option can take one of the following values: - ERRORS_ONLY: Export logs only for connection failures. - TRANSLATIONS_ONLY: Export logs only for successful connections. - ALL: Export logs for all connections, successful and unsuccessful. Check the Filter enum for the list of possible values.

getEnable

Indicates whether or not to export logs. This is false by default.

Returns
TypeDescription
bool

hasEnable

clearEnable

setEnable

Indicates whether or not to export logs. This is false by default.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getFilter

Specify the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. This option can take one of the following values: - ERRORS_ONLY: Export logs only for connection failures. - TRANSLATIONS_ONLY: Export logs only for successful connections. - ALL: Export logs for all connections, successful and unsuccessful.

Check the Filter enum for the list of possible values.

Returns
TypeDescription
string

hasFilter

clearFilter

setFilter

Specify the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. This option can take one of the following values: - ERRORS_ONLY: Export logs only for connection failures. - TRANSLATIONS_ONLY: Export logs only for successful connections. - ALL: Export logs for all connections, successful and unsuccessful.

Check the Filter enum for the list of possible values.

Parameter
NameDescription
var string
Returns
TypeDescription
$this