Compute V1 Client - Class RouterNatLogConfig (1.5.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

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.

Generated from protobuf field optional bool enable = 311764355;

Returns
TypeDescription
bool

hasEnable

clearEnable

setEnable

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

Generated from protobuf field optional bool enable = 311764355;

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.

Generated from protobuf field optional string filter = 336120696;

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.

Generated from protobuf field optional string filter = 336120696;

Parameter
NameDescription
var string
Returns
TypeDescription
$this