Class: Azure::Cosmosdb::Mgmt::V2019_08_01::Models::Indexes

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Attribute Details

#data_typeDataType

applied to. Possible values include: ‘String’, ‘Number’, ‘Point’, ‘Polygon’, ‘LineString’, ‘MultiPolygon’. Default value: ‘String’ .

Returns:

  • (DataType)

    The datatype for which the indexing behavior is



18
19
20
# File 'lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/indexes.rb', line 18

def data_type
  @data_type
end

#kindIndexKind

include: ‘Hash’, ‘Range’, ‘Spatial’. Default value: ‘Hash’ .

Returns:

  • (IndexKind)

    Indicates the type of index. Possible values



25
26
27
# File 'lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/indexes.rb', line 25

def kind
  @kind
end

#precisionInteger

Returns The precision of the index. -1 is maximum precision.

Returns:

  • (Integer)

    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

.mapperObject

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