Class: Google::Apis::SqladminV1beta4::Flag
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1beta4::Flag
- 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
A Google Cloud SQL service flag resource.
Instance Attribute Summary collapse
-
#allowed_string_values ⇒ Array<String>
For STRING flags, a list of strings that the value can be set to.
-
#applies_to ⇒ Array<String>
The database version this flag applies to.
-
#kind ⇒ String
This is always sql#flag.
-
#max_value ⇒ String
For INTEGER flags, the maximum allowed value.
-
#min_value ⇒ String
For INTEGER flags, the minimum allowed value.
-
#name ⇒ String
This is the name of the flag.
-
#requires_restart ⇒ Boolean
(also: #requires_restart?)
Indicates whether changing this flag will trigger a database restart.
-
#type ⇒ String
The type of the flag.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Flag
constructor
A new instance of Flag.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Flag
Returns a new instance of Flag.
800 801 802 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 800 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed_string_values ⇒ Array<String>
For STRING flags, a list of strings that the value can be set to.
Corresponds to the JSON property allowedStringValues
757 758 759 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 757 def allowed_string_values @allowed_string_values end |
#applies_to ⇒ Array<String>
The database version this flag applies to. Can be MYSQL_5_5, MYSQL_5_6, or
MYSQL_5_7. MYSQL_5_7 is applicable only to Second Generation instances.
Corresponds to the JSON property appliesTo
763 764 765 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 763 def applies_to @applies_to end |
#kind ⇒ String
This is always sql#flag.
Corresponds to the JSON property kind
768 769 770 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 768 def kind @kind end |
#max_value ⇒ String
For INTEGER flags, the maximum allowed value.
Corresponds to the JSON property maxValue
773 774 775 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 773 def max_value @max_value end |
#min_value ⇒ String
For INTEGER flags, the minimum allowed value.
Corresponds to the JSON property minValue
778 779 780 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 778 def min_value @min_value end |
#name ⇒ String
This is the name of the flag. Flag names always use underscores, not hyphens,
e.g. max_allowed_packet
Corresponds to the JSON property name
784 785 786 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 784 def name @name end |
#requires_restart ⇒ Boolean Also known as: requires_restart?
Indicates whether changing this flag will trigger a database restart. Only
applicable to Second Generation instances.
Corresponds to the JSON property requiresRestart
790 791 792 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 790 def requires_restart @requires_restart end |
#type ⇒ String
The type of the flag. Flags are typed to being BOOLEAN, STRING, INTEGER or
NONE. NONE is used for flags which do not take a value, such as
skip_grant_tables.
Corresponds to the JSON property type
798 799 800 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 798 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
805 806 807 808 809 810 811 812 813 814 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 805 def update!(**args) @allowed_string_values = args[:allowed_string_values] if args.key?(:allowed_string_values) @applies_to = args[:applies_to] if args.key?(:applies_to) @kind = args[:kind] if args.key?(:kind) @max_value = args[:max_value] if args.key?(:max_value) @min_value = args[:min_value] if args.key?(:min_value) @name = args[:name] if args.key?(:name) @requires_restart = args[:requires_restart] if args.key?(:requires_restart) @type = args[:type] if args.key?(:type) end |