Class: Google::Apis::AlloydbV1beta::SupportedDatabaseFlag
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1beta::SupportedDatabaseFlag
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alloydb_v1beta/classes.rb,
lib/google/apis/alloydb_v1beta/representations.rb,
lib/google/apis/alloydb_v1beta/representations.rb
Overview
SupportedDatabaseFlag gives general information about a database flag, like type and allowed values. This is a static value that is defined on the server side, and it cannot be modified by callers. To set the Database flags on a particular Instance, a caller should modify the Instance.database_flags field.
Instance Attribute Summary collapse
-
#accepts_multiple_values ⇒ Boolean
(also: #accepts_multiple_values?)
Whether the database flag accepts multiple values.
-
#flag_name ⇒ String
The name of the database flag, e.g.
-
#integer_restrictions ⇒ Google::Apis::AlloydbV1beta::IntegerRestrictions
Restrictions on INTEGER type values.
-
#name ⇒ String
The name of the flag resource, following Google Cloud conventions, e.g.: * projects/
project
/locations/location
/flags/flag
This field currently has no semantic meaning. -
#requires_db_restart ⇒ Boolean
(also: #requires_db_restart?)
Whether setting or updating this flag on an Instance requires a database restart.
-
#string_restrictions ⇒ Google::Apis::AlloydbV1beta::StringRestrictions
Restrictions on STRING type values Corresponds to the JSON property
stringRestrictions
. -
#supported_db_versions ⇒ Array<String>
Major database engine versions for which this flag is supported.
-
#value_type ⇒ String
Corresponds to the JSON property
valueType
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SupportedDatabaseFlag
constructor
A new instance of SupportedDatabaseFlag.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SupportedDatabaseFlag
Returns a new instance of SupportedDatabaseFlag.
3313 3314 3315 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3313 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accepts_multiple_values ⇒ Boolean Also known as: accepts_multiple_values?
Whether the database flag accepts multiple values. If true, a comma-separated
list of stringified values may be specified.
Corresponds to the JSON property acceptsMultipleValues
3268 3269 3270 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3268 def accepts_multiple_values @accepts_multiple_values end |
#flag_name ⇒ String
The name of the database flag, e.g. "max_allowed_packets". The is a possibly
key for the Instance.database_flags map field.
Corresponds to the JSON property flagName
3275 3276 3277 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3275 def flag_name @flag_name end |
#integer_restrictions ⇒ Google::Apis::AlloydbV1beta::IntegerRestrictions
Restrictions on INTEGER type values.
Corresponds to the JSON property integerRestrictions
3280 3281 3282 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3280 def integer_restrictions @integer_restrictions end |
#name ⇒ String
The name of the flag resource, following Google Cloud conventions, e.g.: *
projects/project
/locations/location
/flags/flag
This field currently has
no semantic meaning.
Corresponds to the JSON property name
3287 3288 3289 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3287 def name @name end |
#requires_db_restart ⇒ Boolean Also known as: requires_db_restart?
Whether setting or updating this flag on an Instance requires a database
restart. If a flag that requires database restart is set, the backend will
automatically restart the database (making sure to satisfy any availability
SLO's).
Corresponds to the JSON property requiresDbRestart
3295 3296 3297 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3295 def requires_db_restart @requires_db_restart end |
#string_restrictions ⇒ Google::Apis::AlloydbV1beta::StringRestrictions
Restrictions on STRING type values
Corresponds to the JSON property stringRestrictions
3301 3302 3303 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3301 def string_restrictions @string_restrictions end |
#supported_db_versions ⇒ Array<String>
Major database engine versions for which this flag is supported.
Corresponds to the JSON property supportedDbVersions
3306 3307 3308 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3306 def supported_db_versions @supported_db_versions end |
#value_type ⇒ String
Corresponds to the JSON property valueType
3311 3312 3313 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3311 def value_type @value_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3318 def update!(**args) @accepts_multiple_values = args[:accepts_multiple_values] if args.key?(:accepts_multiple_values) @flag_name = args[:flag_name] if args.key?(:flag_name) @integer_restrictions = args[:integer_restrictions] if args.key?(:integer_restrictions) @name = args[:name] if args.key?(:name) @requires_db_restart = args[:requires_db_restart] if args.key?(:requires_db_restart) @string_restrictions = args[:string_restrictions] if args.key?(:string_restrictions) @supported_db_versions = args[:supported_db_versions] if args.key?(:supported_db_versions) @value_type = args[:value_type] if args.key?(:value_type) end |