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,55 @@
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 of new failover policies for the failover priority change.
10
+ #
11
+ class FailoverPolicies
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<FailoverPolicy>] List of failover policies.
16
+ attr_accessor :failover_policies
17
+
18
+
19
+ #
20
+ # Mapper for FailoverPolicies class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ client_side_validation: true,
26
+ required: false,
27
+ serialized_name: 'FailoverPolicies',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'FailoverPolicies',
31
+ model_properties: {
32
+ failover_policies: {
33
+ client_side_validation: true,
34
+ required: true,
35
+ serialized_name: 'failoverPolicies',
36
+ type: {
37
+ name: 'Sequence',
38
+ element: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'FailoverPolicyElementType',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'FailoverPolicy'
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ end
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,79 @@
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 failover policy for a given region of a database account.
10
+ #
11
+ class FailoverPolicy
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The unique identifier of the region in which the
16
+ # database account replicates to. Example:
17
+ # &lt;accountName&gt;-&lt;locationName&gt;.
18
+ attr_accessor :id
19
+
20
+ # @return [String] The name of the region in which the database account
21
+ # exists.
22
+ attr_accessor :location_name
23
+
24
+ # @return [Integer] The failover priority of the region. A failover
25
+ # priority of 0 indicates a write region. The maximum value for a
26
+ # failover priority = (total number of regions - 1). Failover priority
27
+ # values must be unique for each of the regions in which the database
28
+ # account exists.
29
+ attr_accessor :failover_priority
30
+
31
+
32
+ #
33
+ # Mapper for FailoverPolicy class as Ruby Hash.
34
+ # This will be used for serialization/deserialization.
35
+ #
36
+ def self.mapper()
37
+ {
38
+ client_side_validation: true,
39
+ required: false,
40
+ serialized_name: 'FailoverPolicy',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'FailoverPolicy',
44
+ model_properties: {
45
+ id: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ read_only: true,
49
+ serialized_name: 'id',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ location_name: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ serialized_name: 'locationName',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ failover_priority: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ serialized_name: 'failoverPriority',
66
+ constraints: {
67
+ InclusiveMinimum: 0
68
+ },
69
+ type: {
70
+ name: 'Number'
71
+ }
72
+ }
73
+ }
74
+ }
75
+ }
76
+ end
77
+ end
78
+ end
79
+ end
@@ -0,0 +1,132 @@
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
+ # An Azure Cosmos DB Gremlin database.
10
+ #
11
+ class GremlinDatabase < Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Name of the Cosmos DB Gremlin database
16
+ attr_accessor :gremlin_database_id
17
+
18
+ # @return [String] A system generated property. A unique identifier.
19
+ attr_accessor :_rid
20
+
21
+ # @return A system generated property that denotes the last updated
22
+ # timestamp of the resource.
23
+ attr_accessor :_ts
24
+
25
+ # @return [String] A system generated property representing the resource
26
+ # etag required for optimistic concurrency control.
27
+ attr_accessor :_etag
28
+
29
+
30
+ #
31
+ # Mapper for GremlinDatabase class as Ruby Hash.
32
+ # This will be used for serialization/deserialization.
33
+ #
34
+ def self.mapper()
35
+ {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'GremlinDatabase',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'GremlinDatabase',
42
+ model_properties: {
43
+ id: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ read_only: true,
47
+ serialized_name: 'id',
48
+ type: {
49
+ name: 'String'
50
+ }
51
+ },
52
+ name: {
53
+ client_side_validation: true,
54
+ required: false,
55
+ read_only: true,
56
+ serialized_name: 'name',
57
+ type: {
58
+ name: 'String'
59
+ }
60
+ },
61
+ type: {
62
+ client_side_validation: true,
63
+ required: false,
64
+ read_only: true,
65
+ serialized_name: 'type',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ },
70
+ location: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ serialized_name: 'location',
74
+ type: {
75
+ name: 'String'
76
+ }
77
+ },
78
+ tags: {
79
+ client_side_validation: true,
80
+ required: false,
81
+ serialized_name: 'tags',
82
+ type: {
83
+ name: 'Dictionary',
84
+ value: {
85
+ client_side_validation: true,
86
+ required: false,
87
+ serialized_name: 'StringElementType',
88
+ type: {
89
+ name: 'String'
90
+ }
91
+ }
92
+ }
93
+ },
94
+ gremlin_database_id: {
95
+ client_side_validation: true,
96
+ required: true,
97
+ serialized_name: 'properties.id',
98
+ type: {
99
+ name: 'String'
100
+ }
101
+ },
102
+ _rid: {
103
+ client_side_validation: true,
104
+ required: false,
105
+ serialized_name: 'properties._rid',
106
+ type: {
107
+ name: 'String'
108
+ }
109
+ },
110
+ _ts: {
111
+ client_side_validation: true,
112
+ required: false,
113
+ serialized_name: 'properties._ts',
114
+ type: {
115
+ name: 'Object'
116
+ }
117
+ },
118
+ _etag: {
119
+ client_side_validation: true,
120
+ required: false,
121
+ serialized_name: 'properties._etag',
122
+ type: {
123
+ name: 'String'
124
+ }
125
+ }
126
+ }
127
+ }
128
+ }
129
+ end
130
+ end
131
+ end
132
+ end
@@ -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 database.
10
+ #
11
+ class GremlinDatabaseCreateUpdateParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [GremlinDatabaseResource] The standard JSON format of a Gremlin
16
+ # database
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 GremlinDatabaseCreateUpdateParameters 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: 'GremlinDatabaseCreateUpdateParameters',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'GremlinDatabaseCreateUpdateParameters',
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: 'GremlinDatabaseResource'
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,58 @@
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 Gremlin databases and
10
+ # their properties.
11
+ #
12
+ class GremlinDatabaseListResult
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Array<GremlinDatabase>] List of Gremlin databases and their
17
+ # properties.
18
+ attr_accessor :value
19
+
20
+
21
+ #
22
+ # Mapper for GremlinDatabaseListResult class as Ruby Hash.
23
+ # This will be used for serialization/deserialization.
24
+ #
25
+ def self.mapper()
26
+ {
27
+ client_side_validation: true,
28
+ required: false,
29
+ serialized_name: 'GremlinDatabaseListResult',
30
+ type: {
31
+ name: 'Composite',
32
+ class_name: 'GremlinDatabaseListResult',
33
+ model_properties: {
34
+ value: {
35
+ client_side_validation: true,
36
+ required: false,
37
+ read_only: true,
38
+ serialized_name: 'value',
39
+ type: {
40
+ name: 'Sequence',
41
+ element: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'GremlinDatabaseElementType',
45
+ type: {
46
+ name: 'Composite',
47
+ class_name: 'GremlinDatabase'
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,46 @@
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 database id object
10
+ #
11
+ class GremlinDatabaseResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Name of the Cosmos DB Gremlin database
16
+ attr_accessor :id
17
+
18
+
19
+ #
20
+ # Mapper for GremlinDatabaseResource class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ client_side_validation: true,
26
+ required: false,
27
+ serialized_name: 'GremlinDatabaseResource',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'GremlinDatabaseResource',
31
+ model_properties: {
32
+ id: {
33
+ client_side_validation: true,
34
+ required: true,
35
+ serialized_name: 'id',
36
+ type: {
37
+ name: 'String'
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,197 @@
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
+ # An Azure Cosmos DB Gremlin graph.
10
+ #
11
+ class GremlinGraph < Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Name of the Cosmos DB Gremlin graph
16
+ attr_accessor :gremlin_graph_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
+ # @return [String] A system generated property. A unique identifier.
40
+ attr_accessor :_rid
41
+
42
+ # @return A system generated property that denotes the last updated
43
+ # timestamp of the resource.
44
+ attr_accessor :_ts
45
+
46
+ # @return [String] A system generated property representing the resource
47
+ # etag required for optimistic concurrency control.
48
+ attr_accessor :_etag
49
+
50
+
51
+ #
52
+ # Mapper for GremlinGraph class as Ruby Hash.
53
+ # This will be used for serialization/deserialization.
54
+ #
55
+ def self.mapper()
56
+ {
57
+ client_side_validation: true,
58
+ required: false,
59
+ serialized_name: 'GremlinGraph',
60
+ type: {
61
+ name: 'Composite',
62
+ class_name: 'GremlinGraph',
63
+ model_properties: {
64
+ id: {
65
+ client_side_validation: true,
66
+ required: false,
67
+ read_only: true,
68
+ serialized_name: 'id',
69
+ type: {
70
+ name: 'String'
71
+ }
72
+ },
73
+ name: {
74
+ client_side_validation: true,
75
+ required: false,
76
+ read_only: true,
77
+ serialized_name: 'name',
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ },
82
+ type: {
83
+ client_side_validation: true,
84
+ required: false,
85
+ read_only: true,
86
+ serialized_name: 'type',
87
+ type: {
88
+ name: 'String'
89
+ }
90
+ },
91
+ location: {
92
+ client_side_validation: true,
93
+ required: false,
94
+ serialized_name: 'location',
95
+ type: {
96
+ name: 'String'
97
+ }
98
+ },
99
+ tags: {
100
+ client_side_validation: true,
101
+ required: false,
102
+ serialized_name: 'tags',
103
+ type: {
104
+ name: 'Dictionary',
105
+ value: {
106
+ client_side_validation: true,
107
+ required: false,
108
+ serialized_name: 'StringElementType',
109
+ type: {
110
+ name: 'String'
111
+ }
112
+ }
113
+ }
114
+ },
115
+ gremlin_graph_id: {
116
+ client_side_validation: true,
117
+ required: true,
118
+ serialized_name: 'properties.id',
119
+ type: {
120
+ name: 'String'
121
+ }
122
+ },
123
+ indexing_policy: {
124
+ client_side_validation: true,
125
+ required: false,
126
+ serialized_name: 'properties.indexingPolicy',
127
+ type: {
128
+ name: 'Composite',
129
+ class_name: 'IndexingPolicy'
130
+ }
131
+ },
132
+ partition_key: {
133
+ client_side_validation: true,
134
+ required: false,
135
+ serialized_name: 'properties.partitionKey',
136
+ type: {
137
+ name: 'Composite',
138
+ class_name: 'ContainerPartitionKey'
139
+ }
140
+ },
141
+ default_ttl: {
142
+ client_side_validation: true,
143
+ required: false,
144
+ serialized_name: 'properties.defaultTtl',
145
+ type: {
146
+ name: 'Number'
147
+ }
148
+ },
149
+ unique_key_policy: {
150
+ client_side_validation: true,
151
+ required: false,
152
+ serialized_name: 'properties.uniqueKeyPolicy',
153
+ type: {
154
+ name: 'Composite',
155
+ class_name: 'UniqueKeyPolicy'
156
+ }
157
+ },
158
+ conflict_resolution_policy: {
159
+ client_side_validation: true,
160
+ required: false,
161
+ serialized_name: 'properties.conflictResolutionPolicy',
162
+ type: {
163
+ name: 'Composite',
164
+ class_name: 'ConflictResolutionPolicy'
165
+ }
166
+ },
167
+ _rid: {
168
+ client_side_validation: true,
169
+ required: false,
170
+ serialized_name: 'properties._rid',
171
+ type: {
172
+ name: 'String'
173
+ }
174
+ },
175
+ _ts: {
176
+ client_side_validation: true,
177
+ required: false,
178
+ serialized_name: 'properties._ts',
179
+ type: {
180
+ name: 'Object'
181
+ }
182
+ },
183
+ _etag: {
184
+ client_side_validation: true,
185
+ required: false,
186
+ serialized_name: 'properties._etag',
187
+ type: {
188
+ name: 'String'
189
+ }
190
+ }
191
+ }
192
+ }
193
+ }
194
+ end
195
+ end
196
+ end
197
+ end