Class: Google::Apis::MigrationcenterV1alpha1::MySqlVariable

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

Overview

MySql variable.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MySqlVariable

Returns a new instance of MySqlVariable.



5886
5887
5888
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5886

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

Instance Attribute Details

#categoryString

Required. The variable category. Corresponds to the JSON property category

Returns:

  • (String)


5874
5875
5876
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5874

def category
  @category
end

#valueString

Required. The variable value. Corresponds to the JSON property value

Returns:

  • (String)


5879
5880
5881
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5879

def value
  @value
end

#variableString

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

Returns:

  • (String)


5884
5885
5886
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5884

def variable
  @variable
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5891
5892
5893
5894
5895
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5891

def update!(**args)
  @category = args[:category] if args.key?(:category)
  @value = args[:value] if args.key?(:value)
  @variable = args[:variable] if args.key?(:variable)
end