Class: Google::Apis::SqladminV1beta4::TruncateLogContext
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1beta4::TruncateLogContext
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/sqladmin_v1beta4/classes.rb,
generated/google/apis/sqladmin_v1beta4/representations.rb,
generated/google/apis/sqladmin_v1beta4/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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TruncateLogContext
Returns a new instance of TruncateLogContext
2371 2372 2373 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 2371 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
This is always sql#truncateLogContext.
Corresponds to the JSON property kind
2363 2364 2365 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 2363 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
2369 2370 2371 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 2369 def log_type @log_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2376 2377 2378 2379 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 2376 def update!(**args) @kind = args[:kind] if args.key?(:kind) @log_type = args[:log_type] if args.key?(:log_type) end |