azure_mgmt_cosmosdb 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb.rb +140 -0
  4. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/collection.rb +371 -0
  5. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/collection_partition.rb +267 -0
  6. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/collection_partition_region.rb +155 -0
  7. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/collection_region.rb +155 -0
  8. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/cosmos_db.rb +180 -0
  9. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/database.rb +359 -0
  10. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/database_account_region.rb +147 -0
  11. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/database_accounts.rb +6805 -0
  12. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/capability.rb +48 -0
  13. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace.rb +97 -0
  14. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_create_update_parameters.rb +69 -0
  15. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_list_result.rb +58 -0
  16. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_resource.rb +46 -0
  17. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_partition_key.rb +46 -0
  18. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_schema.rb +95 -0
  19. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_table.rb +120 -0
  20. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_table_create_update_parameters.rb +69 -0
  21. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_table_list_result.rb +58 -0
  22. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_table_resource.rb +69 -0
  23. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cluster_key.rb +58 -0
  24. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/column.rb +57 -0
  25. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/conflict_resolution_mode.rb +16 -0
  26. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/conflict_resolution_policy.rb +73 -0
  27. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/consistency_policy.rb +86 -0
  28. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/container_partition_key.rb +70 -0
  29. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/data_type.rb +20 -0
  30. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account.rb +313 -0
  31. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_connection_string.rb +59 -0
  32. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_create_update_parameters.rb +243 -0
  33. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_kind.rb +17 -0
  34. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_list_connection_strings_result.rb +57 -0
  35. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_list_keys_result.rb +83 -0
  36. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_list_read_only_keys_result.rb +59 -0
  37. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_offer_type.rb +15 -0
  38. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_patch_parameters.rb +75 -0
  39. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_regenerate_key_parameters.rb +47 -0
  40. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_accounts_list_result.rb +58 -0
  41. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/default_consistency_level.rb +19 -0
  42. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/error_response.rb +57 -0
  43. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/excluded_path.rb +48 -0
  44. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/extended_resource_properties.rb +71 -0
  45. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/failover_policies.rb +55 -0
  46. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/failover_policy.rb +79 -0
  47. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_database.rb +132 -0
  48. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_database_create_update_parameters.rb +69 -0
  49. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_database_list_result.rb +58 -0
  50. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_database_resource.rb +46 -0
  51. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_graph.rb +197 -0
  52. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_graph_create_update_parameters.rb +69 -0
  53. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_graph_list_result.rb +57 -0
  54. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_graph_resource.rb +111 -0
  55. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/included_path.rb +67 -0
  56. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/index_kind.rb +17 -0
  57. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/indexes.rb +73 -0
  58. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/indexing_mode.rb +17 -0
  59. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/indexing_policy.rb +99 -0
  60. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/key_kind.rb +18 -0
  61. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/location.rb +102 -0
  62. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric.rb +120 -0
  63. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric_availability.rb +60 -0
  64. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric_definition.rb +109 -0
  65. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric_definitions_list_result.rb +57 -0
  66. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric_list_result.rb +56 -0
  67. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric_name.rb +59 -0
  68. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric_value.rb +107 -0
  69. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection.rb +137 -0
  70. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_create_update_parameters.rb +69 -0
  71. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_list_result.rb +58 -0
  72. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_resource.rb +86 -0
  73. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase.rb +97 -0
  74. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_create_update_parameters.rb +69 -0
  75. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_list_result.rb +58 -0
  76. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_resource.rb +46 -0
  77. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_index.rb +60 -0
  78. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_index_keys.rb +55 -0
  79. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb +57 -0
  80. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/operation.rb +58 -0
  81. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/operation_display.rb +80 -0
  82. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/operation_list_result.rb +101 -0
  83. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/partition_kind.rb +16 -0
  84. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/partition_metric.rb +124 -0
  85. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/partition_metric_list_result.rb +57 -0
  86. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/partition_usage.rb +105 -0
  87. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/partition_usages_result.rb +57 -0
  88. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/percentile_metric.rb +120 -0
  89. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/percentile_metric_list_result.rb +57 -0
  90. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/percentile_metric_value.rb +173 -0
  91. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/primary_aggregation_type.rb +20 -0
  92. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/region_for_online_offline.rb +47 -0
  93. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/resource.rb +112 -0
  94. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_container.rb +197 -0
  95. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_container_create_update_parameters.rb +68 -0
  96. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_container_list_result.rb +57 -0
  97. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb +111 -0
  98. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_database.rb +156 -0
  99. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_database_create_update_parameters.rb +69 -0
  100. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_database_list_result.rb +58 -0
  101. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_database_resource.rb +46 -0
  102. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/table.rb +97 -0
  103. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/table_create_update_parameters.rb +68 -0
  104. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/table_list_result.rb +57 -0
  105. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/table_resource.rb +46 -0
  106. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/unique_key.rb +56 -0
  107. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/unique_key_policy.rb +58 -0
  108. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/unit_type.rb +21 -0
  109. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/usage.rb +97 -0
  110. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/usages_result.rb +57 -0
  111. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/virtual_network_rule.rb +59 -0
  112. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/module_definition.rb +9 -0
  113. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/operations.rb +219 -0
  114. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/partition_key_range_id.rb +155 -0
  115. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/partition_key_range_id_region.rb +162 -0
  116. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/percentile.rb +140 -0
  117. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/percentile_source_target.rb +157 -0
  118. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/percentile_target.rb +147 -0
  119. data/lib/azure_mgmt_cosmosdb.rb +6 -0
  120. data/lib/module_definition.rb +7 -0
  121. data/lib/profiles/latest/cosmosdb_latest_profile_client.rb +40 -0
  122. data/lib/profiles/latest/cosmosdb_module_definition.rb +8 -0
  123. data/lib/profiles/latest/modules/cosmosdb_profile_module.rb +485 -0
  124. data/lib/version.rb +7 -0
  125. metadata +240 -0
@@ -0,0 +1,69 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Cosmosdb::Mgmt::V2015_04_08
7
+ module Models
8
+ #
9
+ # Parameters to create and update Cosmos DB Gremlin graph.
10
+ #
11
+ class GremlinGraphCreateUpdateParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [GremlinGraphResource] The standard JSON format of a Gremlin
16
+ # graph
17
+ attr_accessor :resource
18
+
19
+ # @return [Hash{String => String}] A key-value pair of options to be
20
+ # applied for the request. This corresponds to the headers sent with the
21
+ # request.
22
+ attr_accessor :options
23
+
24
+
25
+ #
26
+ # Mapper for GremlinGraphCreateUpdateParameters class as Ruby Hash.
27
+ # This will be used for serialization/deserialization.
28
+ #
29
+ def self.mapper()
30
+ {
31
+ client_side_validation: true,
32
+ required: false,
33
+ serialized_name: 'GremlinGraphCreateUpdateParameters',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'GremlinGraphCreateUpdateParameters',
37
+ model_properties: {
38
+ resource: {
39
+ client_side_validation: true,
40
+ required: true,
41
+ serialized_name: 'properties.resource',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'GremlinGraphResource'
45
+ }
46
+ },
47
+ options: {
48
+ client_side_validation: true,
49
+ required: true,
50
+ serialized_name: 'properties.options',
51
+ type: {
52
+ name: 'Dictionary',
53
+ value: {
54
+ client_side_validation: true,
55
+ required: false,
56
+ serialized_name: 'StringElementType',
57
+ type: {
58
+ name: 'String'
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }
66
+ end
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,57 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Cosmosdb::Mgmt::V2015_04_08
7
+ module Models
8
+ #
9
+ # The List operation response, that contains the graphs and their
10
+ # properties.
11
+ #
12
+ class GremlinGraphListResult
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Array<GremlinGraph>] List of graphs and their properties.
17
+ attr_accessor :value
18
+
19
+
20
+ #
21
+ # Mapper for GremlinGraphListResult class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ client_side_validation: true,
27
+ required: false,
28
+ serialized_name: 'GremlinGraphListResult',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'GremlinGraphListResult',
32
+ model_properties: {
33
+ value: {
34
+ client_side_validation: true,
35
+ required: false,
36
+ read_only: true,
37
+ serialized_name: 'value',
38
+ type: {
39
+ name: 'Sequence',
40
+ element: {
41
+ client_side_validation: true,
42
+ required: false,
43
+ serialized_name: 'GremlinGraphElementType',
44
+ type: {
45
+ name: 'Composite',
46
+ class_name: 'GremlinGraph'
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,111 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Cosmosdb::Mgmt::V2015_04_08
7
+ module Models
8
+ #
9
+ # Cosmos DB Gremlin graph resource object
10
+ #
11
+ class GremlinGraphResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Name of the Cosmos DB Gremlin graph
16
+ attr_accessor :id
17
+
18
+ # @return [IndexingPolicy] The configuration of the indexing policy. By
19
+ # default, the indexing is automatic for all document paths within the
20
+ # graph
21
+ attr_accessor :indexing_policy
22
+
23
+ # @return [ContainerPartitionKey] The configuration of the partition key
24
+ # to be used for partitioning data into multiple partitions
25
+ attr_accessor :partition_key
26
+
27
+ # @return [Integer] Default time to live
28
+ attr_accessor :default_ttl
29
+
30
+ # @return [UniqueKeyPolicy] The unique key policy configuration for
31
+ # specifying uniqueness constraints on documents in the collection in the
32
+ # Azure Cosmos DB service.
33
+ attr_accessor :unique_key_policy
34
+
35
+ # @return [ConflictResolutionPolicy] The conflict resolution policy for
36
+ # the graph.
37
+ attr_accessor :conflict_resolution_policy
38
+
39
+
40
+ #
41
+ # Mapper for GremlinGraphResource class as Ruby Hash.
42
+ # This will be used for serialization/deserialization.
43
+ #
44
+ def self.mapper()
45
+ {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'GremlinGraphResource',
49
+ type: {
50
+ name: 'Composite',
51
+ class_name: 'GremlinGraphResource',
52
+ model_properties: {
53
+ id: {
54
+ client_side_validation: true,
55
+ required: true,
56
+ serialized_name: 'id',
57
+ type: {
58
+ name: 'String'
59
+ }
60
+ },
61
+ indexing_policy: {
62
+ client_side_validation: true,
63
+ required: false,
64
+ serialized_name: 'indexingPolicy',
65
+ type: {
66
+ name: 'Composite',
67
+ class_name: 'IndexingPolicy'
68
+ }
69
+ },
70
+ partition_key: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ serialized_name: 'partitionKey',
74
+ type: {
75
+ name: 'Composite',
76
+ class_name: 'ContainerPartitionKey'
77
+ }
78
+ },
79
+ default_ttl: {
80
+ client_side_validation: true,
81
+ required: false,
82
+ serialized_name: 'defaultTtl',
83
+ type: {
84
+ name: 'Number'
85
+ }
86
+ },
87
+ unique_key_policy: {
88
+ client_side_validation: true,
89
+ required: false,
90
+ serialized_name: 'uniqueKeyPolicy',
91
+ type: {
92
+ name: 'Composite',
93
+ class_name: 'UniqueKeyPolicy'
94
+ }
95
+ },
96
+ conflict_resolution_policy: {
97
+ client_side_validation: true,
98
+ required: false,
99
+ serialized_name: 'conflictResolutionPolicy',
100
+ type: {
101
+ name: 'Composite',
102
+ class_name: 'ConflictResolutionPolicy'
103
+ }
104
+ }
105
+ }
106
+ }
107
+ }
108
+ end
109
+ end
110
+ end
111
+ end
@@ -0,0 +1,67 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Cosmosdb::Mgmt::V2015_04_08
7
+ module Models
8
+ #
9
+ # The paths that are included in indexing
10
+ #
11
+ class IncludedPath
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The path for which the indexing behavior applies to.
16
+ # Index paths typically start with root and end with wildcard (/path/*)
17
+ attr_accessor :path
18
+
19
+ # @return [Array<Indexes>] List of indexes for this path
20
+ attr_accessor :indexes
21
+
22
+
23
+ #
24
+ # Mapper for IncludedPath class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ client_side_validation: true,
30
+ required: false,
31
+ serialized_name: 'IncludedPath',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'IncludedPath',
35
+ model_properties: {
36
+ path: {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: 'path',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ indexes: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'indexes',
48
+ type: {
49
+ name: 'Sequence',
50
+ element: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ serialized_name: 'IndexesElementType',
54
+ type: {
55
+ name: 'Composite',
56
+ class_name: 'Indexes'
57
+ }
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ end
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,17 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Cosmosdb::Mgmt::V2015_04_08
7
+ module Models
8
+ #
9
+ # Defines values for IndexKind
10
+ #
11
+ module IndexKind
12
+ Hash = "Hash"
13
+ Range = "Range"
14
+ Spatial = "Spatial"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,73 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Cosmosdb::Mgmt::V2015_04_08
7
+ module Models
8
+ #
9
+ # The indexes for the path.
10
+ #
11
+ class Indexes
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [DataType] The datatype for which the indexing behavior is
16
+ # applied to. Possible values include: 'String', 'Number', 'Point',
17
+ # 'Polygon', 'LineString', 'MultiPolygon'. Default value: 'String' .
18
+ attr_accessor :data_type
19
+
20
+ # @return [Integer] The precision of the index. -1 is maximum precision.
21
+ attr_accessor :precision
22
+
23
+ # @return [IndexKind] Indicates the type of index. Possible values
24
+ # include: 'Hash', 'Range', 'Spatial'. Default value: 'Hash' .
25
+ attr_accessor :kind
26
+
27
+
28
+ #
29
+ # Mapper for Indexes class as Ruby Hash.
30
+ # This will be used for serialization/deserialization.
31
+ #
32
+ def self.mapper()
33
+ {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'Indexes',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'Indexes',
40
+ model_properties: {
41
+ data_type: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'dataType',
45
+ default_value: 'String',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ },
50
+ precision: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ serialized_name: 'precision',
54
+ type: {
55
+ name: 'Number'
56
+ }
57
+ },
58
+ kind: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ serialized_name: 'kind',
62
+ default_value: 'Hash',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
70
+ end
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,17 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Cosmosdb::Mgmt::V2015_04_08
7
+ module Models
8
+ #
9
+ # Defines values for IndexingMode
10
+ #
11
+ module IndexingMode
12
+ Consistent = "Consistent"
13
+ Lazy = "Lazy"
14
+ None = "None"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,99 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Cosmosdb::Mgmt::V2015_04_08
7
+ module Models
8
+ #
9
+ # Cosmos DB indexing policy
10
+ #
11
+ class IndexingPolicy
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Boolean] Indicates if the indexing policy is automatic
16
+ attr_accessor :automatic
17
+
18
+ # @return [IndexingMode] Indicates the indexing mode. Possible values
19
+ # include: 'Consistent', 'Lazy', 'None'. Default value: 'Consistent' .
20
+ attr_accessor :indexing_mode
21
+
22
+ # @return [Array<IncludedPath>] List of paths to include in the indexing
23
+ attr_accessor :included_paths
24
+
25
+ # @return [Array<ExcludedPath>] List of paths to exclude from indexing
26
+ attr_accessor :excluded_paths
27
+
28
+
29
+ #
30
+ # Mapper for IndexingPolicy class as Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ client_side_validation: true,
36
+ required: false,
37
+ serialized_name: 'IndexingPolicy',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'IndexingPolicy',
41
+ model_properties: {
42
+ automatic: {
43
+ client_side_validation: true,
44
+ required: false,
45
+ serialized_name: 'automatic',
46
+ type: {
47
+ name: 'Boolean'
48
+ }
49
+ },
50
+ indexing_mode: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ serialized_name: 'indexingMode',
54
+ default_value: 'Consistent',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ },
59
+ included_paths: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'includedPaths',
63
+ type: {
64
+ name: 'Sequence',
65
+ element: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ serialized_name: 'IncludedPathElementType',
69
+ type: {
70
+ name: 'Composite',
71
+ class_name: 'IncludedPath'
72
+ }
73
+ }
74
+ }
75
+ },
76
+ excluded_paths: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ serialized_name: 'excludedPaths',
80
+ type: {
81
+ name: 'Sequence',
82
+ element: {
83
+ client_side_validation: true,
84
+ required: false,
85
+ serialized_name: 'ExcludedPathElementType',
86
+ type: {
87
+ name: 'Composite',
88
+ class_name: 'ExcludedPath'
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
96
+ end
97
+ end
98
+ end
99
+ end