azure_mgmt_cosmosdb 0.21.1 → 0.21.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (545) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/cosmos_db.rb +1 -1
  3. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/cosmos_dbmanagement_client.rb +1 -1
  4. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/cosmos_dbmanagement_client.rb +1 -1
  5. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb.rb +190 -0
  6. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/cassandra_resources.rb +1628 -0
  7. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/collection.rb +374 -0
  8. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/collection_partition.rb +269 -0
  9. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/collection_partition_region.rb +156 -0
  10. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/collection_region.rb +156 -0
  11. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/cosmos_dbmanagement_client.rb +210 -0
  12. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/database.rb +362 -0
  13. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/database_account_region.rb +148 -0
  14. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/database_accounts.rb +2184 -0
  15. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/gremlin_resources.rb +1623 -0
  16. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/armproxy_resource.rb +73 -0
  17. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/armresource_properties.rb +102 -0
  18. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/auto_upgrade_policy_resource.rb +48 -0
  19. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/capability.rb +48 -0
  20. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_create_update_parameters.rb +112 -0
  21. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_resource.rb +85 -0
  22. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_results.rb +98 -0
  23. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_list_result.rb +58 -0
  24. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_resource.rb +46 -0
  25. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_partition_key.rb +46 -0
  26. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_schema.rb +95 -0
  27. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_table_create_update_parameters.rb +112 -0
  28. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_resource.rb +108 -0
  29. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_results.rb +98 -0
  30. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_table_list_result.rb +58 -0
  31. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_table_resource.rb +69 -0
  32. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cluster_key.rb +58 -0
  33. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/column.rb +57 -0
  34. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/composite_path.rb +60 -0
  35. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/composite_path_sort_order.rb +16 -0
  36. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/conflict_resolution_mode.rb +16 -0
  37. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/conflict_resolution_policy.rb +73 -0
  38. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/connector_offer.rb +15 -0
  39. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/consistency_policy.rb +86 -0
  40. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/container_partition_key.rb +85 -0
  41. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/create_update_options.rb +68 -0
  42. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/data_type.rb +20 -0
  43. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_connection_string.rb +59 -0
  44. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_create_update_parameters.rb +290 -0
  45. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_get_results.rb +382 -0
  46. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_kind.rb +17 -0
  47. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_list_connection_strings_result.rb +57 -0
  48. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_list_keys_result.rb +77 -0
  49. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_list_read_only_keys_result.rb +59 -0
  50. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_offer_type.rb +15 -0
  51. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_regenerate_key_parameters.rb +47 -0
  52. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_update_parameters.rb +241 -0
  53. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_accounts_list_result.rb +58 -0
  54. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/default_consistency_level.rb +19 -0
  55. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/error_response.rb +57 -0
  56. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/excluded_path.rb +48 -0
  57. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/extended_resource_properties.rb +74 -0
  58. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/failover_policies.rb +55 -0
  59. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/failover_policy.rb +79 -0
  60. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_database_create_update_parameters.rb +112 -0
  61. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_resource.rb +85 -0
  62. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_results.rb +98 -0
  63. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_database_list_result.rb +58 -0
  64. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_database_resource.rb +46 -0
  65. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_graph_create_update_parameters.rb +112 -0
  66. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_resource.rb +150 -0
  67. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_results.rb +98 -0
  68. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_graph_list_result.rb +58 -0
  69. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_graph_resource.rb +111 -0
  70. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/included_path.rb +67 -0
  71. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/index_kind.rb +17 -0
  72. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/indexes.rb +73 -0
  73. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/indexing_mode.rb +17 -0
  74. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/indexing_policy.rb +147 -0
  75. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/key_kind.rb +18 -0
  76. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/location.rb +114 -0
  77. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric.rb +120 -0
  78. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_availability.rb +60 -0
  79. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_definition.rb +109 -0
  80. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_definitions_list_result.rb +57 -0
  81. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_list_result.rb +56 -0
  82. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_name.rb +59 -0
  83. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_value.rb +107 -0
  84. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_create_update_parameters.rb +112 -0
  85. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_resource.rb +125 -0
  86. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_results.rb +98 -0
  87. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_list_result.rb +58 -0
  88. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_resource.rb +86 -0
  89. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_create_update_parameters.rb +112 -0
  90. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_resource.rb +85 -0
  91. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_results.rb +98 -0
  92. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_list_result.rb +58 -0
  93. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_resource.rb +46 -0
  94. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_index.rb +60 -0
  95. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_index_keys.rb +55 -0
  96. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb +57 -0
  97. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/notebook_workspace.rb +87 -0
  98. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/notebook_workspace_connection_info_result.rb +60 -0
  99. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/notebook_workspace_create_update_parameters.rb +62 -0
  100. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/notebook_workspace_list_result.rb +56 -0
  101. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/operation.rb +58 -0
  102. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/operation_display.rb +80 -0
  103. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/operation_list_result.rb +101 -0
  104. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/partition_kind.rb +16 -0
  105. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/partition_metric.rb +124 -0
  106. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/partition_metric_list_result.rb +57 -0
  107. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/partition_usage.rb +105 -0
  108. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/partition_usages_result.rb +57 -0
  109. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/percentile_metric.rb +120 -0
  110. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/percentile_metric_list_result.rb +57 -0
  111. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/percentile_metric_value.rb +173 -0
  112. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/primary_aggregation_type.rb +20 -0
  113. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/provisioned_throughput_settings_resource.rb +73 -0
  114. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/region_for_online_offline.rb +47 -0
  115. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/spatial_spec.rb +67 -0
  116. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/spatial_type.rb +18 -0
  117. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_container_create_update_parameters.rb +111 -0
  118. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_resource.rb +150 -0
  119. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_container_get_results.rb +98 -0
  120. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_container_list_result.rb +58 -0
  121. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb +111 -0
  122. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_database_create_update_parameters.rb +112 -0
  123. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_resource.rb +109 -0
  124. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_database_get_results.rb +98 -0
  125. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_database_list_result.rb +58 -0
  126. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_database_resource.rb +46 -0
  127. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_create_update_parameters.rb +112 -0
  128. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_properties_resource.rb +96 -0
  129. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_results.rb +98 -0
  130. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_list_result.rb +58 -0
  131. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_resource.rb +57 -0
  132. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_trigger_create_update_parameters.rb +111 -0
  133. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_properties_resource.rb +121 -0
  134. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_results.rb +98 -0
  135. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_trigger_list_result.rb +58 -0
  136. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_trigger_resource.rb +82 -0
  137. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_create_update_parameters.rb +113 -0
  138. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_properties_resource.rb +97 -0
  139. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_results.rb +98 -0
  140. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_list_result.rb +58 -0
  141. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_resource.rb +57 -0
  142. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/table_create_update_parameters.rb +111 -0
  143. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/table_get_properties_resource.rb +85 -0
  144. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/table_get_results.rb +98 -0
  145. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/table_list_result.rb +57 -0
  146. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/table_resource.rb +46 -0
  147. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/throughput_policy_resource.rb +59 -0
  148. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_properties_resource.rb +125 -0
  149. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_results.rb +98 -0
  150. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/throughput_settings_resource.rb +87 -0
  151. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/throughput_settings_update_parameters.rb +99 -0
  152. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/trigger_operation.rb +19 -0
  153. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/trigger_type.rb +16 -0
  154. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/unique_key.rb +56 -0
  155. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/unique_key_policy.rb +58 -0
  156. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/unit_type.rb +21 -0
  157. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/usage.rb +97 -0
  158. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/usages_result.rb +57 -0
  159. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/virtual_network_rule.rb +59 -0
  160. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/module_definition.rb +9 -0
  161. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/mongo_dbresources.rb +1634 -0
  162. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb +907 -0
  163. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/operations.rb +219 -0
  164. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/partition_key_range_id.rb +156 -0
  165. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/partition_key_range_id_region.rb +163 -0
  166. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/percentile.rb +141 -0
  167. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/percentile_source_target.rb +158 -0
  168. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/percentile_target.rb +148 -0
  169. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/sql_resources.rb +3289 -0
  170. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/table_resources.rb +804 -0
  171. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb.rb +208 -0
  172. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/cassandra_resources.rb +1700 -0
  173. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/collection.rb +389 -0
  174. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/collection_partition.rb +279 -0
  175. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/collection_partition_region.rb +161 -0
  176. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/collection_region.rb +161 -0
  177. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/cosmos_dbmanagement_client.rb +203 -0
  178. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/database.rb +377 -0
  179. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/database_account_region.rb +153 -0
  180. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/database_accounts.rb +2281 -0
  181. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/gremlin_resources.rb +1695 -0
  182. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/armproxy_resource.rb +73 -0
  183. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/armresource_properties.rb +102 -0
  184. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/auto_upgrade_policy_resource.rb +48 -0
  185. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/azure_entity_resource.rb +75 -0
  186. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/capability.rb +48 -0
  187. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_create_update_parameters.rb +112 -0
  188. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_options.rb +44 -0
  189. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_resource.rb +85 -0
  190. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_results.rb +110 -0
  191. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_list_result.rb +58 -0
  192. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_resource.rb +46 -0
  193. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_partition_key.rb +46 -0
  194. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_schema.rb +95 -0
  195. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_create_update_parameters.rb +112 -0
  196. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_options.rb +44 -0
  197. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_resource.rb +108 -0
  198. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_results.rb +110 -0
  199. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_list_result.rb +58 -0
  200. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_resource.rb +69 -0
  201. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cluster_key.rb +58 -0
  202. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/column.rb +57 -0
  203. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/composite_path.rb +60 -0
  204. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/composite_path_sort_order.rb +16 -0
  205. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/conflict_resolution_mode.rb +16 -0
  206. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/conflict_resolution_policy.rb +73 -0
  207. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/connector_offer.rb +15 -0
  208. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/consistency_policy.rb +86 -0
  209. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/container_partition_key.rb +85 -0
  210. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/create_update_options.rb +68 -0
  211. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/data_type.rb +20 -0
  212. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_connection_string.rb +59 -0
  213. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_create_update_parameters.rb +302 -0
  214. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_get_results.rb +416 -0
  215. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_kind.rb +17 -0
  216. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_list_connection_strings_result.rb +57 -0
  217. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_list_keys_result.rb +77 -0
  218. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_list_read_only_keys_result.rb +59 -0
  219. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_offer_type.rb +15 -0
  220. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_regenerate_key_parameters.rb +47 -0
  221. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_update_parameters.rb +253 -0
  222. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_accounts_list_result.rb +58 -0
  223. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/default_consistency_level.rb +19 -0
  224. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/error_response.rb +57 -0
  225. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/excluded_path.rb +48 -0
  226. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/extended_resource_properties.rb +74 -0
  227. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/failover_policies.rb +55 -0
  228. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/failover_policy.rb +79 -0
  229. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_create_update_parameters.rb +112 -0
  230. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_options.rb +44 -0
  231. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_resource.rb +85 -0
  232. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_results.rb +110 -0
  233. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_list_result.rb +58 -0
  234. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_resource.rb +46 -0
  235. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_create_update_parameters.rb +112 -0
  236. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_options.rb +44 -0
  237. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_resource.rb +150 -0
  238. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_results.rb +110 -0
  239. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_list_result.rb +58 -0
  240. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_resource.rb +111 -0
  241. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/included_path.rb +67 -0
  242. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/index_kind.rb +17 -0
  243. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/indexes.rb +73 -0
  244. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/indexing_mode.rb +17 -0
  245. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/indexing_policy.rb +147 -0
  246. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/key_kind.rb +18 -0
  247. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/location.rb +114 -0
  248. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/metric.rb +120 -0
  249. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/metric_availability.rb +60 -0
  250. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/metric_definition.rb +109 -0
  251. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/metric_definitions_list_result.rb +57 -0
  252. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/metric_list_result.rb +56 -0
  253. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/metric_name.rb +59 -0
  254. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/metric_value.rb +107 -0
  255. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_create_update_parameters.rb +112 -0
  256. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_options.rb +44 -0
  257. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_resource.rb +125 -0
  258. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_results.rb +110 -0
  259. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_list_result.rb +58 -0
  260. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_resource.rb +86 -0
  261. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_create_update_parameters.rb +112 -0
  262. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_options.rb +44 -0
  263. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_resource.rb +85 -0
  264. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_results.rb +110 -0
  265. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_list_result.rb +58 -0
  266. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_resource.rb +46 -0
  267. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_index.rb +60 -0
  268. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_index_keys.rb +55 -0
  269. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb +57 -0
  270. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace.rb +87 -0
  271. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_connection_info_result.rb +60 -0
  272. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_create_update_parameters.rb +62 -0
  273. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_list_result.rb +56 -0
  274. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/operation.rb +58 -0
  275. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/operation_display.rb +80 -0
  276. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/operation_list_result.rb +101 -0
  277. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/options_resource.rb +47 -0
  278. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/partition_kind.rb +16 -0
  279. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/partition_metric.rb +124 -0
  280. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/partition_metric_list_result.rb +57 -0
  281. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/partition_usage.rb +105 -0
  282. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/partition_usages_result.rb +57 -0
  283. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/percentile_metric.rb +120 -0
  284. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/percentile_metric_list_result.rb +57 -0
  285. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/percentile_metric_value.rb +173 -0
  286. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/primary_aggregation_type.rb +20 -0
  287. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/private_endpoint_connection.rb +88 -0
  288. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/private_endpoint_property.rb +46 -0
  289. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/private_link_service_connection_state_property.rb +60 -0
  290. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/provisioned_throughput_settings_resource.rb +73 -0
  291. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/proxy_resource.rb +63 -0
  292. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/public_network_access.rb +16 -0
  293. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/region_for_online_offline.rb +47 -0
  294. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/resource.rb +83 -0
  295. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/spatial_spec.rb +67 -0
  296. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/spatial_type.rb +18 -0
  297. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_container_create_update_parameters.rb +111 -0
  298. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_options.rb +44 -0
  299. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_resource.rb +150 -0
  300. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_results.rb +110 -0
  301. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_container_list_result.rb +58 -0
  302. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb +111 -0
  303. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_database_create_update_parameters.rb +112 -0
  304. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_options.rb +44 -0
  305. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_resource.rb +109 -0
  306. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_results.rb +110 -0
  307. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_database_list_result.rb +58 -0
  308. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_database_resource.rb +46 -0
  309. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_create_update_parameters.rb +112 -0
  310. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_properties_resource.rb +96 -0
  311. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_results.rb +98 -0
  312. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_list_result.rb +58 -0
  313. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_resource.rb +57 -0
  314. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_create_update_parameters.rb +111 -0
  315. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_properties_resource.rb +121 -0
  316. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_results.rb +98 -0
  317. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_list_result.rb +58 -0
  318. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_resource.rb +82 -0
  319. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_create_update_parameters.rb +113 -0
  320. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_properties_resource.rb +97 -0
  321. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_results.rb +98 -0
  322. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_list_result.rb +58 -0
  323. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_resource.rb +57 -0
  324. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/table_create_update_parameters.rb +111 -0
  325. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/table_get_properties_options.rb +44 -0
  326. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/table_get_properties_resource.rb +85 -0
  327. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/table_get_results.rb +110 -0
  328. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/table_list_result.rb +57 -0
  329. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/table_resource.rb +46 -0
  330. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/throughput_policy_resource.rb +59 -0
  331. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_properties_resource.rb +125 -0
  332. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_results.rb +98 -0
  333. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_resource.rb +87 -0
  334. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_update_parameters.rb +99 -0
  335. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/tracked_resource.rb +92 -0
  336. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/trigger_operation.rb +19 -0
  337. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/trigger_type.rb +16 -0
  338. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/unique_key.rb +56 -0
  339. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/unique_key_policy.rb +58 -0
  340. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/unit_type.rb +21 -0
  341. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/usage.rb +97 -0
  342. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/usages_result.rb +57 -0
  343. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/virtual_network_rule.rb +59 -0
  344. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/module_definition.rb +9 -0
  345. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/mongo_dbresources.rb +1706 -0
  346. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb +907 -0
  347. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/operations.rb +220 -0
  348. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/partition_key_range_id.rb +161 -0
  349. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/partition_key_range_id_region.rb +168 -0
  350. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/percentile.rb +146 -0
  351. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/percentile_source_target.rb +163 -0
  352. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/percentile_target.rb +153 -0
  353. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/sql_resources.rb +3433 -0
  354. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/table_resources.rb +840 -0
  355. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb.rb +212 -0
  356. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/cassandra_resources.rb +1700 -0
  357. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/collection.rb +389 -0
  358. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/collection_partition.rb +279 -0
  359. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/collection_partition_region.rb +161 -0
  360. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/collection_region.rb +161 -0
  361. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/cosmos_dbmanagement_client.rb +203 -0
  362. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/database.rb +377 -0
  363. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/database_account_region.rb +153 -0
  364. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/database_accounts.rb +2281 -0
  365. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/gremlin_resources.rb +1695 -0
  366. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/api_properties.rb +48 -0
  367. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/armproxy_resource.rb +73 -0
  368. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/armresource_properties.rb +102 -0
  369. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/auto_upgrade_policy_resource.rb +48 -0
  370. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/autoscale_settings.rb +48 -0
  371. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/autoscale_settings_resource.rb +73 -0
  372. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/azure_entity_resource.rb +75 -0
  373. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/capability.rb +48 -0
  374. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_create_update_parameters.rb +112 -0
  375. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_options.rb +53 -0
  376. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_resource.rb +85 -0
  377. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_results.rb +110 -0
  378. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_list_result.rb +58 -0
  379. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_resource.rb +46 -0
  380. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_partition_key.rb +46 -0
  381. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_schema.rb +95 -0
  382. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_create_update_parameters.rb +112 -0
  383. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_options.rb +53 -0
  384. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_resource.rb +119 -0
  385. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_results.rb +110 -0
  386. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_list_result.rb +58 -0
  387. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_resource.rb +80 -0
  388. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cluster_key.rb +58 -0
  389. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/column.rb +57 -0
  390. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/composite_path.rb +60 -0
  391. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/composite_path_sort_order.rb +16 -0
  392. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/conflict_resolution_mode.rb +16 -0
  393. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/conflict_resolution_policy.rb +73 -0
  394. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/connector_offer.rb +15 -0
  395. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/consistency_policy.rb +86 -0
  396. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/container_partition_key.rb +85 -0
  397. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/create_update_options.rb +61 -0
  398. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/data_type.rb +20 -0
  399. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_connection_string.rb +59 -0
  400. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_create_update_parameters.rb +342 -0
  401. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_get_results.rb +455 -0
  402. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_kind.rb +17 -0
  403. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_list_connection_strings_result.rb +57 -0
  404. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_list_keys_result.rb +77 -0
  405. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_list_read_only_keys_result.rb +59 -0
  406. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_offer_type.rb +15 -0
  407. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_regenerate_key_parameters.rb +47 -0
  408. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_update_parameters.rb +293 -0
  409. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_accounts_list_result.rb +58 -0
  410. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/default_consistency_level.rb +19 -0
  411. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/error_response.rb +57 -0
  412. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/excluded_path.rb +48 -0
  413. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/extended_resource_properties.rb +74 -0
  414. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/failover_policies.rb +55 -0
  415. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/failover_policy.rb +79 -0
  416. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_create_update_parameters.rb +112 -0
  417. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_options.rb +53 -0
  418. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_resource.rb +85 -0
  419. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_results.rb +110 -0
  420. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_list_result.rb +58 -0
  421. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_resource.rb +46 -0
  422. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_create_update_parameters.rb +112 -0
  423. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_options.rb +53 -0
  424. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_resource.rb +150 -0
  425. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_results.rb +110 -0
  426. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_list_result.rb +58 -0
  427. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_resource.rb +111 -0
  428. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/included_path.rb +67 -0
  429. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/index_kind.rb +17 -0
  430. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/indexes.rb +73 -0
  431. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/indexing_mode.rb +17 -0
  432. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/indexing_policy.rb +147 -0
  433. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/ip_address_or_range.rb +51 -0
  434. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/key_kind.rb +18 -0
  435. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/location.rb +114 -0
  436. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/metric.rb +120 -0
  437. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/metric_availability.rb +60 -0
  438. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/metric_definition.rb +109 -0
  439. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/metric_definitions_list_result.rb +57 -0
  440. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/metric_list_result.rb +56 -0
  441. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/metric_name.rb +59 -0
  442. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/metric_value.rb +107 -0
  443. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_create_update_parameters.rb +112 -0
  444. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_options.rb +53 -0
  445. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_resource.rb +136 -0
  446. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_results.rb +110 -0
  447. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_list_result.rb +58 -0
  448. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_resource.rb +97 -0
  449. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_create_update_parameters.rb +112 -0
  450. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_options.rb +53 -0
  451. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_resource.rb +85 -0
  452. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_results.rb +110 -0
  453. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_list_result.rb +58 -0
  454. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_resource.rb +46 -0
  455. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_index.rb +60 -0
  456. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_index_keys.rb +55 -0
  457. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb +57 -0
  458. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace.rb +87 -0
  459. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_connection_info_result.rb +60 -0
  460. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_create_update_parameters.rb +62 -0
  461. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_list_result.rb +56 -0
  462. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/operation.rb +58 -0
  463. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/operation_display.rb +80 -0
  464. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/operation_list_result.rb +101 -0
  465. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/options_resource.rb +60 -0
  466. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/partition_kind.rb +16 -0
  467. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/partition_metric.rb +124 -0
  468. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/partition_metric_list_result.rb +57 -0
  469. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/partition_usage.rb +105 -0
  470. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/partition_usages_result.rb +57 -0
  471. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/percentile_metric.rb +120 -0
  472. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/percentile_metric_list_result.rb +57 -0
  473. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/percentile_metric_value.rb +173 -0
  474. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/primary_aggregation_type.rb +20 -0
  475. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/private_endpoint_connection.rb +88 -0
  476. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/private_endpoint_property.rb +46 -0
  477. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/private_link_service_connection_state_property.rb +60 -0
  478. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/proxy_resource.rb +63 -0
  479. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/public_network_access.rb +16 -0
  480. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/region_for_online_offline.rb +47 -0
  481. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/resource.rb +83 -0
  482. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/server_version.rb +16 -0
  483. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/spatial_spec.rb +67 -0
  484. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/spatial_type.rb +18 -0
  485. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_container_create_update_parameters.rb +111 -0
  486. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_options.rb +53 -0
  487. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_resource.rb +150 -0
  488. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_results.rb +110 -0
  489. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_container_list_result.rb +58 -0
  490. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb +111 -0
  491. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_database_create_update_parameters.rb +112 -0
  492. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_options.rb +53 -0
  493. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_resource.rb +109 -0
  494. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_results.rb +110 -0
  495. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_database_list_result.rb +58 -0
  496. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_database_resource.rb +46 -0
  497. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_create_update_parameters.rb +112 -0
  498. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_properties_resource.rb +96 -0
  499. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_results.rb +98 -0
  500. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_list_result.rb +58 -0
  501. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_resource.rb +57 -0
  502. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_create_update_parameters.rb +111 -0
  503. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_properties_resource.rb +121 -0
  504. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_results.rb +98 -0
  505. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_list_result.rb +58 -0
  506. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_resource.rb +82 -0
  507. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_create_update_parameters.rb +113 -0
  508. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_properties_resource.rb +97 -0
  509. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_results.rb +98 -0
  510. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_list_result.rb +58 -0
  511. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_resource.rb +57 -0
  512. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/table_create_update_parameters.rb +111 -0
  513. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/table_get_properties_options.rb +53 -0
  514. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/table_get_properties_resource.rb +85 -0
  515. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/table_get_results.rb +110 -0
  516. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/table_list_result.rb +57 -0
  517. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/table_resource.rb +46 -0
  518. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/throughput_policy_resource.rb +59 -0
  519. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_properties_resource.rb +124 -0
  520. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_results.rb +98 -0
  521. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_resource.rb +86 -0
  522. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_update_parameters.rb +99 -0
  523. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/tracked_resource.rb +92 -0
  524. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/trigger_operation.rb +19 -0
  525. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/trigger_type.rb +16 -0
  526. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/unique_key.rb +56 -0
  527. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/unique_key_policy.rb +58 -0
  528. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/unit_type.rb +21 -0
  529. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/usage.rb +97 -0
  530. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/usages_result.rb +57 -0
  531. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/virtual_network_rule.rb +59 -0
  532. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/module_definition.rb +9 -0
  533. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/mongo_dbresources.rb +1706 -0
  534. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb +907 -0
  535. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/operations.rb +220 -0
  536. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/partition_key_range_id.rb +161 -0
  537. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/partition_key_range_id_region.rb +168 -0
  538. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/percentile.rb +146 -0
  539. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/percentile_source_target.rb +163 -0
  540. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/percentile_target.rb +153 -0
  541. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/sql_resources.rb +3433 -0
  542. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/table_resources.rb +840 -0
  543. data/lib/azure_mgmt_cosmosdb.rb +5 -2
  544. data/lib/version.rb +1 -1
  545. metadata +540 -2
@@ -0,0 +1,208 @@
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
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require '2020-03-01/generated/azure_mgmt_cosmosdb/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::Cosmosdb::Mgmt::V2020_03_01
23
+ autoload :DatabaseAccounts, '2020-03-01/generated/azure_mgmt_cosmosdb/database_accounts.rb'
24
+ autoload :Operations, '2020-03-01/generated/azure_mgmt_cosmosdb/operations.rb'
25
+ autoload :Database, '2020-03-01/generated/azure_mgmt_cosmosdb/database.rb'
26
+ autoload :Collection, '2020-03-01/generated/azure_mgmt_cosmosdb/collection.rb'
27
+ autoload :CollectionRegion, '2020-03-01/generated/azure_mgmt_cosmosdb/collection_region.rb'
28
+ autoload :DatabaseAccountRegion, '2020-03-01/generated/azure_mgmt_cosmosdb/database_account_region.rb'
29
+ autoload :PercentileSourceTarget, '2020-03-01/generated/azure_mgmt_cosmosdb/percentile_source_target.rb'
30
+ autoload :PercentileTarget, '2020-03-01/generated/azure_mgmt_cosmosdb/percentile_target.rb'
31
+ autoload :Percentile, '2020-03-01/generated/azure_mgmt_cosmosdb/percentile.rb'
32
+ autoload :CollectionPartitionRegion, '2020-03-01/generated/azure_mgmt_cosmosdb/collection_partition_region.rb'
33
+ autoload :CollectionPartition, '2020-03-01/generated/azure_mgmt_cosmosdb/collection_partition.rb'
34
+ autoload :PartitionKeyRangeId, '2020-03-01/generated/azure_mgmt_cosmosdb/partition_key_range_id.rb'
35
+ autoload :PartitionKeyRangeIdRegion, '2020-03-01/generated/azure_mgmt_cosmosdb/partition_key_range_id_region.rb'
36
+ autoload :SqlResources, '2020-03-01/generated/azure_mgmt_cosmosdb/sql_resources.rb'
37
+ autoload :MongoDBResources, '2020-03-01/generated/azure_mgmt_cosmosdb/mongo_dbresources.rb'
38
+ autoload :TableResources, '2020-03-01/generated/azure_mgmt_cosmosdb/table_resources.rb'
39
+ autoload :CassandraResources, '2020-03-01/generated/azure_mgmt_cosmosdb/cassandra_resources.rb'
40
+ autoload :GremlinResources, '2020-03-01/generated/azure_mgmt_cosmosdb/gremlin_resources.rb'
41
+ autoload :NotebookWorkspaces, '2020-03-01/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb'
42
+ autoload :CosmosDBManagementClient, '2020-03-01/generated/azure_mgmt_cosmosdb/cosmos_dbmanagement_client.rb'
43
+
44
+ module Models
45
+ autoload :ErrorResponse, '2020-03-01/generated/azure_mgmt_cosmosdb/models/error_response.rb'
46
+ autoload :FailoverPolicies, '2020-03-01/generated/azure_mgmt_cosmosdb/models/failover_policies.rb'
47
+ autoload :Capability, '2020-03-01/generated/azure_mgmt_cosmosdb/models/capability.rb'
48
+ autoload :RegionForOnlineOffline, '2020-03-01/generated/azure_mgmt_cosmosdb/models/region_for_online_offline.rb'
49
+ autoload :FailoverPolicy, '2020-03-01/generated/azure_mgmt_cosmosdb/models/failover_policy.rb'
50
+ autoload :ARMResourceProperties, '2020-03-01/generated/azure_mgmt_cosmosdb/models/armresource_properties.rb'
51
+ autoload :PrivateEndpointProperty, '2020-03-01/generated/azure_mgmt_cosmosdb/models/private_endpoint_property.rb'
52
+ autoload :ARMProxyResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/armproxy_resource.rb'
53
+ autoload :PartitionUsagesResult, '2020-03-01/generated/azure_mgmt_cosmosdb/models/partition_usages_result.rb'
54
+ autoload :UsagesResult, '2020-03-01/generated/azure_mgmt_cosmosdb/models/usages_result.rb'
55
+ autoload :DatabaseAccountsListResult, '2020-03-01/generated/azure_mgmt_cosmosdb/models/database_accounts_list_result.rb'
56
+ autoload :CassandraKeyspaceListResult, '2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_list_result.rb'
57
+ autoload :NotebookWorkspaceConnectionInfoResult, '2020-03-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_connection_info_result.rb'
58
+ autoload :Column, '2020-03-01/generated/azure_mgmt_cosmosdb/models/column.rb'
59
+ autoload :SqlDatabaseListResult, '2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_database_list_result.rb'
60
+ autoload :CassandraPartitionKey, '2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_partition_key.rb'
61
+ autoload :IncludedPath, '2020-03-01/generated/azure_mgmt_cosmosdb/models/included_path.rb'
62
+ autoload :ClusterKey, '2020-03-01/generated/azure_mgmt_cosmosdb/models/cluster_key.rb'
63
+ autoload :CompositePath, '2020-03-01/generated/azure_mgmt_cosmosdb/models/composite_path.rb'
64
+ autoload :CassandraSchema, '2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_schema.rb'
65
+ autoload :IndexingPolicy, '2020-03-01/generated/azure_mgmt_cosmosdb/models/indexing_policy.rb'
66
+ autoload :CassandraTableGetPropertiesResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_resource.rb'
67
+ autoload :UniqueKey, '2020-03-01/generated/azure_mgmt_cosmosdb/models/unique_key.rb'
68
+ autoload :Usage, '2020-03-01/generated/azure_mgmt_cosmosdb/models/usage.rb'
69
+ autoload :ConflictResolutionPolicy, '2020-03-01/generated/azure_mgmt_cosmosdb/models/conflict_resolution_policy.rb'
70
+ autoload :MetricName, '2020-03-01/generated/azure_mgmt_cosmosdb/models/metric_name.rb'
71
+ autoload :SqlUserDefinedFunctionResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_resource.rb'
72
+ autoload :Resource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/resource.rb'
73
+ autoload :CassandraTableListResult, '2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_list_result.rb'
74
+ autoload :SqlStoredProcedureGetPropertiesResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_properties_resource.rb'
75
+ autoload :GremlinDatabaseGetPropertiesResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_resource.rb'
76
+ autoload :SqlStoredProcedureListResult, '2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_list_result.rb'
77
+ autoload :OperationListResult, '2020-03-01/generated/azure_mgmt_cosmosdb/models/operation_list_result.rb'
78
+ autoload :PercentileMetricListResult, '2020-03-01/generated/azure_mgmt_cosmosdb/models/percentile_metric_list_result.rb'
79
+ autoload :Operation, '2020-03-01/generated/azure_mgmt_cosmosdb/models/operation.rb'
80
+ autoload :SqlTriggerGetPropertiesResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_properties_resource.rb'
81
+ autoload :GremlinDatabaseListResult, '2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_list_result.rb'
82
+ autoload :SqlTriggerListResult, '2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_list_result.rb'
83
+ autoload :GremlinGraphGetPropertiesResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_resource.rb'
84
+ autoload :MetricListResult, '2020-03-01/generated/azure_mgmt_cosmosdb/models/metric_list_result.rb'
85
+ autoload :OperationDisplay, '2020-03-01/generated/azure_mgmt_cosmosdb/models/operation_display.rb'
86
+ autoload :MongoDBDatabaseListResult, '2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_list_result.rb'
87
+ autoload :OptionsResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/options_resource.rb'
88
+ autoload :MongoIndexOptions, '2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb'
89
+ autoload :GremlinGraphListResult, '2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_list_result.rb'
90
+ autoload :MongoDBCollectionGetPropertiesResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_resource.rb'
91
+ autoload :ConsistencyPolicy, '2020-03-01/generated/azure_mgmt_cosmosdb/models/consistency_policy.rb'
92
+ autoload :MetricDefinitionsListResult, '2020-03-01/generated/azure_mgmt_cosmosdb/models/metric_definitions_list_result.rb'
93
+ autoload :Location, '2020-03-01/generated/azure_mgmt_cosmosdb/models/location.rb'
94
+ autoload :TableGetPropertiesResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/table_get_properties_resource.rb'
95
+ autoload :VirtualNetworkRule, '2020-03-01/generated/azure_mgmt_cosmosdb/models/virtual_network_rule.rb'
96
+ autoload :MetricAvailability, '2020-03-01/generated/azure_mgmt_cosmosdb/models/metric_availability.rb'
97
+ autoload :PrivateLinkServiceConnectionStateProperty, '2020-03-01/generated/azure_mgmt_cosmosdb/models/private_link_service_connection_state_property.rb'
98
+ autoload :CassandraKeyspaceGetPropertiesResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_resource.rb'
99
+ autoload :GremlinGraphResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_resource.rb'
100
+ autoload :SqlDatabaseGetPropertiesResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_resource.rb'
101
+ autoload :ExtendedResourceProperties, '2020-03-01/generated/azure_mgmt_cosmosdb/models/extended_resource_properties.rb'
102
+ autoload :Indexes, '2020-03-01/generated/azure_mgmt_cosmosdb/models/indexes.rb'
103
+ autoload :ThroughputPolicyResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/throughput_policy_resource.rb'
104
+ autoload :SpatialSpec, '2020-03-01/generated/azure_mgmt_cosmosdb/models/spatial_spec.rb'
105
+ autoload :AutoUpgradePolicyResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/auto_upgrade_policy_resource.rb'
106
+ autoload :UniqueKeyPolicy, '2020-03-01/generated/azure_mgmt_cosmosdb/models/unique_key_policy.rb'
107
+ autoload :ProvisionedThroughputSettingsResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/provisioned_throughput_settings_resource.rb'
108
+ autoload :SqlContainerListResult, '2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_container_list_result.rb'
109
+ autoload :ThroughputSettingsGetPropertiesResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_properties_resource.rb'
110
+ autoload :SqlUserDefinedFunctionGetPropertiesResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_properties_resource.rb'
111
+ autoload :GremlinDatabaseResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_resource.rb'
112
+ autoload :PercentileMetric, '2020-03-01/generated/azure_mgmt_cosmosdb/models/percentile_metric.rb'
113
+ autoload :CassandraTableResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_resource.rb'
114
+ autoload :Metric, '2020-03-01/generated/azure_mgmt_cosmosdb/models/metric.rb'
115
+ autoload :DatabaseAccountUpdateParameters, '2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_update_parameters.rb'
116
+ autoload :MongoIndex, '2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_index.rb'
117
+ autoload :DatabaseAccountListReadOnlyKeysResult, '2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_list_read_only_keys_result.rb'
118
+ autoload :MongoDBCollectionListResult, '2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_list_result.rb'
119
+ autoload :CassandraKeyspaceResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_resource.rb'
120
+ autoload :TableListResult, '2020-03-01/generated/azure_mgmt_cosmosdb/models/table_list_result.rb'
121
+ autoload :DatabaseAccountConnectionString, '2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_connection_string.rb'
122
+ autoload :NotebookWorkspaceListResult, '2020-03-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_list_result.rb'
123
+ autoload :DatabaseAccountListConnectionStringsResult, '2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_list_connection_strings_result.rb'
124
+ autoload :ContainerPartitionKey, '2020-03-01/generated/azure_mgmt_cosmosdb/models/container_partition_key.rb'
125
+ autoload :DatabaseAccountRegenerateKeyParameters, '2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_regenerate_key_parameters.rb'
126
+ autoload :PartitionMetricListResult, '2020-03-01/generated/azure_mgmt_cosmosdb/models/partition_metric_list_result.rb'
127
+ autoload :ThroughputSettingsResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_resource.rb'
128
+ autoload :MongoDBDatabaseGetPropertiesResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_resource.rb'
129
+ autoload :TableResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/table_resource.rb'
130
+ autoload :MetricValue, '2020-03-01/generated/azure_mgmt_cosmosdb/models/metric_value.rb'
131
+ autoload :SqlDatabaseResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_database_resource.rb'
132
+ autoload :CreateUpdateOptions, '2020-03-01/generated/azure_mgmt_cosmosdb/models/create_update_options.rb'
133
+ autoload :SqlContainerGetPropertiesResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_resource.rb'
134
+ autoload :MongoDBCollectionResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_resource.rb'
135
+ autoload :MongoIndexKeys, '2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_index_keys.rb'
136
+ autoload :SqlContainerResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb'
137
+ autoload :ExcludedPath, '2020-03-01/generated/azure_mgmt_cosmosdb/models/excluded_path.rb'
138
+ autoload :MongoDBDatabaseResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_resource.rb'
139
+ autoload :MetricDefinition, '2020-03-01/generated/azure_mgmt_cosmosdb/models/metric_definition.rb'
140
+ autoload :SqlStoredProcedureResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_resource.rb'
141
+ autoload :SqlUserDefinedFunctionListResult, '2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_list_result.rb'
142
+ autoload :SqlTriggerResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_resource.rb'
143
+ autoload :ProxyResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/proxy_resource.rb'
144
+ autoload :PrivateEndpointConnection, '2020-03-01/generated/azure_mgmt_cosmosdb/models/private_endpoint_connection.rb'
145
+ autoload :DatabaseAccountGetResults, '2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_get_results.rb'
146
+ autoload :SqlDatabaseGetPropertiesOptions, '2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_options.rb'
147
+ autoload :SqlDatabaseGetResults, '2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_results.rb'
148
+ autoload :SqlContainerGetPropertiesOptions, '2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_options.rb'
149
+ autoload :SqlContainerGetResults, '2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_results.rb'
150
+ autoload :SqlStoredProcedureGetResults, '2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_results.rb'
151
+ autoload :SqlUserDefinedFunctionGetResults, '2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_results.rb'
152
+ autoload :SqlTriggerGetResults, '2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_results.rb'
153
+ autoload :MongoDBDatabaseGetPropertiesOptions, '2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_options.rb'
154
+ autoload :MongoDBDatabaseGetResults, '2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_results.rb'
155
+ autoload :MongoDBCollectionGetPropertiesOptions, '2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_options.rb'
156
+ autoload :MongoDBCollectionGetResults, '2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_results.rb'
157
+ autoload :TableGetPropertiesOptions, '2020-03-01/generated/azure_mgmt_cosmosdb/models/table_get_properties_options.rb'
158
+ autoload :TableGetResults, '2020-03-01/generated/azure_mgmt_cosmosdb/models/table_get_results.rb'
159
+ autoload :CassandraKeyspaceGetPropertiesOptions, '2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_options.rb'
160
+ autoload :CassandraKeyspaceGetResults, '2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_results.rb'
161
+ autoload :CassandraTableGetPropertiesOptions, '2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_options.rb'
162
+ autoload :CassandraTableGetResults, '2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_results.rb'
163
+ autoload :GremlinDatabaseGetPropertiesOptions, '2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_options.rb'
164
+ autoload :GremlinDatabaseGetResults, '2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_results.rb'
165
+ autoload :GremlinGraphGetPropertiesOptions, '2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_options.rb'
166
+ autoload :GremlinGraphGetResults, '2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_results.rb'
167
+ autoload :ThroughputSettingsGetResults, '2020-03-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_results.rb'
168
+ autoload :DatabaseAccountCreateUpdateParameters, '2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_create_update_parameters.rb'
169
+ autoload :DatabaseAccountListKeysResult, '2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_list_keys_result.rb'
170
+ autoload :ThroughputSettingsUpdateParameters, '2020-03-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_update_parameters.rb'
171
+ autoload :SqlDatabaseCreateUpdateParameters, '2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_database_create_update_parameters.rb'
172
+ autoload :SqlContainerCreateUpdateParameters, '2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_container_create_update_parameters.rb'
173
+ autoload :SqlStoredProcedureCreateUpdateParameters, '2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_create_update_parameters.rb'
174
+ autoload :SqlUserDefinedFunctionCreateUpdateParameters, '2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_create_update_parameters.rb'
175
+ autoload :SqlTriggerCreateUpdateParameters, '2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_create_update_parameters.rb'
176
+ autoload :MongoDBDatabaseCreateUpdateParameters, '2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_create_update_parameters.rb'
177
+ autoload :MongoDBCollectionCreateUpdateParameters, '2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_create_update_parameters.rb'
178
+ autoload :TableCreateUpdateParameters, '2020-03-01/generated/azure_mgmt_cosmosdb/models/table_create_update_parameters.rb'
179
+ autoload :CassandraKeyspaceCreateUpdateParameters, '2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_create_update_parameters.rb'
180
+ autoload :CassandraTableCreateUpdateParameters, '2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_create_update_parameters.rb'
181
+ autoload :GremlinDatabaseCreateUpdateParameters, '2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_create_update_parameters.rb'
182
+ autoload :GremlinGraphCreateUpdateParameters, '2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_create_update_parameters.rb'
183
+ autoload :PartitionUsage, '2020-03-01/generated/azure_mgmt_cosmosdb/models/partition_usage.rb'
184
+ autoload :PercentileMetricValue, '2020-03-01/generated/azure_mgmt_cosmosdb/models/percentile_metric_value.rb'
185
+ autoload :PartitionMetric, '2020-03-01/generated/azure_mgmt_cosmosdb/models/partition_metric.rb'
186
+ autoload :TrackedResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/tracked_resource.rb'
187
+ autoload :AzureEntityResource, '2020-03-01/generated/azure_mgmt_cosmosdb/models/azure_entity_resource.rb'
188
+ autoload :NotebookWorkspaceCreateUpdateParameters, '2020-03-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_create_update_parameters.rb'
189
+ autoload :NotebookWorkspace, '2020-03-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace.rb'
190
+ autoload :DatabaseAccountKind, '2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_kind.rb'
191
+ autoload :DatabaseAccountOfferType, '2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_offer_type.rb'
192
+ autoload :DefaultConsistencyLevel, '2020-03-01/generated/azure_mgmt_cosmosdb/models/default_consistency_level.rb'
193
+ autoload :ConnectorOffer, '2020-03-01/generated/azure_mgmt_cosmosdb/models/connector_offer.rb'
194
+ autoload :PublicNetworkAccess, '2020-03-01/generated/azure_mgmt_cosmosdb/models/public_network_access.rb'
195
+ autoload :IndexingMode, '2020-03-01/generated/azure_mgmt_cosmosdb/models/indexing_mode.rb'
196
+ autoload :DataType, '2020-03-01/generated/azure_mgmt_cosmosdb/models/data_type.rb'
197
+ autoload :IndexKind, '2020-03-01/generated/azure_mgmt_cosmosdb/models/index_kind.rb'
198
+ autoload :CompositePathSortOrder, '2020-03-01/generated/azure_mgmt_cosmosdb/models/composite_path_sort_order.rb'
199
+ autoload :SpatialType, '2020-03-01/generated/azure_mgmt_cosmosdb/models/spatial_type.rb'
200
+ autoload :PartitionKind, '2020-03-01/generated/azure_mgmt_cosmosdb/models/partition_kind.rb'
201
+ autoload :ConflictResolutionMode, '2020-03-01/generated/azure_mgmt_cosmosdb/models/conflict_resolution_mode.rb'
202
+ autoload :TriggerType, '2020-03-01/generated/azure_mgmt_cosmosdb/models/trigger_type.rb'
203
+ autoload :TriggerOperation, '2020-03-01/generated/azure_mgmt_cosmosdb/models/trigger_operation.rb'
204
+ autoload :KeyKind, '2020-03-01/generated/azure_mgmt_cosmosdb/models/key_kind.rb'
205
+ autoload :UnitType, '2020-03-01/generated/azure_mgmt_cosmosdb/models/unit_type.rb'
206
+ autoload :PrimaryAggregationType, '2020-03-01/generated/azure_mgmt_cosmosdb/models/primary_aggregation_type.rb'
207
+ end
208
+ end
@@ -0,0 +1,1700 @@
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_03_01
7
+ #
8
+ # Azure Cosmos DB Database Service Resource Provider REST API
9
+ #
10
+ class CassandraResources
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the CassandraResources 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 Cassandra keyspaces 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 [CassandraKeyspaceListResult] operation results.
35
+ #
36
+ def list_cassandra_keyspaces(resource_group_name, account_name, custom_headers:nil)
37
+ response = list_cassandra_keyspaces_async(resource_group_name, account_name, custom_headers:custom_headers).value!
38
+ response.body unless response.nil?
39
+ end
40
+
41
+ #
42
+ # Lists the Cassandra keyspaces 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_cassandra_keyspaces_with_http_info(resource_group_name, account_name, custom_headers:nil)
54
+ list_cassandra_keyspaces_async(resource_group_name, account_name, custom_headers:custom_headers).value!
55
+ end
56
+
57
+ #
58
+ # Lists the Cassandra keyspaces 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_cassandra_keyspaces_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}/cassandraKeyspaces'
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_03_01::Models::CassandraKeyspaceListResult.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 Cassandra keyspaces under an existing Azure Cosmos DB database
134
+ # account 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 keyspace_name [String] Cosmos DB keyspace 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 [CassandraKeyspaceGetResults] operation results.
144
+ #
145
+ def get_cassandra_keyspace(resource_group_name, account_name, keyspace_name, custom_headers:nil)
146
+ response = get_cassandra_keyspace_async(resource_group_name, account_name, keyspace_name, custom_headers:custom_headers).value!
147
+ response.body unless response.nil?
148
+ end
149
+
150
+ #
151
+ # Gets the Cassandra keyspaces under an existing Azure Cosmos DB database
152
+ # account 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 keyspace_name [String] Cosmos DB keyspace 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_cassandra_keyspace_with_http_info(resource_group_name, account_name, keyspace_name, custom_headers:nil)
164
+ get_cassandra_keyspace_async(resource_group_name, account_name, keyspace_name, custom_headers:custom_headers).value!
165
+ end
166
+
167
+ #
168
+ # Gets the Cassandra keyspaces under an existing Azure Cosmos DB database
169
+ # account 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 keyspace_name [String] Cosmos DB keyspace 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_cassandra_keyspace_async(resource_group_name, account_name, keyspace_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, 'keyspace_name is nil' if keyspace_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}/cassandraKeyspaces/{keyspaceName}'
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,'keyspaceName' => keyspace_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_03_01::Models::CassandraKeyspaceGetResults.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 Cassandra keyspace
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 keyspace_name [String] Cosmos DB keyspace name.
251
+ # @param create_update_cassandra_keyspace_parameters
252
+ # [CassandraKeyspaceCreateUpdateParameters] The parameters to provide for the
253
+ # current Cassandra keyspace.
254
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
255
+ # will be added to the HTTP request.
256
+ #
257
+ # @return [CassandraKeyspaceGetResults] operation results.
258
+ #
259
+ def create_update_cassandra_keyspace(resource_group_name, account_name, keyspace_name, create_update_cassandra_keyspace_parameters, custom_headers:nil)
260
+ response = create_update_cassandra_keyspace_async(resource_group_name, account_name, keyspace_name, create_update_cassandra_keyspace_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 keyspace_name [String] Cosmos DB keyspace name.
269
+ # @param create_update_cassandra_keyspace_parameters
270
+ # [CassandraKeyspaceCreateUpdateParameters] The parameters to provide for the
271
+ # current Cassandra keyspace.
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_cassandra_keyspace_async(resource_group_name, account_name, keyspace_name, create_update_cassandra_keyspace_parameters, custom_headers:nil)
279
+ # Send request
280
+ promise = begin_create_update_cassandra_keyspace_async(resource_group_name, account_name, keyspace_name, create_update_cassandra_keyspace_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_03_01::Models::CassandraKeyspaceGetResults.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 Cassandra keyspace.
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 keyspace_name [String] Cosmos DB keyspace 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_cassandra_keyspace(resource_group_name, account_name, keyspace_name, custom_headers:nil)
307
+ response = delete_cassandra_keyspace_async(resource_group_name, account_name, keyspace_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 keyspace_name [String] Cosmos DB keyspace 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_cassandra_keyspace_async(resource_group_name, account_name, keyspace_name, custom_headers:nil)
323
+ # Send request
324
+ promise = begin_delete_cassandra_keyspace_async(resource_group_name, account_name, keyspace_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 Cassandra Keyspace 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 keyspace_name [String] Cosmos DB keyspace 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_cassandra_keyspace_throughput(resource_group_name, account_name, keyspace_name, custom_headers:nil)
352
+ response = get_cassandra_keyspace_throughput_async(resource_group_name, account_name, keyspace_name, custom_headers:custom_headers).value!
353
+ response.body unless response.nil?
354
+ end
355
+
356
+ #
357
+ # Gets the RUs per second of the Cassandra Keyspace 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 keyspace_name [String] Cosmos DB keyspace 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_cassandra_keyspace_throughput_with_http_info(resource_group_name, account_name, keyspace_name, custom_headers:nil)
370
+ get_cassandra_keyspace_throughput_async(resource_group_name, account_name, keyspace_name, custom_headers:custom_headers).value!
371
+ end
372
+
373
+ #
374
+ # Gets the RUs per second of the Cassandra Keyspace 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 keyspace_name [String] Cosmos DB keyspace 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_cassandra_keyspace_throughput_async(resource_group_name, account_name, keyspace_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, 'keyspace_name is nil' if keyspace_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}/cassandraKeyspaces/{keyspaceName}/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,'keyspaceName' => keyspace_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_03_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 Cassandra Keyspace
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 keyspace_name [String] Cosmos DB keyspace name.
457
+ # @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
458
+ # RUs per second of the parameters to provide for the current Cassandra
459
+ # Keyspace.
460
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
461
+ # will be added to the HTTP request.
462
+ #
463
+ # @return [ThroughputSettingsGetResults] operation results.
464
+ #
465
+ def update_cassandra_keyspace_throughput(resource_group_name, account_name, keyspace_name, update_throughput_parameters, custom_headers:nil)
466
+ response = update_cassandra_keyspace_throughput_async(resource_group_name, account_name, keyspace_name, update_throughput_parameters, custom_headers:custom_headers).value!
467
+ response.body unless response.nil?
468
+ end
469
+
470
+ #
471
+ # @param resource_group_name [String] The name of the resource group. The name
472
+ # is case insensitive.
473
+ # @param account_name [String] Cosmos DB database account name.
474
+ # @param keyspace_name [String] Cosmos DB keyspace name.
475
+ # @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
476
+ # RUs per second of the parameters to provide for the current Cassandra
477
+ # Keyspace.
478
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
479
+ # will be added to the HTTP request.
480
+ #
481
+ # @return [Concurrent::Promise] promise which provides async access to http
482
+ # response.
483
+ #
484
+ def update_cassandra_keyspace_throughput_async(resource_group_name, account_name, keyspace_name, update_throughput_parameters, custom_headers:nil)
485
+ # Send request
486
+ promise = begin_update_cassandra_keyspace_throughput_async(resource_group_name, account_name, keyspace_name, update_throughput_parameters, custom_headers:custom_headers)
487
+
488
+ promise = promise.then do |response|
489
+ # Defining deserialization method.
490
+ deserialize_method = lambda do |parsed_response|
491
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::ThroughputSettingsGetResults.mapper()
492
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
493
+ end
494
+
495
+ # Waiting for response.
496
+ @client.get_long_running_operation_result(response, deserialize_method)
497
+ end
498
+
499
+ promise
500
+ end
501
+
502
+ #
503
+ # Lists the Cassandra table under an existing Azure Cosmos DB database account.
504
+ #
505
+ # @param resource_group_name [String] The name of the resource group. The name
506
+ # is case insensitive.
507
+ # @param account_name [String] Cosmos DB database account name.
508
+ # @param keyspace_name [String] Cosmos DB keyspace name.
509
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
510
+ # will be added to the HTTP request.
511
+ #
512
+ # @return [CassandraTableListResult] operation results.
513
+ #
514
+ def list_cassandra_tables(resource_group_name, account_name, keyspace_name, custom_headers:nil)
515
+ response = list_cassandra_tables_async(resource_group_name, account_name, keyspace_name, custom_headers:custom_headers).value!
516
+ response.body unless response.nil?
517
+ end
518
+
519
+ #
520
+ # Lists the Cassandra table under an existing Azure Cosmos DB database account.
521
+ #
522
+ # @param resource_group_name [String] The name of the resource group. The name
523
+ # is case insensitive.
524
+ # @param account_name [String] Cosmos DB database account name.
525
+ # @param keyspace_name [String] Cosmos DB keyspace name.
526
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
527
+ # will be added to the HTTP request.
528
+ #
529
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
530
+ #
531
+ def list_cassandra_tables_with_http_info(resource_group_name, account_name, keyspace_name, custom_headers:nil)
532
+ list_cassandra_tables_async(resource_group_name, account_name, keyspace_name, custom_headers:custom_headers).value!
533
+ end
534
+
535
+ #
536
+ # Lists the Cassandra table under an existing Azure Cosmos DB database account.
537
+ #
538
+ # @param resource_group_name [String] The name of the resource group. The name
539
+ # is case insensitive.
540
+ # @param account_name [String] Cosmos DB database account name.
541
+ # @param keyspace_name [String] Cosmos DB keyspace name.
542
+ # @param [Hash{String => String}] A hash of custom headers that will be added
543
+ # to the HTTP request.
544
+ #
545
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
546
+ #
547
+ def list_cassandra_tables_async(resource_group_name, account_name, keyspace_name, custom_headers:nil)
548
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
549
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
550
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
551
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
552
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
553
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
554
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
555
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
556
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
557
+ 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?
558
+ fail ArgumentError, 'keyspace_name is nil' if keyspace_name.nil?
559
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
560
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
561
+
562
+
563
+ request_headers = {}
564
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
565
+
566
+ # Set Headers
567
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
568
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
569
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables'
570
+
571
+ request_url = @base_url || @client.base_url
572
+
573
+ options = {
574
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
575
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'keyspaceName' => keyspace_name},
576
+ query_params: {'api-version' => @client.api_version},
577
+ headers: request_headers.merge(custom_headers || {}),
578
+ base_url: request_url
579
+ }
580
+ promise = @client.make_request_async(:get, path_template, options)
581
+
582
+ promise = promise.then do |result|
583
+ http_response = result.response
584
+ status_code = http_response.status
585
+ response_content = http_response.body
586
+ unless status_code == 200
587
+ error_model = JSON.load(response_content)
588
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
589
+ end
590
+
591
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
592
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
593
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
594
+ # Deserialize Response
595
+ if status_code == 200
596
+ begin
597
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
598
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::CassandraTableListResult.mapper()
599
+ result.body = @client.deserialize(result_mapper, parsed_response)
600
+ rescue Exception => e
601
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
602
+ end
603
+ end
604
+
605
+ result
606
+ end
607
+
608
+ promise.execute
609
+ end
610
+
611
+ #
612
+ # Gets the Cassandra table 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 keyspace_name [String] Cosmos DB keyspace name.
618
+ # @param table_name [String] Cosmos DB table name.
619
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
620
+ # will be added to the HTTP request.
621
+ #
622
+ # @return [CassandraTableGetResults] operation results.
623
+ #
624
+ def get_cassandra_table(resource_group_name, account_name, keyspace_name, table_name, custom_headers:nil)
625
+ response = get_cassandra_table_async(resource_group_name, account_name, keyspace_name, table_name, custom_headers:custom_headers).value!
626
+ response.body unless response.nil?
627
+ end
628
+
629
+ #
630
+ # Gets the Cassandra table under an existing Azure Cosmos DB database account.
631
+ #
632
+ # @param resource_group_name [String] The name of the resource group. The name
633
+ # is case insensitive.
634
+ # @param account_name [String] Cosmos DB database account name.
635
+ # @param keyspace_name [String] Cosmos DB keyspace name.
636
+ # @param table_name [String] Cosmos DB table name.
637
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
638
+ # will be added to the HTTP request.
639
+ #
640
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
641
+ #
642
+ def get_cassandra_table_with_http_info(resource_group_name, account_name, keyspace_name, table_name, custom_headers:nil)
643
+ get_cassandra_table_async(resource_group_name, account_name, keyspace_name, table_name, custom_headers:custom_headers).value!
644
+ end
645
+
646
+ #
647
+ # Gets the Cassandra table under an existing Azure Cosmos DB database account.
648
+ #
649
+ # @param resource_group_name [String] The name of the resource group. The name
650
+ # is case insensitive.
651
+ # @param account_name [String] Cosmos DB database account name.
652
+ # @param keyspace_name [String] Cosmos DB keyspace name.
653
+ # @param table_name [String] Cosmos DB table name.
654
+ # @param [Hash{String => String}] A hash of custom headers that will be added
655
+ # to the HTTP request.
656
+ #
657
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
658
+ #
659
+ def get_cassandra_table_async(resource_group_name, account_name, keyspace_name, table_name, custom_headers:nil)
660
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
661
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
662
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
663
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
664
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
665
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
666
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
667
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
668
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
669
+ 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?
670
+ fail ArgumentError, 'keyspace_name is nil' if keyspace_name.nil?
671
+ fail ArgumentError, 'table_name is nil' if table_name.nil?
672
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
673
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
674
+
675
+
676
+ request_headers = {}
677
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
678
+
679
+ # Set Headers
680
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
681
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
682
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}'
683
+
684
+ request_url = @base_url || @client.base_url
685
+
686
+ options = {
687
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
688
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'keyspaceName' => keyspace_name,'tableName' => table_name},
689
+ query_params: {'api-version' => @client.api_version},
690
+ headers: request_headers.merge(custom_headers || {}),
691
+ base_url: request_url
692
+ }
693
+ promise = @client.make_request_async(:get, path_template, options)
694
+
695
+ promise = promise.then do |result|
696
+ http_response = result.response
697
+ status_code = http_response.status
698
+ response_content = http_response.body
699
+ unless status_code == 200
700
+ error_model = JSON.load(response_content)
701
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
702
+ end
703
+
704
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
705
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
706
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
707
+ # Deserialize Response
708
+ if status_code == 200
709
+ begin
710
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
711
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::CassandraTableGetResults.mapper()
712
+ result.body = @client.deserialize(result_mapper, parsed_response)
713
+ rescue Exception => e
714
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
715
+ end
716
+ end
717
+
718
+ result
719
+ end
720
+
721
+ promise.execute
722
+ end
723
+
724
+ #
725
+ # Create or update an Azure Cosmos DB Cassandra Table
726
+ #
727
+ # @param resource_group_name [String] The name of the resource group. The name
728
+ # is case insensitive.
729
+ # @param account_name [String] Cosmos DB database account name.
730
+ # @param keyspace_name [String] Cosmos DB keyspace name.
731
+ # @param table_name [String] Cosmos DB table name.
732
+ # @param create_update_cassandra_table_parameters
733
+ # [CassandraTableCreateUpdateParameters] The parameters to provide for the
734
+ # current Cassandra Table.
735
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
736
+ # will be added to the HTTP request.
737
+ #
738
+ # @return [CassandraTableGetResults] operation results.
739
+ #
740
+ def create_update_cassandra_table(resource_group_name, account_name, keyspace_name, table_name, create_update_cassandra_table_parameters, custom_headers:nil)
741
+ response = create_update_cassandra_table_async(resource_group_name, account_name, keyspace_name, table_name, create_update_cassandra_table_parameters, custom_headers:custom_headers).value!
742
+ response.body unless response.nil?
743
+ end
744
+
745
+ #
746
+ # @param resource_group_name [String] The name of the resource group. The name
747
+ # is case insensitive.
748
+ # @param account_name [String] Cosmos DB database account name.
749
+ # @param keyspace_name [String] Cosmos DB keyspace name.
750
+ # @param table_name [String] Cosmos DB table name.
751
+ # @param create_update_cassandra_table_parameters
752
+ # [CassandraTableCreateUpdateParameters] The parameters to provide for the
753
+ # current Cassandra Table.
754
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
755
+ # will be added to the HTTP request.
756
+ #
757
+ # @return [Concurrent::Promise] promise which provides async access to http
758
+ # response.
759
+ #
760
+ def create_update_cassandra_table_async(resource_group_name, account_name, keyspace_name, table_name, create_update_cassandra_table_parameters, custom_headers:nil)
761
+ # Send request
762
+ promise = begin_create_update_cassandra_table_async(resource_group_name, account_name, keyspace_name, table_name, create_update_cassandra_table_parameters, custom_headers:custom_headers)
763
+
764
+ promise = promise.then do |response|
765
+ # Defining deserialization method.
766
+ deserialize_method = lambda do |parsed_response|
767
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::CassandraTableGetResults.mapper()
768
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
769
+ end
770
+
771
+ # Waiting for response.
772
+ @client.get_long_running_operation_result(response, deserialize_method)
773
+ end
774
+
775
+ promise
776
+ end
777
+
778
+ #
779
+ # Deletes an existing Azure Cosmos DB Cassandra table.
780
+ #
781
+ # @param resource_group_name [String] The name of the resource group. The name
782
+ # is case insensitive.
783
+ # @param account_name [String] Cosmos DB database account name.
784
+ # @param keyspace_name [String] Cosmos DB keyspace name.
785
+ # @param table_name [String] Cosmos DB table name.
786
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
787
+ # will be added to the HTTP request.
788
+ #
789
+ def delete_cassandra_table(resource_group_name, account_name, keyspace_name, table_name, custom_headers:nil)
790
+ response = delete_cassandra_table_async(resource_group_name, account_name, keyspace_name, table_name, custom_headers:custom_headers).value!
791
+ nil
792
+ end
793
+
794
+ #
795
+ # @param resource_group_name [String] The name of the resource group. The name
796
+ # is case insensitive.
797
+ # @param account_name [String] Cosmos DB database account name.
798
+ # @param keyspace_name [String] Cosmos DB keyspace name.
799
+ # @param table_name [String] Cosmos DB table name.
800
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
801
+ # will be added to the HTTP request.
802
+ #
803
+ # @return [Concurrent::Promise] promise which provides async access to http
804
+ # response.
805
+ #
806
+ def delete_cassandra_table_async(resource_group_name, account_name, keyspace_name, table_name, custom_headers:nil)
807
+ # Send request
808
+ promise = begin_delete_cassandra_table_async(resource_group_name, account_name, keyspace_name, table_name, custom_headers:custom_headers)
809
+
810
+ promise = promise.then do |response|
811
+ # Defining deserialization method.
812
+ deserialize_method = lambda do |parsed_response|
813
+ end
814
+
815
+ # Waiting for response.
816
+ @client.get_long_running_operation_result(response, deserialize_method)
817
+ end
818
+
819
+ promise
820
+ end
821
+
822
+ #
823
+ # Gets the RUs per second of the Cassandra table under an existing Azure Cosmos
824
+ # DB database account with the provided name.
825
+ #
826
+ # @param resource_group_name [String] The name of the resource group. The name
827
+ # is case insensitive.
828
+ # @param account_name [String] Cosmos DB database account name.
829
+ # @param keyspace_name [String] Cosmos DB keyspace name.
830
+ # @param table_name [String] Cosmos DB table name.
831
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
832
+ # will be added to the HTTP request.
833
+ #
834
+ # @return [ThroughputSettingsGetResults] operation results.
835
+ #
836
+ def get_cassandra_table_throughput(resource_group_name, account_name, keyspace_name, table_name, custom_headers:nil)
837
+ response = get_cassandra_table_throughput_async(resource_group_name, account_name, keyspace_name, table_name, custom_headers:custom_headers).value!
838
+ response.body unless response.nil?
839
+ end
840
+
841
+ #
842
+ # Gets the RUs per second of the Cassandra table under an existing Azure Cosmos
843
+ # DB database account with the provided name.
844
+ #
845
+ # @param resource_group_name [String] The name of the resource group. The name
846
+ # is case insensitive.
847
+ # @param account_name [String] Cosmos DB database account name.
848
+ # @param keyspace_name [String] Cosmos DB keyspace name.
849
+ # @param table_name [String] Cosmos DB table name.
850
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
851
+ # will be added to the HTTP request.
852
+ #
853
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
854
+ #
855
+ def get_cassandra_table_throughput_with_http_info(resource_group_name, account_name, keyspace_name, table_name, custom_headers:nil)
856
+ get_cassandra_table_throughput_async(resource_group_name, account_name, keyspace_name, table_name, custom_headers:custom_headers).value!
857
+ end
858
+
859
+ #
860
+ # Gets the RUs per second of the Cassandra table under an existing Azure Cosmos
861
+ # DB database account with the provided name.
862
+ #
863
+ # @param resource_group_name [String] The name of the resource group. The name
864
+ # is case insensitive.
865
+ # @param account_name [String] Cosmos DB database account name.
866
+ # @param keyspace_name [String] Cosmos DB keyspace name.
867
+ # @param table_name [String] Cosmos DB table name.
868
+ # @param [Hash{String => String}] A hash of custom headers that will be added
869
+ # to the HTTP request.
870
+ #
871
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
872
+ #
873
+ def get_cassandra_table_throughput_async(resource_group_name, account_name, keyspace_name, table_name, custom_headers:nil)
874
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
875
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
876
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
877
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
878
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
879
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
880
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
881
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
882
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
883
+ 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?
884
+ fail ArgumentError, 'keyspace_name is nil' if keyspace_name.nil?
885
+ fail ArgumentError, 'table_name is nil' if table_name.nil?
886
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
887
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
888
+
889
+
890
+ request_headers = {}
891
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
892
+
893
+ # Set Headers
894
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
895
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
896
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default'
897
+
898
+ request_url = @base_url || @client.base_url
899
+
900
+ options = {
901
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
902
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'keyspaceName' => keyspace_name,'tableName' => table_name},
903
+ query_params: {'api-version' => @client.api_version},
904
+ headers: request_headers.merge(custom_headers || {}),
905
+ base_url: request_url
906
+ }
907
+ promise = @client.make_request_async(:get, path_template, options)
908
+
909
+ promise = promise.then do |result|
910
+ http_response = result.response
911
+ status_code = http_response.status
912
+ response_content = http_response.body
913
+ unless status_code == 200
914
+ error_model = JSON.load(response_content)
915
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
916
+ end
917
+
918
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
919
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
920
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
921
+ # Deserialize Response
922
+ if status_code == 200
923
+ begin
924
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
925
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::ThroughputSettingsGetResults.mapper()
926
+ result.body = @client.deserialize(result_mapper, parsed_response)
927
+ rescue Exception => e
928
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
929
+ end
930
+ end
931
+
932
+ result
933
+ end
934
+
935
+ promise.execute
936
+ end
937
+
938
+ #
939
+ # Update RUs per second of an Azure Cosmos DB Cassandra table
940
+ #
941
+ # @param resource_group_name [String] The name of the resource group. The name
942
+ # is case insensitive.
943
+ # @param account_name [String] Cosmos DB database account name.
944
+ # @param keyspace_name [String] Cosmos DB keyspace name.
945
+ # @param table_name [String] Cosmos DB table name.
946
+ # @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
947
+ # RUs per second of the parameters to provide for the current Cassandra table.
948
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
949
+ # will be added to the HTTP request.
950
+ #
951
+ # @return [ThroughputSettingsGetResults] operation results.
952
+ #
953
+ def update_cassandra_table_throughput(resource_group_name, account_name, keyspace_name, table_name, update_throughput_parameters, custom_headers:nil)
954
+ response = update_cassandra_table_throughput_async(resource_group_name, account_name, keyspace_name, table_name, update_throughput_parameters, custom_headers:custom_headers).value!
955
+ response.body unless response.nil?
956
+ end
957
+
958
+ #
959
+ # @param resource_group_name [String] The name of the resource group. The name
960
+ # is case insensitive.
961
+ # @param account_name [String] Cosmos DB database account name.
962
+ # @param keyspace_name [String] Cosmos DB keyspace name.
963
+ # @param table_name [String] Cosmos DB table name.
964
+ # @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
965
+ # RUs per second of the parameters to provide for the current Cassandra table.
966
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
967
+ # will be added to the HTTP request.
968
+ #
969
+ # @return [Concurrent::Promise] promise which provides async access to http
970
+ # response.
971
+ #
972
+ def update_cassandra_table_throughput_async(resource_group_name, account_name, keyspace_name, table_name, update_throughput_parameters, custom_headers:nil)
973
+ # Send request
974
+ promise = begin_update_cassandra_table_throughput_async(resource_group_name, account_name, keyspace_name, table_name, update_throughput_parameters, custom_headers:custom_headers)
975
+
976
+ promise = promise.then do |response|
977
+ # Defining deserialization method.
978
+ deserialize_method = lambda do |parsed_response|
979
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::ThroughputSettingsGetResults.mapper()
980
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
981
+ end
982
+
983
+ # Waiting for response.
984
+ @client.get_long_running_operation_result(response, deserialize_method)
985
+ end
986
+
987
+ promise
988
+ end
989
+
990
+ #
991
+ # Create or update an Azure Cosmos DB Cassandra keyspace
992
+ #
993
+ # @param resource_group_name [String] The name of the resource group. The name
994
+ # is case insensitive.
995
+ # @param account_name [String] Cosmos DB database account name.
996
+ # @param keyspace_name [String] Cosmos DB keyspace name.
997
+ # @param create_update_cassandra_keyspace_parameters
998
+ # [CassandraKeyspaceCreateUpdateParameters] The parameters to provide for the
999
+ # current Cassandra keyspace.
1000
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1001
+ # will be added to the HTTP request.
1002
+ #
1003
+ # @return [CassandraKeyspaceGetResults] operation results.
1004
+ #
1005
+ def begin_create_update_cassandra_keyspace(resource_group_name, account_name, keyspace_name, create_update_cassandra_keyspace_parameters, custom_headers:nil)
1006
+ response = begin_create_update_cassandra_keyspace_async(resource_group_name, account_name, keyspace_name, create_update_cassandra_keyspace_parameters, custom_headers:custom_headers).value!
1007
+ response.body unless response.nil?
1008
+ end
1009
+
1010
+ #
1011
+ # Create or update an Azure Cosmos DB Cassandra keyspace
1012
+ #
1013
+ # @param resource_group_name [String] The name of the resource group. The name
1014
+ # is case insensitive.
1015
+ # @param account_name [String] Cosmos DB database account name.
1016
+ # @param keyspace_name [String] Cosmos DB keyspace name.
1017
+ # @param create_update_cassandra_keyspace_parameters
1018
+ # [CassandraKeyspaceCreateUpdateParameters] The parameters to provide for the
1019
+ # current Cassandra keyspace.
1020
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1021
+ # will be added to the HTTP request.
1022
+ #
1023
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1024
+ #
1025
+ def begin_create_update_cassandra_keyspace_with_http_info(resource_group_name, account_name, keyspace_name, create_update_cassandra_keyspace_parameters, custom_headers:nil)
1026
+ begin_create_update_cassandra_keyspace_async(resource_group_name, account_name, keyspace_name, create_update_cassandra_keyspace_parameters, custom_headers:custom_headers).value!
1027
+ end
1028
+
1029
+ #
1030
+ # Create or update an Azure Cosmos DB Cassandra keyspace
1031
+ #
1032
+ # @param resource_group_name [String] The name of the resource group. The name
1033
+ # is case insensitive.
1034
+ # @param account_name [String] Cosmos DB database account name.
1035
+ # @param keyspace_name [String] Cosmos DB keyspace name.
1036
+ # @param create_update_cassandra_keyspace_parameters
1037
+ # [CassandraKeyspaceCreateUpdateParameters] The parameters to provide for the
1038
+ # current Cassandra keyspace.
1039
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1040
+ # to the HTTP request.
1041
+ #
1042
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1043
+ #
1044
+ def begin_create_update_cassandra_keyspace_async(resource_group_name, account_name, keyspace_name, create_update_cassandra_keyspace_parameters, custom_headers:nil)
1045
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1046
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
1047
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1048
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1049
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1050
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1051
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
1052
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
1053
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
1054
+ 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?
1055
+ fail ArgumentError, 'keyspace_name is nil' if keyspace_name.nil?
1056
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1057
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
1058
+ fail ArgumentError, 'create_update_cassandra_keyspace_parameters is nil' if create_update_cassandra_keyspace_parameters.nil?
1059
+
1060
+
1061
+ request_headers = {}
1062
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1063
+
1064
+ # Set Headers
1065
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1066
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1067
+
1068
+ # Serialize Request
1069
+ request_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::CassandraKeyspaceCreateUpdateParameters.mapper()
1070
+ request_content = @client.serialize(request_mapper, create_update_cassandra_keyspace_parameters)
1071
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1072
+
1073
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}'
1074
+
1075
+ request_url = @base_url || @client.base_url
1076
+
1077
+ options = {
1078
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1079
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'keyspaceName' => keyspace_name},
1080
+ query_params: {'api-version' => @client.api_version},
1081
+ body: request_content,
1082
+ headers: request_headers.merge(custom_headers || {}),
1083
+ base_url: request_url
1084
+ }
1085
+ promise = @client.make_request_async(:put, path_template, options)
1086
+
1087
+ promise = promise.then do |result|
1088
+ http_response = result.response
1089
+ status_code = http_response.status
1090
+ response_content = http_response.body
1091
+ unless status_code == 202 || status_code == 200
1092
+ error_model = JSON.load(response_content)
1093
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1094
+ end
1095
+
1096
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1097
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1098
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1099
+ # Deserialize Response
1100
+ if status_code == 200
1101
+ begin
1102
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1103
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::CassandraKeyspaceGetResults.mapper()
1104
+ result.body = @client.deserialize(result_mapper, parsed_response)
1105
+ rescue Exception => e
1106
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1107
+ end
1108
+ end
1109
+
1110
+ result
1111
+ end
1112
+
1113
+ promise.execute
1114
+ end
1115
+
1116
+ #
1117
+ # Deletes an existing Azure Cosmos DB Cassandra keyspace.
1118
+ #
1119
+ # @param resource_group_name [String] The name of the resource group. The name
1120
+ # is case insensitive.
1121
+ # @param account_name [String] Cosmos DB database account name.
1122
+ # @param keyspace_name [String] Cosmos DB keyspace name.
1123
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1124
+ # will be added to the HTTP request.
1125
+ #
1126
+ #
1127
+ def begin_delete_cassandra_keyspace(resource_group_name, account_name, keyspace_name, custom_headers:nil)
1128
+ response = begin_delete_cassandra_keyspace_async(resource_group_name, account_name, keyspace_name, custom_headers:custom_headers).value!
1129
+ nil
1130
+ end
1131
+
1132
+ #
1133
+ # Deletes an existing Azure Cosmos DB Cassandra keyspace.
1134
+ #
1135
+ # @param resource_group_name [String] The name of the resource group. The name
1136
+ # is case insensitive.
1137
+ # @param account_name [String] Cosmos DB database account name.
1138
+ # @param keyspace_name [String] Cosmos DB keyspace name.
1139
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1140
+ # will be added to the HTTP request.
1141
+ #
1142
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1143
+ #
1144
+ def begin_delete_cassandra_keyspace_with_http_info(resource_group_name, account_name, keyspace_name, custom_headers:nil)
1145
+ begin_delete_cassandra_keyspace_async(resource_group_name, account_name, keyspace_name, custom_headers:custom_headers).value!
1146
+ end
1147
+
1148
+ #
1149
+ # Deletes an existing Azure Cosmos DB Cassandra keyspace.
1150
+ #
1151
+ # @param resource_group_name [String] The name of the resource group. The name
1152
+ # is case insensitive.
1153
+ # @param account_name [String] Cosmos DB database account name.
1154
+ # @param keyspace_name [String] Cosmos DB keyspace name.
1155
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1156
+ # to the HTTP request.
1157
+ #
1158
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1159
+ #
1160
+ def begin_delete_cassandra_keyspace_async(resource_group_name, account_name, keyspace_name, custom_headers:nil)
1161
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1162
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
1163
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1164
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1165
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1166
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1167
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
1168
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
1169
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
1170
+ 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?
1171
+ fail ArgumentError, 'keyspace_name is nil' if keyspace_name.nil?
1172
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1173
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
1174
+
1175
+
1176
+ request_headers = {}
1177
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1178
+
1179
+ # Set Headers
1180
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1181
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1182
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}'
1183
+
1184
+ request_url = @base_url || @client.base_url
1185
+
1186
+ options = {
1187
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1188
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'keyspaceName' => keyspace_name},
1189
+ query_params: {'api-version' => @client.api_version},
1190
+ headers: request_headers.merge(custom_headers || {}),
1191
+ base_url: request_url
1192
+ }
1193
+ promise = @client.make_request_async(:delete, path_template, options)
1194
+
1195
+ promise = promise.then do |result|
1196
+ http_response = result.response
1197
+ status_code = http_response.status
1198
+ response_content = http_response.body
1199
+ unless status_code == 202 || status_code == 204
1200
+ error_model = JSON.load(response_content)
1201
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1202
+ end
1203
+
1204
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1205
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1206
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1207
+
1208
+ result
1209
+ end
1210
+
1211
+ promise.execute
1212
+ end
1213
+
1214
+ #
1215
+ # Update RUs per second of an Azure Cosmos DB Cassandra Keyspace
1216
+ #
1217
+ # @param resource_group_name [String] The name of the resource group. The name
1218
+ # is case insensitive.
1219
+ # @param account_name [String] Cosmos DB database account name.
1220
+ # @param keyspace_name [String] Cosmos DB keyspace name.
1221
+ # @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
1222
+ # RUs per second of the parameters to provide for the current Cassandra
1223
+ # Keyspace.
1224
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1225
+ # will be added to the HTTP request.
1226
+ #
1227
+ # @return [ThroughputSettingsGetResults] operation results.
1228
+ #
1229
+ def begin_update_cassandra_keyspace_throughput(resource_group_name, account_name, keyspace_name, update_throughput_parameters, custom_headers:nil)
1230
+ response = begin_update_cassandra_keyspace_throughput_async(resource_group_name, account_name, keyspace_name, update_throughput_parameters, custom_headers:custom_headers).value!
1231
+ response.body unless response.nil?
1232
+ end
1233
+
1234
+ #
1235
+ # Update RUs per second of an Azure Cosmos DB Cassandra Keyspace
1236
+ #
1237
+ # @param resource_group_name [String] The name of the resource group. The name
1238
+ # is case insensitive.
1239
+ # @param account_name [String] Cosmos DB database account name.
1240
+ # @param keyspace_name [String] Cosmos DB keyspace name.
1241
+ # @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
1242
+ # RUs per second of the parameters to provide for the current Cassandra
1243
+ # Keyspace.
1244
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1245
+ # will be added to the HTTP request.
1246
+ #
1247
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1248
+ #
1249
+ def begin_update_cassandra_keyspace_throughput_with_http_info(resource_group_name, account_name, keyspace_name, update_throughput_parameters, custom_headers:nil)
1250
+ begin_update_cassandra_keyspace_throughput_async(resource_group_name, account_name, keyspace_name, update_throughput_parameters, custom_headers:custom_headers).value!
1251
+ end
1252
+
1253
+ #
1254
+ # Update RUs per second of an Azure Cosmos DB Cassandra Keyspace
1255
+ #
1256
+ # @param resource_group_name [String] The name of the resource group. The name
1257
+ # is case insensitive.
1258
+ # @param account_name [String] Cosmos DB database account name.
1259
+ # @param keyspace_name [String] Cosmos DB keyspace name.
1260
+ # @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
1261
+ # RUs per second of the parameters to provide for the current Cassandra
1262
+ # Keyspace.
1263
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1264
+ # to the HTTP request.
1265
+ #
1266
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1267
+ #
1268
+ def begin_update_cassandra_keyspace_throughput_async(resource_group_name, account_name, keyspace_name, update_throughput_parameters, custom_headers:nil)
1269
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1270
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
1271
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1272
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1273
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1274
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1275
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
1276
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
1277
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
1278
+ 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?
1279
+ fail ArgumentError, 'keyspace_name is nil' if keyspace_name.nil?
1280
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1281
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
1282
+ fail ArgumentError, 'update_throughput_parameters is nil' if update_throughput_parameters.nil?
1283
+
1284
+
1285
+ request_headers = {}
1286
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1287
+
1288
+ # Set Headers
1289
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1290
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1291
+
1292
+ # Serialize Request
1293
+ request_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::ThroughputSettingsUpdateParameters.mapper()
1294
+ request_content = @client.serialize(request_mapper, update_throughput_parameters)
1295
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1296
+
1297
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default'
1298
+
1299
+ request_url = @base_url || @client.base_url
1300
+
1301
+ options = {
1302
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1303
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'keyspaceName' => keyspace_name},
1304
+ query_params: {'api-version' => @client.api_version},
1305
+ body: request_content,
1306
+ headers: request_headers.merge(custom_headers || {}),
1307
+ base_url: request_url
1308
+ }
1309
+ promise = @client.make_request_async(:put, path_template, options)
1310
+
1311
+ promise = promise.then do |result|
1312
+ http_response = result.response
1313
+ status_code = http_response.status
1314
+ response_content = http_response.body
1315
+ unless status_code == 202 || status_code == 200
1316
+ error_model = JSON.load(response_content)
1317
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1318
+ end
1319
+
1320
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1321
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1322
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1323
+ # Deserialize Response
1324
+ if status_code == 200
1325
+ begin
1326
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1327
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::ThroughputSettingsGetResults.mapper()
1328
+ result.body = @client.deserialize(result_mapper, parsed_response)
1329
+ rescue Exception => e
1330
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1331
+ end
1332
+ end
1333
+
1334
+ result
1335
+ end
1336
+
1337
+ promise.execute
1338
+ end
1339
+
1340
+ #
1341
+ # Create or update an Azure Cosmos DB Cassandra Table
1342
+ #
1343
+ # @param resource_group_name [String] The name of the resource group. The name
1344
+ # is case insensitive.
1345
+ # @param account_name [String] Cosmos DB database account name.
1346
+ # @param keyspace_name [String] Cosmos DB keyspace name.
1347
+ # @param table_name [String] Cosmos DB table name.
1348
+ # @param create_update_cassandra_table_parameters
1349
+ # [CassandraTableCreateUpdateParameters] The parameters to provide for the
1350
+ # current Cassandra Table.
1351
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1352
+ # will be added to the HTTP request.
1353
+ #
1354
+ # @return [CassandraTableGetResults] operation results.
1355
+ #
1356
+ def begin_create_update_cassandra_table(resource_group_name, account_name, keyspace_name, table_name, create_update_cassandra_table_parameters, custom_headers:nil)
1357
+ response = begin_create_update_cassandra_table_async(resource_group_name, account_name, keyspace_name, table_name, create_update_cassandra_table_parameters, custom_headers:custom_headers).value!
1358
+ response.body unless response.nil?
1359
+ end
1360
+
1361
+ #
1362
+ # Create or update an Azure Cosmos DB Cassandra Table
1363
+ #
1364
+ # @param resource_group_name [String] The name of the resource group. The name
1365
+ # is case insensitive.
1366
+ # @param account_name [String] Cosmos DB database account name.
1367
+ # @param keyspace_name [String] Cosmos DB keyspace name.
1368
+ # @param table_name [String] Cosmos DB table name.
1369
+ # @param create_update_cassandra_table_parameters
1370
+ # [CassandraTableCreateUpdateParameters] The parameters to provide for the
1371
+ # current Cassandra Table.
1372
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1373
+ # will be added to the HTTP request.
1374
+ #
1375
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1376
+ #
1377
+ def begin_create_update_cassandra_table_with_http_info(resource_group_name, account_name, keyspace_name, table_name, create_update_cassandra_table_parameters, custom_headers:nil)
1378
+ begin_create_update_cassandra_table_async(resource_group_name, account_name, keyspace_name, table_name, create_update_cassandra_table_parameters, custom_headers:custom_headers).value!
1379
+ end
1380
+
1381
+ #
1382
+ # Create or update an Azure Cosmos DB Cassandra Table
1383
+ #
1384
+ # @param resource_group_name [String] The name of the resource group. The name
1385
+ # is case insensitive.
1386
+ # @param account_name [String] Cosmos DB database account name.
1387
+ # @param keyspace_name [String] Cosmos DB keyspace name.
1388
+ # @param table_name [String] Cosmos DB table name.
1389
+ # @param create_update_cassandra_table_parameters
1390
+ # [CassandraTableCreateUpdateParameters] The parameters to provide for the
1391
+ # current Cassandra Table.
1392
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1393
+ # to the HTTP request.
1394
+ #
1395
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1396
+ #
1397
+ def begin_create_update_cassandra_table_async(resource_group_name, account_name, keyspace_name, table_name, create_update_cassandra_table_parameters, custom_headers:nil)
1398
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1399
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
1400
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1401
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1402
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1403
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1404
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
1405
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
1406
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
1407
+ 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?
1408
+ fail ArgumentError, 'keyspace_name is nil' if keyspace_name.nil?
1409
+ fail ArgumentError, 'table_name is nil' if table_name.nil?
1410
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1411
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
1412
+ fail ArgumentError, 'create_update_cassandra_table_parameters is nil' if create_update_cassandra_table_parameters.nil?
1413
+
1414
+
1415
+ request_headers = {}
1416
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1417
+
1418
+ # Set Headers
1419
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1420
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1421
+
1422
+ # Serialize Request
1423
+ request_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::CassandraTableCreateUpdateParameters.mapper()
1424
+ request_content = @client.serialize(request_mapper, create_update_cassandra_table_parameters)
1425
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1426
+
1427
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}'
1428
+
1429
+ request_url = @base_url || @client.base_url
1430
+
1431
+ options = {
1432
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1433
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'keyspaceName' => keyspace_name,'tableName' => table_name},
1434
+ query_params: {'api-version' => @client.api_version},
1435
+ body: request_content,
1436
+ headers: request_headers.merge(custom_headers || {}),
1437
+ base_url: request_url
1438
+ }
1439
+ promise = @client.make_request_async(:put, path_template, options)
1440
+
1441
+ promise = promise.then do |result|
1442
+ http_response = result.response
1443
+ status_code = http_response.status
1444
+ response_content = http_response.body
1445
+ unless status_code == 202 || status_code == 200
1446
+ error_model = JSON.load(response_content)
1447
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1448
+ end
1449
+
1450
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1451
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1452
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1453
+ # Deserialize Response
1454
+ if status_code == 200
1455
+ begin
1456
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1457
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::CassandraTableGetResults.mapper()
1458
+ result.body = @client.deserialize(result_mapper, parsed_response)
1459
+ rescue Exception => e
1460
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1461
+ end
1462
+ end
1463
+
1464
+ result
1465
+ end
1466
+
1467
+ promise.execute
1468
+ end
1469
+
1470
+ #
1471
+ # Deletes an existing Azure Cosmos DB Cassandra table.
1472
+ #
1473
+ # @param resource_group_name [String] The name of the resource group. The name
1474
+ # is case insensitive.
1475
+ # @param account_name [String] Cosmos DB database account name.
1476
+ # @param keyspace_name [String] Cosmos DB keyspace name.
1477
+ # @param table_name [String] Cosmos DB table name.
1478
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1479
+ # will be added to the HTTP request.
1480
+ #
1481
+ #
1482
+ def begin_delete_cassandra_table(resource_group_name, account_name, keyspace_name, table_name, custom_headers:nil)
1483
+ response = begin_delete_cassandra_table_async(resource_group_name, account_name, keyspace_name, table_name, custom_headers:custom_headers).value!
1484
+ nil
1485
+ end
1486
+
1487
+ #
1488
+ # Deletes an existing Azure Cosmos DB Cassandra table.
1489
+ #
1490
+ # @param resource_group_name [String] The name of the resource group. The name
1491
+ # is case insensitive.
1492
+ # @param account_name [String] Cosmos DB database account name.
1493
+ # @param keyspace_name [String] Cosmos DB keyspace name.
1494
+ # @param table_name [String] Cosmos DB table name.
1495
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1496
+ # will be added to the HTTP request.
1497
+ #
1498
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1499
+ #
1500
+ def begin_delete_cassandra_table_with_http_info(resource_group_name, account_name, keyspace_name, table_name, custom_headers:nil)
1501
+ begin_delete_cassandra_table_async(resource_group_name, account_name, keyspace_name, table_name, custom_headers:custom_headers).value!
1502
+ end
1503
+
1504
+ #
1505
+ # Deletes an existing Azure Cosmos DB Cassandra table.
1506
+ #
1507
+ # @param resource_group_name [String] The name of the resource group. The name
1508
+ # is case insensitive.
1509
+ # @param account_name [String] Cosmos DB database account name.
1510
+ # @param keyspace_name [String] Cosmos DB keyspace name.
1511
+ # @param table_name [String] Cosmos DB table name.
1512
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1513
+ # to the HTTP request.
1514
+ #
1515
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1516
+ #
1517
+ def begin_delete_cassandra_table_async(resource_group_name, account_name, keyspace_name, table_name, custom_headers:nil)
1518
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1519
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
1520
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1521
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1522
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1523
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1524
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
1525
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
1526
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
1527
+ 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?
1528
+ fail ArgumentError, 'keyspace_name is nil' if keyspace_name.nil?
1529
+ fail ArgumentError, 'table_name is nil' if table_name.nil?
1530
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1531
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
1532
+
1533
+
1534
+ request_headers = {}
1535
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1536
+
1537
+ # Set Headers
1538
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1539
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1540
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}'
1541
+
1542
+ request_url = @base_url || @client.base_url
1543
+
1544
+ options = {
1545
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1546
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'keyspaceName' => keyspace_name,'tableName' => table_name},
1547
+ query_params: {'api-version' => @client.api_version},
1548
+ headers: request_headers.merge(custom_headers || {}),
1549
+ base_url: request_url
1550
+ }
1551
+ promise = @client.make_request_async(:delete, path_template, options)
1552
+
1553
+ promise = promise.then do |result|
1554
+ http_response = result.response
1555
+ status_code = http_response.status
1556
+ response_content = http_response.body
1557
+ unless status_code == 202 || status_code == 204
1558
+ error_model = JSON.load(response_content)
1559
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1560
+ end
1561
+
1562
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1563
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1564
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1565
+
1566
+ result
1567
+ end
1568
+
1569
+ promise.execute
1570
+ end
1571
+
1572
+ #
1573
+ # Update RUs per second of an Azure Cosmos DB Cassandra table
1574
+ #
1575
+ # @param resource_group_name [String] The name of the resource group. The name
1576
+ # is case insensitive.
1577
+ # @param account_name [String] Cosmos DB database account name.
1578
+ # @param keyspace_name [String] Cosmos DB keyspace name.
1579
+ # @param table_name [String] Cosmos DB table name.
1580
+ # @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
1581
+ # RUs per second of the parameters to provide for the current Cassandra table.
1582
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1583
+ # will be added to the HTTP request.
1584
+ #
1585
+ # @return [ThroughputSettingsGetResults] operation results.
1586
+ #
1587
+ def begin_update_cassandra_table_throughput(resource_group_name, account_name, keyspace_name, table_name, update_throughput_parameters, custom_headers:nil)
1588
+ response = begin_update_cassandra_table_throughput_async(resource_group_name, account_name, keyspace_name, table_name, update_throughput_parameters, custom_headers:custom_headers).value!
1589
+ response.body unless response.nil?
1590
+ end
1591
+
1592
+ #
1593
+ # Update RUs per second of an Azure Cosmos DB Cassandra table
1594
+ #
1595
+ # @param resource_group_name [String] The name of the resource group. The name
1596
+ # is case insensitive.
1597
+ # @param account_name [String] Cosmos DB database account name.
1598
+ # @param keyspace_name [String] Cosmos DB keyspace name.
1599
+ # @param table_name [String] Cosmos DB table name.
1600
+ # @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
1601
+ # RUs per second of the parameters to provide for the current Cassandra table.
1602
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1603
+ # will be added to the HTTP request.
1604
+ #
1605
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1606
+ #
1607
+ def begin_update_cassandra_table_throughput_with_http_info(resource_group_name, account_name, keyspace_name, table_name, update_throughput_parameters, custom_headers:nil)
1608
+ begin_update_cassandra_table_throughput_async(resource_group_name, account_name, keyspace_name, table_name, update_throughput_parameters, custom_headers:custom_headers).value!
1609
+ end
1610
+
1611
+ #
1612
+ # Update RUs per second of an Azure Cosmos DB Cassandra table
1613
+ #
1614
+ # @param resource_group_name [String] The name of the resource group. The name
1615
+ # is case insensitive.
1616
+ # @param account_name [String] Cosmos DB database account name.
1617
+ # @param keyspace_name [String] Cosmos DB keyspace name.
1618
+ # @param table_name [String] Cosmos DB table name.
1619
+ # @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
1620
+ # RUs per second of the parameters to provide for the current Cassandra table.
1621
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1622
+ # to the HTTP request.
1623
+ #
1624
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1625
+ #
1626
+ def begin_update_cassandra_table_throughput_async(resource_group_name, account_name, keyspace_name, table_name, update_throughput_parameters, custom_headers:nil)
1627
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1628
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
1629
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1630
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1631
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1632
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1633
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
1634
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
1635
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
1636
+ 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?
1637
+ fail ArgumentError, 'keyspace_name is nil' if keyspace_name.nil?
1638
+ fail ArgumentError, 'table_name is nil' if table_name.nil?
1639
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1640
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
1641
+ fail ArgumentError, 'update_throughput_parameters is nil' if update_throughput_parameters.nil?
1642
+
1643
+
1644
+ request_headers = {}
1645
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1646
+
1647
+ # Set Headers
1648
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1649
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1650
+
1651
+ # Serialize Request
1652
+ request_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::ThroughputSettingsUpdateParameters.mapper()
1653
+ request_content = @client.serialize(request_mapper, update_throughput_parameters)
1654
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1655
+
1656
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default'
1657
+
1658
+ request_url = @base_url || @client.base_url
1659
+
1660
+ options = {
1661
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1662
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'keyspaceName' => keyspace_name,'tableName' => table_name},
1663
+ query_params: {'api-version' => @client.api_version},
1664
+ body: request_content,
1665
+ headers: request_headers.merge(custom_headers || {}),
1666
+ base_url: request_url
1667
+ }
1668
+ promise = @client.make_request_async(:put, path_template, options)
1669
+
1670
+ promise = promise.then do |result|
1671
+ http_response = result.response
1672
+ status_code = http_response.status
1673
+ response_content = http_response.body
1674
+ unless status_code == 202 || status_code == 200
1675
+ error_model = JSON.load(response_content)
1676
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1677
+ end
1678
+
1679
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1680
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1681
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1682
+ # Deserialize Response
1683
+ if status_code == 200
1684
+ begin
1685
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1686
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::ThroughputSettingsGetResults.mapper()
1687
+ result.body = @client.deserialize(result_mapper, parsed_response)
1688
+ rescue Exception => e
1689
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1690
+ end
1691
+ end
1692
+
1693
+ result
1694
+ end
1695
+
1696
+ promise.execute
1697
+ end
1698
+
1699
+ end
1700
+ end