Class: Google::Apis::DatamigrationV1::SingleColumnChange

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

Overview

Options to configure rule type SingleColumnChange. The rule is used to change the properties of a column. The rule filter field can refer to one entity. The rule scope can be one of: Column. When using this rule, if a field is not specified than the destination column's configuration will be the same as the one in the source column..

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SingleColumnChange

Returns a new instance of SingleColumnChange.



4191
4192
4193
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4191

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

Instance Attribute Details

#arrayBoolean Also known as: array?

Optional. Is the column of array type. Corresponds to the JSON property array

Returns:

  • (Boolean)


4113
4114
4115
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4113

def array
  @array
end

#array_lengthFixnum

Optional. The length of the array, only relevant if the column type is an array. Corresponds to the JSON property arrayLength

Returns:

  • (Fixnum)


4120
4121
4122
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4120

def array_length
  @array_length
end

#auto_generatedBoolean Also known as: auto_generated?

Optional. Is the column auto-generated/identity. Corresponds to the JSON property autoGenerated

Returns:

  • (Boolean)


4125
4126
4127
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4125

def auto_generated
  @auto_generated
end

#charsetString

Optional. Charset override - instead of table level charset. Corresponds to the JSON property charset

Returns:

  • (String)


4131
4132
4133
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4131

def charset
  @charset
end

#collationString

Optional. Collation override - instead of table level collation. Corresponds to the JSON property collation

Returns:

  • (String)


4136
4137
4138
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4136

def collation
  @collation
end

#commentString

Optional. Comment associated with the column. Corresponds to the JSON property comment

Returns:

  • (String)


4141
4142
4143
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4141

def comment
  @comment
end

#custom_featuresHash<String,Object>

Optional. Custom engine specific features. Corresponds to the JSON property customFeatures

Returns:

  • (Hash<String,Object>)


4146
4147
4148
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4146

def custom_features
  @custom_features
end

#data_typeString

Optional. Column data type name. Corresponds to the JSON property dataType

Returns:

  • (String)


4151
4152
4153
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4151

def data_type
  @data_type
end

#fractional_seconds_precisionFixnum

Optional. Column fractional seconds precision - e.g. 2 as in timestamp (2) - when relevant. Corresponds to the JSON property fractionalSecondsPrecision

Returns:

  • (Fixnum)


4157
4158
4159
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4157

def fractional_seconds_precision
  @fractional_seconds_precision
end

#lengthFixnum

Optional. Column length - e.g. 50 as in varchar (50) - when relevant. Corresponds to the JSON property length

Returns:

  • (Fixnum)


4162
4163
4164
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4162

def length
  @length
end

#nullableBoolean Also known as: nullable?

Optional. Is the column nullable. Corresponds to the JSON property nullable

Returns:

  • (Boolean)


4167
4168
4169
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4167

def nullable
  @nullable
end

#precisionFixnum

Optional. Column precision - e.g. 8 as in double (8,2) - when relevant. Corresponds to the JSON property precision

Returns:

  • (Fixnum)


4173
4174
4175
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4173

def precision
  @precision
end

#scaleFixnum

Optional. Column scale - e.g. 2 as in double (8,2) - when relevant. Corresponds to the JSON property scale

Returns:

  • (Fixnum)


4178
4179
4180
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4178

def scale
  @scale
end

#set_valuesArray<String>

Optional. Specifies the list of values allowed in the column. Corresponds to the JSON property setValues

Returns:

  • (Array<String>)


4183
4184
4185
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4183

def set_values
  @set_values
end

#udtBoolean Also known as: udt?

Optional. Is the column a UDT (User-defined Type). Corresponds to the JSON property udt

Returns:

  • (Boolean)


4188
4189
4190
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4188

def udt
  @udt
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4196

def update!(**args)
  @array = args[:array] if args.key?(:array)
  @array_length = args[:array_length] if args.key?(:array_length)
  @auto_generated = args[:auto_generated] if args.key?(:auto_generated)
  @charset = args[:charset] if args.key?(:charset)
  @collation = args[:collation] if args.key?(:collation)
  @comment = args[:comment] if args.key?(:comment)
  @custom_features = args[:custom_features] if args.key?(:custom_features)
  @data_type = args[:data_type] if args.key?(:data_type)
  @fractional_seconds_precision = args[:fractional_seconds_precision] if args.key?(:fractional_seconds_precision)
  @length = args[:length] if args.key?(:length)
  @nullable = args[:nullable] if args.key?(:nullable)
  @precision = args[:precision] if args.key?(:precision)
  @scale = args[:scale] if args.key?(:scale)
  @set_values = args[:set_values] if args.key?(:set_values)
  @udt = args[:udt] if args.key?(:udt)
end