Class: Google::Apis::MigrationcenterV1::MySqlProperty

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

Overview

MySql property.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MySqlProperty

Returns a new instance of MySqlProperty.



3558
3559
3560
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3558

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

Instance Attribute Details

#enabledBoolean Also known as: enabled?

Required. The property is enabled. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


3545
3546
3547
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3545

def enabled
  @enabled
end

#numeric_valueFixnum

Required. The property numeric value. Corresponds to the JSON property numericValue

Returns:

  • (Fixnum)


3551
3552
3553
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3551

def numeric_value
  @numeric_value
end

#propertyString

Required. The property name. Corresponds to the JSON property property

Returns:

  • (String)


3556
3557
3558
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3556

def property
  @property
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3563
3564
3565
3566
3567
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3563

def update!(**args)
  @enabled = args[:enabled] if args.key?(:enabled)
  @numeric_value = args[:numeric_value] if args.key?(:numeric_value)
  @property = args[:property] if args.key?(:property)
end