class Azure::Cosmosdb::Mgmt::V2020_04_01::Models::SpatialSpec

Model object.

Attributes

path[RW]

@return [String] The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*)

types[RW]

@return [Array<SpatialType>] List of path's spatial type

Public Class Methods

mapper() click to toggle source

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

# File lib/2020-04-01/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