Class: Google::Apis::DatamigrationV1::IndexEntity
- Inherits:
-
Object
- Object
- Google::Apis::DatamigrationV1::IndexEntity
- 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
Index is not used as an independent entity, it is retrieved as part of a Table entity.
Instance Attribute Summary collapse
-
#custom_features ⇒ Hash<String,Object>
Custom engine specific features Corresponds to the JSON property
customFeatures
. -
#name ⇒ String
The name of the index Corresponds to the JSON property
name
. -
#table_columns ⇒ Array<String>
Table columns used as part of the Index for e.g.
-
#type ⇒ String
Type of index - e.g.
-
#unique ⇒ Boolean
(also: #unique?)
boolean value indicating whether the index is unique Corresponds to the JSON property
unique
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ IndexEntity
constructor
A new instance of IndexEntity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ IndexEntity
Returns a new instance of IndexEntity.
1628 1629 1630 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1628 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_features ⇒ Hash<String,Object>
Custom engine specific features
Corresponds to the JSON property customFeatures
1604 1605 1606 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1604 def custom_features @custom_features end |
#name ⇒ String
The name of the index
Corresponds to the JSON property name
1609 1610 1611 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1609 def name @name end |
#table_columns ⇒ Array<String>
Table columns used as part of the Index for e.g. B-TREE index should list the
columns which constitutes the index.
Corresponds to the JSON property tableColumns
1615 1616 1617 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1615 def table_columns @table_columns end |
#type ⇒ String
Type of index - e.g. B-TREE
Corresponds to the JSON property type
1620 1621 1622 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1620 def type @type end |
#unique ⇒ Boolean Also known as: unique?
boolean value indicating whether the index is unique
Corresponds to the JSON property unique
1625 1626 1627 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1625 def unique @unique end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1633 1634 1635 1636 1637 1638 1639 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1633 def update!(**args) @custom_features = args[:custom_features] if args.key?(:custom_features) @name = args[:name] if args.key?(:name) @table_columns = args[:table_columns] if args.key?(:table_columns) @type = args[:type] if args.key?(:type) @unique = args[:unique] if args.key?(:unique) end |