Class: Google::Apis::SqladminV1::TruncateLogContext

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

Overview

Database Instance truncate log context.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TruncateLogContext

Returns a new instance of TruncateLogContext.



4184
4185
4186
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4184

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

Instance Attribute Details

#kindString

This is always sql#truncateLogContext. Corresponds to the JSON property kind

Returns:

  • (String)


4176
4177
4178
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4176

def kind
  @kind
end

#log_typeString

The type of log to truncate. Valid values are MYSQL_GENERAL_TABLE and MYSQL_SLOW_TABLE. Corresponds to the JSON property logType

Returns:

  • (String)


4182
4183
4184
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4182

def log_type
  @log_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4189
4190
4191
4192
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4189

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