Class: Google::Apis::AlloydbV1beta::SupportedDatabaseFlag

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SupportedDatabaseFlag

Returns a new instance of SupportedDatabaseFlag.



2725
2726
2727
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2725

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

Instance Attribute Details

#accepts_multiple_valuesBoolean 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

Returns:

  • (Boolean)


2680
2681
2682
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2680

def accepts_multiple_values
  @accepts_multiple_values
end

#flag_nameString

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

Returns:

  • (String)


2687
2688
2689
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2687

def flag_name
  @flag_name
end

#integer_restrictionsGoogle::Apis::AlloydbV1beta::IntegerRestrictions

Restrictions on INTEGER type values. Corresponds to the JSON property integerRestrictions



2692
2693
2694
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2692

def integer_restrictions
  @integer_restrictions
end

#nameString

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

Returns:

  • (String)


2699
2700
2701
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2699

def name
  @name
end

#requires_db_restartBoolean 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

Returns:

  • (Boolean)


2707
2708
2709
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2707

def requires_db_restart
  @requires_db_restart
end

#string_restrictionsGoogle::Apis::AlloydbV1beta::StringRestrictions

Restrictions on STRING type values Corresponds to the JSON property stringRestrictions



2713
2714
2715
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2713

def string_restrictions
  @string_restrictions
end

#supported_db_versionsArray<String>

Major database engine versions for which this flag is supported. Corresponds to the JSON property supportedDbVersions

Returns:

  • (Array<String>)


2718
2719
2720
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2718

def supported_db_versions
  @supported_db_versions
end

#value_typeString

Corresponds to the JSON property valueType

Returns:

  • (String)


2723
2724
2725
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2723

def value_type
  @value_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2730

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