Class: Google::Apis::SqladminV1beta3::Flag
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::SqladminV1beta3::Flag
 
- 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
- 
  
    
      #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  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    For INTEGER flags, the maximum allowed value. 
- 
  
    
      #min_value  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    For INTEGER flags, the minimum allowed value. 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This is the name of the flag. 
- 
  
    
      #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
| 509 510 511 | # File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 509 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
| 473 474 475 | # File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 473 def allowed_string_values @allowed_string_values end | 
#applies_to ⇒ Array<String>
The database version this flag applies to. Currently this can only be [
MYSQL_5_5].
Corresponds to the JSON property appliesTo
| 479 480 481 | # File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 479 def applies_to @applies_to end | 
#kind ⇒ String
This is always sql#flag.
Corresponds to the JSON property kind
| 484 485 486 | # File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 484 def kind @kind end | 
#max_value ⇒ Fixnum
For INTEGER flags, the maximum allowed value.
Corresponds to the JSON property maxValue
| 489 490 491 | # File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 489 def max_value @max_value end | 
#min_value ⇒ Fixnum
For INTEGER flags, the minimum allowed value.
Corresponds to the JSON property minValue
| 494 495 496 | # File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 494 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
| 500 501 502 | # File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 500 def name @name 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
| 507 508 509 | # File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 507 def type @type end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 514 515 516 517 518 519 520 521 522 | # File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 514 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 |