Class: Google::Apis::ConnectorsV1::ConnectorsLogConfig

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

Overview

Log configuration for the connection.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConnectorsLogConfig

Returns a new instance of ConnectorsLogConfig.



1542
1543
1544
# File 'lib/google/apis/connectors_v1/classes.rb', line 1542

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

Instance Attribute Details

#enabledBoolean Also known as: enabled?

Enabled represents whether logging is enabled or not for a connection. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


1534
1535
1536
# File 'lib/google/apis/connectors_v1/classes.rb', line 1534

def enabled
  @enabled
end

#levelString

Optional. Log configuration level. Corresponds to the JSON property level

Returns:

  • (String)


1540
1541
1542
# File 'lib/google/apis/connectors_v1/classes.rb', line 1540

def level
  @level
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1547
1548
1549
1550
# File 'lib/google/apis/connectors_v1/classes.rb', line 1547

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