Class: Azure::Cosmosdb::Mgmt::V2019_08_01::Models::Indexes
- Inherits:
-
Object
- Object
- Azure::Cosmosdb::Mgmt::V2019_08_01::Models::Indexes
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/indexes.rb
Overview
The indexes for the path.
Instance Attribute Summary collapse
-
#data_type ⇒ DataType
applied to.
-
#kind ⇒ IndexKind
include: ‘Hash’, ‘Range’, ‘Spatial’.
-
#precision ⇒ Integer
The precision of the index.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Indexes class as Ruby Hash.
Instance Attribute Details
#data_type ⇒ DataType
applied to. Possible values include: ‘String’, ‘Number’, ‘Point’, ‘Polygon’, ‘LineString’, ‘MultiPolygon’. Default value: ‘String’ .
18 19 20 |
# File 'lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/indexes.rb', line 18 def data_type @data_type end |
#kind ⇒ IndexKind
include: ‘Hash’, ‘Range’, ‘Spatial’. Default value: ‘Hash’ .
25 26 27 |
# File 'lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/indexes.rb', line 25 def kind @kind end |
#precision ⇒ Integer
Returns The precision of the index. -1 is maximum precision.
21 22 23 |
# File 'lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/indexes.rb', line 21 def precision @precision end |
Class Method Details
.mapper ⇒ Object
Mapper for Indexes class as Ruby Hash. This will be used for serialization/deserialization.
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/indexes.rb', line 32 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Indexes', type: { name: 'Composite', class_name: 'Indexes', model_properties: { data_type: { client_side_validation: true, required: false, serialized_name: 'dataType', default_value: 'String', type: { name: 'String' } }, precision: { client_side_validation: true, required: false, serialized_name: 'precision', type: { name: 'Number' } }, kind: { client_side_validation: true, required: false, serialized_name: 'kind', default_value: 'Hash', type: { name: 'String' } } } } } end |