Compute V1 Client - Class RouterNatLogConfig (1.14.0)

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
Name
Description
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
Type
Description
bool

hasEnable

clearEnable

setEnable

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

Parameter
Name
Description
var
bool
Returns
Type
Description
$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
Type
Description
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
Name
Description
var
string
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: