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 | |
---|---|
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.
Generated from protobuf field optional bool enable = 311764355;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
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.
Generated from protobuf field optional string filter = 336120696;
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.
Generated from protobuf field optional string filter = 336120696;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |