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.
-
#name ⇒ String
The name of the index.
-
#table_columns ⇒ Array<String>
Table columns used as part of the Index, for example B-TREE index should list the columns which constitutes the index.
-
#table_columns_descending ⇒ Array<Boolean>
For each table_column, mark whether it's sorting order is ascending (false) or descending (true).
-
#type ⇒ String
Type of index, for example B-TREE.
-
#unique ⇒ Boolean
(also: #unique?)
Boolean value indicating whether the index is 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.
2256 2257 2258 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2256 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_features ⇒ Hash<String,Object>
Custom engine specific features.
Corresponds to the JSON property customFeatures
2223 2224 2225 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2223 def custom_features @custom_features end |
#name ⇒ String
The name of the index.
Corresponds to the JSON property name
2228 2229 2230 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2228 def name @name end |
#table_columns ⇒ Array<String>
Table columns used as part of the Index, for example B-TREE index should list
the columns which constitutes the index.
Corresponds to the JSON property tableColumns
2234 2235 2236 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2234 def table_columns @table_columns end |
#table_columns_descending ⇒ Array<Boolean>
For each table_column, mark whether it's sorting order is ascending (false) or
descending (true). If no value is defined, assume all columns are sorted in
ascending order. Otherwise, the number of items must match that of
table_columns with each value specifying the direction of the matched column
by its index.
Corresponds to the JSON property tableColumnsDescending
2243 2244 2245 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2243 def table_columns_descending @table_columns_descending end |
#type ⇒ String
Type of index, for example B-TREE.
Corresponds to the JSON property type
2248 2249 2250 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2248 def type @type end |
#unique ⇒ Boolean Also known as: unique?
Boolean value indicating whether the index is unique.
Corresponds to the JSON property unique
2253 2254 2255 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2253 def unique @unique end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2261 2262 2263 2264 2265 2266 2267 2268 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2261 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) @table_columns_descending = args[:table_columns_descending] if args.key?(:table_columns_descending) @type = args[:type] if args.key?(:type) @unique = args[:unique] if args.key?(:unique) end |