azure_mgmt_cosmosdb 0.21.0 → 0.23.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1280) hide show
  1. checksums.yaml +5 -5
  2. data/LICENSE.txt +20 -20
  3. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb.rb +0 -0
  4. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/collection.rb +0 -0
  5. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/collection_partition.rb +0 -0
  6. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/collection_partition_region.rb +0 -0
  7. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/collection_region.rb +0 -0
  8. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/cosmos_db.rb +1 -1
  9. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/database.rb +0 -0
  10. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/database_account_region.rb +0 -0
  11. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/database_accounts.rb +0 -0
  12. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/capability.rb +0 -0
  13. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace.rb +0 -0
  14. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_create_update_parameters.rb +0 -0
  15. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_list_result.rb +0 -0
  16. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_resource.rb +0 -0
  17. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_partition_key.rb +0 -0
  18. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_schema.rb +0 -0
  19. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_table.rb +0 -0
  20. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_table_create_update_parameters.rb +0 -0
  21. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_table_list_result.rb +0 -0
  22. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_table_resource.rb +0 -0
  23. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cluster_key.rb +0 -0
  24. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/column.rb +0 -0
  25. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/conflict_resolution_mode.rb +0 -0
  26. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/conflict_resolution_policy.rb +0 -0
  27. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/connector_offer.rb +0 -0
  28. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/consistency_policy.rb +0 -0
  29. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/container_partition_key.rb +0 -0
  30. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/data_type.rb +0 -0
  31. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account.rb +0 -0
  32. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_connection_string.rb +0 -0
  33. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_create_update_parameters.rb +0 -0
  34. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_kind.rb +0 -0
  35. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_list_connection_strings_result.rb +0 -0
  36. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_list_keys_result.rb +0 -0
  37. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_list_read_only_keys_result.rb +0 -0
  38. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_offer_type.rb +0 -0
  39. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_patch_parameters.rb +0 -0
  40. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_regenerate_key_parameters.rb +0 -0
  41. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_accounts_list_result.rb +0 -0
  42. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/default_consistency_level.rb +0 -0
  43. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/error_response.rb +0 -0
  44. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/excluded_path.rb +0 -0
  45. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/extended_resource_properties.rb +0 -0
  46. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/failover_policies.rb +0 -0
  47. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/failover_policy.rb +0 -0
  48. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_database.rb +0 -0
  49. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_database_create_update_parameters.rb +0 -0
  50. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_database_list_result.rb +0 -0
  51. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_database_resource.rb +0 -0
  52. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_graph.rb +0 -0
  53. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_graph_create_update_parameters.rb +0 -0
  54. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_graph_list_result.rb +0 -0
  55. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_graph_resource.rb +0 -0
  56. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/included_path.rb +0 -0
  57. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/index_kind.rb +0 -0
  58. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/indexes.rb +0 -0
  59. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/indexing_mode.rb +0 -0
  60. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/indexing_policy.rb +0 -0
  61. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/key_kind.rb +0 -0
  62. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/location.rb +0 -0
  63. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric.rb +0 -0
  64. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric_availability.rb +0 -0
  65. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric_definition.rb +0 -0
  66. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric_definitions_list_result.rb +0 -0
  67. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric_list_result.rb +0 -0
  68. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric_name.rb +0 -0
  69. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric_value.rb +0 -0
  70. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection.rb +0 -0
  71. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_create_update_parameters.rb +0 -0
  72. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_list_result.rb +0 -0
  73. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_resource.rb +0 -0
  74. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase.rb +0 -0
  75. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_create_update_parameters.rb +0 -0
  76. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_list_result.rb +0 -0
  77. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_resource.rb +0 -0
  78. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_index.rb +0 -0
  79. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_index_keys.rb +0 -0
  80. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb +0 -0
  81. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/operation.rb +0 -0
  82. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/operation_display.rb +0 -0
  83. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/operation_list_result.rb +0 -0
  84. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/partition_kind.rb +0 -0
  85. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/partition_metric.rb +0 -0
  86. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/partition_metric_list_result.rb +0 -0
  87. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/partition_usage.rb +0 -0
  88. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/partition_usages_result.rb +0 -0
  89. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/percentile_metric.rb +0 -0
  90. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/percentile_metric_list_result.rb +0 -0
  91. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/percentile_metric_value.rb +0 -0
  92. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/primary_aggregation_type.rb +0 -0
  93. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/region_for_online_offline.rb +0 -0
  94. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/resource.rb +0 -0
  95. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_container.rb +0 -0
  96. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_container_create_update_parameters.rb +0 -0
  97. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_container_list_result.rb +0 -0
  98. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb +0 -0
  99. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_database.rb +0 -0
  100. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_database_create_update_parameters.rb +0 -0
  101. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_database_list_result.rb +0 -0
  102. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_database_resource.rb +0 -0
  103. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/table.rb +0 -0
  104. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/table_create_update_parameters.rb +0 -0
  105. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/table_list_result.rb +0 -0
  106. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/table_resource.rb +0 -0
  107. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/throughput.rb +0 -0
  108. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/throughput_resource.rb +0 -0
  109. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/throughput_update_parameters.rb +0 -0
  110. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/unique_key.rb +0 -0
  111. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/unique_key_policy.rb +0 -0
  112. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/unit_type.rb +0 -0
  113. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/usage.rb +0 -0
  114. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/usages_result.rb +0 -0
  115. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/virtual_network_rule.rb +0 -0
  116. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/module_definition.rb +0 -0
  117. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/operations.rb +0 -0
  118. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/partition_key_range_id.rb +0 -0
  119. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/partition_key_range_id_region.rb +0 -0
  120. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/percentile.rb +0 -0
  121. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/percentile_source_target.rb +0 -0
  122. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/percentile_target.rb +0 -0
  123. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb.rb +0 -0
  124. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/cosmos_dbmanagement_client.rb +3 -10
  125. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/models/armproxy_resource.rb +0 -0
  126. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/models/azure_entity_resource.rb +3 -1
  127. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/models/error_response.rb +0 -0
  128. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/models/private_endpoint_connection.rb +22 -0
  129. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/models/private_endpoint_connection_list_result.rb +0 -0
  130. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/models/private_endpoint_property.rb +0 -0
  131. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/models/private_link_resource.rb +20 -0
  132. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/models/private_link_resource_list_result.rb +0 -0
  133. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/models/private_link_service_connection_state_property.rb +0 -0
  134. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/models/proxy_resource.rb +4 -2
  135. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/models/resource.rb +8 -5
  136. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/models/tracked_resource.rb +4 -1
  137. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/module_definition.rb +0 -0
  138. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/private_endpoint_connections.rb +0 -0
  139. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/private_link_resources.rb +16 -6
  140. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb.rb +0 -0
  141. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/cassandra_resources.rb +0 -0
  142. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/collection.rb +0 -0
  143. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/collection_partition.rb +0 -0
  144. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/collection_partition_region.rb +0 -0
  145. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/collection_region.rb +0 -0
  146. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/cosmos_dbmanagement_client.rb +1 -1
  147. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/database.rb +0 -0
  148. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/database_account_region.rb +0 -0
  149. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/database_accounts.rb +0 -0
  150. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/gremlin_resources.rb +0 -0
  151. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/armproxy_resource.rb +0 -0
  152. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/armresource_properties.rb +0 -0
  153. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/capability.rb +0 -0
  154. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_create_update_parameters.rb +0 -0
  155. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_resource.rb +0 -0
  156. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_results.rb +0 -0
  157. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_list_result.rb +0 -0
  158. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_resource.rb +0 -0
  159. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/cassandra_partition_key.rb +0 -0
  160. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/cassandra_schema.rb +0 -0
  161. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_create_update_parameters.rb +0 -0
  162. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_resource.rb +0 -0
  163. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_results.rb +0 -0
  164. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_list_result.rb +0 -0
  165. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_resource.rb +0 -0
  166. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/cluster_key.rb +0 -0
  167. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/column.rb +0 -0
  168. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/composite_path.rb +0 -0
  169. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/composite_path_sort_order.rb +0 -0
  170. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/conflict_resolution_mode.rb +0 -0
  171. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/conflict_resolution_policy.rb +0 -0
  172. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/connector_offer.rb +0 -0
  173. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/consistency_policy.rb +0 -0
  174. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/container_partition_key.rb +0 -0
  175. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/data_type.rb +0 -0
  176. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/database_account_connection_string.rb +0 -0
  177. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/database_account_create_update_parameters.rb +0 -0
  178. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/database_account_get_results.rb +0 -0
  179. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/database_account_kind.rb +0 -0
  180. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/database_account_list_connection_strings_result.rb +0 -0
  181. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/database_account_list_keys_result.rb +0 -0
  182. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/database_account_list_read_only_keys_result.rb +0 -0
  183. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/database_account_offer_type.rb +0 -0
  184. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/database_account_regenerate_key_parameters.rb +0 -0
  185. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/database_account_update_parameters.rb +0 -0
  186. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/database_accounts_list_result.rb +0 -0
  187. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/default_consistency_level.rb +0 -0
  188. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/error_response.rb +0 -0
  189. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/excluded_path.rb +0 -0
  190. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/extended_resource_properties.rb +0 -0
  191. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/failover_policies.rb +0 -0
  192. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/failover_policy.rb +0 -0
  193. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_create_update_parameters.rb +0 -0
  194. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_resource.rb +0 -0
  195. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_results.rb +0 -0
  196. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_list_result.rb +0 -0
  197. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_resource.rb +0 -0
  198. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_create_update_parameters.rb +0 -0
  199. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_resource.rb +0 -0
  200. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_results.rb +0 -0
  201. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_list_result.rb +0 -0
  202. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_resource.rb +0 -0
  203. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/included_path.rb +0 -0
  204. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/index_kind.rb +0 -0
  205. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/indexes.rb +0 -0
  206. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/indexing_mode.rb +0 -0
  207. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/indexing_policy.rb +0 -0
  208. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/key_kind.rb +0 -0
  209. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/location.rb +0 -0
  210. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/metric.rb +0 -0
  211. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/metric_availability.rb +0 -0
  212. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/metric_definition.rb +0 -0
  213. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/metric_definitions_list_result.rb +0 -0
  214. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/metric_list_result.rb +0 -0
  215. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/metric_name.rb +0 -0
  216. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/metric_value.rb +0 -0
  217. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_create_update_parameters.rb +0 -0
  218. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_resource.rb +0 -0
  219. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_results.rb +0 -0
  220. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_list_result.rb +0 -0
  221. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_resource.rb +0 -0
  222. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_create_update_parameters.rb +0 -0
  223. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_resource.rb +0 -0
  224. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_results.rb +0 -0
  225. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_list_result.rb +0 -0
  226. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_resource.rb +0 -0
  227. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/mongo_index.rb +0 -0
  228. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/mongo_index_keys.rb +0 -0
  229. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb +0 -0
  230. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/operation.rb +0 -0
  231. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/operation_display.rb +0 -0
  232. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/operation_list_result.rb +0 -0
  233. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/partition_kind.rb +0 -0
  234. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/partition_metric.rb +0 -0
  235. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/partition_metric_list_result.rb +0 -0
  236. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/partition_usage.rb +0 -0
  237. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/partition_usages_result.rb +0 -0
  238. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/percentile_metric.rb +0 -0
  239. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/percentile_metric_list_result.rb +0 -0
  240. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/percentile_metric_value.rb +0 -0
  241. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/primary_aggregation_type.rb +0 -0
  242. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/region_for_online_offline.rb +0 -0
  243. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/spatial_spec.rb +0 -0
  244. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/spatial_type.rb +0 -0
  245. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_container_create_update_parameters.rb +0 -0
  246. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_resource.rb +0 -0
  247. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_results.rb +0 -0
  248. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_container_list_result.rb +0 -0
  249. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb +0 -0
  250. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_database_create_update_parameters.rb +0 -0
  251. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_resource.rb +0 -0
  252. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_results.rb +0 -0
  253. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_database_list_result.rb +0 -0
  254. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_database_resource.rb +0 -0
  255. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_create_update_parameters.rb +0 -0
  256. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_properties_resource.rb +0 -0
  257. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_results.rb +0 -0
  258. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_list_result.rb +0 -0
  259. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_resource.rb +0 -0
  260. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_create_update_parameters.rb +0 -0
  261. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_properties_resource.rb +0 -0
  262. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_results.rb +0 -0
  263. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_list_result.rb +0 -0
  264. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_resource.rb +0 -0
  265. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_create_update_parameters.rb +0 -0
  266. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_properties_resource.rb +0 -0
  267. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_results.rb +0 -0
  268. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_list_result.rb +0 -0
  269. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_resource.rb +0 -0
  270. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/table_create_update_parameters.rb +0 -0
  271. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/table_get_properties_resource.rb +0 -0
  272. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/table_get_results.rb +0 -0
  273. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/table_list_result.rb +0 -0
  274. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/table_resource.rb +0 -0
  275. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_properties_resource.rb +0 -0
  276. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_results.rb +0 -0
  277. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_resource.rb +0 -0
  278. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_update_parameters.rb +0 -0
  279. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/trigger_operation.rb +0 -0
  280. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/trigger_type.rb +0 -0
  281. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/unique_key.rb +0 -0
  282. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/unique_key_policy.rb +0 -0
  283. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/unit_type.rb +0 -0
  284. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/usage.rb +0 -0
  285. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/usages_result.rb +0 -0
  286. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/virtual_network_rule.rb +0 -0
  287. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/module_definition.rb +0 -0
  288. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/mongo_dbresources.rb +0 -0
  289. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/operations.rb +0 -0
  290. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/partition_key_range_id.rb +0 -0
  291. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/partition_key_range_id_region.rb +0 -0
  292. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/percentile.rb +0 -0
  293. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/percentile_source_target.rb +0 -0
  294. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/percentile_target.rb +0 -0
  295. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/sql_resources.rb +0 -0
  296. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/table_resources.rb +0 -0
  297. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb.rb +190 -0
  298. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/cassandra_resources.rb +1628 -0
  299. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/collection.rb +374 -0
  300. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/collection_partition.rb +269 -0
  301. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/collection_partition_region.rb +156 -0
  302. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/collection_region.rb +156 -0
  303. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/cosmos_dbmanagement_client.rb +210 -0
  304. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/database.rb +362 -0
  305. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/database_account_region.rb +148 -0
  306. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/database_accounts.rb +2184 -0
  307. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/gremlin_resources.rb +1623 -0
  308. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/armproxy_resource.rb +73 -0
  309. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/armresource_properties.rb +102 -0
  310. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/auto_upgrade_policy_resource.rb +48 -0
  311. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/capability.rb +48 -0
  312. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_create_update_parameters.rb +112 -0
  313. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_resource.rb +85 -0
  314. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_results.rb +98 -0
  315. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_list_result.rb +58 -0
  316. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_resource.rb +46 -0
  317. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_partition_key.rb +46 -0
  318. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_schema.rb +95 -0
  319. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_table_create_update_parameters.rb +112 -0
  320. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_resource.rb +108 -0
  321. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_results.rb +98 -0
  322. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_table_list_result.rb +58 -0
  323. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_table_resource.rb +69 -0
  324. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cluster_key.rb +58 -0
  325. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/column.rb +57 -0
  326. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/composite_path.rb +60 -0
  327. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/composite_path_sort_order.rb +16 -0
  328. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/conflict_resolution_mode.rb +16 -0
  329. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/conflict_resolution_policy.rb +73 -0
  330. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/connector_offer.rb +15 -0
  331. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/consistency_policy.rb +86 -0
  332. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/container_partition_key.rb +85 -0
  333. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/create_update_options.rb +68 -0
  334. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/data_type.rb +20 -0
  335. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_connection_string.rb +59 -0
  336. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_create_update_parameters.rb +290 -0
  337. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_get_results.rb +382 -0
  338. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_kind.rb +17 -0
  339. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_list_connection_strings_result.rb +57 -0
  340. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_list_keys_result.rb +77 -0
  341. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_list_read_only_keys_result.rb +59 -0
  342. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_offer_type.rb +15 -0
  343. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_regenerate_key_parameters.rb +47 -0
  344. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_update_parameters.rb +241 -0
  345. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_accounts_list_result.rb +58 -0
  346. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/default_consistency_level.rb +19 -0
  347. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/error_response.rb +57 -0
  348. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/excluded_path.rb +48 -0
  349. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/extended_resource_properties.rb +74 -0
  350. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/failover_policies.rb +55 -0
  351. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/failover_policy.rb +79 -0
  352. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_database_create_update_parameters.rb +112 -0
  353. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_resource.rb +85 -0
  354. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_results.rb +98 -0
  355. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_database_list_result.rb +58 -0
  356. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_database_resource.rb +46 -0
  357. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_graph_create_update_parameters.rb +112 -0
  358. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_resource.rb +150 -0
  359. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_results.rb +98 -0
  360. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_graph_list_result.rb +58 -0
  361. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_graph_resource.rb +111 -0
  362. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/included_path.rb +67 -0
  363. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/index_kind.rb +17 -0
  364. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/indexes.rb +73 -0
  365. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/indexing_mode.rb +17 -0
  366. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/indexing_policy.rb +147 -0
  367. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/key_kind.rb +18 -0
  368. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/location.rb +114 -0
  369. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric.rb +120 -0
  370. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_availability.rb +60 -0
  371. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_definition.rb +109 -0
  372. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_definitions_list_result.rb +57 -0
  373. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_list_result.rb +56 -0
  374. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_name.rb +59 -0
  375. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_value.rb +107 -0
  376. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_create_update_parameters.rb +112 -0
  377. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_resource.rb +125 -0
  378. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_results.rb +98 -0
  379. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_list_result.rb +58 -0
  380. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_resource.rb +86 -0
  381. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_create_update_parameters.rb +112 -0
  382. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_resource.rb +85 -0
  383. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_results.rb +98 -0
  384. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_list_result.rb +58 -0
  385. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_resource.rb +46 -0
  386. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_index.rb +60 -0
  387. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_index_keys.rb +55 -0
  388. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb +57 -0
  389. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/notebook_workspace.rb +87 -0
  390. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/notebook_workspace_connection_info_result.rb +60 -0
  391. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/notebook_workspace_create_update_parameters.rb +62 -0
  392. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/notebook_workspace_list_result.rb +56 -0
  393. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/operation.rb +58 -0
  394. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/operation_display.rb +80 -0
  395. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/operation_list_result.rb +101 -0
  396. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/partition_kind.rb +16 -0
  397. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/partition_metric.rb +124 -0
  398. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/partition_metric_list_result.rb +57 -0
  399. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/partition_usage.rb +105 -0
  400. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/partition_usages_result.rb +57 -0
  401. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/percentile_metric.rb +120 -0
  402. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/percentile_metric_list_result.rb +57 -0
  403. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/percentile_metric_value.rb +173 -0
  404. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/primary_aggregation_type.rb +20 -0
  405. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/provisioned_throughput_settings_resource.rb +73 -0
  406. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/region_for_online_offline.rb +47 -0
  407. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/spatial_spec.rb +67 -0
  408. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/spatial_type.rb +18 -0
  409. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_container_create_update_parameters.rb +111 -0
  410. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_resource.rb +150 -0
  411. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_container_get_results.rb +98 -0
  412. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_container_list_result.rb +58 -0
  413. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb +111 -0
  414. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_database_create_update_parameters.rb +112 -0
  415. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_resource.rb +109 -0
  416. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_database_get_results.rb +98 -0
  417. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_database_list_result.rb +58 -0
  418. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_database_resource.rb +46 -0
  419. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_create_update_parameters.rb +112 -0
  420. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_properties_resource.rb +96 -0
  421. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_results.rb +98 -0
  422. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_list_result.rb +58 -0
  423. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_resource.rb +57 -0
  424. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_trigger_create_update_parameters.rb +111 -0
  425. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_properties_resource.rb +121 -0
  426. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_results.rb +98 -0
  427. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_trigger_list_result.rb +58 -0
  428. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_trigger_resource.rb +82 -0
  429. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_create_update_parameters.rb +113 -0
  430. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_properties_resource.rb +97 -0
  431. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_results.rb +98 -0
  432. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_list_result.rb +58 -0
  433. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_resource.rb +57 -0
  434. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/table_create_update_parameters.rb +111 -0
  435. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/table_get_properties_resource.rb +85 -0
  436. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/table_get_results.rb +98 -0
  437. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/table_list_result.rb +57 -0
  438. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/table_resource.rb +46 -0
  439. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/throughput_policy_resource.rb +59 -0
  440. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_properties_resource.rb +125 -0
  441. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_results.rb +98 -0
  442. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/throughput_settings_resource.rb +87 -0
  443. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/throughput_settings_update_parameters.rb +99 -0
  444. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/trigger_operation.rb +19 -0
  445. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/trigger_type.rb +16 -0
  446. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/unique_key.rb +56 -0
  447. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/unique_key_policy.rb +58 -0
  448. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/unit_type.rb +21 -0
  449. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/usage.rb +97 -0
  450. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/usages_result.rb +57 -0
  451. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/virtual_network_rule.rb +59 -0
  452. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/module_definition.rb +9 -0
  453. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/mongo_dbresources.rb +1634 -0
  454. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb +905 -0
  455. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/operations.rb +219 -0
  456. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/partition_key_range_id.rb +156 -0
  457. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/partition_key_range_id_region.rb +163 -0
  458. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/percentile.rb +141 -0
  459. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/percentile_source_target.rb +158 -0
  460. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/percentile_target.rb +148 -0
  461. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/sql_resources.rb +3289 -0
  462. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/table_resources.rb +804 -0
  463. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb.rb +208 -0
  464. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/cassandra_resources.rb +1700 -0
  465. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/collection.rb +389 -0
  466. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/collection_partition.rb +279 -0
  467. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/collection_partition_region.rb +161 -0
  468. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/collection_region.rb +161 -0
  469. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/cosmos_dbmanagement_client.rb +203 -0
  470. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/database.rb +377 -0
  471. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/database_account_region.rb +153 -0
  472. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/database_accounts.rb +2281 -0
  473. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/gremlin_resources.rb +1695 -0
  474. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/armproxy_resource.rb +73 -0
  475. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/armresource_properties.rb +102 -0
  476. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/auto_upgrade_policy_resource.rb +48 -0
  477. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/azure_entity_resource.rb +75 -0
  478. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/capability.rb +48 -0
  479. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_create_update_parameters.rb +112 -0
  480. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_options.rb +44 -0
  481. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_resource.rb +85 -0
  482. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_results.rb +110 -0
  483. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_list_result.rb +58 -0
  484. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_resource.rb +46 -0
  485. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_partition_key.rb +46 -0
  486. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_schema.rb +95 -0
  487. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_create_update_parameters.rb +112 -0
  488. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_options.rb +44 -0
  489. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_resource.rb +108 -0
  490. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_results.rb +110 -0
  491. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_list_result.rb +58 -0
  492. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_resource.rb +69 -0
  493. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cluster_key.rb +58 -0
  494. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/column.rb +57 -0
  495. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/composite_path.rb +60 -0
  496. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/composite_path_sort_order.rb +16 -0
  497. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/conflict_resolution_mode.rb +16 -0
  498. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/conflict_resolution_policy.rb +73 -0
  499. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/connector_offer.rb +15 -0
  500. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/consistency_policy.rb +86 -0
  501. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/container_partition_key.rb +85 -0
  502. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/create_update_options.rb +68 -0
  503. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/data_type.rb +20 -0
  504. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_connection_string.rb +59 -0
  505. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_create_update_parameters.rb +302 -0
  506. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_get_results.rb +416 -0
  507. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_kind.rb +17 -0
  508. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_list_connection_strings_result.rb +57 -0
  509. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_list_keys_result.rb +77 -0
  510. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_list_read_only_keys_result.rb +59 -0
  511. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_offer_type.rb +15 -0
  512. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_regenerate_key_parameters.rb +47 -0
  513. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_update_parameters.rb +253 -0
  514. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_accounts_list_result.rb +58 -0
  515. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/default_consistency_level.rb +19 -0
  516. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/error_response.rb +57 -0
  517. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/excluded_path.rb +48 -0
  518. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/extended_resource_properties.rb +74 -0
  519. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/failover_policies.rb +55 -0
  520. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/failover_policy.rb +79 -0
  521. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_create_update_parameters.rb +112 -0
  522. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_options.rb +44 -0
  523. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_resource.rb +85 -0
  524. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_results.rb +110 -0
  525. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_list_result.rb +58 -0
  526. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_resource.rb +46 -0
  527. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_create_update_parameters.rb +112 -0
  528. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_options.rb +44 -0
  529. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_resource.rb +150 -0
  530. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_results.rb +110 -0
  531. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_list_result.rb +58 -0
  532. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_resource.rb +111 -0
  533. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/included_path.rb +67 -0
  534. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/index_kind.rb +17 -0
  535. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/indexes.rb +73 -0
  536. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/indexing_mode.rb +17 -0
  537. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/indexing_policy.rb +147 -0
  538. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/key_kind.rb +18 -0
  539. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/location.rb +114 -0
  540. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/metric.rb +120 -0
  541. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/metric_availability.rb +60 -0
  542. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/metric_definition.rb +109 -0
  543. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/metric_definitions_list_result.rb +57 -0
  544. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/metric_list_result.rb +56 -0
  545. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/metric_name.rb +59 -0
  546. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/metric_value.rb +107 -0
  547. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_create_update_parameters.rb +112 -0
  548. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_options.rb +44 -0
  549. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_resource.rb +125 -0
  550. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_results.rb +110 -0
  551. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_list_result.rb +58 -0
  552. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_resource.rb +86 -0
  553. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_create_update_parameters.rb +112 -0
  554. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_options.rb +44 -0
  555. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_resource.rb +85 -0
  556. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_results.rb +110 -0
  557. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_list_result.rb +58 -0
  558. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_resource.rb +46 -0
  559. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_index.rb +60 -0
  560. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_index_keys.rb +55 -0
  561. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb +57 -0
  562. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace.rb +87 -0
  563. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_connection_info_result.rb +60 -0
  564. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_create_update_parameters.rb +62 -0
  565. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_list_result.rb +56 -0
  566. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/operation.rb +58 -0
  567. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/operation_display.rb +80 -0
  568. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/operation_list_result.rb +101 -0
  569. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/options_resource.rb +47 -0
  570. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/partition_kind.rb +16 -0
  571. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/partition_metric.rb +124 -0
  572. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/partition_metric_list_result.rb +57 -0
  573. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/partition_usage.rb +105 -0
  574. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/partition_usages_result.rb +57 -0
  575. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/percentile_metric.rb +120 -0
  576. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/percentile_metric_list_result.rb +57 -0
  577. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/percentile_metric_value.rb +173 -0
  578. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/primary_aggregation_type.rb +20 -0
  579. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/private_endpoint_connection.rb +88 -0
  580. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/private_endpoint_property.rb +46 -0
  581. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/private_link_service_connection_state_property.rb +60 -0
  582. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/provisioned_throughput_settings_resource.rb +73 -0
  583. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/proxy_resource.rb +63 -0
  584. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/public_network_access.rb +16 -0
  585. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/region_for_online_offline.rb +47 -0
  586. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/resource.rb +83 -0
  587. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/spatial_spec.rb +67 -0
  588. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/spatial_type.rb +18 -0
  589. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_container_create_update_parameters.rb +111 -0
  590. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_options.rb +44 -0
  591. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_resource.rb +150 -0
  592. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_results.rb +110 -0
  593. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_container_list_result.rb +58 -0
  594. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb +111 -0
  595. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_database_create_update_parameters.rb +112 -0
  596. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_options.rb +44 -0
  597. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_resource.rb +109 -0
  598. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_results.rb +110 -0
  599. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_database_list_result.rb +58 -0
  600. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_database_resource.rb +46 -0
  601. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_create_update_parameters.rb +112 -0
  602. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_properties_resource.rb +96 -0
  603. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_results.rb +98 -0
  604. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_list_result.rb +58 -0
  605. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_resource.rb +57 -0
  606. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_create_update_parameters.rb +111 -0
  607. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_properties_resource.rb +121 -0
  608. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_results.rb +98 -0
  609. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_list_result.rb +58 -0
  610. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_resource.rb +82 -0
  611. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_create_update_parameters.rb +113 -0
  612. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_properties_resource.rb +97 -0
  613. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_results.rb +98 -0
  614. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_list_result.rb +58 -0
  615. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_resource.rb +57 -0
  616. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/table_create_update_parameters.rb +111 -0
  617. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/table_get_properties_options.rb +44 -0
  618. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/table_get_properties_resource.rb +85 -0
  619. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/table_get_results.rb +110 -0
  620. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/table_list_result.rb +57 -0
  621. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/table_resource.rb +46 -0
  622. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/throughput_policy_resource.rb +59 -0
  623. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_properties_resource.rb +125 -0
  624. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_results.rb +98 -0
  625. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_resource.rb +87 -0
  626. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_update_parameters.rb +99 -0
  627. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/tracked_resource.rb +92 -0
  628. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/trigger_operation.rb +19 -0
  629. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/trigger_type.rb +16 -0
  630. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/unique_key.rb +56 -0
  631. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/unique_key_policy.rb +58 -0
  632. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/unit_type.rb +21 -0
  633. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/usage.rb +97 -0
  634. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/usages_result.rb +57 -0
  635. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/virtual_network_rule.rb +59 -0
  636. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/module_definition.rb +9 -0
  637. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/mongo_dbresources.rb +1706 -0
  638. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb +906 -0
  639. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/operations.rb +220 -0
  640. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/partition_key_range_id.rb +161 -0
  641. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/partition_key_range_id_region.rb +168 -0
  642. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/percentile.rb +146 -0
  643. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/percentile_source_target.rb +163 -0
  644. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/percentile_target.rb +153 -0
  645. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/sql_resources.rb +3433 -0
  646. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/table_resources.rb +840 -0
  647. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb.rb +213 -0
  648. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/cassandra_resources.rb +2348 -0
  649. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/collection.rb +389 -0
  650. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/collection_partition.rb +279 -0
  651. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/collection_partition_region.rb +161 -0
  652. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/collection_region.rb +161 -0
  653. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/cosmos_dbmanagement_client.rb +203 -0
  654. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/database.rb +377 -0
  655. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/database_account_region.rb +153 -0
  656. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/database_accounts.rb +2281 -0
  657. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/gremlin_resources.rb +2335 -0
  658. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/api_properties.rb +48 -0
  659. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/armproxy_resource.rb +73 -0
  660. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/armresource_properties.rb +102 -0
  661. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/auto_upgrade_policy_resource.rb +48 -0
  662. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/autoscale_settings.rb +48 -0
  663. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/autoscale_settings_resource.rb +73 -0
  664. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/azure_entity_resource.rb +75 -0
  665. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/capability.rb +48 -0
  666. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_create_update_parameters.rb +112 -0
  667. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_options.rb +53 -0
  668. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_resource.rb +85 -0
  669. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_results.rb +110 -0
  670. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_list_result.rb +58 -0
  671. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_resource.rb +46 -0
  672. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_partition_key.rb +46 -0
  673. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_schema.rb +95 -0
  674. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_create_update_parameters.rb +112 -0
  675. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_options.rb +53 -0
  676. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_resource.rb +119 -0
  677. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_results.rb +110 -0
  678. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_list_result.rb +58 -0
  679. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_resource.rb +80 -0
  680. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cluster_key.rb +58 -0
  681. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/column.rb +57 -0
  682. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/composite_path.rb +60 -0
  683. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/composite_path_sort_order.rb +16 -0
  684. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/conflict_resolution_mode.rb +16 -0
  685. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/conflict_resolution_policy.rb +73 -0
  686. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/connector_offer.rb +15 -0
  687. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/consistency_policy.rb +86 -0
  688. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/container_partition_key.rb +85 -0
  689. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cors_policy.rb +99 -0
  690. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/create_update_options.rb +61 -0
  691. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/data_type.rb +20 -0
  692. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_connection_string.rb +59 -0
  693. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_create_update_parameters.rb +363 -0
  694. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_get_results.rb +476 -0
  695. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_kind.rb +17 -0
  696. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_list_connection_strings_result.rb +57 -0
  697. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_list_keys_result.rb +77 -0
  698. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_list_read_only_keys_result.rb +59 -0
  699. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_offer_type.rb +15 -0
  700. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_regenerate_key_parameters.rb +47 -0
  701. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_update_parameters.rb +314 -0
  702. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_accounts_list_result.rb +58 -0
  703. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/default_consistency_level.rb +19 -0
  704. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/error_response.rb +57 -0
  705. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/excluded_path.rb +48 -0
  706. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/extended_resource_properties.rb +74 -0
  707. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/failover_policies.rb +55 -0
  708. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/failover_policy.rb +79 -0
  709. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_create_update_parameters.rb +112 -0
  710. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_options.rb +53 -0
  711. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_resource.rb +85 -0
  712. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_results.rb +110 -0
  713. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_list_result.rb +58 -0
  714. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_resource.rb +46 -0
  715. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_create_update_parameters.rb +112 -0
  716. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_options.rb +53 -0
  717. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_resource.rb +150 -0
  718. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_results.rb +110 -0
  719. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_list_result.rb +58 -0
  720. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_resource.rb +111 -0
  721. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/included_path.rb +67 -0
  722. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/index_kind.rb +17 -0
  723. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/indexes.rb +73 -0
  724. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/indexing_mode.rb +17 -0
  725. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/indexing_policy.rb +147 -0
  726. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/ip_address_or_range.rb +51 -0
  727. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/key_kind.rb +18 -0
  728. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/location.rb +114 -0
  729. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/metric.rb +120 -0
  730. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/metric_availability.rb +60 -0
  731. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/metric_definition.rb +109 -0
  732. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/metric_definitions_list_result.rb +57 -0
  733. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/metric_list_result.rb +56 -0
  734. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/metric_name.rb +59 -0
  735. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/metric_value.rb +107 -0
  736. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_create_update_parameters.rb +112 -0
  737. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_options.rb +53 -0
  738. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_resource.rb +136 -0
  739. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_results.rb +110 -0
  740. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_list_result.rb +58 -0
  741. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_resource.rb +97 -0
  742. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_create_update_parameters.rb +112 -0
  743. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_options.rb +53 -0
  744. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_resource.rb +85 -0
  745. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_results.rb +110 -0
  746. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_list_result.rb +58 -0
  747. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_resource.rb +46 -0
  748. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_index.rb +60 -0
  749. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_index_keys.rb +55 -0
  750. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb +57 -0
  751. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace.rb +87 -0
  752. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_connection_info_result.rb +60 -0
  753. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_create_update_parameters.rb +62 -0
  754. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_list_result.rb +56 -0
  755. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/operation.rb +58 -0
  756. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/operation_display.rb +80 -0
  757. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/operation_list_result.rb +101 -0
  758. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/options_resource.rb +60 -0
  759. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/partition_kind.rb +16 -0
  760. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/partition_metric.rb +124 -0
  761. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/partition_metric_list_result.rb +57 -0
  762. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/partition_usage.rb +105 -0
  763. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/partition_usages_result.rb +57 -0
  764. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/percentile_metric.rb +120 -0
  765. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/percentile_metric_list_result.rb +57 -0
  766. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/percentile_metric_value.rb +173 -0
  767. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/primary_aggregation_type.rb +20 -0
  768. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/private_endpoint_connection.rb +88 -0
  769. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/private_endpoint_property.rb +46 -0
  770. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/private_link_service_connection_state_property.rb +60 -0
  771. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/proxy_resource.rb +63 -0
  772. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/public_network_access.rb +16 -0
  773. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/region_for_online_offline.rb +47 -0
  774. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/resource.rb +83 -0
  775. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/server_version.rb +16 -0
  776. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/spatial_spec.rb +67 -0
  777. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/spatial_type.rb +18 -0
  778. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_container_create_update_parameters.rb +111 -0
  779. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_options.rb +53 -0
  780. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_resource.rb +161 -0
  781. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_results.rb +110 -0
  782. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_container_list_result.rb +58 -0
  783. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb +122 -0
  784. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_database_create_update_parameters.rb +112 -0
  785. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_options.rb +53 -0
  786. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_resource.rb +109 -0
  787. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_results.rb +110 -0
  788. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_database_list_result.rb +58 -0
  789. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_database_resource.rb +46 -0
  790. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_create_update_parameters.rb +112 -0
  791. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_properties_resource.rb +96 -0
  792. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_results.rb +98 -0
  793. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_list_result.rb +58 -0
  794. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_resource.rb +57 -0
  795. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_create_update_parameters.rb +111 -0
  796. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_properties_resource.rb +121 -0
  797. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_results.rb +98 -0
  798. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_list_result.rb +58 -0
  799. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_resource.rb +82 -0
  800. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_create_update_parameters.rb +113 -0
  801. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_properties_resource.rb +97 -0
  802. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_results.rb +98 -0
  803. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_list_result.rb +58 -0
  804. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_resource.rb +57 -0
  805. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/table_create_update_parameters.rb +111 -0
  806. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/table_get_properties_options.rb +53 -0
  807. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/table_get_properties_resource.rb +85 -0
  808. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/table_get_results.rb +110 -0
  809. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/table_list_result.rb +57 -0
  810. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/table_resource.rb +46 -0
  811. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/throughput_policy_resource.rb +59 -0
  812. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_properties_resource.rb +124 -0
  813. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_results.rb +98 -0
  814. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_resource.rb +86 -0
  815. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_update_parameters.rb +99 -0
  816. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/tracked_resource.rb +92 -0
  817. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/trigger_operation.rb +19 -0
  818. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/trigger_type.rb +16 -0
  819. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/unique_key.rb +56 -0
  820. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/unique_key_policy.rb +58 -0
  821. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/unit_type.rb +21 -0
  822. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/usage.rb +97 -0
  823. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/usages_result.rb +57 -0
  824. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/virtual_network_rule.rb +59 -0
  825. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/module_definition.rb +9 -0
  826. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/mongo_dbresources.rb +2354 -0
  827. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb +905 -0
  828. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/operations.rb +220 -0
  829. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/partition_key_range_id.rb +161 -0
  830. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/partition_key_range_id_region.rb +168 -0
  831. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/percentile.rb +146 -0
  832. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/percentile_source_target.rb +163 -0
  833. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/percentile_target.rb +153 -0
  834. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/sql_resources.rb +4065 -0
  835. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/table_resources.rb +1150 -0
  836. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb.rb +267 -0
  837. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/cassandra_resources.rb +1700 -0
  838. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/collection.rb +389 -0
  839. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/collection_partition.rb +279 -0
  840. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/collection_partition_region.rb +161 -0
  841. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/collection_region.rb +161 -0
  842. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/cosmos_dbmanagement_client.rb +231 -0
  843. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/database.rb +377 -0
  844. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/database_account_region.rb +153 -0
  845. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/database_accounts.rb +2281 -0
  846. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/gremlin_resources.rb +1695 -0
  847. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/api_properties.rb +48 -0
  848. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/api_type.rb +20 -0
  849. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/armproxy_resource.rb +73 -0
  850. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/armresource_properties.rb +114 -0
  851. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/auto_upgrade_policy_resource.rb +48 -0
  852. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/autoscale_settings.rb +48 -0
  853. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/autoscale_settings_resource.rb +73 -0
  854. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/azure_entity_resource.rb +77 -0
  855. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/backup_policy.rb +47 -0
  856. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/backup_storage_redundancy.rb +17 -0
  857. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/capability.rb +48 -0
  858. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_create_update_parameters.rb +121 -0
  859. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_options.rb +53 -0
  860. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_resource.rb +85 -0
  861. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_results.rb +119 -0
  862. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_list_result.rb +58 -0
  863. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_resource.rb +46 -0
  864. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_partition_key.rb +46 -0
  865. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_schema.rb +95 -0
  866. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_table_create_update_parameters.rb +121 -0
  867. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_options.rb +53 -0
  868. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_resource.rb +119 -0
  869. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_results.rb +119 -0
  870. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_table_list_result.rb +58 -0
  871. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_table_resource.rb +80 -0
  872. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cluster_key.rb +58 -0
  873. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/column.rb +57 -0
  874. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/composite_path.rb +60 -0
  875. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/composite_path_sort_order.rb +16 -0
  876. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/conflict_resolution_mode.rb +16 -0
  877. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/conflict_resolution_policy.rb +73 -0
  878. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/connector_offer.rb +15 -0
  879. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/consistency_policy.rb +86 -0
  880. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/container_partition_key.rb +85 -0
  881. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/continuous_mode_backup_policy.rb +50 -0
  882. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cors_policy.rb +99 -0
  883. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/create_mode.rb +16 -0
  884. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/create_update_options.rb +61 -0
  885. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/created_by_type.rb +18 -0
  886. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/data_type.rb +20 -0
  887. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_connection_string.rb +59 -0
  888. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_create_update_parameters.rb +125 -0
  889. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_create_update_properties.rb +324 -0
  890. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_get_results.rb +552 -0
  891. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_kind.rb +17 -0
  892. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_list_connection_strings_result.rb +57 -0
  893. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_list_keys_result.rb +77 -0
  894. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_list_read_only_keys_result.rb +59 -0
  895. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_offer_type.rb +15 -0
  896. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_regenerate_key_parameters.rb +47 -0
  897. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_update_parameters.rb +341 -0
  898. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_accounts_list_result.rb +58 -0
  899. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_restore_resource.rb +66 -0
  900. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/default_consistency_level.rb +19 -0
  901. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/default_error_response.rb +47 -0
  902. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/default_request_database_account_create_update_properties.rb +255 -0
  903. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/error_response.rb +57 -0
  904. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/excluded_path.rb +48 -0
  905. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/extended_resource_properties.rb +74 -0
  906. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/failover_policies.rb +55 -0
  907. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/failover_policy.rb +79 -0
  908. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_database_create_update_parameters.rb +121 -0
  909. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_options.rb +53 -0
  910. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_resource.rb +85 -0
  911. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_results.rb +119 -0
  912. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_database_list_result.rb +58 -0
  913. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_database_resource.rb +46 -0
  914. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_graph_create_update_parameters.rb +121 -0
  915. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_options.rb +53 -0
  916. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_resource.rb +150 -0
  917. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_results.rb +119 -0
  918. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_graph_list_result.rb +58 -0
  919. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_graph_resource.rb +111 -0
  920. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/included_path.rb +67 -0
  921. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/index_kind.rb +17 -0
  922. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/indexes.rb +73 -0
  923. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/indexing_mode.rb +17 -0
  924. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/indexing_policy.rb +147 -0
  925. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/ip_address_or_range.rb +51 -0
  926. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/key_kind.rb +18 -0
  927. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/location.rb +114 -0
  928. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/managed_service_identity.rb +102 -0
  929. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/managed_service_identity_user_assigned_identities_value.rb +61 -0
  930. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/metric.rb +120 -0
  931. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/metric_availability.rb +60 -0
  932. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/metric_definition.rb +109 -0
  933. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/metric_definitions_list_result.rb +57 -0
  934. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/metric_list_result.rb +56 -0
  935. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/metric_name.rb +59 -0
  936. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/metric_value.rb +107 -0
  937. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_create_update_parameters.rb +121 -0
  938. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_options.rb +53 -0
  939. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_resource.rb +136 -0
  940. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_results.rb +119 -0
  941. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_list_result.rb +58 -0
  942. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_resource.rb +97 -0
  943. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_create_update_parameters.rb +121 -0
  944. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_options.rb +53 -0
  945. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_resource.rb +85 -0
  946. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_results.rb +119 -0
  947. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_list_result.rb +58 -0
  948. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_resource.rb +46 -0
  949. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_index.rb +60 -0
  950. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_index_keys.rb +55 -0
  951. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb +57 -0
  952. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/notebook_workspace.rb +87 -0
  953. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/notebook_workspace_connection_info_result.rb +60 -0
  954. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/notebook_workspace_create_update_parameters.rb +62 -0
  955. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/notebook_workspace_list_result.rb +56 -0
  956. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/operation.rb +58 -0
  957. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/operation_display.rb +80 -0
  958. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/operation_list_result.rb +101 -0
  959. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/operation_type.rb +18 -0
  960. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/options_resource.rb +60 -0
  961. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/partition_kind.rb +16 -0
  962. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/partition_metric.rb +124 -0
  963. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/partition_metric_list_result.rb +57 -0
  964. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/partition_usage.rb +105 -0
  965. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/partition_usages_result.rb +57 -0
  966. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/percentile_metric.rb +120 -0
  967. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/percentile_metric_list_result.rb +57 -0
  968. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/percentile_metric_value.rb +173 -0
  969. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/periodic_mode_backup_policy.rb +63 -0
  970. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/periodic_mode_properties.rb +77 -0
  971. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/permission.rb +73 -0
  972. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/primary_aggregation_type.rb +20 -0
  973. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/private_endpoint_connection.rb +88 -0
  974. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/private_endpoint_property.rb +46 -0
  975. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/private_link_service_connection_state_property.rb +60 -0
  976. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/proxy_resource.rb +65 -0
  977. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/public_network_access.rb +16 -0
  978. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/region_for_online_offline.rb +47 -0
  979. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/resource.rb +86 -0
  980. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/resource_identity_type.rb +18 -0
  981. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_database_account_get_result.rb +166 -0
  982. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_database_accounts_list_result.rb +58 -0
  983. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_location_resource.rb +85 -0
  984. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_mongodb_collection_get_result.rb +107 -0
  985. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_mongodb_collection_properties_resource.rb +99 -0
  986. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_mongodb_collections_list_result.rb +58 -0
  987. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_mongodb_database_get_result.rb +107 -0
  988. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_mongodb_database_properties_resource.rb +99 -0
  989. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_mongodb_databases_list_result.rb +58 -0
  990. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_mongodb_resources_list_result.rb +58 -0
  991. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_sql_container_get_result.rb +107 -0
  992. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_sql_container_properties_resource.rb +110 -0
  993. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_sql_container_properties_resource_container.rb +164 -0
  994. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_sql_containers_list_result.rb +58 -0
  995. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_sql_database_get_result.rb +107 -0
  996. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_sql_database_properties_resource.rb +110 -0
  997. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_sql_database_properties_resource_database.rb +125 -0
  998. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_sql_databases_list_result.rb +58 -0
  999. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_sql_resources_list_result.rb +57 -0
  1000. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restore_mode.rb +15 -0
  1001. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restore_parameters.rb +93 -0
  1002. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restore_reqeust_database_account_create_update_properties.rb +268 -0
  1003. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/role_definition_type.rb +16 -0
  1004. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/server_version.rb +16 -0
  1005. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/spatial_spec.rb +67 -0
  1006. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/spatial_type.rb +18 -0
  1007. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_container_create_update_parameters.rb +120 -0
  1008. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_options.rb +53 -0
  1009. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_resource.rb +150 -0
  1010. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_container_get_results.rb +119 -0
  1011. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_container_list_result.rb +58 -0
  1012. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb +111 -0
  1013. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_database_create_update_parameters.rb +121 -0
  1014. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_options.rb +53 -0
  1015. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_resource.rb +109 -0
  1016. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_database_get_results.rb +119 -0
  1017. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_database_list_result.rb +58 -0
  1018. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_database_resource.rb +46 -0
  1019. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_role_assignment_create_update_parameters.rb +73 -0
  1020. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_role_assignment_get_results.rb +100 -0
  1021. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_role_assignment_list_result.rb +57 -0
  1022. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_role_definition_create_update_parameters.rb +107 -0
  1023. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_role_definition_get_results.rb +134 -0
  1024. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_role_definition_list_result.rb +57 -0
  1025. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_create_update_parameters.rb +121 -0
  1026. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_properties_resource.rb +96 -0
  1027. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_results.rb +107 -0
  1028. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_list_result.rb +58 -0
  1029. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_resource.rb +57 -0
  1030. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_trigger_create_update_parameters.rb +120 -0
  1031. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_properties_resource.rb +121 -0
  1032. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_results.rb +107 -0
  1033. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_trigger_list_result.rb +58 -0
  1034. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_trigger_resource.rb +82 -0
  1035. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_create_update_parameters.rb +122 -0
  1036. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_properties_resource.rb +97 -0
  1037. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_results.rb +107 -0
  1038. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_list_result.rb +58 -0
  1039. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_resource.rb +57 -0
  1040. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/system_data.rb +106 -0
  1041. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/table_create_update_parameters.rb +120 -0
  1042. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/table_get_properties_options.rb +53 -0
  1043. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/table_get_properties_resource.rb +85 -0
  1044. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/table_get_results.rb +119 -0
  1045. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/table_list_result.rb +57 -0
  1046. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/table_resource.rb +46 -0
  1047. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/throughput_policy_resource.rb +59 -0
  1048. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_properties_resource.rb +124 -0
  1049. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_results.rb +107 -0
  1050. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/throughput_settings_resource.rb +86 -0
  1051. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/throughput_settings_update_parameters.rb +108 -0
  1052. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/tracked_resource.rb +95 -0
  1053. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/trigger_operation.rb +19 -0
  1054. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/trigger_type.rb +16 -0
  1055. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/unique_key.rb +56 -0
  1056. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/unique_key_policy.rb +58 -0
  1057. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/unit_type.rb +21 -0
  1058. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/usage.rb +97 -0
  1059. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/usages_result.rb +57 -0
  1060. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/virtual_network_rule.rb +59 -0
  1061. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/module_definition.rb +9 -0
  1062. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/mongo_dbresources.rb +1706 -0
  1063. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb +905 -0
  1064. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/operations.rb +220 -0
  1065. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/partition_key_range_id.rb +161 -0
  1066. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/partition_key_range_id_region.rb +168 -0
  1067. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/percentile.rb +146 -0
  1068. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/percentile_source_target.rb +163 -0
  1069. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/percentile_target.rb +153 -0
  1070. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/restorable_database_accounts.rb +319 -0
  1071. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/restorable_mongodb_collections.rb +136 -0
  1072. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/restorable_mongodb_databases.rb +130 -0
  1073. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/restorable_mongodb_resources.rb +142 -0
  1074. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/restorable_sql_containers.rb +136 -0
  1075. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/restorable_sql_databases.rb +130 -0
  1076. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/restorable_sql_resources.rb +142 -0
  1077. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/sql_resources.rb +4503 -0
  1078. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/table_resources.rb +840 -0
  1079. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb.rb +219 -0
  1080. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/cassandra_resources.rb +2348 -0
  1081. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/collection.rb +389 -0
  1082. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/collection_partition.rb +279 -0
  1083. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/collection_partition_region.rb +161 -0
  1084. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/collection_region.rb +161 -0
  1085. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/cosmos_dbmanagement_client.rb +203 -0
  1086. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/database.rb +377 -0
  1087. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/database_account_region.rb +153 -0
  1088. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/database_accounts.rb +2281 -0
  1089. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/gremlin_resources.rb +2335 -0
  1090. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/api_properties.rb +48 -0
  1091. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/armproxy_resource.rb +73 -0
  1092. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/armresource_properties.rb +102 -0
  1093. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/auto_upgrade_policy_resource.rb +48 -0
  1094. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/autoscale_settings.rb +48 -0
  1095. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/autoscale_settings_resource.rb +73 -0
  1096. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/azure_entity_resource.rb +77 -0
  1097. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/backup_policy.rb +47 -0
  1098. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/backup_policy_type.rb +16 -0
  1099. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/capability.rb +48 -0
  1100. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_create_update_parameters.rb +112 -0
  1101. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_options.rb +53 -0
  1102. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_resource.rb +85 -0
  1103. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_results.rb +110 -0
  1104. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_list_result.rb +58 -0
  1105. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_resource.rb +46 -0
  1106. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_partition_key.rb +46 -0
  1107. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_schema.rb +95 -0
  1108. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_create_update_parameters.rb +112 -0
  1109. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_options.rb +53 -0
  1110. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_resource.rb +119 -0
  1111. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_results.rb +110 -0
  1112. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_list_result.rb +58 -0
  1113. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_resource.rb +80 -0
  1114. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cluster_key.rb +58 -0
  1115. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/column.rb +57 -0
  1116. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/composite_path.rb +60 -0
  1117. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/composite_path_sort_order.rb +16 -0
  1118. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/conflict_resolution_mode.rb +16 -0
  1119. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/conflict_resolution_policy.rb +73 -0
  1120. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/connector_offer.rb +15 -0
  1121. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/consistency_policy.rb +86 -0
  1122. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/container_partition_key.rb +85 -0
  1123. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/continuous_mode_backup_policy.rb +50 -0
  1124. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cors_policy.rb +99 -0
  1125. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/create_update_options.rb +61 -0
  1126. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/data_type.rb +20 -0
  1127. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_account_connection_string.rb +59 -0
  1128. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_account_create_update_parameters.rb +378 -0
  1129. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_account_get_results.rb +491 -0
  1130. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_account_kind.rb +17 -0
  1131. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_account_list_connection_strings_result.rb +57 -0
  1132. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_account_list_keys_result.rb +77 -0
  1133. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_account_list_read_only_keys_result.rb +59 -0
  1134. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_account_offer_type.rb +15 -0
  1135. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_account_regenerate_key_parameters.rb +47 -0
  1136. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_account_update_parameters.rb +329 -0
  1137. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_accounts_list_result.rb +58 -0
  1138. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/default_consistency_level.rb +19 -0
  1139. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/error_response.rb +57 -0
  1140. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/error_response_updated_format.rb +47 -0
  1141. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/excluded_path.rb +48 -0
  1142. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/extended_resource_properties.rb +74 -0
  1143. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/failover_policies.rb +55 -0
  1144. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/failover_policy.rb +79 -0
  1145. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_create_update_parameters.rb +112 -0
  1146. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_options.rb +53 -0
  1147. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_resource.rb +85 -0
  1148. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_results.rb +110 -0
  1149. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_list_result.rb +58 -0
  1150. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_resource.rb +46 -0
  1151. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_create_update_parameters.rb +112 -0
  1152. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_options.rb +53 -0
  1153. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_resource.rb +150 -0
  1154. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_results.rb +110 -0
  1155. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_list_result.rb +58 -0
  1156. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_resource.rb +111 -0
  1157. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/included_path.rb +67 -0
  1158. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/index_kind.rb +17 -0
  1159. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/indexes.rb +73 -0
  1160. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/indexing_mode.rb +17 -0
  1161. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/indexing_policy.rb +147 -0
  1162. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/ip_address_or_range.rb +51 -0
  1163. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/key_kind.rb +18 -0
  1164. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/location.rb +114 -0
  1165. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/metric.rb +120 -0
  1166. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/metric_availability.rb +60 -0
  1167. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/metric_definition.rb +109 -0
  1168. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/metric_definitions_list_result.rb +57 -0
  1169. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/metric_list_result.rb +56 -0
  1170. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/metric_name.rb +59 -0
  1171. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/metric_value.rb +107 -0
  1172. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_create_update_parameters.rb +112 -0
  1173. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_options.rb +53 -0
  1174. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_resource.rb +136 -0
  1175. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_results.rb +110 -0
  1176. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_list_result.rb +58 -0
  1177. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_resource.rb +97 -0
  1178. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_create_update_parameters.rb +112 -0
  1179. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_options.rb +53 -0
  1180. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_resource.rb +85 -0
  1181. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_results.rb +110 -0
  1182. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_list_result.rb +58 -0
  1183. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_resource.rb +46 -0
  1184. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_index.rb +60 -0
  1185. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_index_keys.rb +55 -0
  1186. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb +57 -0
  1187. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace.rb +87 -0
  1188. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_connection_info_result.rb +60 -0
  1189. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_create_update_parameters.rb +62 -0
  1190. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_list_result.rb +56 -0
  1191. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/operation.rb +58 -0
  1192. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/operation_display.rb +80 -0
  1193. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/operation_list_result.rb +101 -0
  1194. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/options_resource.rb +60 -0
  1195. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/partition_kind.rb +16 -0
  1196. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/partition_metric.rb +124 -0
  1197. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/partition_metric_list_result.rb +57 -0
  1198. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/partition_usage.rb +105 -0
  1199. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/partition_usages_result.rb +57 -0
  1200. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/percentile_metric.rb +120 -0
  1201. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/percentile_metric_list_result.rb +57 -0
  1202. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/percentile_metric_value.rb +173 -0
  1203. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/periodic_mode_backup_policy.rb +63 -0
  1204. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/periodic_mode_properties.rb +65 -0
  1205. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/primary_aggregation_type.rb +20 -0
  1206. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/private_endpoint_connection.rb +88 -0
  1207. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/private_endpoint_property.rb +46 -0
  1208. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/private_link_service_connection_state_property.rb +60 -0
  1209. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/proxy_resource.rb +65 -0
  1210. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/public_network_access.rb +16 -0
  1211. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/region_for_online_offline.rb +47 -0
  1212. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/resource.rb +86 -0
  1213. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/server_version.rb +16 -0
  1214. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/spatial_spec.rb +67 -0
  1215. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/spatial_type.rb +18 -0
  1216. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_container_create_update_parameters.rb +111 -0
  1217. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_options.rb +53 -0
  1218. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_resource.rb +161 -0
  1219. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_results.rb +110 -0
  1220. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_container_list_result.rb +58 -0
  1221. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb +122 -0
  1222. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_database_create_update_parameters.rb +112 -0
  1223. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_options.rb +53 -0
  1224. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_resource.rb +109 -0
  1225. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_results.rb +110 -0
  1226. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_database_list_result.rb +58 -0
  1227. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_database_resource.rb +46 -0
  1228. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_create_update_parameters.rb +112 -0
  1229. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_properties_resource.rb +96 -0
  1230. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_results.rb +98 -0
  1231. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_list_result.rb +58 -0
  1232. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_resource.rb +57 -0
  1233. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_create_update_parameters.rb +111 -0
  1234. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_properties_resource.rb +121 -0
  1235. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_results.rb +98 -0
  1236. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_list_result.rb +58 -0
  1237. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_resource.rb +82 -0
  1238. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_create_update_parameters.rb +113 -0
  1239. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_properties_resource.rb +97 -0
  1240. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_results.rb +98 -0
  1241. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_list_result.rb +58 -0
  1242. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_resource.rb +57 -0
  1243. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/table_create_update_parameters.rb +111 -0
  1244. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/table_get_properties_options.rb +53 -0
  1245. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/table_get_properties_resource.rb +85 -0
  1246. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/table_get_results.rb +110 -0
  1247. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/table_list_result.rb +57 -0
  1248. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/table_resource.rb +46 -0
  1249. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/throughput_policy_resource.rb +59 -0
  1250. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_properties_resource.rb +124 -0
  1251. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_results.rb +98 -0
  1252. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_resource.rb +86 -0
  1253. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_update_parameters.rb +99 -0
  1254. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/tracked_resource.rb +95 -0
  1255. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/trigger_operation.rb +19 -0
  1256. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/trigger_type.rb +16 -0
  1257. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/unique_key.rb +56 -0
  1258. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/unique_key_policy.rb +58 -0
  1259. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/unit_type.rb +21 -0
  1260. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/usage.rb +97 -0
  1261. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/usages_result.rb +57 -0
  1262. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/virtual_network_rule.rb +59 -0
  1263. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/module_definition.rb +9 -0
  1264. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/mongo_dbresources.rb +2354 -0
  1265. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb +905 -0
  1266. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/operations.rb +220 -0
  1267. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/partition_key_range_id.rb +161 -0
  1268. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/partition_key_range_id_region.rb +168 -0
  1269. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/percentile.rb +146 -0
  1270. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/percentile_source_target.rb +163 -0
  1271. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/percentile_target.rb +153 -0
  1272. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/sql_resources.rb +4065 -0
  1273. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/table_resources.rb +1150 -0
  1274. data/lib/azure_mgmt_cosmosdb.rb +13 -8
  1275. data/lib/module_definition.rb +7 -7
  1276. data/lib/profiles/latest/cosmosdb_latest_profile_client.rb +40 -40
  1277. data/lib/profiles/latest/cosmosdb_module_definition.rb +8 -8
  1278. data/lib/profiles/latest/modules/cosmosdb_profile_module.rb +479 -357
  1279. data/lib/version.rb +1 -1
  1280. metadata +982 -5
@@ -0,0 +1,2335 @@
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::V2020_09_01
7
+ #
8
+ # Azure Cosmos DB Database Service Resource Provider REST API
9
+ #
10
+ class GremlinResources
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the GremlinResources class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [CosmosDBManagementClient] reference to the CosmosDBManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Lists the Gremlin databases under an existing Azure Cosmos DB database
26
+ # account.
27
+ #
28
+ # @param resource_group_name [String] The name of the resource group. The name
29
+ # is case insensitive.
30
+ # @param account_name [String] Cosmos DB database account name.
31
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
32
+ # will be added to the HTTP request.
33
+ #
34
+ # @return [GremlinDatabaseListResult] operation results.
35
+ #
36
+ def list_gremlin_databases(resource_group_name, account_name, custom_headers:nil)
37
+ response = list_gremlin_databases_async(resource_group_name, account_name, custom_headers:custom_headers).value!
38
+ response.body unless response.nil?
39
+ end
40
+
41
+ #
42
+ # Lists the Gremlin databases under an existing Azure Cosmos DB database
43
+ # account.
44
+ #
45
+ # @param resource_group_name [String] The name of the resource group. The name
46
+ # is case insensitive.
47
+ # @param account_name [String] Cosmos DB database account name.
48
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
49
+ # will be added to the HTTP request.
50
+ #
51
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
+ #
53
+ def list_gremlin_databases_with_http_info(resource_group_name, account_name, custom_headers:nil)
54
+ list_gremlin_databases_async(resource_group_name, account_name, custom_headers:custom_headers).value!
55
+ end
56
+
57
+ #
58
+ # Lists the Gremlin databases under an existing Azure Cosmos DB database
59
+ # account.
60
+ #
61
+ # @param resource_group_name [String] The name of the resource group. The name
62
+ # is case insensitive.
63
+ # @param account_name [String] Cosmos DB database account name.
64
+ # @param [Hash{String => String}] A hash of custom headers that will be added
65
+ # to the HTTP request.
66
+ #
67
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
68
+ #
69
+ def list_gremlin_databases_async(resource_group_name, account_name, custom_headers:nil)
70
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
71
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
72
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
73
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
74
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
75
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
76
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
77
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
78
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
79
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil?
80
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
81
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
82
+
83
+
84
+ request_headers = {}
85
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
86
+
87
+ # Set Headers
88
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
89
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
90
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases'
91
+
92
+ request_url = @base_url || @client.base_url
93
+
94
+ options = {
95
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
96
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name},
97
+ query_params: {'api-version' => @client.api_version},
98
+ headers: request_headers.merge(custom_headers || {}),
99
+ base_url: request_url
100
+ }
101
+ promise = @client.make_request_async(:get, path_template, options)
102
+
103
+ promise = promise.then do |result|
104
+ http_response = result.response
105
+ status_code = http_response.status
106
+ response_content = http_response.body
107
+ unless status_code == 200
108
+ error_model = JSON.load(response_content)
109
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
110
+ end
111
+
112
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
113
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
114
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
115
+ # Deserialize Response
116
+ if status_code == 200
117
+ begin
118
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
119
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_09_01::Models::GremlinDatabaseListResult.mapper()
120
+ result.body = @client.deserialize(result_mapper, parsed_response)
121
+ rescue Exception => e
122
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
123
+ end
124
+ end
125
+
126
+ result
127
+ end
128
+
129
+ promise.execute
130
+ end
131
+
132
+ #
133
+ # Gets the Gremlin databases under an existing Azure Cosmos DB database account
134
+ # with the provided name.
135
+ #
136
+ # @param resource_group_name [String] The name of the resource group. The name
137
+ # is case insensitive.
138
+ # @param account_name [String] Cosmos DB database account name.
139
+ # @param database_name [String] Cosmos DB database name.
140
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
141
+ # will be added to the HTTP request.
142
+ #
143
+ # @return [GremlinDatabaseGetResults] operation results.
144
+ #
145
+ def get_gremlin_database(resource_group_name, account_name, database_name, custom_headers:nil)
146
+ response = get_gremlin_database_async(resource_group_name, account_name, database_name, custom_headers:custom_headers).value!
147
+ response.body unless response.nil?
148
+ end
149
+
150
+ #
151
+ # Gets the Gremlin databases under an existing Azure Cosmos DB database account
152
+ # with the provided name.
153
+ #
154
+ # @param resource_group_name [String] The name of the resource group. The name
155
+ # is case insensitive.
156
+ # @param account_name [String] Cosmos DB database account name.
157
+ # @param database_name [String] Cosmos DB database name.
158
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
159
+ # will be added to the HTTP request.
160
+ #
161
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
162
+ #
163
+ def get_gremlin_database_with_http_info(resource_group_name, account_name, database_name, custom_headers:nil)
164
+ get_gremlin_database_async(resource_group_name, account_name, database_name, custom_headers:custom_headers).value!
165
+ end
166
+
167
+ #
168
+ # Gets the Gremlin databases under an existing Azure Cosmos DB database account
169
+ # with the provided name.
170
+ #
171
+ # @param resource_group_name [String] The name of the resource group. The name
172
+ # is case insensitive.
173
+ # @param account_name [String] Cosmos DB database account name.
174
+ # @param database_name [String] Cosmos DB database name.
175
+ # @param [Hash{String => String}] A hash of custom headers that will be added
176
+ # to the HTTP request.
177
+ #
178
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
179
+ #
180
+ def get_gremlin_database_async(resource_group_name, account_name, database_name, custom_headers:nil)
181
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
182
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
183
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
184
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
185
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
186
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
187
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
188
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
189
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
190
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil?
191
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
192
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
193
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
194
+
195
+
196
+ request_headers = {}
197
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
198
+
199
+ # Set Headers
200
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
201
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
202
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}'
203
+
204
+ request_url = @base_url || @client.base_url
205
+
206
+ options = {
207
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
208
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name},
209
+ query_params: {'api-version' => @client.api_version},
210
+ headers: request_headers.merge(custom_headers || {}),
211
+ base_url: request_url
212
+ }
213
+ promise = @client.make_request_async(:get, path_template, options)
214
+
215
+ promise = promise.then do |result|
216
+ http_response = result.response
217
+ status_code = http_response.status
218
+ response_content = http_response.body
219
+ unless status_code == 200
220
+ error_model = JSON.load(response_content)
221
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
222
+ end
223
+
224
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
225
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
226
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
227
+ # Deserialize Response
228
+ if status_code == 200
229
+ begin
230
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
231
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_09_01::Models::GremlinDatabaseGetResults.mapper()
232
+ result.body = @client.deserialize(result_mapper, parsed_response)
233
+ rescue Exception => e
234
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
235
+ end
236
+ end
237
+
238
+ result
239
+ end
240
+
241
+ promise.execute
242
+ end
243
+
244
+ #
245
+ # Create or update an Azure Cosmos DB Gremlin database
246
+ #
247
+ # @param resource_group_name [String] The name of the resource group. The name
248
+ # is case insensitive.
249
+ # @param account_name [String] Cosmos DB database account name.
250
+ # @param database_name [String] Cosmos DB database name.
251
+ # @param create_update_gremlin_database_parameters
252
+ # [GremlinDatabaseCreateUpdateParameters] The parameters to provide for the
253
+ # current Gremlin database.
254
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
255
+ # will be added to the HTTP request.
256
+ #
257
+ # @return [GremlinDatabaseGetResults] operation results.
258
+ #
259
+ def create_update_gremlin_database(resource_group_name, account_name, database_name, create_update_gremlin_database_parameters, custom_headers:nil)
260
+ response = create_update_gremlin_database_async(resource_group_name, account_name, database_name, create_update_gremlin_database_parameters, custom_headers:custom_headers).value!
261
+ response.body unless response.nil?
262
+ end
263
+
264
+ #
265
+ # @param resource_group_name [String] The name of the resource group. The name
266
+ # is case insensitive.
267
+ # @param account_name [String] Cosmos DB database account name.
268
+ # @param database_name [String] Cosmos DB database name.
269
+ # @param create_update_gremlin_database_parameters
270
+ # [GremlinDatabaseCreateUpdateParameters] The parameters to provide for the
271
+ # current Gremlin database.
272
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
273
+ # will be added to the HTTP request.
274
+ #
275
+ # @return [Concurrent::Promise] promise which provides async access to http
276
+ # response.
277
+ #
278
+ def create_update_gremlin_database_async(resource_group_name, account_name, database_name, create_update_gremlin_database_parameters, custom_headers:nil)
279
+ # Send request
280
+ promise = begin_create_update_gremlin_database_async(resource_group_name, account_name, database_name, create_update_gremlin_database_parameters, custom_headers:custom_headers)
281
+
282
+ promise = promise.then do |response|
283
+ # Defining deserialization method.
284
+ deserialize_method = lambda do |parsed_response|
285
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_09_01::Models::GremlinDatabaseGetResults.mapper()
286
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
287
+ end
288
+
289
+ # Waiting for response.
290
+ @client.get_long_running_operation_result(response, deserialize_method)
291
+ end
292
+
293
+ promise
294
+ end
295
+
296
+ #
297
+ # Deletes an existing Azure Cosmos DB Gremlin database.
298
+ #
299
+ # @param resource_group_name [String] The name of the resource group. The name
300
+ # is case insensitive.
301
+ # @param account_name [String] Cosmos DB database account name.
302
+ # @param database_name [String] Cosmos DB database name.
303
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
304
+ # will be added to the HTTP request.
305
+ #
306
+ def delete_gremlin_database(resource_group_name, account_name, database_name, custom_headers:nil)
307
+ response = delete_gremlin_database_async(resource_group_name, account_name, database_name, custom_headers:custom_headers).value!
308
+ nil
309
+ end
310
+
311
+ #
312
+ # @param resource_group_name [String] The name of the resource group. The name
313
+ # is case insensitive.
314
+ # @param account_name [String] Cosmos DB database account name.
315
+ # @param database_name [String] Cosmos DB database name.
316
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
317
+ # will be added to the HTTP request.
318
+ #
319
+ # @return [Concurrent::Promise] promise which provides async access to http
320
+ # response.
321
+ #
322
+ def delete_gremlin_database_async(resource_group_name, account_name, database_name, custom_headers:nil)
323
+ # Send request
324
+ promise = begin_delete_gremlin_database_async(resource_group_name, account_name, database_name, custom_headers:custom_headers)
325
+
326
+ promise = promise.then do |response|
327
+ # Defining deserialization method.
328
+ deserialize_method = lambda do |parsed_response|
329
+ end
330
+
331
+ # Waiting for response.
332
+ @client.get_long_running_operation_result(response, deserialize_method)
333
+ end
334
+
335
+ promise
336
+ end
337
+
338
+ #
339
+ # Gets the RUs per second of the Gremlin database under an existing Azure
340
+ # Cosmos DB database account with the provided name.
341
+ #
342
+ # @param resource_group_name [String] The name of the resource group. The name
343
+ # is case insensitive.
344
+ # @param account_name [String] Cosmos DB database account name.
345
+ # @param database_name [String] Cosmos DB database name.
346
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
347
+ # will be added to the HTTP request.
348
+ #
349
+ # @return [ThroughputSettingsGetResults] operation results.
350
+ #
351
+ def get_gremlin_database_throughput(resource_group_name, account_name, database_name, custom_headers:nil)
352
+ response = get_gremlin_database_throughput_async(resource_group_name, account_name, database_name, custom_headers:custom_headers).value!
353
+ response.body unless response.nil?
354
+ end
355
+
356
+ #
357
+ # Gets the RUs per second of the Gremlin database under an existing Azure
358
+ # Cosmos DB database account with the provided name.
359
+ #
360
+ # @param resource_group_name [String] The name of the resource group. The name
361
+ # is case insensitive.
362
+ # @param account_name [String] Cosmos DB database account name.
363
+ # @param database_name [String] Cosmos DB database name.
364
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
365
+ # will be added to the HTTP request.
366
+ #
367
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
368
+ #
369
+ def get_gremlin_database_throughput_with_http_info(resource_group_name, account_name, database_name, custom_headers:nil)
370
+ get_gremlin_database_throughput_async(resource_group_name, account_name, database_name, custom_headers:custom_headers).value!
371
+ end
372
+
373
+ #
374
+ # Gets the RUs per second of the Gremlin database under an existing Azure
375
+ # Cosmos DB database account with the provided name.
376
+ #
377
+ # @param resource_group_name [String] The name of the resource group. The name
378
+ # is case insensitive.
379
+ # @param account_name [String] Cosmos DB database account name.
380
+ # @param database_name [String] Cosmos DB database name.
381
+ # @param [Hash{String => String}] A hash of custom headers that will be added
382
+ # to the HTTP request.
383
+ #
384
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
385
+ #
386
+ def get_gremlin_database_throughput_async(resource_group_name, account_name, database_name, custom_headers:nil)
387
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
388
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
389
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
390
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
391
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
392
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
393
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
394
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
395
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
396
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil?
397
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
398
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
399
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
400
+
401
+
402
+ request_headers = {}
403
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
404
+
405
+ # Set Headers
406
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
407
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
408
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default'
409
+
410
+ request_url = @base_url || @client.base_url
411
+
412
+ options = {
413
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
414
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name},
415
+ query_params: {'api-version' => @client.api_version},
416
+ headers: request_headers.merge(custom_headers || {}),
417
+ base_url: request_url
418
+ }
419
+ promise = @client.make_request_async(:get, path_template, options)
420
+
421
+ promise = promise.then do |result|
422
+ http_response = result.response
423
+ status_code = http_response.status
424
+ response_content = http_response.body
425
+ unless status_code == 200
426
+ error_model = JSON.load(response_content)
427
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
428
+ end
429
+
430
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
431
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
432
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
433
+ # Deserialize Response
434
+ if status_code == 200
435
+ begin
436
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
437
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_09_01::Models::ThroughputSettingsGetResults.mapper()
438
+ result.body = @client.deserialize(result_mapper, parsed_response)
439
+ rescue Exception => e
440
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
441
+ end
442
+ end
443
+
444
+ result
445
+ end
446
+
447
+ promise.execute
448
+ end
449
+
450
+ #
451
+ # Update RUs per second of an Azure Cosmos DB Gremlin database
452
+ #
453
+ # @param resource_group_name [String] The name of the resource group. The name
454
+ # is case insensitive.
455
+ # @param account_name [String] Cosmos DB database account name.
456
+ # @param database_name [String] Cosmos DB database name.
457
+ # @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
458
+ # RUs per second of the parameters to provide for the current Gremlin database.
459
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
460
+ # will be added to the HTTP request.
461
+ #
462
+ # @return [ThroughputSettingsGetResults] operation results.
463
+ #
464
+ def update_gremlin_database_throughput(resource_group_name, account_name, database_name, update_throughput_parameters, custom_headers:nil)
465
+ response = update_gremlin_database_throughput_async(resource_group_name, account_name, database_name, update_throughput_parameters, custom_headers:custom_headers).value!
466
+ response.body unless response.nil?
467
+ end
468
+
469
+ #
470
+ # @param resource_group_name [String] The name of the resource group. The name
471
+ # is case insensitive.
472
+ # @param account_name [String] Cosmos DB database account name.
473
+ # @param database_name [String] Cosmos DB database name.
474
+ # @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
475
+ # RUs per second of the parameters to provide for the current Gremlin database.
476
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
477
+ # will be added to the HTTP request.
478
+ #
479
+ # @return [Concurrent::Promise] promise which provides async access to http
480
+ # response.
481
+ #
482
+ def update_gremlin_database_throughput_async(resource_group_name, account_name, database_name, update_throughput_parameters, custom_headers:nil)
483
+ # Send request
484
+ promise = begin_update_gremlin_database_throughput_async(resource_group_name, account_name, database_name, update_throughput_parameters, custom_headers:custom_headers)
485
+
486
+ promise = promise.then do |response|
487
+ # Defining deserialization method.
488
+ deserialize_method = lambda do |parsed_response|
489
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_09_01::Models::ThroughputSettingsGetResults.mapper()
490
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
491
+ end
492
+
493
+ # Waiting for response.
494
+ @client.get_long_running_operation_result(response, deserialize_method)
495
+ end
496
+
497
+ promise
498
+ end
499
+
500
+ #
501
+ # Migrate an Azure Cosmos DB Gremlin database from manual throughput to
502
+ # autoscale
503
+ #
504
+ # @param resource_group_name [String] The name of the resource group. The name
505
+ # is case insensitive.
506
+ # @param account_name [String] Cosmos DB database account name.
507
+ # @param database_name [String] Cosmos DB database name.
508
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
509
+ # will be added to the HTTP request.
510
+ #
511
+ # @return [ThroughputSettingsGetResults] operation results.
512
+ #
513
+ def migrate_gremlin_database_to_autoscale(resource_group_name, account_name, database_name, custom_headers:nil)
514
+ response = migrate_gremlin_database_to_autoscale_async(resource_group_name, account_name, database_name, custom_headers:custom_headers).value!
515
+ response.body unless response.nil?
516
+ end
517
+
518
+ #
519
+ # @param resource_group_name [String] The name of the resource group. The name
520
+ # is case insensitive.
521
+ # @param account_name [String] Cosmos DB database account name.
522
+ # @param database_name [String] Cosmos DB database name.
523
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
524
+ # will be added to the HTTP request.
525
+ #
526
+ # @return [Concurrent::Promise] promise which provides async access to http
527
+ # response.
528
+ #
529
+ def migrate_gremlin_database_to_autoscale_async(resource_group_name, account_name, database_name, custom_headers:nil)
530
+ # Send request
531
+ promise = begin_migrate_gremlin_database_to_autoscale_async(resource_group_name, account_name, database_name, custom_headers:custom_headers)
532
+
533
+ promise = promise.then do |response|
534
+ # Defining deserialization method.
535
+ deserialize_method = lambda do |parsed_response|
536
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_09_01::Models::ThroughputSettingsGetResults.mapper()
537
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
538
+ end
539
+
540
+ # Waiting for response.
541
+ @client.get_long_running_operation_result(response, deserialize_method)
542
+ end
543
+
544
+ promise
545
+ end
546
+
547
+ #
548
+ # Migrate an Azure Cosmos DB Gremlin database from autoscale to manual
549
+ # throughput
550
+ #
551
+ # @param resource_group_name [String] The name of the resource group. The name
552
+ # is case insensitive.
553
+ # @param account_name [String] Cosmos DB database account name.
554
+ # @param database_name [String] Cosmos DB database name.
555
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
556
+ # will be added to the HTTP request.
557
+ #
558
+ # @return [ThroughputSettingsGetResults] operation results.
559
+ #
560
+ def migrate_gremlin_database_to_manual_throughput(resource_group_name, account_name, database_name, custom_headers:nil)
561
+ response = migrate_gremlin_database_to_manual_throughput_async(resource_group_name, account_name, database_name, custom_headers:custom_headers).value!
562
+ response.body unless response.nil?
563
+ end
564
+
565
+ #
566
+ # @param resource_group_name [String] The name of the resource group. The name
567
+ # is case insensitive.
568
+ # @param account_name [String] Cosmos DB database account name.
569
+ # @param database_name [String] Cosmos DB database name.
570
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
571
+ # will be added to the HTTP request.
572
+ #
573
+ # @return [Concurrent::Promise] promise which provides async access to http
574
+ # response.
575
+ #
576
+ def migrate_gremlin_database_to_manual_throughput_async(resource_group_name, account_name, database_name, custom_headers:nil)
577
+ # Send request
578
+ promise = begin_migrate_gremlin_database_to_manual_throughput_async(resource_group_name, account_name, database_name, custom_headers:custom_headers)
579
+
580
+ promise = promise.then do |response|
581
+ # Defining deserialization method.
582
+ deserialize_method = lambda do |parsed_response|
583
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_09_01::Models::ThroughputSettingsGetResults.mapper()
584
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
585
+ end
586
+
587
+ # Waiting for response.
588
+ @client.get_long_running_operation_result(response, deserialize_method)
589
+ end
590
+
591
+ promise
592
+ end
593
+
594
+ #
595
+ # Lists the Gremlin graph under an existing Azure Cosmos DB database account.
596
+ #
597
+ # @param resource_group_name [String] The name of the resource group. The name
598
+ # is case insensitive.
599
+ # @param account_name [String] Cosmos DB database account name.
600
+ # @param database_name [String] Cosmos DB database name.
601
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
602
+ # will be added to the HTTP request.
603
+ #
604
+ # @return [GremlinGraphListResult] operation results.
605
+ #
606
+ def list_gremlin_graphs(resource_group_name, account_name, database_name, custom_headers:nil)
607
+ response = list_gremlin_graphs_async(resource_group_name, account_name, database_name, custom_headers:custom_headers).value!
608
+ response.body unless response.nil?
609
+ end
610
+
611
+ #
612
+ # Lists the Gremlin graph under an existing Azure Cosmos DB database account.
613
+ #
614
+ # @param resource_group_name [String] The name of the resource group. The name
615
+ # is case insensitive.
616
+ # @param account_name [String] Cosmos DB database account name.
617
+ # @param database_name [String] Cosmos DB database name.
618
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
619
+ # will be added to the HTTP request.
620
+ #
621
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
622
+ #
623
+ def list_gremlin_graphs_with_http_info(resource_group_name, account_name, database_name, custom_headers:nil)
624
+ list_gremlin_graphs_async(resource_group_name, account_name, database_name, custom_headers:custom_headers).value!
625
+ end
626
+
627
+ #
628
+ # Lists the Gremlin graph under an existing Azure Cosmos DB database account.
629
+ #
630
+ # @param resource_group_name [String] The name of the resource group. The name
631
+ # is case insensitive.
632
+ # @param account_name [String] Cosmos DB database account name.
633
+ # @param database_name [String] Cosmos DB database name.
634
+ # @param [Hash{String => String}] A hash of custom headers that will be added
635
+ # to the HTTP request.
636
+ #
637
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
638
+ #
639
+ def list_gremlin_graphs_async(resource_group_name, account_name, database_name, custom_headers:nil)
640
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
641
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
642
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
643
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
644
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
645
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
646
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
647
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
648
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
649
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil?
650
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
651
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
652
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
653
+
654
+
655
+ request_headers = {}
656
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
657
+
658
+ # Set Headers
659
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
660
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
661
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs'
662
+
663
+ request_url = @base_url || @client.base_url
664
+
665
+ options = {
666
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
667
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name},
668
+ query_params: {'api-version' => @client.api_version},
669
+ headers: request_headers.merge(custom_headers || {}),
670
+ base_url: request_url
671
+ }
672
+ promise = @client.make_request_async(:get, path_template, options)
673
+
674
+ promise = promise.then do |result|
675
+ http_response = result.response
676
+ status_code = http_response.status
677
+ response_content = http_response.body
678
+ unless status_code == 200
679
+ error_model = JSON.load(response_content)
680
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
681
+ end
682
+
683
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
684
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
685
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
686
+ # Deserialize Response
687
+ if status_code == 200
688
+ begin
689
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
690
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_09_01::Models::GremlinGraphListResult.mapper()
691
+ result.body = @client.deserialize(result_mapper, parsed_response)
692
+ rescue Exception => e
693
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
694
+ end
695
+ end
696
+
697
+ result
698
+ end
699
+
700
+ promise.execute
701
+ end
702
+
703
+ #
704
+ # Gets the Gremlin graph under an existing Azure Cosmos DB database account.
705
+ #
706
+ # @param resource_group_name [String] The name of the resource group. The name
707
+ # is case insensitive.
708
+ # @param account_name [String] Cosmos DB database account name.
709
+ # @param database_name [String] Cosmos DB database name.
710
+ # @param graph_name [String] Cosmos DB graph name.
711
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
712
+ # will be added to the HTTP request.
713
+ #
714
+ # @return [GremlinGraphGetResults] operation results.
715
+ #
716
+ def get_gremlin_graph(resource_group_name, account_name, database_name, graph_name, custom_headers:nil)
717
+ response = get_gremlin_graph_async(resource_group_name, account_name, database_name, graph_name, custom_headers:custom_headers).value!
718
+ response.body unless response.nil?
719
+ end
720
+
721
+ #
722
+ # Gets the Gremlin graph under an existing Azure Cosmos DB database account.
723
+ #
724
+ # @param resource_group_name [String] The name of the resource group. The name
725
+ # is case insensitive.
726
+ # @param account_name [String] Cosmos DB database account name.
727
+ # @param database_name [String] Cosmos DB database name.
728
+ # @param graph_name [String] Cosmos DB graph name.
729
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
730
+ # will be added to the HTTP request.
731
+ #
732
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
733
+ #
734
+ def get_gremlin_graph_with_http_info(resource_group_name, account_name, database_name, graph_name, custom_headers:nil)
735
+ get_gremlin_graph_async(resource_group_name, account_name, database_name, graph_name, custom_headers:custom_headers).value!
736
+ end
737
+
738
+ #
739
+ # Gets the Gremlin graph under an existing Azure Cosmos DB database account.
740
+ #
741
+ # @param resource_group_name [String] The name of the resource group. The name
742
+ # is case insensitive.
743
+ # @param account_name [String] Cosmos DB database account name.
744
+ # @param database_name [String] Cosmos DB database name.
745
+ # @param graph_name [String] Cosmos DB graph name.
746
+ # @param [Hash{String => String}] A hash of custom headers that will be added
747
+ # to the HTTP request.
748
+ #
749
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
750
+ #
751
+ def get_gremlin_graph_async(resource_group_name, account_name, database_name, graph_name, custom_headers:nil)
752
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
753
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
754
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
755
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
756
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
757
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
758
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
759
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
760
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
761
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil?
762
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
763
+ fail ArgumentError, 'graph_name is nil' if graph_name.nil?
764
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
765
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
766
+
767
+
768
+ request_headers = {}
769
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
770
+
771
+ # Set Headers
772
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
773
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
774
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}'
775
+
776
+ request_url = @base_url || @client.base_url
777
+
778
+ options = {
779
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
780
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name,'graphName' => graph_name},
781
+ query_params: {'api-version' => @client.api_version},
782
+ headers: request_headers.merge(custom_headers || {}),
783
+ base_url: request_url
784
+ }
785
+ promise = @client.make_request_async(:get, path_template, options)
786
+
787
+ promise = promise.then do |result|
788
+ http_response = result.response
789
+ status_code = http_response.status
790
+ response_content = http_response.body
791
+ unless status_code == 200
792
+ error_model = JSON.load(response_content)
793
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
794
+ end
795
+
796
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
797
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
798
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
799
+ # Deserialize Response
800
+ if status_code == 200
801
+ begin
802
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
803
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_09_01::Models::GremlinGraphGetResults.mapper()
804
+ result.body = @client.deserialize(result_mapper, parsed_response)
805
+ rescue Exception => e
806
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
807
+ end
808
+ end
809
+
810
+ result
811
+ end
812
+
813
+ promise.execute
814
+ end
815
+
816
+ #
817
+ # Create or update an Azure Cosmos DB Gremlin graph
818
+ #
819
+ # @param resource_group_name [String] The name of the resource group. The name
820
+ # is case insensitive.
821
+ # @param account_name [String] Cosmos DB database account name.
822
+ # @param database_name [String] Cosmos DB database name.
823
+ # @param graph_name [String] Cosmos DB graph name.
824
+ # @param create_update_gremlin_graph_parameters
825
+ # [GremlinGraphCreateUpdateParameters] The parameters to provide for the
826
+ # current Gremlin graph.
827
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
828
+ # will be added to the HTTP request.
829
+ #
830
+ # @return [GremlinGraphGetResults] operation results.
831
+ #
832
+ def create_update_gremlin_graph(resource_group_name, account_name, database_name, graph_name, create_update_gremlin_graph_parameters, custom_headers:nil)
833
+ response = create_update_gremlin_graph_async(resource_group_name, account_name, database_name, graph_name, create_update_gremlin_graph_parameters, custom_headers:custom_headers).value!
834
+ response.body unless response.nil?
835
+ end
836
+
837
+ #
838
+ # @param resource_group_name [String] The name of the resource group. The name
839
+ # is case insensitive.
840
+ # @param account_name [String] Cosmos DB database account name.
841
+ # @param database_name [String] Cosmos DB database name.
842
+ # @param graph_name [String] Cosmos DB graph name.
843
+ # @param create_update_gremlin_graph_parameters
844
+ # [GremlinGraphCreateUpdateParameters] The parameters to provide for the
845
+ # current Gremlin graph.
846
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
847
+ # will be added to the HTTP request.
848
+ #
849
+ # @return [Concurrent::Promise] promise which provides async access to http
850
+ # response.
851
+ #
852
+ def create_update_gremlin_graph_async(resource_group_name, account_name, database_name, graph_name, create_update_gremlin_graph_parameters, custom_headers:nil)
853
+ # Send request
854
+ promise = begin_create_update_gremlin_graph_async(resource_group_name, account_name, database_name, graph_name, create_update_gremlin_graph_parameters, custom_headers:custom_headers)
855
+
856
+ promise = promise.then do |response|
857
+ # Defining deserialization method.
858
+ deserialize_method = lambda do |parsed_response|
859
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_09_01::Models::GremlinGraphGetResults.mapper()
860
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
861
+ end
862
+
863
+ # Waiting for response.
864
+ @client.get_long_running_operation_result(response, deserialize_method)
865
+ end
866
+
867
+ promise
868
+ end
869
+
870
+ #
871
+ # Deletes an existing Azure Cosmos DB Gremlin graph.
872
+ #
873
+ # @param resource_group_name [String] The name of the resource group. The name
874
+ # is case insensitive.
875
+ # @param account_name [String] Cosmos DB database account name.
876
+ # @param database_name [String] Cosmos DB database name.
877
+ # @param graph_name [String] Cosmos DB graph name.
878
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
879
+ # will be added to the HTTP request.
880
+ #
881
+ def delete_gremlin_graph(resource_group_name, account_name, database_name, graph_name, custom_headers:nil)
882
+ response = delete_gremlin_graph_async(resource_group_name, account_name, database_name, graph_name, custom_headers:custom_headers).value!
883
+ nil
884
+ end
885
+
886
+ #
887
+ # @param resource_group_name [String] The name of the resource group. The name
888
+ # is case insensitive.
889
+ # @param account_name [String] Cosmos DB database account name.
890
+ # @param database_name [String] Cosmos DB database name.
891
+ # @param graph_name [String] Cosmos DB graph name.
892
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
893
+ # will be added to the HTTP request.
894
+ #
895
+ # @return [Concurrent::Promise] promise which provides async access to http
896
+ # response.
897
+ #
898
+ def delete_gremlin_graph_async(resource_group_name, account_name, database_name, graph_name, custom_headers:nil)
899
+ # Send request
900
+ promise = begin_delete_gremlin_graph_async(resource_group_name, account_name, database_name, graph_name, custom_headers:custom_headers)
901
+
902
+ promise = promise.then do |response|
903
+ # Defining deserialization method.
904
+ deserialize_method = lambda do |parsed_response|
905
+ end
906
+
907
+ # Waiting for response.
908
+ @client.get_long_running_operation_result(response, deserialize_method)
909
+ end
910
+
911
+ promise
912
+ end
913
+
914
+ #
915
+ # Gets the Gremlin graph throughput under an existing Azure Cosmos DB database
916
+ # account with the provided name.
917
+ #
918
+ # @param resource_group_name [String] The name of the resource group. The name
919
+ # is case insensitive.
920
+ # @param account_name [String] Cosmos DB database account name.
921
+ # @param database_name [String] Cosmos DB database name.
922
+ # @param graph_name [String] Cosmos DB graph name.
923
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
924
+ # will be added to the HTTP request.
925
+ #
926
+ # @return [ThroughputSettingsGetResults] operation results.
927
+ #
928
+ def get_gremlin_graph_throughput(resource_group_name, account_name, database_name, graph_name, custom_headers:nil)
929
+ response = get_gremlin_graph_throughput_async(resource_group_name, account_name, database_name, graph_name, custom_headers:custom_headers).value!
930
+ response.body unless response.nil?
931
+ end
932
+
933
+ #
934
+ # Gets the Gremlin graph throughput under an existing Azure Cosmos DB database
935
+ # account with the provided name.
936
+ #
937
+ # @param resource_group_name [String] The name of the resource group. The name
938
+ # is case insensitive.
939
+ # @param account_name [String] Cosmos DB database account name.
940
+ # @param database_name [String] Cosmos DB database name.
941
+ # @param graph_name [String] Cosmos DB graph name.
942
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
943
+ # will be added to the HTTP request.
944
+ #
945
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
946
+ #
947
+ def get_gremlin_graph_throughput_with_http_info(resource_group_name, account_name, database_name, graph_name, custom_headers:nil)
948
+ get_gremlin_graph_throughput_async(resource_group_name, account_name, database_name, graph_name, custom_headers:custom_headers).value!
949
+ end
950
+
951
+ #
952
+ # Gets the Gremlin graph throughput under an existing Azure Cosmos DB database
953
+ # account with the provided name.
954
+ #
955
+ # @param resource_group_name [String] The name of the resource group. The name
956
+ # is case insensitive.
957
+ # @param account_name [String] Cosmos DB database account name.
958
+ # @param database_name [String] Cosmos DB database name.
959
+ # @param graph_name [String] Cosmos DB graph name.
960
+ # @param [Hash{String => String}] A hash of custom headers that will be added
961
+ # to the HTTP request.
962
+ #
963
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
964
+ #
965
+ def get_gremlin_graph_throughput_async(resource_group_name, account_name, database_name, graph_name, custom_headers:nil)
966
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
967
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
968
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
969
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
970
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
971
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
972
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
973
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
974
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
975
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil?
976
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
977
+ fail ArgumentError, 'graph_name is nil' if graph_name.nil?
978
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
979
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
980
+
981
+
982
+ request_headers = {}
983
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
984
+
985
+ # Set Headers
986
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
987
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
988
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default'
989
+
990
+ request_url = @base_url || @client.base_url
991
+
992
+ options = {
993
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
994
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name,'graphName' => graph_name},
995
+ query_params: {'api-version' => @client.api_version},
996
+ headers: request_headers.merge(custom_headers || {}),
997
+ base_url: request_url
998
+ }
999
+ promise = @client.make_request_async(:get, path_template, options)
1000
+
1001
+ promise = promise.then do |result|
1002
+ http_response = result.response
1003
+ status_code = http_response.status
1004
+ response_content = http_response.body
1005
+ unless status_code == 200
1006
+ error_model = JSON.load(response_content)
1007
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1008
+ end
1009
+
1010
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1011
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1012
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1013
+ # Deserialize Response
1014
+ if status_code == 200
1015
+ begin
1016
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1017
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_09_01::Models::ThroughputSettingsGetResults.mapper()
1018
+ result.body = @client.deserialize(result_mapper, parsed_response)
1019
+ rescue Exception => e
1020
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1021
+ end
1022
+ end
1023
+
1024
+ result
1025
+ end
1026
+
1027
+ promise.execute
1028
+ end
1029
+
1030
+ #
1031
+ # Update RUs per second of an Azure Cosmos DB Gremlin graph
1032
+ #
1033
+ # @param resource_group_name [String] The name of the resource group. The name
1034
+ # is case insensitive.
1035
+ # @param account_name [String] Cosmos DB database account name.
1036
+ # @param database_name [String] Cosmos DB database name.
1037
+ # @param graph_name [String] Cosmos DB graph name.
1038
+ # @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
1039
+ # RUs per second of the parameters to provide for the current Gremlin graph.
1040
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1041
+ # will be added to the HTTP request.
1042
+ #
1043
+ # @return [ThroughputSettingsGetResults] operation results.
1044
+ #
1045
+ def update_gremlin_graph_throughput(resource_group_name, account_name, database_name, graph_name, update_throughput_parameters, custom_headers:nil)
1046
+ response = update_gremlin_graph_throughput_async(resource_group_name, account_name, database_name, graph_name, update_throughput_parameters, custom_headers:custom_headers).value!
1047
+ response.body unless response.nil?
1048
+ end
1049
+
1050
+ #
1051
+ # @param resource_group_name [String] The name of the resource group. The name
1052
+ # is case insensitive.
1053
+ # @param account_name [String] Cosmos DB database account name.
1054
+ # @param database_name [String] Cosmos DB database name.
1055
+ # @param graph_name [String] Cosmos DB graph name.
1056
+ # @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
1057
+ # RUs per second of the parameters to provide for the current Gremlin graph.
1058
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1059
+ # will be added to the HTTP request.
1060
+ #
1061
+ # @return [Concurrent::Promise] promise which provides async access to http
1062
+ # response.
1063
+ #
1064
+ def update_gremlin_graph_throughput_async(resource_group_name, account_name, database_name, graph_name, update_throughput_parameters, custom_headers:nil)
1065
+ # Send request
1066
+ promise = begin_update_gremlin_graph_throughput_async(resource_group_name, account_name, database_name, graph_name, update_throughput_parameters, custom_headers:custom_headers)
1067
+
1068
+ promise = promise.then do |response|
1069
+ # Defining deserialization method.
1070
+ deserialize_method = lambda do |parsed_response|
1071
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_09_01::Models::ThroughputSettingsGetResults.mapper()
1072
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
1073
+ end
1074
+
1075
+ # Waiting for response.
1076
+ @client.get_long_running_operation_result(response, deserialize_method)
1077
+ end
1078
+
1079
+ promise
1080
+ end
1081
+
1082
+ #
1083
+ # Migrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale
1084
+ #
1085
+ # @param resource_group_name [String] The name of the resource group. The name
1086
+ # is case insensitive.
1087
+ # @param account_name [String] Cosmos DB database account name.
1088
+ # @param database_name [String] Cosmos DB database name.
1089
+ # @param graph_name [String] Cosmos DB graph name.
1090
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1091
+ # will be added to the HTTP request.
1092
+ #
1093
+ # @return [ThroughputSettingsGetResults] operation results.
1094
+ #
1095
+ def migrate_gremlin_graph_to_autoscale(resource_group_name, account_name, database_name, graph_name, custom_headers:nil)
1096
+ response = migrate_gremlin_graph_to_autoscale_async(resource_group_name, account_name, database_name, graph_name, custom_headers:custom_headers).value!
1097
+ response.body unless response.nil?
1098
+ end
1099
+
1100
+ #
1101
+ # @param resource_group_name [String] The name of the resource group. The name
1102
+ # is case insensitive.
1103
+ # @param account_name [String] Cosmos DB database account name.
1104
+ # @param database_name [String] Cosmos DB database name.
1105
+ # @param graph_name [String] Cosmos DB graph name.
1106
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1107
+ # will be added to the HTTP request.
1108
+ #
1109
+ # @return [Concurrent::Promise] promise which provides async access to http
1110
+ # response.
1111
+ #
1112
+ def migrate_gremlin_graph_to_autoscale_async(resource_group_name, account_name, database_name, graph_name, custom_headers:nil)
1113
+ # Send request
1114
+ promise = begin_migrate_gremlin_graph_to_autoscale_async(resource_group_name, account_name, database_name, graph_name, custom_headers:custom_headers)
1115
+
1116
+ promise = promise.then do |response|
1117
+ # Defining deserialization method.
1118
+ deserialize_method = lambda do |parsed_response|
1119
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_09_01::Models::ThroughputSettingsGetResults.mapper()
1120
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
1121
+ end
1122
+
1123
+ # Waiting for response.
1124
+ @client.get_long_running_operation_result(response, deserialize_method)
1125
+ end
1126
+
1127
+ promise
1128
+ end
1129
+
1130
+ #
1131
+ # Migrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput
1132
+ #
1133
+ # @param resource_group_name [String] The name of the resource group. The name
1134
+ # is case insensitive.
1135
+ # @param account_name [String] Cosmos DB database account name.
1136
+ # @param database_name [String] Cosmos DB database name.
1137
+ # @param graph_name [String] Cosmos DB graph name.
1138
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1139
+ # will be added to the HTTP request.
1140
+ #
1141
+ # @return [ThroughputSettingsGetResults] operation results.
1142
+ #
1143
+ def migrate_gremlin_graph_to_manual_throughput(resource_group_name, account_name, database_name, graph_name, custom_headers:nil)
1144
+ response = migrate_gremlin_graph_to_manual_throughput_async(resource_group_name, account_name, database_name, graph_name, custom_headers:custom_headers).value!
1145
+ response.body unless response.nil?
1146
+ end
1147
+
1148
+ #
1149
+ # @param resource_group_name [String] The name of the resource group. The name
1150
+ # is case insensitive.
1151
+ # @param account_name [String] Cosmos DB database account name.
1152
+ # @param database_name [String] Cosmos DB database name.
1153
+ # @param graph_name [String] Cosmos DB graph name.
1154
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1155
+ # will be added to the HTTP request.
1156
+ #
1157
+ # @return [Concurrent::Promise] promise which provides async access to http
1158
+ # response.
1159
+ #
1160
+ def migrate_gremlin_graph_to_manual_throughput_async(resource_group_name, account_name, database_name, graph_name, custom_headers:nil)
1161
+ # Send request
1162
+ promise = begin_migrate_gremlin_graph_to_manual_throughput_async(resource_group_name, account_name, database_name, graph_name, custom_headers:custom_headers)
1163
+
1164
+ promise = promise.then do |response|
1165
+ # Defining deserialization method.
1166
+ deserialize_method = lambda do |parsed_response|
1167
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_09_01::Models::ThroughputSettingsGetResults.mapper()
1168
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
1169
+ end
1170
+
1171
+ # Waiting for response.
1172
+ @client.get_long_running_operation_result(response, deserialize_method)
1173
+ end
1174
+
1175
+ promise
1176
+ end
1177
+
1178
+ #
1179
+ # Create or update an Azure Cosmos DB Gremlin database
1180
+ #
1181
+ # @param resource_group_name [String] The name of the resource group. The name
1182
+ # is case insensitive.
1183
+ # @param account_name [String] Cosmos DB database account name.
1184
+ # @param database_name [String] Cosmos DB database name.
1185
+ # @param create_update_gremlin_database_parameters
1186
+ # [GremlinDatabaseCreateUpdateParameters] The parameters to provide for the
1187
+ # current Gremlin database.
1188
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1189
+ # will be added to the HTTP request.
1190
+ #
1191
+ # @return [GremlinDatabaseGetResults] operation results.
1192
+ #
1193
+ def begin_create_update_gremlin_database(resource_group_name, account_name, database_name, create_update_gremlin_database_parameters, custom_headers:nil)
1194
+ response = begin_create_update_gremlin_database_async(resource_group_name, account_name, database_name, create_update_gremlin_database_parameters, custom_headers:custom_headers).value!
1195
+ response.body unless response.nil?
1196
+ end
1197
+
1198
+ #
1199
+ # Create or update an Azure Cosmos DB Gremlin database
1200
+ #
1201
+ # @param resource_group_name [String] The name of the resource group. The name
1202
+ # is case insensitive.
1203
+ # @param account_name [String] Cosmos DB database account name.
1204
+ # @param database_name [String] Cosmos DB database name.
1205
+ # @param create_update_gremlin_database_parameters
1206
+ # [GremlinDatabaseCreateUpdateParameters] The parameters to provide for the
1207
+ # current Gremlin database.
1208
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1209
+ # will be added to the HTTP request.
1210
+ #
1211
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1212
+ #
1213
+ def begin_create_update_gremlin_database_with_http_info(resource_group_name, account_name, database_name, create_update_gremlin_database_parameters, custom_headers:nil)
1214
+ begin_create_update_gremlin_database_async(resource_group_name, account_name, database_name, create_update_gremlin_database_parameters, custom_headers:custom_headers).value!
1215
+ end
1216
+
1217
+ #
1218
+ # Create or update an Azure Cosmos DB Gremlin database
1219
+ #
1220
+ # @param resource_group_name [String] The name of the resource group. The name
1221
+ # is case insensitive.
1222
+ # @param account_name [String] Cosmos DB database account name.
1223
+ # @param database_name [String] Cosmos DB database name.
1224
+ # @param create_update_gremlin_database_parameters
1225
+ # [GremlinDatabaseCreateUpdateParameters] The parameters to provide for the
1226
+ # current Gremlin database.
1227
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1228
+ # to the HTTP request.
1229
+ #
1230
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1231
+ #
1232
+ def begin_create_update_gremlin_database_async(resource_group_name, account_name, database_name, create_update_gremlin_database_parameters, custom_headers:nil)
1233
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1234
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
1235
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1236
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1237
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1238
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1239
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
1240
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
1241
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
1242
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil?
1243
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
1244
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1245
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
1246
+ fail ArgumentError, 'create_update_gremlin_database_parameters is nil' if create_update_gremlin_database_parameters.nil?
1247
+
1248
+
1249
+ request_headers = {}
1250
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1251
+
1252
+ # Set Headers
1253
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1254
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1255
+
1256
+ # Serialize Request
1257
+ request_mapper = Azure::Cosmosdb::Mgmt::V2020_09_01::Models::GremlinDatabaseCreateUpdateParameters.mapper()
1258
+ request_content = @client.serialize(request_mapper, create_update_gremlin_database_parameters)
1259
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1260
+
1261
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}'
1262
+
1263
+ request_url = @base_url || @client.base_url
1264
+
1265
+ options = {
1266
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1267
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name},
1268
+ query_params: {'api-version' => @client.api_version},
1269
+ body: request_content,
1270
+ headers: request_headers.merge(custom_headers || {}),
1271
+ base_url: request_url
1272
+ }
1273
+ promise = @client.make_request_async(:put, path_template, options)
1274
+
1275
+ promise = promise.then do |result|
1276
+ http_response = result.response
1277
+ status_code = http_response.status
1278
+ response_content = http_response.body
1279
+ unless status_code == 202 || status_code == 200
1280
+ error_model = JSON.load(response_content)
1281
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1282
+ end
1283
+
1284
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1285
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1286
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1287
+ # Deserialize Response
1288
+ if status_code == 200
1289
+ begin
1290
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1291
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_09_01::Models::GremlinDatabaseGetResults.mapper()
1292
+ result.body = @client.deserialize(result_mapper, parsed_response)
1293
+ rescue Exception => e
1294
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1295
+ end
1296
+ end
1297
+
1298
+ result
1299
+ end
1300
+
1301
+ promise.execute
1302
+ end
1303
+
1304
+ #
1305
+ # Deletes an existing Azure Cosmos DB Gremlin database.
1306
+ #
1307
+ # @param resource_group_name [String] The name of the resource group. The name
1308
+ # is case insensitive.
1309
+ # @param account_name [String] Cosmos DB database account name.
1310
+ # @param database_name [String] Cosmos DB database name.
1311
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1312
+ # will be added to the HTTP request.
1313
+ #
1314
+ #
1315
+ def begin_delete_gremlin_database(resource_group_name, account_name, database_name, custom_headers:nil)
1316
+ response = begin_delete_gremlin_database_async(resource_group_name, account_name, database_name, custom_headers:custom_headers).value!
1317
+ nil
1318
+ end
1319
+
1320
+ #
1321
+ # Deletes an existing Azure Cosmos DB Gremlin database.
1322
+ #
1323
+ # @param resource_group_name [String] The name of the resource group. The name
1324
+ # is case insensitive.
1325
+ # @param account_name [String] Cosmos DB database account name.
1326
+ # @param database_name [String] Cosmos DB database name.
1327
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1328
+ # will be added to the HTTP request.
1329
+ #
1330
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1331
+ #
1332
+ def begin_delete_gremlin_database_with_http_info(resource_group_name, account_name, database_name, custom_headers:nil)
1333
+ begin_delete_gremlin_database_async(resource_group_name, account_name, database_name, custom_headers:custom_headers).value!
1334
+ end
1335
+
1336
+ #
1337
+ # Deletes an existing Azure Cosmos DB Gremlin database.
1338
+ #
1339
+ # @param resource_group_name [String] The name of the resource group. The name
1340
+ # is case insensitive.
1341
+ # @param account_name [String] Cosmos DB database account name.
1342
+ # @param database_name [String] Cosmos DB database name.
1343
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1344
+ # to the HTTP request.
1345
+ #
1346
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1347
+ #
1348
+ def begin_delete_gremlin_database_async(resource_group_name, account_name, database_name, custom_headers:nil)
1349
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1350
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
1351
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1352
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1353
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1354
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1355
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
1356
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
1357
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
1358
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil?
1359
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
1360
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1361
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
1362
+
1363
+
1364
+ request_headers = {}
1365
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1366
+
1367
+ # Set Headers
1368
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1369
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1370
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}'
1371
+
1372
+ request_url = @base_url || @client.base_url
1373
+
1374
+ options = {
1375
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1376
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name},
1377
+ query_params: {'api-version' => @client.api_version},
1378
+ headers: request_headers.merge(custom_headers || {}),
1379
+ base_url: request_url
1380
+ }
1381
+ promise = @client.make_request_async(:delete, path_template, options)
1382
+
1383
+ promise = promise.then do |result|
1384
+ http_response = result.response
1385
+ status_code = http_response.status
1386
+ response_content = http_response.body
1387
+ unless status_code == 202 || status_code == 204
1388
+ error_model = JSON.load(response_content)
1389
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1390
+ end
1391
+
1392
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1393
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1394
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1395
+
1396
+ result
1397
+ end
1398
+
1399
+ promise.execute
1400
+ end
1401
+
1402
+ #
1403
+ # Update RUs per second of an Azure Cosmos DB Gremlin database
1404
+ #
1405
+ # @param resource_group_name [String] The name of the resource group. The name
1406
+ # is case insensitive.
1407
+ # @param account_name [String] Cosmos DB database account name.
1408
+ # @param database_name [String] Cosmos DB database name.
1409
+ # @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
1410
+ # RUs per second of the parameters to provide for the current Gremlin database.
1411
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1412
+ # will be added to the HTTP request.
1413
+ #
1414
+ # @return [ThroughputSettingsGetResults] operation results.
1415
+ #
1416
+ def begin_update_gremlin_database_throughput(resource_group_name, account_name, database_name, update_throughput_parameters, custom_headers:nil)
1417
+ response = begin_update_gremlin_database_throughput_async(resource_group_name, account_name, database_name, update_throughput_parameters, custom_headers:custom_headers).value!
1418
+ response.body unless response.nil?
1419
+ end
1420
+
1421
+ #
1422
+ # Update RUs per second of an Azure Cosmos DB Gremlin database
1423
+ #
1424
+ # @param resource_group_name [String] The name of the resource group. The name
1425
+ # is case insensitive.
1426
+ # @param account_name [String] Cosmos DB database account name.
1427
+ # @param database_name [String] Cosmos DB database name.
1428
+ # @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
1429
+ # RUs per second of the parameters to provide for the current Gremlin database.
1430
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1431
+ # will be added to the HTTP request.
1432
+ #
1433
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1434
+ #
1435
+ def begin_update_gremlin_database_throughput_with_http_info(resource_group_name, account_name, database_name, update_throughput_parameters, custom_headers:nil)
1436
+ begin_update_gremlin_database_throughput_async(resource_group_name, account_name, database_name, update_throughput_parameters, custom_headers:custom_headers).value!
1437
+ end
1438
+
1439
+ #
1440
+ # Update RUs per second of an Azure Cosmos DB Gremlin database
1441
+ #
1442
+ # @param resource_group_name [String] The name of the resource group. The name
1443
+ # is case insensitive.
1444
+ # @param account_name [String] Cosmos DB database account name.
1445
+ # @param database_name [String] Cosmos DB database name.
1446
+ # @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
1447
+ # RUs per second of the parameters to provide for the current Gremlin database.
1448
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1449
+ # to the HTTP request.
1450
+ #
1451
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1452
+ #
1453
+ def begin_update_gremlin_database_throughput_async(resource_group_name, account_name, database_name, update_throughput_parameters, custom_headers:nil)
1454
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1455
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
1456
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1457
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1458
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1459
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1460
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
1461
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
1462
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
1463
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil?
1464
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
1465
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1466
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
1467
+ fail ArgumentError, 'update_throughput_parameters is nil' if update_throughput_parameters.nil?
1468
+
1469
+
1470
+ request_headers = {}
1471
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1472
+
1473
+ # Set Headers
1474
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1475
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1476
+
1477
+ # Serialize Request
1478
+ request_mapper = Azure::Cosmosdb::Mgmt::V2020_09_01::Models::ThroughputSettingsUpdateParameters.mapper()
1479
+ request_content = @client.serialize(request_mapper, update_throughput_parameters)
1480
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1481
+
1482
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default'
1483
+
1484
+ request_url = @base_url || @client.base_url
1485
+
1486
+ options = {
1487
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1488
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name},
1489
+ query_params: {'api-version' => @client.api_version},
1490
+ body: request_content,
1491
+ headers: request_headers.merge(custom_headers || {}),
1492
+ base_url: request_url
1493
+ }
1494
+ promise = @client.make_request_async(:put, path_template, options)
1495
+
1496
+ promise = promise.then do |result|
1497
+ http_response = result.response
1498
+ status_code = http_response.status
1499
+ response_content = http_response.body
1500
+ unless status_code == 202 || status_code == 200
1501
+ error_model = JSON.load(response_content)
1502
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1503
+ end
1504
+
1505
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1506
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1507
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1508
+ # Deserialize Response
1509
+ if status_code == 200
1510
+ begin
1511
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1512
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_09_01::Models::ThroughputSettingsGetResults.mapper()
1513
+ result.body = @client.deserialize(result_mapper, parsed_response)
1514
+ rescue Exception => e
1515
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1516
+ end
1517
+ end
1518
+
1519
+ result
1520
+ end
1521
+
1522
+ promise.execute
1523
+ end
1524
+
1525
+ #
1526
+ # Migrate an Azure Cosmos DB Gremlin database from manual throughput to
1527
+ # autoscale
1528
+ #
1529
+ # @param resource_group_name [String] The name of the resource group. The name
1530
+ # is case insensitive.
1531
+ # @param account_name [String] Cosmos DB database account name.
1532
+ # @param database_name [String] Cosmos DB database name.
1533
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1534
+ # will be added to the HTTP request.
1535
+ #
1536
+ # @return [ThroughputSettingsGetResults] operation results.
1537
+ #
1538
+ def begin_migrate_gremlin_database_to_autoscale(resource_group_name, account_name, database_name, custom_headers:nil)
1539
+ response = begin_migrate_gremlin_database_to_autoscale_async(resource_group_name, account_name, database_name, custom_headers:custom_headers).value!
1540
+ response.body unless response.nil?
1541
+ end
1542
+
1543
+ #
1544
+ # Migrate an Azure Cosmos DB Gremlin database from manual throughput to
1545
+ # autoscale
1546
+ #
1547
+ # @param resource_group_name [String] The name of the resource group. The name
1548
+ # is case insensitive.
1549
+ # @param account_name [String] Cosmos DB database account name.
1550
+ # @param database_name [String] Cosmos DB database name.
1551
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1552
+ # will be added to the HTTP request.
1553
+ #
1554
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1555
+ #
1556
+ def begin_migrate_gremlin_database_to_autoscale_with_http_info(resource_group_name, account_name, database_name, custom_headers:nil)
1557
+ begin_migrate_gremlin_database_to_autoscale_async(resource_group_name, account_name, database_name, custom_headers:custom_headers).value!
1558
+ end
1559
+
1560
+ #
1561
+ # Migrate an Azure Cosmos DB Gremlin database from manual throughput to
1562
+ # autoscale
1563
+ #
1564
+ # @param resource_group_name [String] The name of the resource group. The name
1565
+ # is case insensitive.
1566
+ # @param account_name [String] Cosmos DB database account name.
1567
+ # @param database_name [String] Cosmos DB database name.
1568
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1569
+ # to the HTTP request.
1570
+ #
1571
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1572
+ #
1573
+ def begin_migrate_gremlin_database_to_autoscale_async(resource_group_name, account_name, database_name, custom_headers:nil)
1574
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1575
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
1576
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1577
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1578
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1579
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1580
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
1581
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
1582
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
1583
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil?
1584
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
1585
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1586
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
1587
+
1588
+
1589
+ request_headers = {}
1590
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1591
+
1592
+ # Set Headers
1593
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1594
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1595
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default/migrateToAutoscale'
1596
+
1597
+ request_url = @base_url || @client.base_url
1598
+
1599
+ options = {
1600
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1601
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name},
1602
+ query_params: {'api-version' => @client.api_version},
1603
+ headers: request_headers.merge(custom_headers || {}),
1604
+ base_url: request_url
1605
+ }
1606
+ promise = @client.make_request_async(:post, path_template, options)
1607
+
1608
+ promise = promise.then do |result|
1609
+ http_response = result.response
1610
+ status_code = http_response.status
1611
+ response_content = http_response.body
1612
+ unless status_code == 202 || status_code == 200
1613
+ error_model = JSON.load(response_content)
1614
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1615
+ end
1616
+
1617
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1618
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1619
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1620
+ # Deserialize Response
1621
+ if status_code == 200
1622
+ begin
1623
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1624
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_09_01::Models::ThroughputSettingsGetResults.mapper()
1625
+ result.body = @client.deserialize(result_mapper, parsed_response)
1626
+ rescue Exception => e
1627
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1628
+ end
1629
+ end
1630
+
1631
+ result
1632
+ end
1633
+
1634
+ promise.execute
1635
+ end
1636
+
1637
+ #
1638
+ # Migrate an Azure Cosmos DB Gremlin database from autoscale to manual
1639
+ # throughput
1640
+ #
1641
+ # @param resource_group_name [String] The name of the resource group. The name
1642
+ # is case insensitive.
1643
+ # @param account_name [String] Cosmos DB database account name.
1644
+ # @param database_name [String] Cosmos DB database name.
1645
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1646
+ # will be added to the HTTP request.
1647
+ #
1648
+ # @return [ThroughputSettingsGetResults] operation results.
1649
+ #
1650
+ def begin_migrate_gremlin_database_to_manual_throughput(resource_group_name, account_name, database_name, custom_headers:nil)
1651
+ response = begin_migrate_gremlin_database_to_manual_throughput_async(resource_group_name, account_name, database_name, custom_headers:custom_headers).value!
1652
+ response.body unless response.nil?
1653
+ end
1654
+
1655
+ #
1656
+ # Migrate an Azure Cosmos DB Gremlin database from autoscale to manual
1657
+ # throughput
1658
+ #
1659
+ # @param resource_group_name [String] The name of the resource group. The name
1660
+ # is case insensitive.
1661
+ # @param account_name [String] Cosmos DB database account name.
1662
+ # @param database_name [String] Cosmos DB database name.
1663
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1664
+ # will be added to the HTTP request.
1665
+ #
1666
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1667
+ #
1668
+ def begin_migrate_gremlin_database_to_manual_throughput_with_http_info(resource_group_name, account_name, database_name, custom_headers:nil)
1669
+ begin_migrate_gremlin_database_to_manual_throughput_async(resource_group_name, account_name, database_name, custom_headers:custom_headers).value!
1670
+ end
1671
+
1672
+ #
1673
+ # Migrate an Azure Cosmos DB Gremlin database from autoscale to manual
1674
+ # throughput
1675
+ #
1676
+ # @param resource_group_name [String] The name of the resource group. The name
1677
+ # is case insensitive.
1678
+ # @param account_name [String] Cosmos DB database account name.
1679
+ # @param database_name [String] Cosmos DB database name.
1680
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1681
+ # to the HTTP request.
1682
+ #
1683
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1684
+ #
1685
+ def begin_migrate_gremlin_database_to_manual_throughput_async(resource_group_name, account_name, database_name, custom_headers:nil)
1686
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1687
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
1688
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1689
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1690
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1691
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1692
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
1693
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
1694
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
1695
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil?
1696
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
1697
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1698
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
1699
+
1700
+
1701
+ request_headers = {}
1702
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1703
+
1704
+ # Set Headers
1705
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1706
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1707
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default/migrateToManualThroughput'
1708
+
1709
+ request_url = @base_url || @client.base_url
1710
+
1711
+ options = {
1712
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1713
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name},
1714
+ query_params: {'api-version' => @client.api_version},
1715
+ headers: request_headers.merge(custom_headers || {}),
1716
+ base_url: request_url
1717
+ }
1718
+ promise = @client.make_request_async(:post, path_template, options)
1719
+
1720
+ promise = promise.then do |result|
1721
+ http_response = result.response
1722
+ status_code = http_response.status
1723
+ response_content = http_response.body
1724
+ unless status_code == 202 || status_code == 200
1725
+ error_model = JSON.load(response_content)
1726
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1727
+ end
1728
+
1729
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1730
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1731
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1732
+ # Deserialize Response
1733
+ if status_code == 200
1734
+ begin
1735
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1736
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_09_01::Models::ThroughputSettingsGetResults.mapper()
1737
+ result.body = @client.deserialize(result_mapper, parsed_response)
1738
+ rescue Exception => e
1739
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1740
+ end
1741
+ end
1742
+
1743
+ result
1744
+ end
1745
+
1746
+ promise.execute
1747
+ end
1748
+
1749
+ #
1750
+ # Create or update an Azure Cosmos DB Gremlin graph
1751
+ #
1752
+ # @param resource_group_name [String] The name of the resource group. The name
1753
+ # is case insensitive.
1754
+ # @param account_name [String] Cosmos DB database account name.
1755
+ # @param database_name [String] Cosmos DB database name.
1756
+ # @param graph_name [String] Cosmos DB graph name.
1757
+ # @param create_update_gremlin_graph_parameters
1758
+ # [GremlinGraphCreateUpdateParameters] The parameters to provide for the
1759
+ # current Gremlin graph.
1760
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1761
+ # will be added to the HTTP request.
1762
+ #
1763
+ # @return [GremlinGraphGetResults] operation results.
1764
+ #
1765
+ def begin_create_update_gremlin_graph(resource_group_name, account_name, database_name, graph_name, create_update_gremlin_graph_parameters, custom_headers:nil)
1766
+ response = begin_create_update_gremlin_graph_async(resource_group_name, account_name, database_name, graph_name, create_update_gremlin_graph_parameters, custom_headers:custom_headers).value!
1767
+ response.body unless response.nil?
1768
+ end
1769
+
1770
+ #
1771
+ # Create or update an Azure Cosmos DB Gremlin graph
1772
+ #
1773
+ # @param resource_group_name [String] The name of the resource group. The name
1774
+ # is case insensitive.
1775
+ # @param account_name [String] Cosmos DB database account name.
1776
+ # @param database_name [String] Cosmos DB database name.
1777
+ # @param graph_name [String] Cosmos DB graph name.
1778
+ # @param create_update_gremlin_graph_parameters
1779
+ # [GremlinGraphCreateUpdateParameters] The parameters to provide for the
1780
+ # current Gremlin graph.
1781
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1782
+ # will be added to the HTTP request.
1783
+ #
1784
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1785
+ #
1786
+ def begin_create_update_gremlin_graph_with_http_info(resource_group_name, account_name, database_name, graph_name, create_update_gremlin_graph_parameters, custom_headers:nil)
1787
+ begin_create_update_gremlin_graph_async(resource_group_name, account_name, database_name, graph_name, create_update_gremlin_graph_parameters, custom_headers:custom_headers).value!
1788
+ end
1789
+
1790
+ #
1791
+ # Create or update an Azure Cosmos DB Gremlin graph
1792
+ #
1793
+ # @param resource_group_name [String] The name of the resource group. The name
1794
+ # is case insensitive.
1795
+ # @param account_name [String] Cosmos DB database account name.
1796
+ # @param database_name [String] Cosmos DB database name.
1797
+ # @param graph_name [String] Cosmos DB graph name.
1798
+ # @param create_update_gremlin_graph_parameters
1799
+ # [GremlinGraphCreateUpdateParameters] The parameters to provide for the
1800
+ # current Gremlin graph.
1801
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1802
+ # to the HTTP request.
1803
+ #
1804
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1805
+ #
1806
+ def begin_create_update_gremlin_graph_async(resource_group_name, account_name, database_name, graph_name, create_update_gremlin_graph_parameters, custom_headers:nil)
1807
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1808
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
1809
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1810
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1811
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1812
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1813
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
1814
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
1815
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
1816
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil?
1817
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
1818
+ fail ArgumentError, 'graph_name is nil' if graph_name.nil?
1819
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1820
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
1821
+ fail ArgumentError, 'create_update_gremlin_graph_parameters is nil' if create_update_gremlin_graph_parameters.nil?
1822
+
1823
+
1824
+ request_headers = {}
1825
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1826
+
1827
+ # Set Headers
1828
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1829
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1830
+
1831
+ # Serialize Request
1832
+ request_mapper = Azure::Cosmosdb::Mgmt::V2020_09_01::Models::GremlinGraphCreateUpdateParameters.mapper()
1833
+ request_content = @client.serialize(request_mapper, create_update_gremlin_graph_parameters)
1834
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1835
+
1836
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}'
1837
+
1838
+ request_url = @base_url || @client.base_url
1839
+
1840
+ options = {
1841
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1842
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name,'graphName' => graph_name},
1843
+ query_params: {'api-version' => @client.api_version},
1844
+ body: request_content,
1845
+ headers: request_headers.merge(custom_headers || {}),
1846
+ base_url: request_url
1847
+ }
1848
+ promise = @client.make_request_async(:put, path_template, options)
1849
+
1850
+ promise = promise.then do |result|
1851
+ http_response = result.response
1852
+ status_code = http_response.status
1853
+ response_content = http_response.body
1854
+ unless status_code == 202 || status_code == 200
1855
+ error_model = JSON.load(response_content)
1856
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1857
+ end
1858
+
1859
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1860
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1861
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1862
+ # Deserialize Response
1863
+ if status_code == 200
1864
+ begin
1865
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1866
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_09_01::Models::GremlinGraphGetResults.mapper()
1867
+ result.body = @client.deserialize(result_mapper, parsed_response)
1868
+ rescue Exception => e
1869
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1870
+ end
1871
+ end
1872
+
1873
+ result
1874
+ end
1875
+
1876
+ promise.execute
1877
+ end
1878
+
1879
+ #
1880
+ # Deletes an existing Azure Cosmos DB Gremlin graph.
1881
+ #
1882
+ # @param resource_group_name [String] The name of the resource group. The name
1883
+ # is case insensitive.
1884
+ # @param account_name [String] Cosmos DB database account name.
1885
+ # @param database_name [String] Cosmos DB database name.
1886
+ # @param graph_name [String] Cosmos DB graph name.
1887
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1888
+ # will be added to the HTTP request.
1889
+ #
1890
+ #
1891
+ def begin_delete_gremlin_graph(resource_group_name, account_name, database_name, graph_name, custom_headers:nil)
1892
+ response = begin_delete_gremlin_graph_async(resource_group_name, account_name, database_name, graph_name, custom_headers:custom_headers).value!
1893
+ nil
1894
+ end
1895
+
1896
+ #
1897
+ # Deletes an existing Azure Cosmos DB Gremlin graph.
1898
+ #
1899
+ # @param resource_group_name [String] The name of the resource group. The name
1900
+ # is case insensitive.
1901
+ # @param account_name [String] Cosmos DB database account name.
1902
+ # @param database_name [String] Cosmos DB database name.
1903
+ # @param graph_name [String] Cosmos DB graph name.
1904
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1905
+ # will be added to the HTTP request.
1906
+ #
1907
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1908
+ #
1909
+ def begin_delete_gremlin_graph_with_http_info(resource_group_name, account_name, database_name, graph_name, custom_headers:nil)
1910
+ begin_delete_gremlin_graph_async(resource_group_name, account_name, database_name, graph_name, custom_headers:custom_headers).value!
1911
+ end
1912
+
1913
+ #
1914
+ # Deletes an existing Azure Cosmos DB Gremlin graph.
1915
+ #
1916
+ # @param resource_group_name [String] The name of the resource group. The name
1917
+ # is case insensitive.
1918
+ # @param account_name [String] Cosmos DB database account name.
1919
+ # @param database_name [String] Cosmos DB database name.
1920
+ # @param graph_name [String] Cosmos DB graph name.
1921
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1922
+ # to the HTTP request.
1923
+ #
1924
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1925
+ #
1926
+ def begin_delete_gremlin_graph_async(resource_group_name, account_name, database_name, graph_name, custom_headers:nil)
1927
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1928
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
1929
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1930
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1931
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1932
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1933
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
1934
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
1935
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
1936
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil?
1937
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
1938
+ fail ArgumentError, 'graph_name is nil' if graph_name.nil?
1939
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1940
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
1941
+
1942
+
1943
+ request_headers = {}
1944
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1945
+
1946
+ # Set Headers
1947
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1948
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1949
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}'
1950
+
1951
+ request_url = @base_url || @client.base_url
1952
+
1953
+ options = {
1954
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1955
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name,'graphName' => graph_name},
1956
+ query_params: {'api-version' => @client.api_version},
1957
+ headers: request_headers.merge(custom_headers || {}),
1958
+ base_url: request_url
1959
+ }
1960
+ promise = @client.make_request_async(:delete, path_template, options)
1961
+
1962
+ promise = promise.then do |result|
1963
+ http_response = result.response
1964
+ status_code = http_response.status
1965
+ response_content = http_response.body
1966
+ unless status_code == 202 || status_code == 204
1967
+ error_model = JSON.load(response_content)
1968
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1969
+ end
1970
+
1971
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1972
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1973
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1974
+
1975
+ result
1976
+ end
1977
+
1978
+ promise.execute
1979
+ end
1980
+
1981
+ #
1982
+ # Update RUs per second of an Azure Cosmos DB Gremlin graph
1983
+ #
1984
+ # @param resource_group_name [String] The name of the resource group. The name
1985
+ # is case insensitive.
1986
+ # @param account_name [String] Cosmos DB database account name.
1987
+ # @param database_name [String] Cosmos DB database name.
1988
+ # @param graph_name [String] Cosmos DB graph name.
1989
+ # @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
1990
+ # RUs per second of the parameters to provide for the current Gremlin graph.
1991
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1992
+ # will be added to the HTTP request.
1993
+ #
1994
+ # @return [ThroughputSettingsGetResults] operation results.
1995
+ #
1996
+ def begin_update_gremlin_graph_throughput(resource_group_name, account_name, database_name, graph_name, update_throughput_parameters, custom_headers:nil)
1997
+ response = begin_update_gremlin_graph_throughput_async(resource_group_name, account_name, database_name, graph_name, update_throughput_parameters, custom_headers:custom_headers).value!
1998
+ response.body unless response.nil?
1999
+ end
2000
+
2001
+ #
2002
+ # Update RUs per second of an Azure Cosmos DB Gremlin graph
2003
+ #
2004
+ # @param resource_group_name [String] The name of the resource group. The name
2005
+ # is case insensitive.
2006
+ # @param account_name [String] Cosmos DB database account name.
2007
+ # @param database_name [String] Cosmos DB database name.
2008
+ # @param graph_name [String] Cosmos DB graph name.
2009
+ # @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
2010
+ # RUs per second of the parameters to provide for the current Gremlin graph.
2011
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2012
+ # will be added to the HTTP request.
2013
+ #
2014
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2015
+ #
2016
+ def begin_update_gremlin_graph_throughput_with_http_info(resource_group_name, account_name, database_name, graph_name, update_throughput_parameters, custom_headers:nil)
2017
+ begin_update_gremlin_graph_throughput_async(resource_group_name, account_name, database_name, graph_name, update_throughput_parameters, custom_headers:custom_headers).value!
2018
+ end
2019
+
2020
+ #
2021
+ # Update RUs per second of an Azure Cosmos DB Gremlin graph
2022
+ #
2023
+ # @param resource_group_name [String] The name of the resource group. The name
2024
+ # is case insensitive.
2025
+ # @param account_name [String] Cosmos DB database account name.
2026
+ # @param database_name [String] Cosmos DB database name.
2027
+ # @param graph_name [String] Cosmos DB graph name.
2028
+ # @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
2029
+ # RUs per second of the parameters to provide for the current Gremlin graph.
2030
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2031
+ # to the HTTP request.
2032
+ #
2033
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2034
+ #
2035
+ def begin_update_gremlin_graph_throughput_async(resource_group_name, account_name, database_name, graph_name, update_throughput_parameters, custom_headers:nil)
2036
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2037
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
2038
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2039
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
2040
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
2041
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
2042
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
2043
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
2044
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
2045
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil?
2046
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
2047
+ fail ArgumentError, 'graph_name is nil' if graph_name.nil?
2048
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2049
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
2050
+ fail ArgumentError, 'update_throughput_parameters is nil' if update_throughput_parameters.nil?
2051
+
2052
+
2053
+ request_headers = {}
2054
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2055
+
2056
+ # Set Headers
2057
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2058
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2059
+
2060
+ # Serialize Request
2061
+ request_mapper = Azure::Cosmosdb::Mgmt::V2020_09_01::Models::ThroughputSettingsUpdateParameters.mapper()
2062
+ request_content = @client.serialize(request_mapper, update_throughput_parameters)
2063
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
2064
+
2065
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default'
2066
+
2067
+ request_url = @base_url || @client.base_url
2068
+
2069
+ options = {
2070
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2071
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name,'graphName' => graph_name},
2072
+ query_params: {'api-version' => @client.api_version},
2073
+ body: request_content,
2074
+ headers: request_headers.merge(custom_headers || {}),
2075
+ base_url: request_url
2076
+ }
2077
+ promise = @client.make_request_async(:put, path_template, options)
2078
+
2079
+ promise = promise.then do |result|
2080
+ http_response = result.response
2081
+ status_code = http_response.status
2082
+ response_content = http_response.body
2083
+ unless status_code == 202 || status_code == 200
2084
+ error_model = JSON.load(response_content)
2085
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2086
+ end
2087
+
2088
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2089
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2090
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2091
+ # Deserialize Response
2092
+ if status_code == 200
2093
+ begin
2094
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2095
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_09_01::Models::ThroughputSettingsGetResults.mapper()
2096
+ result.body = @client.deserialize(result_mapper, parsed_response)
2097
+ rescue Exception => e
2098
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2099
+ end
2100
+ end
2101
+
2102
+ result
2103
+ end
2104
+
2105
+ promise.execute
2106
+ end
2107
+
2108
+ #
2109
+ # Migrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale
2110
+ #
2111
+ # @param resource_group_name [String] The name of the resource group. The name
2112
+ # is case insensitive.
2113
+ # @param account_name [String] Cosmos DB database account name.
2114
+ # @param database_name [String] Cosmos DB database name.
2115
+ # @param graph_name [String] Cosmos DB graph name.
2116
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2117
+ # will be added to the HTTP request.
2118
+ #
2119
+ # @return [ThroughputSettingsGetResults] operation results.
2120
+ #
2121
+ def begin_migrate_gremlin_graph_to_autoscale(resource_group_name, account_name, database_name, graph_name, custom_headers:nil)
2122
+ response = begin_migrate_gremlin_graph_to_autoscale_async(resource_group_name, account_name, database_name, graph_name, custom_headers:custom_headers).value!
2123
+ response.body unless response.nil?
2124
+ end
2125
+
2126
+ #
2127
+ # Migrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale
2128
+ #
2129
+ # @param resource_group_name [String] The name of the resource group. The name
2130
+ # is case insensitive.
2131
+ # @param account_name [String] Cosmos DB database account name.
2132
+ # @param database_name [String] Cosmos DB database name.
2133
+ # @param graph_name [String] Cosmos DB graph name.
2134
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2135
+ # will be added to the HTTP request.
2136
+ #
2137
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2138
+ #
2139
+ def begin_migrate_gremlin_graph_to_autoscale_with_http_info(resource_group_name, account_name, database_name, graph_name, custom_headers:nil)
2140
+ begin_migrate_gremlin_graph_to_autoscale_async(resource_group_name, account_name, database_name, graph_name, custom_headers:custom_headers).value!
2141
+ end
2142
+
2143
+ #
2144
+ # Migrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale
2145
+ #
2146
+ # @param resource_group_name [String] The name of the resource group. The name
2147
+ # is case insensitive.
2148
+ # @param account_name [String] Cosmos DB database account name.
2149
+ # @param database_name [String] Cosmos DB database name.
2150
+ # @param graph_name [String] Cosmos DB graph name.
2151
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2152
+ # to the HTTP request.
2153
+ #
2154
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2155
+ #
2156
+ def begin_migrate_gremlin_graph_to_autoscale_async(resource_group_name, account_name, database_name, graph_name, custom_headers:nil)
2157
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2158
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
2159
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2160
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
2161
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
2162
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
2163
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
2164
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
2165
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
2166
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil?
2167
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
2168
+ fail ArgumentError, 'graph_name is nil' if graph_name.nil?
2169
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2170
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
2171
+
2172
+
2173
+ request_headers = {}
2174
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2175
+
2176
+ # Set Headers
2177
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2178
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2179
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default/migrateToAutoscale'
2180
+
2181
+ request_url = @base_url || @client.base_url
2182
+
2183
+ options = {
2184
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2185
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name,'graphName' => graph_name},
2186
+ query_params: {'api-version' => @client.api_version},
2187
+ headers: request_headers.merge(custom_headers || {}),
2188
+ base_url: request_url
2189
+ }
2190
+ promise = @client.make_request_async(:post, path_template, options)
2191
+
2192
+ promise = promise.then do |result|
2193
+ http_response = result.response
2194
+ status_code = http_response.status
2195
+ response_content = http_response.body
2196
+ unless status_code == 202 || status_code == 200
2197
+ error_model = JSON.load(response_content)
2198
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2199
+ end
2200
+
2201
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2202
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2203
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2204
+ # Deserialize Response
2205
+ if status_code == 200
2206
+ begin
2207
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2208
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_09_01::Models::ThroughputSettingsGetResults.mapper()
2209
+ result.body = @client.deserialize(result_mapper, parsed_response)
2210
+ rescue Exception => e
2211
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2212
+ end
2213
+ end
2214
+
2215
+ result
2216
+ end
2217
+
2218
+ promise.execute
2219
+ end
2220
+
2221
+ #
2222
+ # Migrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput
2223
+ #
2224
+ # @param resource_group_name [String] The name of the resource group. The name
2225
+ # is case insensitive.
2226
+ # @param account_name [String] Cosmos DB database account name.
2227
+ # @param database_name [String] Cosmos DB database name.
2228
+ # @param graph_name [String] Cosmos DB graph name.
2229
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2230
+ # will be added to the HTTP request.
2231
+ #
2232
+ # @return [ThroughputSettingsGetResults] operation results.
2233
+ #
2234
+ def begin_migrate_gremlin_graph_to_manual_throughput(resource_group_name, account_name, database_name, graph_name, custom_headers:nil)
2235
+ response = begin_migrate_gremlin_graph_to_manual_throughput_async(resource_group_name, account_name, database_name, graph_name, custom_headers:custom_headers).value!
2236
+ response.body unless response.nil?
2237
+ end
2238
+
2239
+ #
2240
+ # Migrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput
2241
+ #
2242
+ # @param resource_group_name [String] The name of the resource group. The name
2243
+ # is case insensitive.
2244
+ # @param account_name [String] Cosmos DB database account name.
2245
+ # @param database_name [String] Cosmos DB database name.
2246
+ # @param graph_name [String] Cosmos DB graph name.
2247
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2248
+ # will be added to the HTTP request.
2249
+ #
2250
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2251
+ #
2252
+ def begin_migrate_gremlin_graph_to_manual_throughput_with_http_info(resource_group_name, account_name, database_name, graph_name, custom_headers:nil)
2253
+ begin_migrate_gremlin_graph_to_manual_throughput_async(resource_group_name, account_name, database_name, graph_name, custom_headers:custom_headers).value!
2254
+ end
2255
+
2256
+ #
2257
+ # Migrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput
2258
+ #
2259
+ # @param resource_group_name [String] The name of the resource group. The name
2260
+ # is case insensitive.
2261
+ # @param account_name [String] Cosmos DB database account name.
2262
+ # @param database_name [String] Cosmos DB database name.
2263
+ # @param graph_name [String] Cosmos DB graph name.
2264
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2265
+ # to the HTTP request.
2266
+ #
2267
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2268
+ #
2269
+ def begin_migrate_gremlin_graph_to_manual_throughput_async(resource_group_name, account_name, database_name, graph_name, custom_headers:nil)
2270
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2271
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
2272
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2273
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
2274
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
2275
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
2276
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
2277
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
2278
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
2279
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil?
2280
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
2281
+ fail ArgumentError, 'graph_name is nil' if graph_name.nil?
2282
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2283
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
2284
+
2285
+
2286
+ request_headers = {}
2287
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2288
+
2289
+ # Set Headers
2290
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2291
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2292
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default/migrateToManualThroughput'
2293
+
2294
+ request_url = @base_url || @client.base_url
2295
+
2296
+ options = {
2297
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2298
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name,'graphName' => graph_name},
2299
+ query_params: {'api-version' => @client.api_version},
2300
+ headers: request_headers.merge(custom_headers || {}),
2301
+ base_url: request_url
2302
+ }
2303
+ promise = @client.make_request_async(:post, path_template, options)
2304
+
2305
+ promise = promise.then do |result|
2306
+ http_response = result.response
2307
+ status_code = http_response.status
2308
+ response_content = http_response.body
2309
+ unless status_code == 202 || status_code == 200
2310
+ error_model = JSON.load(response_content)
2311
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
2312
+ end
2313
+
2314
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2315
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2316
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2317
+ # Deserialize Response
2318
+ if status_code == 200
2319
+ begin
2320
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2321
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_09_01::Models::ThroughputSettingsGetResults.mapper()
2322
+ result.body = @client.deserialize(result_mapper, parsed_response)
2323
+ rescue Exception => e
2324
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2325
+ end
2326
+ end
2327
+
2328
+ result
2329
+ end
2330
+
2331
+ promise.execute
2332
+ end
2333
+
2334
+ end
2335
+ end