Class: Google::Apis::MigrationcenterV1alpha1::MySqlProperty
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::MySqlProperty
- 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 property.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean
(also: #enabled?)
Required.
-
#numeric_value ⇒ Fixnum
Required.
-
#property ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MySqlProperty
constructor
A new instance of MySqlProperty.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MySqlProperty
Returns a new instance of MySqlProperty.
4253 4254 4255 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4253 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enabled ⇒ Boolean Also known as: enabled?
Required. The property is enabled.
Corresponds to the JSON property enabled
4240 4241 4242 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4240 def enabled @enabled end |
#numeric_value ⇒ Fixnum
Required. The property numeric value.
Corresponds to the JSON property numericValue
4246 4247 4248 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4246 def numeric_value @numeric_value end |
#property ⇒ String
Required. The property name.
Corresponds to the JSON property property
4251 4252 4253 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4251 def property @property end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4258 4259 4260 4261 4262 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4258 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 |