Class: Google::Apis::DnsV1::ManagedZoneCloudLoggingConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dns_v1/classes.rb,
lib/google/apis/dns_v1/representations.rb,
lib/google/apis/dns_v1/representations.rb

Overview

Cloud Logging configurations for publicly visible zones.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ManagedZoneCloudLoggingConfig

Returns a new instance of ManagedZoneCloudLoggingConfig.



928
929
930
# File 'lib/google/apis/dns_v1/classes.rb', line 928

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#enable_loggingBoolean Also known as: enable_logging?

If set, enable query logging for this ManagedZone. False by default, making logging opt-in. Corresponds to the JSON property enableLogging

Returns:

  • (Boolean)


920
921
922
# File 'lib/google/apis/dns_v1/classes.rb', line 920

def enable_logging
  @enable_logging
end

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


926
927
928
# File 'lib/google/apis/dns_v1/classes.rb', line 926

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



933
934
935
936
# File 'lib/google/apis/dns_v1/classes.rb', line 933

def update!(**args)
  @enable_logging = args[:enable_logging] if args.key?(:enable_logging)
  @kind = args[:kind] if args.key?(:kind)
end