Class: Azure::Cosmosdb::Mgmt::V2019_08_01::Models::IncludedPath

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/included_path.rb

Overview

The paths that are included in indexing

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#indexesArray<Indexes>

Returns List of indexes for this path.

Returns:

  • (Array<Indexes>)

    List of indexes for this path



20
21
22
# File 'lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/included_path.rb', line 20

def indexes
  @indexes
end

#pathString

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

Returns:

  • (String)

    The path for which the indexing behavior applies to.



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

def path
  @path
end

Class Method Details

.mapperObject

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



27
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-08-01/generated/azure_mgmt_cosmosdb/models/included_path.rb', line 27

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'IncludedPath',
    type: {
      name: 'Composite',
      class_name: 'IncludedPath',
      model_properties: {
        path: {
          client_side_validation: true,
          required: false,
          serialized_name: 'path',
          type: {
            name: 'String'
          }
        },
        indexes: {
          client_side_validation: true,
          required: false,
          serialized_name: 'indexes',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'IndexesElementType',
                type: {
                  name: 'Composite',
                  class_name: 'Indexes'
                }
            }
          }
        }
      }
    }
  }
end