Class: Google::Apis::SqladminV1::TruncateLogContext
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1::TruncateLogContext
- 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
-
#kind ⇒ String
This is always
sql#truncateLogContext
. -
#log_type ⇒ String
The type of log to truncate.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TruncateLogContext
constructor
A new instance of TruncateLogContext.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TruncateLogContext
Returns a new instance of TruncateLogContext.
4775 4776 4777 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4775 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
This is always sql#truncateLogContext
.
Corresponds to the JSON property kind
4767 4768 4769 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4767 def kind @kind end |
#log_type ⇒ String
The type of log to truncate. Valid values are MYSQL_GENERAL_TABLE
and
MYSQL_SLOW_TABLE
.
Corresponds to the JSON property logType
4773 4774 4775 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4773 def log_type @log_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4780 4781 4782 4783 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 4780 def update!(**args) @kind = args[:kind] if args.key?(:kind) @log_type = args[:log_type] if args.key?(:log_type) end |