Class: Google::Apis::MigrationcenterV1alpha1::PostgreSqlProperty

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

PostgreSql property.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PostgreSqlProperty

Returns a new instance of PostgreSqlProperty.



6734
6735
6736
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6734

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)


6721
6722
6723
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6721

def enabled
  @enabled
end

#numeric_valueFixnum

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

Returns:

  • (Fixnum)


6727
6728
6729
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6727

def numeric_value
  @numeric_value
end

#propertyString

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

Returns:

  • (String)


6732
6733
6734
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6732

def property
  @property
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6739
6740
6741
6742
6743
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6739

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