class Google::Apis::ComputeBeta::RouterNatLogConfig

Configuration of logging on a NAT.

Attributes

enable[RW]

Indicates whether or not to export logs. This is false by default. Corresponds to the JSON property `enable` @return [Boolean]

enable?[RW]

Indicates whether or not to export logs. This is false by default. Corresponds to the JSON property `enable` @return [Boolean]

filter[RW]

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. Corresponds to the JSON property `filter` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/compute_beta/classes.rb, line 29994
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/compute_beta/classes.rb, line 29999
def update!(**args)
  @enable = args[:enable] if args.key?(:enable)
  @filter = args[:filter] if args.key?(:filter)
end