Class: Google::Apis::SqladminV1beta3::Flag

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/sqladmin_v1beta3/classes.rb,
generated/google/apis/sqladmin_v1beta3/representations.rb,
generated/google/apis/sqladmin_v1beta3/representations.rb

Overview

A Google Cloud SQL service flag resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Flag

Returns a new instance of Flag



492
493
494
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 492

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

Instance Attribute Details

#allowed_string_valuesArray<String>

For STRING flags, a list of strings that the value can be set to. Corresponds to the JSON property allowedStringValues

Returns:

  • (Array<String>)


456
457
458
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 456

def allowed_string_values
  @allowed_string_values
end

#applies_toArray<String>

The database version this flag applies to. Currently this can only be [ MYSQL_5_5]. Corresponds to the JSON property appliesTo

Returns:

  • (Array<String>)


462
463
464
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 462

def applies_to
  @applies_to
end

#kindString

This is always sql#flag. Corresponds to the JSON property kind

Returns:

  • (String)


467
468
469
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 467

def kind
  @kind
end

#max_valueFixnum

For INTEGER flags, the maximum allowed value. Corresponds to the JSON property maxValue

Returns:

  • (Fixnum)


472
473
474
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 472

def max_value
  @max_value
end

#min_valueFixnum

For INTEGER flags, the minimum allowed value. Corresponds to the JSON property minValue

Returns:

  • (Fixnum)


477
478
479
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 477

def min_value
  @min_value
end

#nameString

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

Returns:

  • (String)


483
484
485
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 483

def name
  @name
end

#typeString

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

Returns:

  • (String)


490
491
492
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 490

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



497
498
499
500
501
502
503
504
505
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 497

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)
  @type = args[:type] if args.key?(:type)
end