Class: Google::Apis::IntegrationsV1::GoogleCloudConnectorsV1LogConfig

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

Overview

Log configuration for the connection.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudConnectorsV1LogConfig

Returns a new instance of GoogleCloudConnectorsV1LogConfig.



6168
6169
6170
# File 'lib/google/apis/integrations_v1/classes.rb', line 6168

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)


6160
6161
6162
# File 'lib/google/apis/integrations_v1/classes.rb', line 6160

def enabled
  @enabled
end

#levelString

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

Returns:

  • (String)


6166
6167
6168
# File 'lib/google/apis/integrations_v1/classes.rb', line 6166

def level
  @level
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6173
6174
6175
6176
# File 'lib/google/apis/integrations_v1/classes.rb', line 6173

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