Class: Azure::Cosmosdb::Mgmt::V2019_12_12::Models::SpatialSpec

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/spatial_spec.rb

Overview

Model object.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#pathString

Index paths typically start with root and end with wildcard (/path/*)

Returns:

  • (String)

    The path for which the indexing behavior applies to.



18
19
20
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/spatial_spec.rb', line 18

def path
  @path
end

#typesArray<SpatialType>

Returns List of path’s spatial type.

Returns:

  • (Array<SpatialType>)

    List of path’s spatial type



21
22
23
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/spatial_spec.rb', line 21

def types
  @types
end

Class Method Details

.mapperObject

Mapper for SpatialSpec class as Ruby Hash. This will be used for serialization/deserialization.



28
29
30
31
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
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/spatial_spec.rb', line 28

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'SpatialSpec',
    type: {
      name: 'Composite',
      class_name: 'SpatialSpec',
      model_properties: {
        path: {
          client_side_validation: true,
          required: false,
          serialized_name: 'path',
          type: {
            name: 'String'
          }
        },
        types: {
          client_side_validation: true,
          required: false,
          serialized_name: 'types',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'SpatialTypeElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end