azure_mgmt_cosmosdb 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
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,59 @@
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
+ # Connection string for the Cosmos DB account
10
+ #
11
+ class DatabaseAccountConnectionString
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Value of the connection string
16
+ attr_accessor :connection_string
17
+
18
+ # @return [String] Description of the connection string
19
+ attr_accessor :description
20
+
21
+
22
+ #
23
+ # Mapper for DatabaseAccountConnectionString class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ client_side_validation: true,
29
+ required: false,
30
+ serialized_name: 'DatabaseAccountConnectionString',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'DatabaseAccountConnectionString',
34
+ model_properties: {
35
+ connection_string: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ read_only: true,
39
+ serialized_name: 'connectionString',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ description: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ read_only: true,
48
+ serialized_name: 'description',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ end
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,243 @@
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 database accounts.
10
+ #
11
+ class DatabaseAccountCreateUpdateParameters < Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [DatabaseAccountKind] Indicates the type of database account.
16
+ # This can only be set at database account creation. Possible values
17
+ # include: 'GlobalDocumentDB', 'MongoDB', 'Parse'. Default value:
18
+ # 'GlobalDocumentDB' .
19
+ attr_accessor :kind
20
+
21
+ # @return [ConsistencyPolicy] The consistency policy for the Cosmos DB
22
+ # account.
23
+ attr_accessor :consistency_policy
24
+
25
+ # @return [Array<Location>] An array that contains the georeplication
26
+ # locations enabled for the Cosmos DB account.
27
+ attr_accessor :locations
28
+
29
+ # @return [String] The offer type for the database. Default value:
30
+ # 'Standard' .
31
+ attr_accessor :database_account_offer_type
32
+
33
+ # @return [String] Cosmos DB Firewall Support: This value specifies the
34
+ # set of IP addresses or IP address ranges in CIDR form to be included as
35
+ # the allowed list of client IPs for a given database account. IP
36
+ # addresses/ranges must be comma separated and must not contain any
37
+ # spaces.
38
+ attr_accessor :ip_range_filter
39
+
40
+ # @return [Boolean] Flag to indicate whether to enable/disable Virtual
41
+ # Network ACL rules.
42
+ attr_accessor :is_virtual_network_filter_enabled
43
+
44
+ # @return [Boolean] Enables automatic failover of the write region in the
45
+ # rare event that the region is unavailable due to an outage. Automatic
46
+ # failover will result in a new write region for the account and is
47
+ # chosen based on the failover priorities configured for the account.
48
+ attr_accessor :enable_automatic_failover
49
+
50
+ # @return [Array<Capability>] List of Cosmos DB capabilities for the
51
+ # account
52
+ attr_accessor :capabilities
53
+
54
+ # @return [Array<VirtualNetworkRule>] List of Virtual Network ACL rules
55
+ # configured for the Cosmos DB account.
56
+ attr_accessor :virtual_network_rules
57
+
58
+ # @return [Boolean] Enables the account to write in multiple locations
59
+ attr_accessor :enable_multiple_write_locations
60
+
61
+
62
+ #
63
+ # Mapper for DatabaseAccountCreateUpdateParameters class as Ruby Hash.
64
+ # This will be used for serialization/deserialization.
65
+ #
66
+ def self.mapper()
67
+ {
68
+ client_side_validation: true,
69
+ required: false,
70
+ serialized_name: 'DatabaseAccountCreateUpdateParameters',
71
+ type: {
72
+ name: 'Composite',
73
+ class_name: 'DatabaseAccountCreateUpdateParameters',
74
+ model_properties: {
75
+ id: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ read_only: true,
79
+ serialized_name: 'id',
80
+ type: {
81
+ name: 'String'
82
+ }
83
+ },
84
+ name: {
85
+ client_side_validation: true,
86
+ required: false,
87
+ read_only: true,
88
+ serialized_name: 'name',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ },
93
+ type: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ read_only: true,
97
+ serialized_name: 'type',
98
+ type: {
99
+ name: 'String'
100
+ }
101
+ },
102
+ location: {
103
+ client_side_validation: true,
104
+ required: false,
105
+ serialized_name: 'location',
106
+ type: {
107
+ name: 'String'
108
+ }
109
+ },
110
+ tags: {
111
+ client_side_validation: true,
112
+ required: false,
113
+ serialized_name: 'tags',
114
+ type: {
115
+ name: 'Dictionary',
116
+ value: {
117
+ client_side_validation: true,
118
+ required: false,
119
+ serialized_name: 'StringElementType',
120
+ type: {
121
+ name: 'String'
122
+ }
123
+ }
124
+ }
125
+ },
126
+ kind: {
127
+ client_side_validation: true,
128
+ required: false,
129
+ serialized_name: 'kind',
130
+ default_value: 'GlobalDocumentDB',
131
+ type: {
132
+ name: 'String'
133
+ }
134
+ },
135
+ consistency_policy: {
136
+ client_side_validation: true,
137
+ required: false,
138
+ serialized_name: 'properties.consistencyPolicy',
139
+ type: {
140
+ name: 'Composite',
141
+ class_name: 'ConsistencyPolicy'
142
+ }
143
+ },
144
+ locations: {
145
+ client_side_validation: true,
146
+ required: true,
147
+ serialized_name: 'properties.locations',
148
+ type: {
149
+ name: 'Sequence',
150
+ element: {
151
+ client_side_validation: true,
152
+ required: false,
153
+ serialized_name: 'LocationElementType',
154
+ type: {
155
+ name: 'Composite',
156
+ class_name: 'Location'
157
+ }
158
+ }
159
+ }
160
+ },
161
+ database_account_offer_type: {
162
+ client_side_validation: true,
163
+ required: true,
164
+ is_constant: true,
165
+ serialized_name: 'properties.databaseAccountOfferType',
166
+ default_value: 'Standard',
167
+ type: {
168
+ name: 'String'
169
+ }
170
+ },
171
+ ip_range_filter: {
172
+ client_side_validation: true,
173
+ required: false,
174
+ serialized_name: 'properties.ipRangeFilter',
175
+ type: {
176
+ name: 'String'
177
+ }
178
+ },
179
+ is_virtual_network_filter_enabled: {
180
+ client_side_validation: true,
181
+ required: false,
182
+ serialized_name: 'properties.isVirtualNetworkFilterEnabled',
183
+ type: {
184
+ name: 'Boolean'
185
+ }
186
+ },
187
+ enable_automatic_failover: {
188
+ client_side_validation: true,
189
+ required: false,
190
+ serialized_name: 'properties.enableAutomaticFailover',
191
+ type: {
192
+ name: 'Boolean'
193
+ }
194
+ },
195
+ capabilities: {
196
+ client_side_validation: true,
197
+ required: false,
198
+ serialized_name: 'properties.capabilities',
199
+ type: {
200
+ name: 'Sequence',
201
+ element: {
202
+ client_side_validation: true,
203
+ required: false,
204
+ serialized_name: 'CapabilityElementType',
205
+ type: {
206
+ name: 'Composite',
207
+ class_name: 'Capability'
208
+ }
209
+ }
210
+ }
211
+ },
212
+ virtual_network_rules: {
213
+ client_side_validation: true,
214
+ required: false,
215
+ serialized_name: 'properties.virtualNetworkRules',
216
+ type: {
217
+ name: 'Sequence',
218
+ element: {
219
+ client_side_validation: true,
220
+ required: false,
221
+ serialized_name: 'VirtualNetworkRuleElementType',
222
+ type: {
223
+ name: 'Composite',
224
+ class_name: 'VirtualNetworkRule'
225
+ }
226
+ }
227
+ }
228
+ },
229
+ enable_multiple_write_locations: {
230
+ client_side_validation: true,
231
+ required: false,
232
+ serialized_name: 'properties.enableMultipleWriteLocations',
233
+ type: {
234
+ name: 'Boolean'
235
+ }
236
+ }
237
+ }
238
+ }
239
+ }
240
+ end
241
+ end
242
+ end
243
+ 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 DatabaseAccountKind
10
+ #
11
+ module DatabaseAccountKind
12
+ GlobalDocumentDB = "GlobalDocumentDB"
13
+ MongoDB = "MongoDB"
14
+ Parse = "Parse"
15
+ end
16
+ end
17
+ 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 connection strings for the given database account.
10
+ #
11
+ class DatabaseAccountListConnectionStringsResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<DatabaseAccountConnectionString>] An array that contains
16
+ # the connection strings for the Cosmos DB account.
17
+ attr_accessor :connection_strings
18
+
19
+
20
+ #
21
+ # Mapper for DatabaseAccountListConnectionStringsResult class as Ruby
22
+ # 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: 'DatabaseAccountListConnectionStringsResult',
30
+ type: {
31
+ name: 'Composite',
32
+ class_name: 'DatabaseAccountListConnectionStringsResult',
33
+ model_properties: {
34
+ connection_strings: {
35
+ client_side_validation: true,
36
+ required: false,
37
+ serialized_name: 'connectionStrings',
38
+ type: {
39
+ name: 'Sequence',
40
+ element: {
41
+ client_side_validation: true,
42
+ required: false,
43
+ serialized_name: 'DatabaseAccountConnectionStringElementType',
44
+ type: {
45
+ name: 'Composite',
46
+ class_name: 'DatabaseAccountConnectionString'
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,83 @@
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 access keys for the given database account.
10
+ #
11
+ class DatabaseAccountListKeysResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Base 64 encoded value of the primary read-write key.
16
+ attr_accessor :primary_master_key
17
+
18
+ # @return [String] Base 64 encoded value of the secondary read-write key.
19
+ attr_accessor :secondary_master_key
20
+
21
+ # @return [String] Base 64 encoded value of the primary read-only key.
22
+ attr_accessor :primary_readonly_master_key
23
+
24
+ # @return [String] Base 64 encoded value of the secondary read-only key.
25
+ attr_accessor :secondary_readonly_master_key
26
+
27
+
28
+ #
29
+ # Mapper for DatabaseAccountListKeysResult 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: 'DatabaseAccountListKeysResult',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'DatabaseAccountListKeysResult',
40
+ model_properties: {
41
+ primary_master_key: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ read_only: true,
45
+ serialized_name: 'primaryMasterKey',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ },
50
+ secondary_master_key: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ read_only: true,
54
+ serialized_name: 'secondaryMasterKey',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ },
59
+ primary_readonly_master_key: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ read_only: true,
63
+ serialized_name: 'properties.primaryReadonlyMasterKey',
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ },
68
+ secondary_readonly_master_key: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ read_only: true,
72
+ serialized_name: 'properties.secondaryReadonlyMasterKey',
73
+ type: {
74
+ name: 'String'
75
+ }
76
+ }
77
+ }
78
+ }
79
+ }
80
+ end
81
+ end
82
+ end
83
+ end