Class: Google::Apis::SqlV1beta4::TruncateLogContext

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

Overview

Database Instance truncate log context.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TruncateLogContext

Returns a new instance of TruncateLogContext.



2836
2837
2838
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 2836

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

Instance Attribute Details

#kindString

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

Returns:

  • (String)


2828
2829
2830
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 2828

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)


2834
2835
2836
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 2834

def log_type
  @log_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2841
2842
2843
2844
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 2841

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