Class: Google::Apis::MigrationcenterV1alpha1::PostgreSqlSetting

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 setting.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PostgreSqlSetting

Returns a new instance of PostgreSqlSetting.



4871
4872
4873
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4871

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

Instance Attribute Details

#bool_valueBoolean Also known as: bool_value?

Required. The setting boolean value. Corresponds to the JSON property boolValue

Returns:

  • (Boolean)


4837
4838
4839
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4837

def bool_value
  @bool_value
end

#int_valueFixnum

Required. The setting int value. Corresponds to the JSON property intValue

Returns:

  • (Fixnum)


4843
4844
4845
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4843

def int_value
  @int_value
end

#real_valueFloat

Required. The setting real value. Corresponds to the JSON property realValue

Returns:

  • (Float)


4848
4849
4850
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4848

def real_value
  @real_value
end

#settingString

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

Returns:

  • (String)


4853
4854
4855
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4853

def setting
  @setting
end

#sourceString

Required. The setting source. Corresponds to the JSON property source

Returns:

  • (String)


4858
4859
4860
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4858

def source
  @source
end

#string_valueString

Required. The setting string value. Notice that enum values are stored as strings. Corresponds to the JSON property stringValue

Returns:

  • (String)


4864
4865
4866
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4864

def string_value
  @string_value
end

#unitString

Optional. The setting unit. Corresponds to the JSON property unit

Returns:

  • (String)


4869
4870
4871
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4869

def unit
  @unit
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4876
4877
4878
4879
4880
4881
4882
4883
4884
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4876

def update!(**args)
  @bool_value = args[:bool_value] if args.key?(:bool_value)
  @int_value = args[:int_value] if args.key?(:int_value)
  @real_value = args[:real_value] if args.key?(:real_value)
  @setting = args[:setting] if args.key?(:setting)
  @source = args[:source] if args.key?(:source)
  @string_value = args[:string_value] if args.key?(:string_value)
  @unit = args[:unit] if args.key?(:unit)
end