Class: Google::Apis::DatamigrationV1::ColumnEntity
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DatamigrationV1::ColumnEntity
 
- 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
Column is not used as an independent entity, it is retrieved as part of a Table entity.
Instance Attribute Summary collapse
- 
  
    
      #array  ⇒ Boolean 
    
    
      (also: #array?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Is the column of array type. 
- 
  
    
      #array_length  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    If the column is array, of which length. 
- 
  
    
      #auto_generated  ⇒ Boolean 
    
    
      (also: #auto_generated?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Is the column auto-generated/identity. 
- 
  
    
      #charset  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Charset override - instead of table level charset. 
- 
  
    
      #collation  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Collation override - instead of table level collation. 
- 
  
    
      #comment  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Comment associated with the column. 
- 
  
    
      #custom_features  ⇒ Hash<String,Object> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Custom engine specific features. 
- 
  
    
      #data_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Column data type. 
- 
  
    
      #default_value  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Default value of the column. 
- 
  
    
      #fractional_seconds_precision  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Column fractional second precision - used for timestamp based datatypes. 
- 
  
    
      #length  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Column length - e.g. 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Column name. 
- 
  
    
      #nullable  ⇒ Boolean 
    
    
      (also: #nullable?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Is the column nullable. 
- 
  
    
      #ordinal_position  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Column order in the table. 
- 
  
    
      #precision  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Column precision - when relevant. 
- 
  
    
      #scale  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Column scale - when relevant. 
- 
  
    
      #set_values  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Specifies the list of values allowed in the column. 
- 
  
    
      #udt  ⇒ Boolean 
    
    
      (also: #udt?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Is the column a UDT. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ColumnEntity 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of ColumnEntity. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Constructor Details
#initialize(**args) ⇒ ColumnEntity
Returns a new instance of ColumnEntity.
| 764 765 766 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 764 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#array ⇒ Boolean Also known as: array?
Is the column of array type.
Corresponds to the JSON property array
| 672 673 674 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 672 def array @array end | 
#array_length ⇒ Fixnum
If the column is array, of which length.
Corresponds to the JSON property arrayLength
| 678 679 680 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 678 def array_length @array_length end | 
#auto_generated ⇒ Boolean Also known as: auto_generated?
Is the column auto-generated/identity.
Corresponds to the JSON property autoGenerated
| 683 684 685 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 683 def auto_generated @auto_generated end | 
#charset ⇒ String
Charset override - instead of table level charset.
Corresponds to the JSON property charset
| 689 690 691 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 689 def charset @charset end | 
#collation ⇒ String
Collation override - instead of table level collation.
Corresponds to the JSON property collation
| 694 695 696 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 694 def collation @collation end | 
#comment ⇒ String
Comment associated with the column.
Corresponds to the JSON property comment
| 699 700 701 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 699 def comment @comment end | 
#custom_features ⇒ Hash<String,Object>
Custom engine specific features.
Corresponds to the JSON property customFeatures
| 704 705 706 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 704 def custom_features @custom_features end | 
#data_type ⇒ String
Column data type.
Corresponds to the JSON property dataType
| 709 710 711 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 709 def data_type @data_type end | 
#default_value ⇒ String
Default value of the column.
Corresponds to the JSON property defaultValue
| 714 715 716 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 714 def default_value @default_value end | 
#fractional_seconds_precision ⇒ Fixnum
Column fractional second precision - used for timestamp based datatypes.
Corresponds to the JSON property fractionalSecondsPrecision
| 719 720 721 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 719 def fractional_seconds_precision @fractional_seconds_precision end | 
#length ⇒ Fixnum
Column length - e.g. varchar (50).
Corresponds to the JSON property length
| 724 725 726 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 724 def length @length end | 
#name ⇒ String
Column name.
Corresponds to the JSON property name
| 729 730 731 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 729 def name @name end | 
#nullable ⇒ Boolean Also known as: nullable?
Is the column nullable.
Corresponds to the JSON property nullable
| 734 735 736 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 734 def nullable @nullable end | 
#ordinal_position ⇒ Fixnum
Column order in the table.
Corresponds to the JSON property ordinalPosition
| 740 741 742 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 740 def ordinal_position @ordinal_position end | 
#precision ⇒ Fixnum
Column precision - when relevant.
Corresponds to the JSON property precision
| 745 746 747 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 745 def precision @precision end | 
#scale ⇒ Fixnum
Column scale - when relevant.
Corresponds to the JSON property scale
| 750 751 752 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 750 def scale @scale end | 
#set_values ⇒ Array<String>
Specifies the list of values allowed in the column. Only used for set data
type.
Corresponds to the JSON property setValues
| 756 757 758 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 756 def set_values @set_values end | 
#udt ⇒ Boolean Also known as: udt?
Is the column a UDT.
Corresponds to the JSON property udt
| 761 762 763 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 761 def udt @udt end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 769 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) @default_value = args[:default_value] if args.key?(:default_value) @fractional_seconds_precision = args[:fractional_seconds_precision] if args.key?(:fractional_seconds_precision) @length = args[:length] if args.key?(:length) @name = args[:name] if args.key?(:name) @nullable = args[:nullable] if args.key?(:nullable) @ordinal_position = args[:ordinal_position] if args.key?(:ordinal_position) @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 |