azure_mgmt_cosmosdb 0.21.0 → 0.23.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1280) hide show
  1. checksums.yaml +5 -5
  2. data/LICENSE.txt +20 -20
  3. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb.rb +0 -0
  4. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/collection.rb +0 -0
  5. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/collection_partition.rb +0 -0
  6. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/collection_partition_region.rb +0 -0
  7. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/collection_region.rb +0 -0
  8. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/cosmos_db.rb +1 -1
  9. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/database.rb +0 -0
  10. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/database_account_region.rb +0 -0
  11. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/database_accounts.rb +0 -0
  12. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/capability.rb +0 -0
  13. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace.rb +0 -0
  14. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_create_update_parameters.rb +0 -0
  15. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_list_result.rb +0 -0
  16. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_resource.rb +0 -0
  17. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_partition_key.rb +0 -0
  18. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_schema.rb +0 -0
  19. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_table.rb +0 -0
  20. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_table_create_update_parameters.rb +0 -0
  21. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_table_list_result.rb +0 -0
  22. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_table_resource.rb +0 -0
  23. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cluster_key.rb +0 -0
  24. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/column.rb +0 -0
  25. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/conflict_resolution_mode.rb +0 -0
  26. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/conflict_resolution_policy.rb +0 -0
  27. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/connector_offer.rb +0 -0
  28. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/consistency_policy.rb +0 -0
  29. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/container_partition_key.rb +0 -0
  30. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/data_type.rb +0 -0
  31. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account.rb +0 -0
  32. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_connection_string.rb +0 -0
  33. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_create_update_parameters.rb +0 -0
  34. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_kind.rb +0 -0
  35. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_list_connection_strings_result.rb +0 -0
  36. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_list_keys_result.rb +0 -0
  37. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_list_read_only_keys_result.rb +0 -0
  38. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_offer_type.rb +0 -0
  39. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_patch_parameters.rb +0 -0
  40. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_regenerate_key_parameters.rb +0 -0
  41. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_accounts_list_result.rb +0 -0
  42. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/default_consistency_level.rb +0 -0
  43. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/error_response.rb +0 -0
  44. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/excluded_path.rb +0 -0
  45. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/extended_resource_properties.rb +0 -0
  46. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/failover_policies.rb +0 -0
  47. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/failover_policy.rb +0 -0
  48. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_database.rb +0 -0
  49. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_database_create_update_parameters.rb +0 -0
  50. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_database_list_result.rb +0 -0
  51. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_database_resource.rb +0 -0
  52. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_graph.rb +0 -0
  53. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_graph_create_update_parameters.rb +0 -0
  54. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_graph_list_result.rb +0 -0
  55. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_graph_resource.rb +0 -0
  56. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/included_path.rb +0 -0
  57. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/index_kind.rb +0 -0
  58. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/indexes.rb +0 -0
  59. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/indexing_mode.rb +0 -0
  60. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/indexing_policy.rb +0 -0
  61. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/key_kind.rb +0 -0
  62. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/location.rb +0 -0
  63. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric.rb +0 -0
  64. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric_availability.rb +0 -0
  65. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric_definition.rb +0 -0
  66. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric_definitions_list_result.rb +0 -0
  67. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric_list_result.rb +0 -0
  68. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric_name.rb +0 -0
  69. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric_value.rb +0 -0
  70. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection.rb +0 -0
  71. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_create_update_parameters.rb +0 -0
  72. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_list_result.rb +0 -0
  73. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_resource.rb +0 -0
  74. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase.rb +0 -0
  75. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_create_update_parameters.rb +0 -0
  76. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_list_result.rb +0 -0
  77. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_resource.rb +0 -0
  78. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_index.rb +0 -0
  79. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_index_keys.rb +0 -0
  80. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb +0 -0
  81. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/operation.rb +0 -0
  82. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/operation_display.rb +0 -0
  83. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/operation_list_result.rb +0 -0
  84. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/partition_kind.rb +0 -0
  85. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/partition_metric.rb +0 -0
  86. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/partition_metric_list_result.rb +0 -0
  87. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/partition_usage.rb +0 -0
  88. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/partition_usages_result.rb +0 -0
  89. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/percentile_metric.rb +0 -0
  90. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/percentile_metric_list_result.rb +0 -0
  91. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/percentile_metric_value.rb +0 -0
  92. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/primary_aggregation_type.rb +0 -0
  93. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/region_for_online_offline.rb +0 -0
  94. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/resource.rb +0 -0
  95. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_container.rb +0 -0
  96. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_container_create_update_parameters.rb +0 -0
  97. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_container_list_result.rb +0 -0
  98. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb +0 -0
  99. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_database.rb +0 -0
  100. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_database_create_update_parameters.rb +0 -0
  101. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_database_list_result.rb +0 -0
  102. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_database_resource.rb +0 -0
  103. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/table.rb +0 -0
  104. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/table_create_update_parameters.rb +0 -0
  105. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/table_list_result.rb +0 -0
  106. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/table_resource.rb +0 -0
  107. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/throughput.rb +0 -0
  108. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/throughput_resource.rb +0 -0
  109. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/throughput_update_parameters.rb +0 -0
  110. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/unique_key.rb +0 -0
  111. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/unique_key_policy.rb +0 -0
  112. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/unit_type.rb +0 -0
  113. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/usage.rb +0 -0
  114. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/usages_result.rb +0 -0
  115. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/virtual_network_rule.rb +0 -0
  116. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/module_definition.rb +0 -0
  117. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/operations.rb +0 -0
  118. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/partition_key_range_id.rb +0 -0
  119. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/partition_key_range_id_region.rb +0 -0
  120. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/percentile.rb +0 -0
  121. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/percentile_source_target.rb +0 -0
  122. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/percentile_target.rb +0 -0
  123. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb.rb +0 -0
  124. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/cosmos_dbmanagement_client.rb +3 -10
  125. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/models/armproxy_resource.rb +0 -0
  126. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/models/azure_entity_resource.rb +3 -1
  127. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/models/error_response.rb +0 -0
  128. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/models/private_endpoint_connection.rb +22 -0
  129. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/models/private_endpoint_connection_list_result.rb +0 -0
  130. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/models/private_endpoint_property.rb +0 -0
  131. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/models/private_link_resource.rb +20 -0
  132. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/models/private_link_resource_list_result.rb +0 -0
  133. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/models/private_link_service_connection_state_property.rb +0 -0
  134. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/models/proxy_resource.rb +4 -2
  135. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/models/resource.rb +8 -5
  136. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/models/tracked_resource.rb +4 -1
  137. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/module_definition.rb +0 -0
  138. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/private_endpoint_connections.rb +0 -0
  139. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/private_link_resources.rb +16 -6
  140. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb.rb +0 -0
  141. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/cassandra_resources.rb +0 -0
  142. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/collection.rb +0 -0
  143. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/collection_partition.rb +0 -0
  144. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/collection_partition_region.rb +0 -0
  145. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/collection_region.rb +0 -0
  146. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/cosmos_dbmanagement_client.rb +1 -1
  147. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/database.rb +0 -0
  148. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/database_account_region.rb +0 -0
  149. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/database_accounts.rb +0 -0
  150. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/gremlin_resources.rb +0 -0
  151. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/armproxy_resource.rb +0 -0
  152. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/armresource_properties.rb +0 -0
  153. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/capability.rb +0 -0
  154. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_create_update_parameters.rb +0 -0
  155. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_resource.rb +0 -0
  156. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_results.rb +0 -0
  157. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_list_result.rb +0 -0
  158. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_resource.rb +0 -0
  159. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/cassandra_partition_key.rb +0 -0
  160. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/cassandra_schema.rb +0 -0
  161. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_create_update_parameters.rb +0 -0
  162. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_resource.rb +0 -0
  163. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_results.rb +0 -0
  164. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_list_result.rb +0 -0
  165. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_resource.rb +0 -0
  166. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/cluster_key.rb +0 -0
  167. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/column.rb +0 -0
  168. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/composite_path.rb +0 -0
  169. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/composite_path_sort_order.rb +0 -0
  170. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/conflict_resolution_mode.rb +0 -0
  171. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/conflict_resolution_policy.rb +0 -0
  172. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/connector_offer.rb +0 -0
  173. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/consistency_policy.rb +0 -0
  174. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/container_partition_key.rb +0 -0
  175. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/data_type.rb +0 -0
  176. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/database_account_connection_string.rb +0 -0
  177. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/database_account_create_update_parameters.rb +0 -0
  178. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/database_account_get_results.rb +0 -0
  179. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/database_account_kind.rb +0 -0
  180. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/database_account_list_connection_strings_result.rb +0 -0
  181. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/database_account_list_keys_result.rb +0 -0
  182. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/database_account_list_read_only_keys_result.rb +0 -0
  183. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/database_account_offer_type.rb +0 -0
  184. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/database_account_regenerate_key_parameters.rb +0 -0
  185. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/database_account_update_parameters.rb +0 -0
  186. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/database_accounts_list_result.rb +0 -0
  187. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/default_consistency_level.rb +0 -0
  188. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/error_response.rb +0 -0
  189. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/excluded_path.rb +0 -0
  190. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/extended_resource_properties.rb +0 -0
  191. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/failover_policies.rb +0 -0
  192. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/failover_policy.rb +0 -0
  193. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_create_update_parameters.rb +0 -0
  194. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_resource.rb +0 -0
  195. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_results.rb +0 -0
  196. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_list_result.rb +0 -0
  197. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_resource.rb +0 -0
  198. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_create_update_parameters.rb +0 -0
  199. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_resource.rb +0 -0
  200. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_results.rb +0 -0
  201. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_list_result.rb +0 -0
  202. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_resource.rb +0 -0
  203. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/included_path.rb +0 -0
  204. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/index_kind.rb +0 -0
  205. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/indexes.rb +0 -0
  206. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/indexing_mode.rb +0 -0
  207. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/indexing_policy.rb +0 -0
  208. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/key_kind.rb +0 -0
  209. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/location.rb +0 -0
  210. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/metric.rb +0 -0
  211. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/metric_availability.rb +0 -0
  212. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/metric_definition.rb +0 -0
  213. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/metric_definitions_list_result.rb +0 -0
  214. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/metric_list_result.rb +0 -0
  215. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/metric_name.rb +0 -0
  216. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/metric_value.rb +0 -0
  217. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_create_update_parameters.rb +0 -0
  218. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_resource.rb +0 -0
  219. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_results.rb +0 -0
  220. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_list_result.rb +0 -0
  221. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_resource.rb +0 -0
  222. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_create_update_parameters.rb +0 -0
  223. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_resource.rb +0 -0
  224. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_results.rb +0 -0
  225. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_list_result.rb +0 -0
  226. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_resource.rb +0 -0
  227. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/mongo_index.rb +0 -0
  228. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/mongo_index_keys.rb +0 -0
  229. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb +0 -0
  230. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/operation.rb +0 -0
  231. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/operation_display.rb +0 -0
  232. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/operation_list_result.rb +0 -0
  233. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/partition_kind.rb +0 -0
  234. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/partition_metric.rb +0 -0
  235. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/partition_metric_list_result.rb +0 -0
  236. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/partition_usage.rb +0 -0
  237. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/partition_usages_result.rb +0 -0
  238. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/percentile_metric.rb +0 -0
  239. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/percentile_metric_list_result.rb +0 -0
  240. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/percentile_metric_value.rb +0 -0
  241. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/primary_aggregation_type.rb +0 -0
  242. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/region_for_online_offline.rb +0 -0
  243. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/spatial_spec.rb +0 -0
  244. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/spatial_type.rb +0 -0
  245. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_container_create_update_parameters.rb +0 -0
  246. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_resource.rb +0 -0
  247. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_results.rb +0 -0
  248. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_container_list_result.rb +0 -0
  249. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb +0 -0
  250. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_database_create_update_parameters.rb +0 -0
  251. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_resource.rb +0 -0
  252. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_results.rb +0 -0
  253. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_database_list_result.rb +0 -0
  254. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_database_resource.rb +0 -0
  255. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_create_update_parameters.rb +0 -0
  256. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_properties_resource.rb +0 -0
  257. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_results.rb +0 -0
  258. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_list_result.rb +0 -0
  259. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_resource.rb +0 -0
  260. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_create_update_parameters.rb +0 -0
  261. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_properties_resource.rb +0 -0
  262. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_results.rb +0 -0
  263. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_list_result.rb +0 -0
  264. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_resource.rb +0 -0
  265. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_create_update_parameters.rb +0 -0
  266. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_properties_resource.rb +0 -0
  267. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_results.rb +0 -0
  268. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_list_result.rb +0 -0
  269. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_resource.rb +0 -0
  270. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/table_create_update_parameters.rb +0 -0
  271. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/table_get_properties_resource.rb +0 -0
  272. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/table_get_results.rb +0 -0
  273. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/table_list_result.rb +0 -0
  274. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/table_resource.rb +0 -0
  275. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_properties_resource.rb +0 -0
  276. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_results.rb +0 -0
  277. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_resource.rb +0 -0
  278. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_update_parameters.rb +0 -0
  279. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/trigger_operation.rb +0 -0
  280. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/trigger_type.rb +0 -0
  281. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/unique_key.rb +0 -0
  282. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/unique_key_policy.rb +0 -0
  283. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/unit_type.rb +0 -0
  284. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/usage.rb +0 -0
  285. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/usages_result.rb +0 -0
  286. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/virtual_network_rule.rb +0 -0
  287. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/module_definition.rb +0 -0
  288. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/mongo_dbresources.rb +0 -0
  289. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/operations.rb +0 -0
  290. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/partition_key_range_id.rb +0 -0
  291. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/partition_key_range_id_region.rb +0 -0
  292. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/percentile.rb +0 -0
  293. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/percentile_source_target.rb +0 -0
  294. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/percentile_target.rb +0 -0
  295. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/sql_resources.rb +0 -0
  296. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/table_resources.rb +0 -0
  297. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb.rb +190 -0
  298. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/cassandra_resources.rb +1628 -0
  299. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/collection.rb +374 -0
  300. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/collection_partition.rb +269 -0
  301. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/collection_partition_region.rb +156 -0
  302. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/collection_region.rb +156 -0
  303. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/cosmos_dbmanagement_client.rb +210 -0
  304. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/database.rb +362 -0
  305. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/database_account_region.rb +148 -0
  306. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/database_accounts.rb +2184 -0
  307. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/gremlin_resources.rb +1623 -0
  308. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/armproxy_resource.rb +73 -0
  309. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/armresource_properties.rb +102 -0
  310. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/auto_upgrade_policy_resource.rb +48 -0
  311. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/capability.rb +48 -0
  312. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_create_update_parameters.rb +112 -0
  313. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_resource.rb +85 -0
  314. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_results.rb +98 -0
  315. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_list_result.rb +58 -0
  316. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_resource.rb +46 -0
  317. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_partition_key.rb +46 -0
  318. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_schema.rb +95 -0
  319. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_table_create_update_parameters.rb +112 -0
  320. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_resource.rb +108 -0
  321. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_results.rb +98 -0
  322. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_table_list_result.rb +58 -0
  323. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_table_resource.rb +69 -0
  324. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cluster_key.rb +58 -0
  325. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/column.rb +57 -0
  326. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/composite_path.rb +60 -0
  327. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/composite_path_sort_order.rb +16 -0
  328. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/conflict_resolution_mode.rb +16 -0
  329. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/conflict_resolution_policy.rb +73 -0
  330. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/connector_offer.rb +15 -0
  331. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/consistency_policy.rb +86 -0
  332. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/container_partition_key.rb +85 -0
  333. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/create_update_options.rb +68 -0
  334. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/data_type.rb +20 -0
  335. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_connection_string.rb +59 -0
  336. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_create_update_parameters.rb +290 -0
  337. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_get_results.rb +382 -0
  338. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_kind.rb +17 -0
  339. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_list_connection_strings_result.rb +57 -0
  340. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_list_keys_result.rb +77 -0
  341. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_list_read_only_keys_result.rb +59 -0
  342. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_offer_type.rb +15 -0
  343. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_regenerate_key_parameters.rb +47 -0
  344. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_update_parameters.rb +241 -0
  345. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_accounts_list_result.rb +58 -0
  346. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/default_consistency_level.rb +19 -0
  347. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/error_response.rb +57 -0
  348. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/excluded_path.rb +48 -0
  349. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/extended_resource_properties.rb +74 -0
  350. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/failover_policies.rb +55 -0
  351. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/failover_policy.rb +79 -0
  352. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_database_create_update_parameters.rb +112 -0
  353. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_resource.rb +85 -0
  354. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_results.rb +98 -0
  355. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_database_list_result.rb +58 -0
  356. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_database_resource.rb +46 -0
  357. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_graph_create_update_parameters.rb +112 -0
  358. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_resource.rb +150 -0
  359. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_results.rb +98 -0
  360. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_graph_list_result.rb +58 -0
  361. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_graph_resource.rb +111 -0
  362. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/included_path.rb +67 -0
  363. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/index_kind.rb +17 -0
  364. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/indexes.rb +73 -0
  365. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/indexing_mode.rb +17 -0
  366. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/indexing_policy.rb +147 -0
  367. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/key_kind.rb +18 -0
  368. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/location.rb +114 -0
  369. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric.rb +120 -0
  370. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_availability.rb +60 -0
  371. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_definition.rb +109 -0
  372. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_definitions_list_result.rb +57 -0
  373. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_list_result.rb +56 -0
  374. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_name.rb +59 -0
  375. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_value.rb +107 -0
  376. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_create_update_parameters.rb +112 -0
  377. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_resource.rb +125 -0
  378. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_results.rb +98 -0
  379. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_list_result.rb +58 -0
  380. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_resource.rb +86 -0
  381. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_create_update_parameters.rb +112 -0
  382. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_resource.rb +85 -0
  383. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_results.rb +98 -0
  384. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_list_result.rb +58 -0
  385. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_resource.rb +46 -0
  386. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_index.rb +60 -0
  387. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_index_keys.rb +55 -0
  388. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb +57 -0
  389. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/notebook_workspace.rb +87 -0
  390. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/notebook_workspace_connection_info_result.rb +60 -0
  391. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/notebook_workspace_create_update_parameters.rb +62 -0
  392. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/notebook_workspace_list_result.rb +56 -0
  393. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/operation.rb +58 -0
  394. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/operation_display.rb +80 -0
  395. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/operation_list_result.rb +101 -0
  396. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/partition_kind.rb +16 -0
  397. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/partition_metric.rb +124 -0
  398. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/partition_metric_list_result.rb +57 -0
  399. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/partition_usage.rb +105 -0
  400. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/partition_usages_result.rb +57 -0
  401. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/percentile_metric.rb +120 -0
  402. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/percentile_metric_list_result.rb +57 -0
  403. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/percentile_metric_value.rb +173 -0
  404. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/primary_aggregation_type.rb +20 -0
  405. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/provisioned_throughput_settings_resource.rb +73 -0
  406. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/region_for_online_offline.rb +47 -0
  407. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/spatial_spec.rb +67 -0
  408. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/spatial_type.rb +18 -0
  409. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_container_create_update_parameters.rb +111 -0
  410. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_resource.rb +150 -0
  411. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_container_get_results.rb +98 -0
  412. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_container_list_result.rb +58 -0
  413. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb +111 -0
  414. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_database_create_update_parameters.rb +112 -0
  415. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_resource.rb +109 -0
  416. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_database_get_results.rb +98 -0
  417. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_database_list_result.rb +58 -0
  418. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_database_resource.rb +46 -0
  419. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_create_update_parameters.rb +112 -0
  420. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_properties_resource.rb +96 -0
  421. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_results.rb +98 -0
  422. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_list_result.rb +58 -0
  423. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_resource.rb +57 -0
  424. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_trigger_create_update_parameters.rb +111 -0
  425. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_properties_resource.rb +121 -0
  426. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_results.rb +98 -0
  427. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_trigger_list_result.rb +58 -0
  428. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_trigger_resource.rb +82 -0
  429. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_create_update_parameters.rb +113 -0
  430. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_properties_resource.rb +97 -0
  431. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_results.rb +98 -0
  432. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_list_result.rb +58 -0
  433. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_resource.rb +57 -0
  434. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/table_create_update_parameters.rb +111 -0
  435. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/table_get_properties_resource.rb +85 -0
  436. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/table_get_results.rb +98 -0
  437. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/table_list_result.rb +57 -0
  438. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/table_resource.rb +46 -0
  439. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/throughput_policy_resource.rb +59 -0
  440. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_properties_resource.rb +125 -0
  441. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_results.rb +98 -0
  442. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/throughput_settings_resource.rb +87 -0
  443. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/throughput_settings_update_parameters.rb +99 -0
  444. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/trigger_operation.rb +19 -0
  445. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/trigger_type.rb +16 -0
  446. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/unique_key.rb +56 -0
  447. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/unique_key_policy.rb +58 -0
  448. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/unit_type.rb +21 -0
  449. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/usage.rb +97 -0
  450. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/usages_result.rb +57 -0
  451. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/virtual_network_rule.rb +59 -0
  452. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/module_definition.rb +9 -0
  453. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/mongo_dbresources.rb +1634 -0
  454. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb +905 -0
  455. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/operations.rb +219 -0
  456. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/partition_key_range_id.rb +156 -0
  457. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/partition_key_range_id_region.rb +163 -0
  458. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/percentile.rb +141 -0
  459. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/percentile_source_target.rb +158 -0
  460. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/percentile_target.rb +148 -0
  461. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/sql_resources.rb +3289 -0
  462. data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/table_resources.rb +804 -0
  463. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb.rb +208 -0
  464. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/cassandra_resources.rb +1700 -0
  465. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/collection.rb +389 -0
  466. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/collection_partition.rb +279 -0
  467. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/collection_partition_region.rb +161 -0
  468. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/collection_region.rb +161 -0
  469. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/cosmos_dbmanagement_client.rb +203 -0
  470. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/database.rb +377 -0
  471. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/database_account_region.rb +153 -0
  472. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/database_accounts.rb +2281 -0
  473. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/gremlin_resources.rb +1695 -0
  474. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/armproxy_resource.rb +73 -0
  475. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/armresource_properties.rb +102 -0
  476. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/auto_upgrade_policy_resource.rb +48 -0
  477. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/azure_entity_resource.rb +75 -0
  478. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/capability.rb +48 -0
  479. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_create_update_parameters.rb +112 -0
  480. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_options.rb +44 -0
  481. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_resource.rb +85 -0
  482. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_results.rb +110 -0
  483. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_list_result.rb +58 -0
  484. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_resource.rb +46 -0
  485. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_partition_key.rb +46 -0
  486. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_schema.rb +95 -0
  487. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_create_update_parameters.rb +112 -0
  488. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_options.rb +44 -0
  489. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_resource.rb +108 -0
  490. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_results.rb +110 -0
  491. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_list_result.rb +58 -0
  492. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_resource.rb +69 -0
  493. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cluster_key.rb +58 -0
  494. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/column.rb +57 -0
  495. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/composite_path.rb +60 -0
  496. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/composite_path_sort_order.rb +16 -0
  497. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/conflict_resolution_mode.rb +16 -0
  498. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/conflict_resolution_policy.rb +73 -0
  499. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/connector_offer.rb +15 -0
  500. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/consistency_policy.rb +86 -0
  501. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/container_partition_key.rb +85 -0
  502. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/create_update_options.rb +68 -0
  503. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/data_type.rb +20 -0
  504. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_connection_string.rb +59 -0
  505. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_create_update_parameters.rb +302 -0
  506. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_get_results.rb +416 -0
  507. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_kind.rb +17 -0
  508. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_list_connection_strings_result.rb +57 -0
  509. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_list_keys_result.rb +77 -0
  510. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_list_read_only_keys_result.rb +59 -0
  511. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_offer_type.rb +15 -0
  512. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_regenerate_key_parameters.rb +47 -0
  513. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_update_parameters.rb +253 -0
  514. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_accounts_list_result.rb +58 -0
  515. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/default_consistency_level.rb +19 -0
  516. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/error_response.rb +57 -0
  517. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/excluded_path.rb +48 -0
  518. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/extended_resource_properties.rb +74 -0
  519. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/failover_policies.rb +55 -0
  520. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/failover_policy.rb +79 -0
  521. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_create_update_parameters.rb +112 -0
  522. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_options.rb +44 -0
  523. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_resource.rb +85 -0
  524. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_results.rb +110 -0
  525. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_list_result.rb +58 -0
  526. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_resource.rb +46 -0
  527. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_create_update_parameters.rb +112 -0
  528. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_options.rb +44 -0
  529. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_resource.rb +150 -0
  530. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_results.rb +110 -0
  531. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_list_result.rb +58 -0
  532. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_resource.rb +111 -0
  533. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/included_path.rb +67 -0
  534. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/index_kind.rb +17 -0
  535. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/indexes.rb +73 -0
  536. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/indexing_mode.rb +17 -0
  537. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/indexing_policy.rb +147 -0
  538. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/key_kind.rb +18 -0
  539. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/location.rb +114 -0
  540. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/metric.rb +120 -0
  541. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/metric_availability.rb +60 -0
  542. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/metric_definition.rb +109 -0
  543. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/metric_definitions_list_result.rb +57 -0
  544. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/metric_list_result.rb +56 -0
  545. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/metric_name.rb +59 -0
  546. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/metric_value.rb +107 -0
  547. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_create_update_parameters.rb +112 -0
  548. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_options.rb +44 -0
  549. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_resource.rb +125 -0
  550. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_results.rb +110 -0
  551. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_list_result.rb +58 -0
  552. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_resource.rb +86 -0
  553. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_create_update_parameters.rb +112 -0
  554. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_options.rb +44 -0
  555. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_resource.rb +85 -0
  556. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_results.rb +110 -0
  557. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_list_result.rb +58 -0
  558. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_resource.rb +46 -0
  559. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_index.rb +60 -0
  560. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_index_keys.rb +55 -0
  561. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb +57 -0
  562. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace.rb +87 -0
  563. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_connection_info_result.rb +60 -0
  564. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_create_update_parameters.rb +62 -0
  565. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_list_result.rb +56 -0
  566. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/operation.rb +58 -0
  567. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/operation_display.rb +80 -0
  568. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/operation_list_result.rb +101 -0
  569. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/options_resource.rb +47 -0
  570. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/partition_kind.rb +16 -0
  571. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/partition_metric.rb +124 -0
  572. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/partition_metric_list_result.rb +57 -0
  573. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/partition_usage.rb +105 -0
  574. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/partition_usages_result.rb +57 -0
  575. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/percentile_metric.rb +120 -0
  576. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/percentile_metric_list_result.rb +57 -0
  577. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/percentile_metric_value.rb +173 -0
  578. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/primary_aggregation_type.rb +20 -0
  579. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/private_endpoint_connection.rb +88 -0
  580. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/private_endpoint_property.rb +46 -0
  581. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/private_link_service_connection_state_property.rb +60 -0
  582. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/provisioned_throughput_settings_resource.rb +73 -0
  583. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/proxy_resource.rb +63 -0
  584. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/public_network_access.rb +16 -0
  585. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/region_for_online_offline.rb +47 -0
  586. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/resource.rb +83 -0
  587. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/spatial_spec.rb +67 -0
  588. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/spatial_type.rb +18 -0
  589. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_container_create_update_parameters.rb +111 -0
  590. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_options.rb +44 -0
  591. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_resource.rb +150 -0
  592. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_results.rb +110 -0
  593. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_container_list_result.rb +58 -0
  594. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb +111 -0
  595. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_database_create_update_parameters.rb +112 -0
  596. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_options.rb +44 -0
  597. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_resource.rb +109 -0
  598. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_results.rb +110 -0
  599. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_database_list_result.rb +58 -0
  600. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_database_resource.rb +46 -0
  601. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_create_update_parameters.rb +112 -0
  602. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_properties_resource.rb +96 -0
  603. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_results.rb +98 -0
  604. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_list_result.rb +58 -0
  605. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_resource.rb +57 -0
  606. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_create_update_parameters.rb +111 -0
  607. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_properties_resource.rb +121 -0
  608. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_results.rb +98 -0
  609. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_list_result.rb +58 -0
  610. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_resource.rb +82 -0
  611. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_create_update_parameters.rb +113 -0
  612. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_properties_resource.rb +97 -0
  613. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_results.rb +98 -0
  614. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_list_result.rb +58 -0
  615. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_resource.rb +57 -0
  616. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/table_create_update_parameters.rb +111 -0
  617. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/table_get_properties_options.rb +44 -0
  618. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/table_get_properties_resource.rb +85 -0
  619. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/table_get_results.rb +110 -0
  620. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/table_list_result.rb +57 -0
  621. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/table_resource.rb +46 -0
  622. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/throughput_policy_resource.rb +59 -0
  623. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_properties_resource.rb +125 -0
  624. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_results.rb +98 -0
  625. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_resource.rb +87 -0
  626. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_update_parameters.rb +99 -0
  627. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/tracked_resource.rb +92 -0
  628. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/trigger_operation.rb +19 -0
  629. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/trigger_type.rb +16 -0
  630. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/unique_key.rb +56 -0
  631. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/unique_key_policy.rb +58 -0
  632. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/unit_type.rb +21 -0
  633. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/usage.rb +97 -0
  634. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/usages_result.rb +57 -0
  635. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/virtual_network_rule.rb +59 -0
  636. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/module_definition.rb +9 -0
  637. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/mongo_dbresources.rb +1706 -0
  638. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb +906 -0
  639. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/operations.rb +220 -0
  640. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/partition_key_range_id.rb +161 -0
  641. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/partition_key_range_id_region.rb +168 -0
  642. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/percentile.rb +146 -0
  643. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/percentile_source_target.rb +163 -0
  644. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/percentile_target.rb +153 -0
  645. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/sql_resources.rb +3433 -0
  646. data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/table_resources.rb +840 -0
  647. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb.rb +213 -0
  648. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/cassandra_resources.rb +2348 -0
  649. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/collection.rb +389 -0
  650. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/collection_partition.rb +279 -0
  651. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/collection_partition_region.rb +161 -0
  652. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/collection_region.rb +161 -0
  653. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/cosmos_dbmanagement_client.rb +203 -0
  654. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/database.rb +377 -0
  655. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/database_account_region.rb +153 -0
  656. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/database_accounts.rb +2281 -0
  657. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/gremlin_resources.rb +2335 -0
  658. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/api_properties.rb +48 -0
  659. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/armproxy_resource.rb +73 -0
  660. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/armresource_properties.rb +102 -0
  661. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/auto_upgrade_policy_resource.rb +48 -0
  662. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/autoscale_settings.rb +48 -0
  663. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/autoscale_settings_resource.rb +73 -0
  664. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/azure_entity_resource.rb +75 -0
  665. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/capability.rb +48 -0
  666. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_create_update_parameters.rb +112 -0
  667. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_options.rb +53 -0
  668. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_resource.rb +85 -0
  669. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_results.rb +110 -0
  670. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_list_result.rb +58 -0
  671. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_resource.rb +46 -0
  672. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_partition_key.rb +46 -0
  673. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_schema.rb +95 -0
  674. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_create_update_parameters.rb +112 -0
  675. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_options.rb +53 -0
  676. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_resource.rb +119 -0
  677. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_results.rb +110 -0
  678. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_list_result.rb +58 -0
  679. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_resource.rb +80 -0
  680. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cluster_key.rb +58 -0
  681. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/column.rb +57 -0
  682. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/composite_path.rb +60 -0
  683. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/composite_path_sort_order.rb +16 -0
  684. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/conflict_resolution_mode.rb +16 -0
  685. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/conflict_resolution_policy.rb +73 -0
  686. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/connector_offer.rb +15 -0
  687. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/consistency_policy.rb +86 -0
  688. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/container_partition_key.rb +85 -0
  689. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cors_policy.rb +99 -0
  690. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/create_update_options.rb +61 -0
  691. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/data_type.rb +20 -0
  692. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_connection_string.rb +59 -0
  693. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_create_update_parameters.rb +363 -0
  694. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_get_results.rb +476 -0
  695. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_kind.rb +17 -0
  696. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_list_connection_strings_result.rb +57 -0
  697. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_list_keys_result.rb +77 -0
  698. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_list_read_only_keys_result.rb +59 -0
  699. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_offer_type.rb +15 -0
  700. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_regenerate_key_parameters.rb +47 -0
  701. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_update_parameters.rb +314 -0
  702. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_accounts_list_result.rb +58 -0
  703. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/default_consistency_level.rb +19 -0
  704. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/error_response.rb +57 -0
  705. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/excluded_path.rb +48 -0
  706. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/extended_resource_properties.rb +74 -0
  707. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/failover_policies.rb +55 -0
  708. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/failover_policy.rb +79 -0
  709. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_create_update_parameters.rb +112 -0
  710. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_options.rb +53 -0
  711. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_resource.rb +85 -0
  712. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_results.rb +110 -0
  713. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_list_result.rb +58 -0
  714. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_resource.rb +46 -0
  715. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_create_update_parameters.rb +112 -0
  716. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_options.rb +53 -0
  717. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_resource.rb +150 -0
  718. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_results.rb +110 -0
  719. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_list_result.rb +58 -0
  720. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_resource.rb +111 -0
  721. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/included_path.rb +67 -0
  722. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/index_kind.rb +17 -0
  723. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/indexes.rb +73 -0
  724. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/indexing_mode.rb +17 -0
  725. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/indexing_policy.rb +147 -0
  726. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/ip_address_or_range.rb +51 -0
  727. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/key_kind.rb +18 -0
  728. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/location.rb +114 -0
  729. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/metric.rb +120 -0
  730. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/metric_availability.rb +60 -0
  731. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/metric_definition.rb +109 -0
  732. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/metric_definitions_list_result.rb +57 -0
  733. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/metric_list_result.rb +56 -0
  734. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/metric_name.rb +59 -0
  735. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/metric_value.rb +107 -0
  736. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_create_update_parameters.rb +112 -0
  737. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_options.rb +53 -0
  738. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_resource.rb +136 -0
  739. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_results.rb +110 -0
  740. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_list_result.rb +58 -0
  741. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_resource.rb +97 -0
  742. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_create_update_parameters.rb +112 -0
  743. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_options.rb +53 -0
  744. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_resource.rb +85 -0
  745. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_results.rb +110 -0
  746. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_list_result.rb +58 -0
  747. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_resource.rb +46 -0
  748. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_index.rb +60 -0
  749. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_index_keys.rb +55 -0
  750. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb +57 -0
  751. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace.rb +87 -0
  752. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_connection_info_result.rb +60 -0
  753. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_create_update_parameters.rb +62 -0
  754. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_list_result.rb +56 -0
  755. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/operation.rb +58 -0
  756. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/operation_display.rb +80 -0
  757. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/operation_list_result.rb +101 -0
  758. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/options_resource.rb +60 -0
  759. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/partition_kind.rb +16 -0
  760. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/partition_metric.rb +124 -0
  761. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/partition_metric_list_result.rb +57 -0
  762. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/partition_usage.rb +105 -0
  763. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/partition_usages_result.rb +57 -0
  764. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/percentile_metric.rb +120 -0
  765. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/percentile_metric_list_result.rb +57 -0
  766. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/percentile_metric_value.rb +173 -0
  767. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/primary_aggregation_type.rb +20 -0
  768. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/private_endpoint_connection.rb +88 -0
  769. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/private_endpoint_property.rb +46 -0
  770. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/private_link_service_connection_state_property.rb +60 -0
  771. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/proxy_resource.rb +63 -0
  772. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/public_network_access.rb +16 -0
  773. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/region_for_online_offline.rb +47 -0
  774. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/resource.rb +83 -0
  775. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/server_version.rb +16 -0
  776. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/spatial_spec.rb +67 -0
  777. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/spatial_type.rb +18 -0
  778. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_container_create_update_parameters.rb +111 -0
  779. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_options.rb +53 -0
  780. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_resource.rb +161 -0
  781. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_results.rb +110 -0
  782. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_container_list_result.rb +58 -0
  783. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb +122 -0
  784. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_database_create_update_parameters.rb +112 -0
  785. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_options.rb +53 -0
  786. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_resource.rb +109 -0
  787. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_results.rb +110 -0
  788. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_database_list_result.rb +58 -0
  789. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_database_resource.rb +46 -0
  790. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_create_update_parameters.rb +112 -0
  791. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_properties_resource.rb +96 -0
  792. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_results.rb +98 -0
  793. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_list_result.rb +58 -0
  794. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_resource.rb +57 -0
  795. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_create_update_parameters.rb +111 -0
  796. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_properties_resource.rb +121 -0
  797. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_results.rb +98 -0
  798. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_list_result.rb +58 -0
  799. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_resource.rb +82 -0
  800. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_create_update_parameters.rb +113 -0
  801. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_properties_resource.rb +97 -0
  802. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_results.rb +98 -0
  803. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_list_result.rb +58 -0
  804. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_resource.rb +57 -0
  805. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/table_create_update_parameters.rb +111 -0
  806. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/table_get_properties_options.rb +53 -0
  807. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/table_get_properties_resource.rb +85 -0
  808. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/table_get_results.rb +110 -0
  809. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/table_list_result.rb +57 -0
  810. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/table_resource.rb +46 -0
  811. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/throughput_policy_resource.rb +59 -0
  812. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_properties_resource.rb +124 -0
  813. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_results.rb +98 -0
  814. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_resource.rb +86 -0
  815. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_update_parameters.rb +99 -0
  816. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/tracked_resource.rb +92 -0
  817. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/trigger_operation.rb +19 -0
  818. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/trigger_type.rb +16 -0
  819. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/unique_key.rb +56 -0
  820. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/unique_key_policy.rb +58 -0
  821. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/unit_type.rb +21 -0
  822. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/usage.rb +97 -0
  823. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/usages_result.rb +57 -0
  824. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/virtual_network_rule.rb +59 -0
  825. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/module_definition.rb +9 -0
  826. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/mongo_dbresources.rb +2354 -0
  827. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb +905 -0
  828. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/operations.rb +220 -0
  829. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/partition_key_range_id.rb +161 -0
  830. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/partition_key_range_id_region.rb +168 -0
  831. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/percentile.rb +146 -0
  832. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/percentile_source_target.rb +163 -0
  833. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/percentile_target.rb +153 -0
  834. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/sql_resources.rb +4065 -0
  835. data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/table_resources.rb +1150 -0
  836. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb.rb +267 -0
  837. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/cassandra_resources.rb +1700 -0
  838. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/collection.rb +389 -0
  839. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/collection_partition.rb +279 -0
  840. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/collection_partition_region.rb +161 -0
  841. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/collection_region.rb +161 -0
  842. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/cosmos_dbmanagement_client.rb +231 -0
  843. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/database.rb +377 -0
  844. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/database_account_region.rb +153 -0
  845. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/database_accounts.rb +2281 -0
  846. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/gremlin_resources.rb +1695 -0
  847. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/api_properties.rb +48 -0
  848. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/api_type.rb +20 -0
  849. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/armproxy_resource.rb +73 -0
  850. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/armresource_properties.rb +114 -0
  851. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/auto_upgrade_policy_resource.rb +48 -0
  852. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/autoscale_settings.rb +48 -0
  853. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/autoscale_settings_resource.rb +73 -0
  854. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/azure_entity_resource.rb +77 -0
  855. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/backup_policy.rb +47 -0
  856. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/backup_storage_redundancy.rb +17 -0
  857. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/capability.rb +48 -0
  858. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_create_update_parameters.rb +121 -0
  859. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_options.rb +53 -0
  860. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_resource.rb +85 -0
  861. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_results.rb +119 -0
  862. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_list_result.rb +58 -0
  863. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_resource.rb +46 -0
  864. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_partition_key.rb +46 -0
  865. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_schema.rb +95 -0
  866. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_table_create_update_parameters.rb +121 -0
  867. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_options.rb +53 -0
  868. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_resource.rb +119 -0
  869. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_results.rb +119 -0
  870. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_table_list_result.rb +58 -0
  871. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_table_resource.rb +80 -0
  872. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cluster_key.rb +58 -0
  873. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/column.rb +57 -0
  874. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/composite_path.rb +60 -0
  875. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/composite_path_sort_order.rb +16 -0
  876. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/conflict_resolution_mode.rb +16 -0
  877. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/conflict_resolution_policy.rb +73 -0
  878. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/connector_offer.rb +15 -0
  879. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/consistency_policy.rb +86 -0
  880. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/container_partition_key.rb +85 -0
  881. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/continuous_mode_backup_policy.rb +50 -0
  882. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cors_policy.rb +99 -0
  883. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/create_mode.rb +16 -0
  884. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/create_update_options.rb +61 -0
  885. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/created_by_type.rb +18 -0
  886. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/data_type.rb +20 -0
  887. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_connection_string.rb +59 -0
  888. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_create_update_parameters.rb +125 -0
  889. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_create_update_properties.rb +324 -0
  890. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_get_results.rb +552 -0
  891. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_kind.rb +17 -0
  892. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_list_connection_strings_result.rb +57 -0
  893. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_list_keys_result.rb +77 -0
  894. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_list_read_only_keys_result.rb +59 -0
  895. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_offer_type.rb +15 -0
  896. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_regenerate_key_parameters.rb +47 -0
  897. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_update_parameters.rb +341 -0
  898. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_accounts_list_result.rb +58 -0
  899. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_restore_resource.rb +66 -0
  900. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/default_consistency_level.rb +19 -0
  901. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/default_error_response.rb +47 -0
  902. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/default_request_database_account_create_update_properties.rb +255 -0
  903. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/error_response.rb +57 -0
  904. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/excluded_path.rb +48 -0
  905. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/extended_resource_properties.rb +74 -0
  906. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/failover_policies.rb +55 -0
  907. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/failover_policy.rb +79 -0
  908. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_database_create_update_parameters.rb +121 -0
  909. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_options.rb +53 -0
  910. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_resource.rb +85 -0
  911. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_results.rb +119 -0
  912. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_database_list_result.rb +58 -0
  913. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_database_resource.rb +46 -0
  914. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_graph_create_update_parameters.rb +121 -0
  915. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_options.rb +53 -0
  916. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_resource.rb +150 -0
  917. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_results.rb +119 -0
  918. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_graph_list_result.rb +58 -0
  919. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_graph_resource.rb +111 -0
  920. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/included_path.rb +67 -0
  921. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/index_kind.rb +17 -0
  922. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/indexes.rb +73 -0
  923. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/indexing_mode.rb +17 -0
  924. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/indexing_policy.rb +147 -0
  925. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/ip_address_or_range.rb +51 -0
  926. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/key_kind.rb +18 -0
  927. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/location.rb +114 -0
  928. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/managed_service_identity.rb +102 -0
  929. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/managed_service_identity_user_assigned_identities_value.rb +61 -0
  930. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/metric.rb +120 -0
  931. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/metric_availability.rb +60 -0
  932. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/metric_definition.rb +109 -0
  933. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/metric_definitions_list_result.rb +57 -0
  934. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/metric_list_result.rb +56 -0
  935. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/metric_name.rb +59 -0
  936. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/metric_value.rb +107 -0
  937. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_create_update_parameters.rb +121 -0
  938. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_options.rb +53 -0
  939. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_resource.rb +136 -0
  940. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_results.rb +119 -0
  941. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_list_result.rb +58 -0
  942. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_resource.rb +97 -0
  943. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_create_update_parameters.rb +121 -0
  944. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_options.rb +53 -0
  945. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_resource.rb +85 -0
  946. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_results.rb +119 -0
  947. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_list_result.rb +58 -0
  948. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_resource.rb +46 -0
  949. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_index.rb +60 -0
  950. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_index_keys.rb +55 -0
  951. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb +57 -0
  952. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/notebook_workspace.rb +87 -0
  953. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/notebook_workspace_connection_info_result.rb +60 -0
  954. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/notebook_workspace_create_update_parameters.rb +62 -0
  955. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/notebook_workspace_list_result.rb +56 -0
  956. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/operation.rb +58 -0
  957. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/operation_display.rb +80 -0
  958. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/operation_list_result.rb +101 -0
  959. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/operation_type.rb +18 -0
  960. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/options_resource.rb +60 -0
  961. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/partition_kind.rb +16 -0
  962. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/partition_metric.rb +124 -0
  963. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/partition_metric_list_result.rb +57 -0
  964. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/partition_usage.rb +105 -0
  965. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/partition_usages_result.rb +57 -0
  966. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/percentile_metric.rb +120 -0
  967. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/percentile_metric_list_result.rb +57 -0
  968. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/percentile_metric_value.rb +173 -0
  969. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/periodic_mode_backup_policy.rb +63 -0
  970. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/periodic_mode_properties.rb +77 -0
  971. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/permission.rb +73 -0
  972. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/primary_aggregation_type.rb +20 -0
  973. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/private_endpoint_connection.rb +88 -0
  974. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/private_endpoint_property.rb +46 -0
  975. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/private_link_service_connection_state_property.rb +60 -0
  976. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/proxy_resource.rb +65 -0
  977. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/public_network_access.rb +16 -0
  978. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/region_for_online_offline.rb +47 -0
  979. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/resource.rb +86 -0
  980. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/resource_identity_type.rb +18 -0
  981. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_database_account_get_result.rb +166 -0
  982. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_database_accounts_list_result.rb +58 -0
  983. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_location_resource.rb +85 -0
  984. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_mongodb_collection_get_result.rb +107 -0
  985. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_mongodb_collection_properties_resource.rb +99 -0
  986. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_mongodb_collections_list_result.rb +58 -0
  987. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_mongodb_database_get_result.rb +107 -0
  988. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_mongodb_database_properties_resource.rb +99 -0
  989. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_mongodb_databases_list_result.rb +58 -0
  990. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_mongodb_resources_list_result.rb +58 -0
  991. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_sql_container_get_result.rb +107 -0
  992. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_sql_container_properties_resource.rb +110 -0
  993. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_sql_container_properties_resource_container.rb +164 -0
  994. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_sql_containers_list_result.rb +58 -0
  995. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_sql_database_get_result.rb +107 -0
  996. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_sql_database_properties_resource.rb +110 -0
  997. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_sql_database_properties_resource_database.rb +125 -0
  998. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_sql_databases_list_result.rb +58 -0
  999. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_sql_resources_list_result.rb +57 -0
  1000. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restore_mode.rb +15 -0
  1001. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restore_parameters.rb +93 -0
  1002. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restore_reqeust_database_account_create_update_properties.rb +268 -0
  1003. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/role_definition_type.rb +16 -0
  1004. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/server_version.rb +16 -0
  1005. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/spatial_spec.rb +67 -0
  1006. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/spatial_type.rb +18 -0
  1007. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_container_create_update_parameters.rb +120 -0
  1008. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_options.rb +53 -0
  1009. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_resource.rb +150 -0
  1010. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_container_get_results.rb +119 -0
  1011. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_container_list_result.rb +58 -0
  1012. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb +111 -0
  1013. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_database_create_update_parameters.rb +121 -0
  1014. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_options.rb +53 -0
  1015. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_resource.rb +109 -0
  1016. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_database_get_results.rb +119 -0
  1017. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_database_list_result.rb +58 -0
  1018. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_database_resource.rb +46 -0
  1019. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_role_assignment_create_update_parameters.rb +73 -0
  1020. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_role_assignment_get_results.rb +100 -0
  1021. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_role_assignment_list_result.rb +57 -0
  1022. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_role_definition_create_update_parameters.rb +107 -0
  1023. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_role_definition_get_results.rb +134 -0
  1024. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_role_definition_list_result.rb +57 -0
  1025. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_create_update_parameters.rb +121 -0
  1026. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_properties_resource.rb +96 -0
  1027. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_results.rb +107 -0
  1028. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_list_result.rb +58 -0
  1029. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_resource.rb +57 -0
  1030. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_trigger_create_update_parameters.rb +120 -0
  1031. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_properties_resource.rb +121 -0
  1032. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_results.rb +107 -0
  1033. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_trigger_list_result.rb +58 -0
  1034. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_trigger_resource.rb +82 -0
  1035. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_create_update_parameters.rb +122 -0
  1036. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_properties_resource.rb +97 -0
  1037. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_results.rb +107 -0
  1038. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_list_result.rb +58 -0
  1039. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_resource.rb +57 -0
  1040. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/system_data.rb +106 -0
  1041. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/table_create_update_parameters.rb +120 -0
  1042. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/table_get_properties_options.rb +53 -0
  1043. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/table_get_properties_resource.rb +85 -0
  1044. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/table_get_results.rb +119 -0
  1045. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/table_list_result.rb +57 -0
  1046. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/table_resource.rb +46 -0
  1047. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/throughput_policy_resource.rb +59 -0
  1048. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_properties_resource.rb +124 -0
  1049. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_results.rb +107 -0
  1050. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/throughput_settings_resource.rb +86 -0
  1051. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/throughput_settings_update_parameters.rb +108 -0
  1052. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/tracked_resource.rb +95 -0
  1053. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/trigger_operation.rb +19 -0
  1054. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/trigger_type.rb +16 -0
  1055. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/unique_key.rb +56 -0
  1056. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/unique_key_policy.rb +58 -0
  1057. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/unit_type.rb +21 -0
  1058. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/usage.rb +97 -0
  1059. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/usages_result.rb +57 -0
  1060. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/virtual_network_rule.rb +59 -0
  1061. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/module_definition.rb +9 -0
  1062. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/mongo_dbresources.rb +1706 -0
  1063. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb +905 -0
  1064. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/operations.rb +220 -0
  1065. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/partition_key_range_id.rb +161 -0
  1066. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/partition_key_range_id_region.rb +168 -0
  1067. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/percentile.rb +146 -0
  1068. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/percentile_source_target.rb +163 -0
  1069. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/percentile_target.rb +153 -0
  1070. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/restorable_database_accounts.rb +319 -0
  1071. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/restorable_mongodb_collections.rb +136 -0
  1072. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/restorable_mongodb_databases.rb +130 -0
  1073. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/restorable_mongodb_resources.rb +142 -0
  1074. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/restorable_sql_containers.rb +136 -0
  1075. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/restorable_sql_databases.rb +130 -0
  1076. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/restorable_sql_resources.rb +142 -0
  1077. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/sql_resources.rb +4503 -0
  1078. data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/table_resources.rb +840 -0
  1079. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb.rb +219 -0
  1080. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/cassandra_resources.rb +2348 -0
  1081. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/collection.rb +389 -0
  1082. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/collection_partition.rb +279 -0
  1083. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/collection_partition_region.rb +161 -0
  1084. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/collection_region.rb +161 -0
  1085. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/cosmos_dbmanagement_client.rb +203 -0
  1086. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/database.rb +377 -0
  1087. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/database_account_region.rb +153 -0
  1088. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/database_accounts.rb +2281 -0
  1089. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/gremlin_resources.rb +2335 -0
  1090. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/api_properties.rb +48 -0
  1091. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/armproxy_resource.rb +73 -0
  1092. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/armresource_properties.rb +102 -0
  1093. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/auto_upgrade_policy_resource.rb +48 -0
  1094. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/autoscale_settings.rb +48 -0
  1095. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/autoscale_settings_resource.rb +73 -0
  1096. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/azure_entity_resource.rb +77 -0
  1097. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/backup_policy.rb +47 -0
  1098. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/backup_policy_type.rb +16 -0
  1099. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/capability.rb +48 -0
  1100. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_create_update_parameters.rb +112 -0
  1101. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_options.rb +53 -0
  1102. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_resource.rb +85 -0
  1103. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_results.rb +110 -0
  1104. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_list_result.rb +58 -0
  1105. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_resource.rb +46 -0
  1106. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_partition_key.rb +46 -0
  1107. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_schema.rb +95 -0
  1108. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_create_update_parameters.rb +112 -0
  1109. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_options.rb +53 -0
  1110. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_resource.rb +119 -0
  1111. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_results.rb +110 -0
  1112. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_list_result.rb +58 -0
  1113. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_resource.rb +80 -0
  1114. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cluster_key.rb +58 -0
  1115. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/column.rb +57 -0
  1116. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/composite_path.rb +60 -0
  1117. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/composite_path_sort_order.rb +16 -0
  1118. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/conflict_resolution_mode.rb +16 -0
  1119. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/conflict_resolution_policy.rb +73 -0
  1120. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/connector_offer.rb +15 -0
  1121. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/consistency_policy.rb +86 -0
  1122. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/container_partition_key.rb +85 -0
  1123. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/continuous_mode_backup_policy.rb +50 -0
  1124. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cors_policy.rb +99 -0
  1125. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/create_update_options.rb +61 -0
  1126. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/data_type.rb +20 -0
  1127. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_account_connection_string.rb +59 -0
  1128. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_account_create_update_parameters.rb +378 -0
  1129. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_account_get_results.rb +491 -0
  1130. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_account_kind.rb +17 -0
  1131. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_account_list_connection_strings_result.rb +57 -0
  1132. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_account_list_keys_result.rb +77 -0
  1133. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_account_list_read_only_keys_result.rb +59 -0
  1134. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_account_offer_type.rb +15 -0
  1135. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_account_regenerate_key_parameters.rb +47 -0
  1136. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_account_update_parameters.rb +329 -0
  1137. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_accounts_list_result.rb +58 -0
  1138. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/default_consistency_level.rb +19 -0
  1139. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/error_response.rb +57 -0
  1140. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/error_response_updated_format.rb +47 -0
  1141. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/excluded_path.rb +48 -0
  1142. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/extended_resource_properties.rb +74 -0
  1143. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/failover_policies.rb +55 -0
  1144. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/failover_policy.rb +79 -0
  1145. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_create_update_parameters.rb +112 -0
  1146. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_options.rb +53 -0
  1147. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_resource.rb +85 -0
  1148. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_results.rb +110 -0
  1149. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_list_result.rb +58 -0
  1150. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_resource.rb +46 -0
  1151. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_create_update_parameters.rb +112 -0
  1152. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_options.rb +53 -0
  1153. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_resource.rb +150 -0
  1154. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_results.rb +110 -0
  1155. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_list_result.rb +58 -0
  1156. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_resource.rb +111 -0
  1157. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/included_path.rb +67 -0
  1158. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/index_kind.rb +17 -0
  1159. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/indexes.rb +73 -0
  1160. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/indexing_mode.rb +17 -0
  1161. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/indexing_policy.rb +147 -0
  1162. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/ip_address_or_range.rb +51 -0
  1163. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/key_kind.rb +18 -0
  1164. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/location.rb +114 -0
  1165. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/metric.rb +120 -0
  1166. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/metric_availability.rb +60 -0
  1167. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/metric_definition.rb +109 -0
  1168. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/metric_definitions_list_result.rb +57 -0
  1169. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/metric_list_result.rb +56 -0
  1170. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/metric_name.rb +59 -0
  1171. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/metric_value.rb +107 -0
  1172. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_create_update_parameters.rb +112 -0
  1173. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_options.rb +53 -0
  1174. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_resource.rb +136 -0
  1175. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_results.rb +110 -0
  1176. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_list_result.rb +58 -0
  1177. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_resource.rb +97 -0
  1178. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_create_update_parameters.rb +112 -0
  1179. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_options.rb +53 -0
  1180. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_resource.rb +85 -0
  1181. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_results.rb +110 -0
  1182. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_list_result.rb +58 -0
  1183. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_resource.rb +46 -0
  1184. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_index.rb +60 -0
  1185. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_index_keys.rb +55 -0
  1186. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb +57 -0
  1187. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace.rb +87 -0
  1188. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_connection_info_result.rb +60 -0
  1189. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_create_update_parameters.rb +62 -0
  1190. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_list_result.rb +56 -0
  1191. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/operation.rb +58 -0
  1192. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/operation_display.rb +80 -0
  1193. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/operation_list_result.rb +101 -0
  1194. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/options_resource.rb +60 -0
  1195. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/partition_kind.rb +16 -0
  1196. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/partition_metric.rb +124 -0
  1197. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/partition_metric_list_result.rb +57 -0
  1198. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/partition_usage.rb +105 -0
  1199. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/partition_usages_result.rb +57 -0
  1200. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/percentile_metric.rb +120 -0
  1201. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/percentile_metric_list_result.rb +57 -0
  1202. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/percentile_metric_value.rb +173 -0
  1203. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/periodic_mode_backup_policy.rb +63 -0
  1204. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/periodic_mode_properties.rb +65 -0
  1205. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/primary_aggregation_type.rb +20 -0
  1206. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/private_endpoint_connection.rb +88 -0
  1207. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/private_endpoint_property.rb +46 -0
  1208. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/private_link_service_connection_state_property.rb +60 -0
  1209. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/proxy_resource.rb +65 -0
  1210. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/public_network_access.rb +16 -0
  1211. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/region_for_online_offline.rb +47 -0
  1212. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/resource.rb +86 -0
  1213. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/server_version.rb +16 -0
  1214. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/spatial_spec.rb +67 -0
  1215. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/spatial_type.rb +18 -0
  1216. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_container_create_update_parameters.rb +111 -0
  1217. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_options.rb +53 -0
  1218. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_resource.rb +161 -0
  1219. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_results.rb +110 -0
  1220. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_container_list_result.rb +58 -0
  1221. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb +122 -0
  1222. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_database_create_update_parameters.rb +112 -0
  1223. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_options.rb +53 -0
  1224. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_resource.rb +109 -0
  1225. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_results.rb +110 -0
  1226. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_database_list_result.rb +58 -0
  1227. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_database_resource.rb +46 -0
  1228. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_create_update_parameters.rb +112 -0
  1229. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_properties_resource.rb +96 -0
  1230. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_results.rb +98 -0
  1231. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_list_result.rb +58 -0
  1232. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_resource.rb +57 -0
  1233. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_create_update_parameters.rb +111 -0
  1234. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_properties_resource.rb +121 -0
  1235. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_results.rb +98 -0
  1236. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_list_result.rb +58 -0
  1237. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_resource.rb +82 -0
  1238. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_create_update_parameters.rb +113 -0
  1239. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_properties_resource.rb +97 -0
  1240. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_results.rb +98 -0
  1241. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_list_result.rb +58 -0
  1242. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_resource.rb +57 -0
  1243. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/table_create_update_parameters.rb +111 -0
  1244. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/table_get_properties_options.rb +53 -0
  1245. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/table_get_properties_resource.rb +85 -0
  1246. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/table_get_results.rb +110 -0
  1247. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/table_list_result.rb +57 -0
  1248. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/table_resource.rb +46 -0
  1249. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/throughput_policy_resource.rb +59 -0
  1250. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_properties_resource.rb +124 -0
  1251. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_results.rb +98 -0
  1252. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_resource.rb +86 -0
  1253. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_update_parameters.rb +99 -0
  1254. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/tracked_resource.rb +95 -0
  1255. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/trigger_operation.rb +19 -0
  1256. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/trigger_type.rb +16 -0
  1257. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/unique_key.rb +56 -0
  1258. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/unique_key_policy.rb +58 -0
  1259. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/unit_type.rb +21 -0
  1260. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/usage.rb +97 -0
  1261. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/usages_result.rb +57 -0
  1262. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/virtual_network_rule.rb +59 -0
  1263. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/module_definition.rb +9 -0
  1264. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/mongo_dbresources.rb +2354 -0
  1265. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb +905 -0
  1266. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/operations.rb +220 -0
  1267. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/partition_key_range_id.rb +161 -0
  1268. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/partition_key_range_id_region.rb +168 -0
  1269. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/percentile.rb +146 -0
  1270. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/percentile_source_target.rb +163 -0
  1271. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/percentile_target.rb +153 -0
  1272. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/sql_resources.rb +4065 -0
  1273. data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/table_resources.rb +1150 -0
  1274. data/lib/azure_mgmt_cosmosdb.rb +13 -8
  1275. data/lib/module_definition.rb +7 -7
  1276. data/lib/profiles/latest/cosmosdb_latest_profile_client.rb +40 -40
  1277. data/lib/profiles/latest/cosmosdb_module_definition.rb +8 -8
  1278. data/lib/profiles/latest/modules/cosmosdb_profile_module.rb +479 -357
  1279. data/lib/version.rb +1 -1
  1280. metadata +982 -5
@@ -0,0 +1,3433 @@
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 SqlResources
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the SqlResources 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 SQL databases under an existing Azure Cosmos DB database account.
26
+ #
27
+ # @param resource_group_name [String] The name of the resource group. The name
28
+ # is case insensitive.
29
+ # @param account_name [String] Cosmos DB database account name.
30
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
31
+ # will be added to the HTTP request.
32
+ #
33
+ # @return [SqlDatabaseListResult] operation results.
34
+ #
35
+ def list_sql_databases(resource_group_name, account_name, custom_headers:nil)
36
+ response = list_sql_databases_async(resource_group_name, account_name, custom_headers:custom_headers).value!
37
+ response.body unless response.nil?
38
+ end
39
+
40
+ #
41
+ # Lists the SQL databases under an existing Azure Cosmos DB database account.
42
+ #
43
+ # @param resource_group_name [String] The name of the resource group. The name
44
+ # is case insensitive.
45
+ # @param account_name [String] Cosmos DB database account name.
46
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
47
+ # will be added to the HTTP request.
48
+ #
49
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
50
+ #
51
+ def list_sql_databases_with_http_info(resource_group_name, account_name, custom_headers:nil)
52
+ list_sql_databases_async(resource_group_name, account_name, custom_headers:custom_headers).value!
53
+ end
54
+
55
+ #
56
+ # Lists the SQL databases under an existing Azure Cosmos DB database account.
57
+ #
58
+ # @param resource_group_name [String] The name of the resource group. The name
59
+ # is case insensitive.
60
+ # @param account_name [String] Cosmos DB database account name.
61
+ # @param [Hash{String => String}] A hash of custom headers that will be added
62
+ # to the HTTP request.
63
+ #
64
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
65
+ #
66
+ def list_sql_databases_async(resource_group_name, account_name, custom_headers:nil)
67
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
68
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
69
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
70
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
71
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
72
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
73
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
74
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
75
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
76
+ 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?
77
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
78
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
79
+
80
+
81
+ request_headers = {}
82
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
83
+
84
+ # Set Headers
85
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
86
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
87
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases'
88
+
89
+ request_url = @base_url || @client.base_url
90
+
91
+ options = {
92
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
93
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name},
94
+ query_params: {'api-version' => @client.api_version},
95
+ headers: request_headers.merge(custom_headers || {}),
96
+ base_url: request_url
97
+ }
98
+ promise = @client.make_request_async(:get, path_template, options)
99
+
100
+ promise = promise.then do |result|
101
+ http_response = result.response
102
+ status_code = http_response.status
103
+ response_content = http_response.body
104
+ unless status_code == 200
105
+ error_model = JSON.load(response_content)
106
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
107
+ end
108
+
109
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
110
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
111
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
112
+ # Deserialize Response
113
+ if status_code == 200
114
+ begin
115
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
116
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::SqlDatabaseListResult.mapper()
117
+ result.body = @client.deserialize(result_mapper, parsed_response)
118
+ rescue Exception => e
119
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
120
+ end
121
+ end
122
+
123
+ result
124
+ end
125
+
126
+ promise.execute
127
+ end
128
+
129
+ #
130
+ # Gets the SQL database under an existing Azure Cosmos DB database account with
131
+ # the provided name.
132
+ #
133
+ # @param resource_group_name [String] The name of the resource group. The name
134
+ # is case insensitive.
135
+ # @param account_name [String] Cosmos DB database account name.
136
+ # @param database_name [String] Cosmos DB database name.
137
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
138
+ # will be added to the HTTP request.
139
+ #
140
+ # @return [SqlDatabaseGetResults] operation results.
141
+ #
142
+ def get_sql_database(resource_group_name, account_name, database_name, custom_headers:nil)
143
+ response = get_sql_database_async(resource_group_name, account_name, database_name, custom_headers:custom_headers).value!
144
+ response.body unless response.nil?
145
+ end
146
+
147
+ #
148
+ # Gets the SQL database under an existing Azure Cosmos DB database account with
149
+ # the provided name.
150
+ #
151
+ # @param resource_group_name [String] The name of the resource group. The name
152
+ # is case insensitive.
153
+ # @param account_name [String] Cosmos DB database account name.
154
+ # @param database_name [String] Cosmos DB database name.
155
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
156
+ # will be added to the HTTP request.
157
+ #
158
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
159
+ #
160
+ def get_sql_database_with_http_info(resource_group_name, account_name, database_name, custom_headers:nil)
161
+ get_sql_database_async(resource_group_name, account_name, database_name, custom_headers:custom_headers).value!
162
+ end
163
+
164
+ #
165
+ # Gets the SQL database under an existing Azure Cosmos DB database account with
166
+ # the provided name.
167
+ #
168
+ # @param resource_group_name [String] The name of the resource group. The name
169
+ # is case insensitive.
170
+ # @param account_name [String] Cosmos DB database account name.
171
+ # @param database_name [String] Cosmos DB database name.
172
+ # @param [Hash{String => String}] A hash of custom headers that will be added
173
+ # to the HTTP request.
174
+ #
175
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
176
+ #
177
+ def get_sql_database_async(resource_group_name, account_name, database_name, custom_headers:nil)
178
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
179
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
180
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
181
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
182
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
183
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
184
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
185
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
186
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
187
+ 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?
188
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
189
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
190
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
191
+
192
+
193
+ request_headers = {}
194
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
195
+
196
+ # Set Headers
197
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
198
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
199
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}'
200
+
201
+ request_url = @base_url || @client.base_url
202
+
203
+ options = {
204
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
205
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name},
206
+ query_params: {'api-version' => @client.api_version},
207
+ headers: request_headers.merge(custom_headers || {}),
208
+ base_url: request_url
209
+ }
210
+ promise = @client.make_request_async(:get, path_template, options)
211
+
212
+ promise = promise.then do |result|
213
+ http_response = result.response
214
+ status_code = http_response.status
215
+ response_content = http_response.body
216
+ unless status_code == 200
217
+ error_model = JSON.load(response_content)
218
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
219
+ end
220
+
221
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
222
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
223
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
224
+ # Deserialize Response
225
+ if status_code == 200
226
+ begin
227
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
228
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::SqlDatabaseGetResults.mapper()
229
+ result.body = @client.deserialize(result_mapper, parsed_response)
230
+ rescue Exception => e
231
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
232
+ end
233
+ end
234
+
235
+ result
236
+ end
237
+
238
+ promise.execute
239
+ end
240
+
241
+ #
242
+ # Create or update an Azure Cosmos DB SQL database
243
+ #
244
+ # @param resource_group_name [String] The name of the resource group. The name
245
+ # is case insensitive.
246
+ # @param account_name [String] Cosmos DB database account name.
247
+ # @param database_name [String] Cosmos DB database name.
248
+ # @param create_update_sql_database_parameters
249
+ # [SqlDatabaseCreateUpdateParameters] The parameters to provide for the current
250
+ # SQL database.
251
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
252
+ # will be added to the HTTP request.
253
+ #
254
+ # @return [SqlDatabaseGetResults] operation results.
255
+ #
256
+ def create_update_sql_database(resource_group_name, account_name, database_name, create_update_sql_database_parameters, custom_headers:nil)
257
+ response = create_update_sql_database_async(resource_group_name, account_name, database_name, create_update_sql_database_parameters, custom_headers:custom_headers).value!
258
+ response.body unless response.nil?
259
+ end
260
+
261
+ #
262
+ # @param resource_group_name [String] The name of the resource group. The name
263
+ # is case insensitive.
264
+ # @param account_name [String] Cosmos DB database account name.
265
+ # @param database_name [String] Cosmos DB database name.
266
+ # @param create_update_sql_database_parameters
267
+ # [SqlDatabaseCreateUpdateParameters] The parameters to provide for the current
268
+ # SQL database.
269
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
270
+ # will be added to the HTTP request.
271
+ #
272
+ # @return [Concurrent::Promise] promise which provides async access to http
273
+ # response.
274
+ #
275
+ def create_update_sql_database_async(resource_group_name, account_name, database_name, create_update_sql_database_parameters, custom_headers:nil)
276
+ # Send request
277
+ promise = begin_create_update_sql_database_async(resource_group_name, account_name, database_name, create_update_sql_database_parameters, custom_headers:custom_headers)
278
+
279
+ promise = promise.then do |response|
280
+ # Defining deserialization method.
281
+ deserialize_method = lambda do |parsed_response|
282
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::SqlDatabaseGetResults.mapper()
283
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
284
+ end
285
+
286
+ # Waiting for response.
287
+ @client.get_long_running_operation_result(response, deserialize_method)
288
+ end
289
+
290
+ promise
291
+ end
292
+
293
+ #
294
+ # Deletes an existing Azure Cosmos DB SQL database.
295
+ #
296
+ # @param resource_group_name [String] The name of the resource group. The name
297
+ # is case insensitive.
298
+ # @param account_name [String] Cosmos DB database account name.
299
+ # @param database_name [String] Cosmos DB database name.
300
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
301
+ # will be added to the HTTP request.
302
+ #
303
+ def delete_sql_database(resource_group_name, account_name, database_name, custom_headers:nil)
304
+ response = delete_sql_database_async(resource_group_name, account_name, database_name, custom_headers:custom_headers).value!
305
+ nil
306
+ end
307
+
308
+ #
309
+ # @param resource_group_name [String] The name of the resource group. The name
310
+ # is case insensitive.
311
+ # @param account_name [String] Cosmos DB database account name.
312
+ # @param database_name [String] Cosmos DB database name.
313
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
314
+ # will be added to the HTTP request.
315
+ #
316
+ # @return [Concurrent::Promise] promise which provides async access to http
317
+ # response.
318
+ #
319
+ def delete_sql_database_async(resource_group_name, account_name, database_name, custom_headers:nil)
320
+ # Send request
321
+ promise = begin_delete_sql_database_async(resource_group_name, account_name, database_name, custom_headers:custom_headers)
322
+
323
+ promise = promise.then do |response|
324
+ # Defining deserialization method.
325
+ deserialize_method = lambda do |parsed_response|
326
+ end
327
+
328
+ # Waiting for response.
329
+ @client.get_long_running_operation_result(response, deserialize_method)
330
+ end
331
+
332
+ promise
333
+ end
334
+
335
+ #
336
+ # Gets the RUs per second of the SQL database under an existing Azure Cosmos DB
337
+ # database account with the provided name.
338
+ #
339
+ # @param resource_group_name [String] The name of the resource group. The name
340
+ # is case insensitive.
341
+ # @param account_name [String] Cosmos DB database account name.
342
+ # @param database_name [String] Cosmos DB database name.
343
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
344
+ # will be added to the HTTP request.
345
+ #
346
+ # @return [ThroughputSettingsGetResults] operation results.
347
+ #
348
+ def get_sql_database_throughput(resource_group_name, account_name, database_name, custom_headers:nil)
349
+ response = get_sql_database_throughput_async(resource_group_name, account_name, database_name, custom_headers:custom_headers).value!
350
+ response.body unless response.nil?
351
+ end
352
+
353
+ #
354
+ # Gets the RUs per second of the SQL database under an existing Azure Cosmos DB
355
+ # database account with the provided name.
356
+ #
357
+ # @param resource_group_name [String] The name of the resource group. The name
358
+ # is case insensitive.
359
+ # @param account_name [String] Cosmos DB database account name.
360
+ # @param database_name [String] Cosmos DB database name.
361
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
362
+ # will be added to the HTTP request.
363
+ #
364
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
365
+ #
366
+ def get_sql_database_throughput_with_http_info(resource_group_name, account_name, database_name, custom_headers:nil)
367
+ get_sql_database_throughput_async(resource_group_name, account_name, database_name, custom_headers:custom_headers).value!
368
+ end
369
+
370
+ #
371
+ # Gets the RUs per second of the SQL database under an existing Azure Cosmos DB
372
+ # database account with the provided name.
373
+ #
374
+ # @param resource_group_name [String] The name of the resource group. The name
375
+ # is case insensitive.
376
+ # @param account_name [String] Cosmos DB database account name.
377
+ # @param database_name [String] Cosmos DB database name.
378
+ # @param [Hash{String => String}] A hash of custom headers that will be added
379
+ # to the HTTP request.
380
+ #
381
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
382
+ #
383
+ def get_sql_database_throughput_async(resource_group_name, account_name, database_name, custom_headers:nil)
384
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
385
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
386
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
387
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
388
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
389
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
390
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
391
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
392
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
393
+ 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?
394
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
395
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
396
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
397
+
398
+
399
+ request_headers = {}
400
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
401
+
402
+ # Set Headers
403
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
404
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
405
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default'
406
+
407
+ request_url = @base_url || @client.base_url
408
+
409
+ options = {
410
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
411
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name},
412
+ query_params: {'api-version' => @client.api_version},
413
+ headers: request_headers.merge(custom_headers || {}),
414
+ base_url: request_url
415
+ }
416
+ promise = @client.make_request_async(:get, path_template, options)
417
+
418
+ promise = promise.then do |result|
419
+ http_response = result.response
420
+ status_code = http_response.status
421
+ response_content = http_response.body
422
+ unless status_code == 200
423
+ error_model = JSON.load(response_content)
424
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
425
+ end
426
+
427
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
428
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
429
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
430
+ # Deserialize Response
431
+ if status_code == 200
432
+ begin
433
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
434
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::ThroughputSettingsGetResults.mapper()
435
+ result.body = @client.deserialize(result_mapper, parsed_response)
436
+ rescue Exception => e
437
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
438
+ end
439
+ end
440
+
441
+ result
442
+ end
443
+
444
+ promise.execute
445
+ end
446
+
447
+ #
448
+ # Update RUs per second of an Azure Cosmos DB SQL database
449
+ #
450
+ # @param resource_group_name [String] The name of the resource group. The name
451
+ # is case insensitive.
452
+ # @param account_name [String] Cosmos DB database account name.
453
+ # @param database_name [String] Cosmos DB database name.
454
+ # @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
455
+ # parameters to provide for the RUs per second of the current SQL database.
456
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
457
+ # will be added to the HTTP request.
458
+ #
459
+ # @return [ThroughputSettingsGetResults] operation results.
460
+ #
461
+ def update_sql_database_throughput(resource_group_name, account_name, database_name, update_throughput_parameters, custom_headers:nil)
462
+ response = update_sql_database_throughput_async(resource_group_name, account_name, database_name, update_throughput_parameters, custom_headers:custom_headers).value!
463
+ response.body unless response.nil?
464
+ end
465
+
466
+ #
467
+ # @param resource_group_name [String] The name of the resource group. The name
468
+ # is case insensitive.
469
+ # @param account_name [String] Cosmos DB database account name.
470
+ # @param database_name [String] Cosmos DB database name.
471
+ # @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
472
+ # parameters to provide for the RUs per second of the current SQL database.
473
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
474
+ # will be added to the HTTP request.
475
+ #
476
+ # @return [Concurrent::Promise] promise which provides async access to http
477
+ # response.
478
+ #
479
+ def update_sql_database_throughput_async(resource_group_name, account_name, database_name, update_throughput_parameters, custom_headers:nil)
480
+ # Send request
481
+ promise = begin_update_sql_database_throughput_async(resource_group_name, account_name, database_name, update_throughput_parameters, custom_headers:custom_headers)
482
+
483
+ promise = promise.then do |response|
484
+ # Defining deserialization method.
485
+ deserialize_method = lambda do |parsed_response|
486
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::ThroughputSettingsGetResults.mapper()
487
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
488
+ end
489
+
490
+ # Waiting for response.
491
+ @client.get_long_running_operation_result(response, deserialize_method)
492
+ end
493
+
494
+ promise
495
+ end
496
+
497
+ #
498
+ # Lists the SQL container under an existing Azure Cosmos DB database account.
499
+ #
500
+ # @param resource_group_name [String] The name of the resource group. The name
501
+ # is case insensitive.
502
+ # @param account_name [String] Cosmos DB database account name.
503
+ # @param database_name [String] Cosmos DB database name.
504
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
505
+ # will be added to the HTTP request.
506
+ #
507
+ # @return [SqlContainerListResult] operation results.
508
+ #
509
+ def list_sql_containers(resource_group_name, account_name, database_name, custom_headers:nil)
510
+ response = list_sql_containers_async(resource_group_name, account_name, database_name, custom_headers:custom_headers).value!
511
+ response.body unless response.nil?
512
+ end
513
+
514
+ #
515
+ # Lists the SQL container under an existing Azure Cosmos DB database account.
516
+ #
517
+ # @param resource_group_name [String] The name of the resource group. The name
518
+ # is case insensitive.
519
+ # @param account_name [String] Cosmos DB database account name.
520
+ # @param database_name [String] Cosmos DB database name.
521
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
522
+ # will be added to the HTTP request.
523
+ #
524
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
525
+ #
526
+ def list_sql_containers_with_http_info(resource_group_name, account_name, database_name, custom_headers:nil)
527
+ list_sql_containers_async(resource_group_name, account_name, database_name, custom_headers:custom_headers).value!
528
+ end
529
+
530
+ #
531
+ # Lists the SQL container under an existing Azure Cosmos DB database account.
532
+ #
533
+ # @param resource_group_name [String] The name of the resource group. The name
534
+ # is case insensitive.
535
+ # @param account_name [String] Cosmos DB database account name.
536
+ # @param database_name [String] Cosmos DB database name.
537
+ # @param [Hash{String => String}] A hash of custom headers that will be added
538
+ # to the HTTP request.
539
+ #
540
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
541
+ #
542
+ def list_sql_containers_async(resource_group_name, account_name, database_name, custom_headers:nil)
543
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
544
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
545
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
546
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
547
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
548
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
549
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
550
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
551
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
552
+ 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?
553
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
554
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
555
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
556
+
557
+
558
+ request_headers = {}
559
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
560
+
561
+ # Set Headers
562
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
563
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
564
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers'
565
+
566
+ request_url = @base_url || @client.base_url
567
+
568
+ options = {
569
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
570
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name},
571
+ query_params: {'api-version' => @client.api_version},
572
+ headers: request_headers.merge(custom_headers || {}),
573
+ base_url: request_url
574
+ }
575
+ promise = @client.make_request_async(:get, path_template, options)
576
+
577
+ promise = promise.then do |result|
578
+ http_response = result.response
579
+ status_code = http_response.status
580
+ response_content = http_response.body
581
+ unless status_code == 200
582
+ error_model = JSON.load(response_content)
583
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
584
+ end
585
+
586
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
587
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
588
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
589
+ # Deserialize Response
590
+ if status_code == 200
591
+ begin
592
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
593
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::SqlContainerListResult.mapper()
594
+ result.body = @client.deserialize(result_mapper, parsed_response)
595
+ rescue Exception => e
596
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
597
+ end
598
+ end
599
+
600
+ result
601
+ end
602
+
603
+ promise.execute
604
+ end
605
+
606
+ #
607
+ # Gets the SQL container under an existing Azure Cosmos DB database account.
608
+ #
609
+ # @param resource_group_name [String] The name of the resource group. The name
610
+ # is case insensitive.
611
+ # @param account_name [String] Cosmos DB database account name.
612
+ # @param database_name [String] Cosmos DB database name.
613
+ # @param container_name [String] Cosmos DB container name.
614
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
615
+ # will be added to the HTTP request.
616
+ #
617
+ # @return [SqlContainerGetResults] operation results.
618
+ #
619
+ def get_sql_container(resource_group_name, account_name, database_name, container_name, custom_headers:nil)
620
+ response = get_sql_container_async(resource_group_name, account_name, database_name, container_name, custom_headers:custom_headers).value!
621
+ response.body unless response.nil?
622
+ end
623
+
624
+ #
625
+ # Gets the SQL container under an existing Azure Cosmos DB database account.
626
+ #
627
+ # @param resource_group_name [String] The name of the resource group. The name
628
+ # is case insensitive.
629
+ # @param account_name [String] Cosmos DB database account name.
630
+ # @param database_name [String] Cosmos DB database name.
631
+ # @param container_name [String] Cosmos DB container name.
632
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
633
+ # will be added to the HTTP request.
634
+ #
635
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
636
+ #
637
+ def get_sql_container_with_http_info(resource_group_name, account_name, database_name, container_name, custom_headers:nil)
638
+ get_sql_container_async(resource_group_name, account_name, database_name, container_name, custom_headers:custom_headers).value!
639
+ end
640
+
641
+ #
642
+ # Gets the SQL container under an existing Azure Cosmos DB database account.
643
+ #
644
+ # @param resource_group_name [String] The name of the resource group. The name
645
+ # is case insensitive.
646
+ # @param account_name [String] Cosmos DB database account name.
647
+ # @param database_name [String] Cosmos DB database name.
648
+ # @param container_name [String] Cosmos DB container name.
649
+ # @param [Hash{String => String}] A hash of custom headers that will be added
650
+ # to the HTTP request.
651
+ #
652
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
653
+ #
654
+ def get_sql_container_async(resource_group_name, account_name, database_name, container_name, custom_headers:nil)
655
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
656
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
657
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
658
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
659
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
660
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
661
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
662
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
663
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
664
+ 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?
665
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
666
+ fail ArgumentError, 'container_name is nil' if container_name.nil?
667
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
668
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
669
+
670
+
671
+ request_headers = {}
672
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
673
+
674
+ # Set Headers
675
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
676
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
677
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}'
678
+
679
+ request_url = @base_url || @client.base_url
680
+
681
+ options = {
682
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
683
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name,'containerName' => container_name},
684
+ query_params: {'api-version' => @client.api_version},
685
+ headers: request_headers.merge(custom_headers || {}),
686
+ base_url: request_url
687
+ }
688
+ promise = @client.make_request_async(:get, path_template, options)
689
+
690
+ promise = promise.then do |result|
691
+ http_response = result.response
692
+ status_code = http_response.status
693
+ response_content = http_response.body
694
+ unless status_code == 200
695
+ error_model = JSON.load(response_content)
696
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
697
+ end
698
+
699
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
700
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
701
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
702
+ # Deserialize Response
703
+ if status_code == 200
704
+ begin
705
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
706
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::SqlContainerGetResults.mapper()
707
+ result.body = @client.deserialize(result_mapper, parsed_response)
708
+ rescue Exception => e
709
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
710
+ end
711
+ end
712
+
713
+ result
714
+ end
715
+
716
+ promise.execute
717
+ end
718
+
719
+ #
720
+ # Create or update an Azure Cosmos DB SQL container
721
+ #
722
+ # @param resource_group_name [String] The name of the resource group. The name
723
+ # is case insensitive.
724
+ # @param account_name [String] Cosmos DB database account name.
725
+ # @param database_name [String] Cosmos DB database name.
726
+ # @param container_name [String] Cosmos DB container name.
727
+ # @param create_update_sql_container_parameters
728
+ # [SqlContainerCreateUpdateParameters] The parameters to provide for the
729
+ # current SQL container.
730
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
731
+ # will be added to the HTTP request.
732
+ #
733
+ # @return [SqlContainerGetResults] operation results.
734
+ #
735
+ def create_update_sql_container(resource_group_name, account_name, database_name, container_name, create_update_sql_container_parameters, custom_headers:nil)
736
+ response = create_update_sql_container_async(resource_group_name, account_name, database_name, container_name, create_update_sql_container_parameters, custom_headers:custom_headers).value!
737
+ response.body unless response.nil?
738
+ end
739
+
740
+ #
741
+ # @param resource_group_name [String] The name of the resource group. The name
742
+ # is case insensitive.
743
+ # @param account_name [String] Cosmos DB database account name.
744
+ # @param database_name [String] Cosmos DB database name.
745
+ # @param container_name [String] Cosmos DB container name.
746
+ # @param create_update_sql_container_parameters
747
+ # [SqlContainerCreateUpdateParameters] The parameters to provide for the
748
+ # current SQL container.
749
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
750
+ # will be added to the HTTP request.
751
+ #
752
+ # @return [Concurrent::Promise] promise which provides async access to http
753
+ # response.
754
+ #
755
+ def create_update_sql_container_async(resource_group_name, account_name, database_name, container_name, create_update_sql_container_parameters, custom_headers:nil)
756
+ # Send request
757
+ promise = begin_create_update_sql_container_async(resource_group_name, account_name, database_name, container_name, create_update_sql_container_parameters, custom_headers:custom_headers)
758
+
759
+ promise = promise.then do |response|
760
+ # Defining deserialization method.
761
+ deserialize_method = lambda do |parsed_response|
762
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::SqlContainerGetResults.mapper()
763
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
764
+ end
765
+
766
+ # Waiting for response.
767
+ @client.get_long_running_operation_result(response, deserialize_method)
768
+ end
769
+
770
+ promise
771
+ end
772
+
773
+ #
774
+ # Deletes an existing Azure Cosmos DB SQL container.
775
+ #
776
+ # @param resource_group_name [String] The name of the resource group. The name
777
+ # is case insensitive.
778
+ # @param account_name [String] Cosmos DB database account name.
779
+ # @param database_name [String] Cosmos DB database name.
780
+ # @param container_name [String] Cosmos DB container name.
781
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
782
+ # will be added to the HTTP request.
783
+ #
784
+ def delete_sql_container(resource_group_name, account_name, database_name, container_name, custom_headers:nil)
785
+ response = delete_sql_container_async(resource_group_name, account_name, database_name, container_name, custom_headers:custom_headers).value!
786
+ nil
787
+ end
788
+
789
+ #
790
+ # @param resource_group_name [String] The name of the resource group. The name
791
+ # is case insensitive.
792
+ # @param account_name [String] Cosmos DB database account name.
793
+ # @param database_name [String] Cosmos DB database name.
794
+ # @param container_name [String] Cosmos DB container name.
795
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
796
+ # will be added to the HTTP request.
797
+ #
798
+ # @return [Concurrent::Promise] promise which provides async access to http
799
+ # response.
800
+ #
801
+ def delete_sql_container_async(resource_group_name, account_name, database_name, container_name, custom_headers:nil)
802
+ # Send request
803
+ promise = begin_delete_sql_container_async(resource_group_name, account_name, database_name, container_name, custom_headers:custom_headers)
804
+
805
+ promise = promise.then do |response|
806
+ # Defining deserialization method.
807
+ deserialize_method = lambda do |parsed_response|
808
+ end
809
+
810
+ # Waiting for response.
811
+ @client.get_long_running_operation_result(response, deserialize_method)
812
+ end
813
+
814
+ promise
815
+ end
816
+
817
+ #
818
+ # Gets the RUs per second of the SQL container under an existing Azure Cosmos
819
+ # DB database account.
820
+ #
821
+ # @param resource_group_name [String] The name of the resource group. The name
822
+ # is case insensitive.
823
+ # @param account_name [String] Cosmos DB database account name.
824
+ # @param database_name [String] Cosmos DB database name.
825
+ # @param container_name [String] Cosmos DB container name.
826
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
827
+ # will be added to the HTTP request.
828
+ #
829
+ # @return [ThroughputSettingsGetResults] operation results.
830
+ #
831
+ def get_sql_container_throughput(resource_group_name, account_name, database_name, container_name, custom_headers:nil)
832
+ response = get_sql_container_throughput_async(resource_group_name, account_name, database_name, container_name, custom_headers:custom_headers).value!
833
+ response.body unless response.nil?
834
+ end
835
+
836
+ #
837
+ # Gets the RUs per second of the SQL container under an existing Azure Cosmos
838
+ # DB database account.
839
+ #
840
+ # @param resource_group_name [String] The name of the resource group. The name
841
+ # is case insensitive.
842
+ # @param account_name [String] Cosmos DB database account name.
843
+ # @param database_name [String] Cosmos DB database name.
844
+ # @param container_name [String] Cosmos DB container name.
845
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
846
+ # will be added to the HTTP request.
847
+ #
848
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
849
+ #
850
+ def get_sql_container_throughput_with_http_info(resource_group_name, account_name, database_name, container_name, custom_headers:nil)
851
+ get_sql_container_throughput_async(resource_group_name, account_name, database_name, container_name, custom_headers:custom_headers).value!
852
+ end
853
+
854
+ #
855
+ # Gets the RUs per second of the SQL container under an existing Azure Cosmos
856
+ # DB database account.
857
+ #
858
+ # @param resource_group_name [String] The name of the resource group. The name
859
+ # is case insensitive.
860
+ # @param account_name [String] Cosmos DB database account name.
861
+ # @param database_name [String] Cosmos DB database name.
862
+ # @param container_name [String] Cosmos DB container name.
863
+ # @param [Hash{String => String}] A hash of custom headers that will be added
864
+ # to the HTTP request.
865
+ #
866
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
867
+ #
868
+ def get_sql_container_throughput_async(resource_group_name, account_name, database_name, container_name, custom_headers:nil)
869
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
870
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
871
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
872
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
873
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
874
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
875
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
876
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
877
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
878
+ 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?
879
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
880
+ fail ArgumentError, 'container_name is nil' if container_name.nil?
881
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
882
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
883
+
884
+
885
+ request_headers = {}
886
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
887
+
888
+ # Set Headers
889
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
890
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
891
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default'
892
+
893
+ request_url = @base_url || @client.base_url
894
+
895
+ options = {
896
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
897
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name,'containerName' => container_name},
898
+ query_params: {'api-version' => @client.api_version},
899
+ headers: request_headers.merge(custom_headers || {}),
900
+ base_url: request_url
901
+ }
902
+ promise = @client.make_request_async(:get, path_template, options)
903
+
904
+ promise = promise.then do |result|
905
+ http_response = result.response
906
+ status_code = http_response.status
907
+ response_content = http_response.body
908
+ unless status_code == 200
909
+ error_model = JSON.load(response_content)
910
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
911
+ end
912
+
913
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
914
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
915
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
916
+ # Deserialize Response
917
+ if status_code == 200
918
+ begin
919
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
920
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::ThroughputSettingsGetResults.mapper()
921
+ result.body = @client.deserialize(result_mapper, parsed_response)
922
+ rescue Exception => e
923
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
924
+ end
925
+ end
926
+
927
+ result
928
+ end
929
+
930
+ promise.execute
931
+ end
932
+
933
+ #
934
+ # Update RUs per second of an Azure Cosmos DB SQL container
935
+ #
936
+ # @param resource_group_name [String] The name of the resource group. The name
937
+ # is case insensitive.
938
+ # @param account_name [String] Cosmos DB database account name.
939
+ # @param database_name [String] Cosmos DB database name.
940
+ # @param container_name [String] Cosmos DB container name.
941
+ # @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
942
+ # parameters to provide for the RUs per second of the current SQL container.
943
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
944
+ # will be added to the HTTP request.
945
+ #
946
+ # @return [ThroughputSettingsGetResults] operation results.
947
+ #
948
+ def update_sql_container_throughput(resource_group_name, account_name, database_name, container_name, update_throughput_parameters, custom_headers:nil)
949
+ response = update_sql_container_throughput_async(resource_group_name, account_name, database_name, container_name, update_throughput_parameters, custom_headers:custom_headers).value!
950
+ response.body unless response.nil?
951
+ end
952
+
953
+ #
954
+ # @param resource_group_name [String] The name of the resource group. The name
955
+ # is case insensitive.
956
+ # @param account_name [String] Cosmos DB database account name.
957
+ # @param database_name [String] Cosmos DB database name.
958
+ # @param container_name [String] Cosmos DB container name.
959
+ # @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
960
+ # parameters to provide for the RUs per second of the current SQL container.
961
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
962
+ # will be added to the HTTP request.
963
+ #
964
+ # @return [Concurrent::Promise] promise which provides async access to http
965
+ # response.
966
+ #
967
+ def update_sql_container_throughput_async(resource_group_name, account_name, database_name, container_name, update_throughput_parameters, custom_headers:nil)
968
+ # Send request
969
+ promise = begin_update_sql_container_throughput_async(resource_group_name, account_name, database_name, container_name, update_throughput_parameters, custom_headers:custom_headers)
970
+
971
+ promise = promise.then do |response|
972
+ # Defining deserialization method.
973
+ deserialize_method = lambda do |parsed_response|
974
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::ThroughputSettingsGetResults.mapper()
975
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
976
+ end
977
+
978
+ # Waiting for response.
979
+ @client.get_long_running_operation_result(response, deserialize_method)
980
+ end
981
+
982
+ promise
983
+ end
984
+
985
+ #
986
+ # Lists the SQL storedProcedure under an existing Azure Cosmos DB database
987
+ # account.
988
+ #
989
+ # @param resource_group_name [String] The name of the resource group. The name
990
+ # is case insensitive.
991
+ # @param account_name [String] Cosmos DB database account name.
992
+ # @param database_name [String] Cosmos DB database name.
993
+ # @param container_name [String] Cosmos DB container name.
994
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
995
+ # will be added to the HTTP request.
996
+ #
997
+ # @return [SqlStoredProcedureListResult] operation results.
998
+ #
999
+ def list_sql_stored_procedures(resource_group_name, account_name, database_name, container_name, custom_headers:nil)
1000
+ response = list_sql_stored_procedures_async(resource_group_name, account_name, database_name, container_name, custom_headers:custom_headers).value!
1001
+ response.body unless response.nil?
1002
+ end
1003
+
1004
+ #
1005
+ # Lists the SQL storedProcedure under an existing Azure Cosmos DB database
1006
+ # account.
1007
+ #
1008
+ # @param resource_group_name [String] The name of the resource group. The name
1009
+ # is case insensitive.
1010
+ # @param account_name [String] Cosmos DB database account name.
1011
+ # @param database_name [String] Cosmos DB database name.
1012
+ # @param container_name [String] Cosmos DB container name.
1013
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1014
+ # will be added to the HTTP request.
1015
+ #
1016
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1017
+ #
1018
+ def list_sql_stored_procedures_with_http_info(resource_group_name, account_name, database_name, container_name, custom_headers:nil)
1019
+ list_sql_stored_procedures_async(resource_group_name, account_name, database_name, container_name, custom_headers:custom_headers).value!
1020
+ end
1021
+
1022
+ #
1023
+ # Lists the SQL storedProcedure under an existing Azure Cosmos DB database
1024
+ # account.
1025
+ #
1026
+ # @param resource_group_name [String] The name of the resource group. The name
1027
+ # is case insensitive.
1028
+ # @param account_name [String] Cosmos DB database account name.
1029
+ # @param database_name [String] Cosmos DB database name.
1030
+ # @param container_name [String] Cosmos DB container name.
1031
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1032
+ # to the HTTP request.
1033
+ #
1034
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1035
+ #
1036
+ def list_sql_stored_procedures_async(resource_group_name, account_name, database_name, container_name, custom_headers:nil)
1037
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1038
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
1039
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1040
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1041
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1042
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1043
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
1044
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
1045
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
1046
+ 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?
1047
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
1048
+ fail ArgumentError, 'container_name is nil' if container_name.nil?
1049
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1050
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
1051
+
1052
+
1053
+ request_headers = {}
1054
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1055
+
1056
+ # Set Headers
1057
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1058
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1059
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures'
1060
+
1061
+ request_url = @base_url || @client.base_url
1062
+
1063
+ options = {
1064
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1065
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name,'containerName' => container_name},
1066
+ query_params: {'api-version' => @client.api_version},
1067
+ headers: request_headers.merge(custom_headers || {}),
1068
+ base_url: request_url
1069
+ }
1070
+ promise = @client.make_request_async(:get, path_template, options)
1071
+
1072
+ promise = promise.then do |result|
1073
+ http_response = result.response
1074
+ status_code = http_response.status
1075
+ response_content = http_response.body
1076
+ unless status_code == 200
1077
+ error_model = JSON.load(response_content)
1078
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1079
+ end
1080
+
1081
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1082
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1083
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1084
+ # Deserialize Response
1085
+ if status_code == 200
1086
+ begin
1087
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1088
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::SqlStoredProcedureListResult.mapper()
1089
+ result.body = @client.deserialize(result_mapper, parsed_response)
1090
+ rescue Exception => e
1091
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1092
+ end
1093
+ end
1094
+
1095
+ result
1096
+ end
1097
+
1098
+ promise.execute
1099
+ end
1100
+
1101
+ #
1102
+ # Gets the SQL storedProcedure under an existing Azure Cosmos DB database
1103
+ # account.
1104
+ #
1105
+ # @param resource_group_name [String] The name of the resource group. The name
1106
+ # is case insensitive.
1107
+ # @param account_name [String] Cosmos DB database account name.
1108
+ # @param database_name [String] Cosmos DB database name.
1109
+ # @param container_name [String] Cosmos DB container name.
1110
+ # @param stored_procedure_name [String] Cosmos DB storedProcedure name.
1111
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1112
+ # will be added to the HTTP request.
1113
+ #
1114
+ # @return [SqlStoredProcedureGetResults] operation results.
1115
+ #
1116
+ def get_sql_stored_procedure(resource_group_name, account_name, database_name, container_name, stored_procedure_name, custom_headers:nil)
1117
+ response = get_sql_stored_procedure_async(resource_group_name, account_name, database_name, container_name, stored_procedure_name, custom_headers:custom_headers).value!
1118
+ response.body unless response.nil?
1119
+ end
1120
+
1121
+ #
1122
+ # Gets the SQL storedProcedure under an existing Azure Cosmos DB database
1123
+ # account.
1124
+ #
1125
+ # @param resource_group_name [String] The name of the resource group. The name
1126
+ # is case insensitive.
1127
+ # @param account_name [String] Cosmos DB database account name.
1128
+ # @param database_name [String] Cosmos DB database name.
1129
+ # @param container_name [String] Cosmos DB container name.
1130
+ # @param stored_procedure_name [String] Cosmos DB storedProcedure name.
1131
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1132
+ # will be added to the HTTP request.
1133
+ #
1134
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1135
+ #
1136
+ def get_sql_stored_procedure_with_http_info(resource_group_name, account_name, database_name, container_name, stored_procedure_name, custom_headers:nil)
1137
+ get_sql_stored_procedure_async(resource_group_name, account_name, database_name, container_name, stored_procedure_name, custom_headers:custom_headers).value!
1138
+ end
1139
+
1140
+ #
1141
+ # Gets the SQL storedProcedure under an existing Azure Cosmos DB database
1142
+ # account.
1143
+ #
1144
+ # @param resource_group_name [String] The name of the resource group. The name
1145
+ # is case insensitive.
1146
+ # @param account_name [String] Cosmos DB database account name.
1147
+ # @param database_name [String] Cosmos DB database name.
1148
+ # @param container_name [String] Cosmos DB container name.
1149
+ # @param stored_procedure_name [String] Cosmos DB storedProcedure name.
1150
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1151
+ # to the HTTP request.
1152
+ #
1153
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1154
+ #
1155
+ def get_sql_stored_procedure_async(resource_group_name, account_name, database_name, container_name, stored_procedure_name, custom_headers:nil)
1156
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1157
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
1158
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1159
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1160
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1161
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1162
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
1163
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
1164
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
1165
+ 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?
1166
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
1167
+ fail ArgumentError, 'container_name is nil' if container_name.nil?
1168
+ fail ArgumentError, 'stored_procedure_name is nil' if stored_procedure_name.nil?
1169
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1170
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
1171
+
1172
+
1173
+ request_headers = {}
1174
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1175
+
1176
+ # Set Headers
1177
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1178
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1179
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures/{storedProcedureName}'
1180
+
1181
+ request_url = @base_url || @client.base_url
1182
+
1183
+ options = {
1184
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1185
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name,'containerName' => container_name,'storedProcedureName' => stored_procedure_name},
1186
+ query_params: {'api-version' => @client.api_version},
1187
+ headers: request_headers.merge(custom_headers || {}),
1188
+ base_url: request_url
1189
+ }
1190
+ promise = @client.make_request_async(:get, path_template, options)
1191
+
1192
+ promise = promise.then do |result|
1193
+ http_response = result.response
1194
+ status_code = http_response.status
1195
+ response_content = http_response.body
1196
+ unless status_code == 200
1197
+ error_model = JSON.load(response_content)
1198
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1199
+ end
1200
+
1201
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1202
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1203
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1204
+ # Deserialize Response
1205
+ if status_code == 200
1206
+ begin
1207
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1208
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::SqlStoredProcedureGetResults.mapper()
1209
+ result.body = @client.deserialize(result_mapper, parsed_response)
1210
+ rescue Exception => e
1211
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1212
+ end
1213
+ end
1214
+
1215
+ result
1216
+ end
1217
+
1218
+ promise.execute
1219
+ end
1220
+
1221
+ #
1222
+ # Create or update an Azure Cosmos DB SQL storedProcedure
1223
+ #
1224
+ # @param resource_group_name [String] The name of the resource group. The name
1225
+ # is case insensitive.
1226
+ # @param account_name [String] Cosmos DB database account name.
1227
+ # @param database_name [String] Cosmos DB database name.
1228
+ # @param container_name [String] Cosmos DB container name.
1229
+ # @param stored_procedure_name [String] Cosmos DB storedProcedure name.
1230
+ # @param create_update_sql_stored_procedure_parameters
1231
+ # [SqlStoredProcedureCreateUpdateParameters] The parameters to provide for the
1232
+ # current SQL storedProcedure.
1233
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1234
+ # will be added to the HTTP request.
1235
+ #
1236
+ # @return [SqlStoredProcedureGetResults] operation results.
1237
+ #
1238
+ def create_update_sql_stored_procedure(resource_group_name, account_name, database_name, container_name, stored_procedure_name, create_update_sql_stored_procedure_parameters, custom_headers:nil)
1239
+ response = create_update_sql_stored_procedure_async(resource_group_name, account_name, database_name, container_name, stored_procedure_name, create_update_sql_stored_procedure_parameters, custom_headers:custom_headers).value!
1240
+ response.body unless response.nil?
1241
+ end
1242
+
1243
+ #
1244
+ # @param resource_group_name [String] The name of the resource group. The name
1245
+ # is case insensitive.
1246
+ # @param account_name [String] Cosmos DB database account name.
1247
+ # @param database_name [String] Cosmos DB database name.
1248
+ # @param container_name [String] Cosmos DB container name.
1249
+ # @param stored_procedure_name [String] Cosmos DB storedProcedure name.
1250
+ # @param create_update_sql_stored_procedure_parameters
1251
+ # [SqlStoredProcedureCreateUpdateParameters] The parameters to provide for the
1252
+ # current SQL storedProcedure.
1253
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1254
+ # will be added to the HTTP request.
1255
+ #
1256
+ # @return [Concurrent::Promise] promise which provides async access to http
1257
+ # response.
1258
+ #
1259
+ def create_update_sql_stored_procedure_async(resource_group_name, account_name, database_name, container_name, stored_procedure_name, create_update_sql_stored_procedure_parameters, custom_headers:nil)
1260
+ # Send request
1261
+ promise = begin_create_update_sql_stored_procedure_async(resource_group_name, account_name, database_name, container_name, stored_procedure_name, create_update_sql_stored_procedure_parameters, custom_headers:custom_headers)
1262
+
1263
+ promise = promise.then do |response|
1264
+ # Defining deserialization method.
1265
+ deserialize_method = lambda do |parsed_response|
1266
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::SqlStoredProcedureGetResults.mapper()
1267
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
1268
+ end
1269
+
1270
+ # Waiting for response.
1271
+ @client.get_long_running_operation_result(response, deserialize_method)
1272
+ end
1273
+
1274
+ promise
1275
+ end
1276
+
1277
+ #
1278
+ # Deletes an existing Azure Cosmos DB SQL storedProcedure.
1279
+ #
1280
+ # @param resource_group_name [String] The name of the resource group. The name
1281
+ # is case insensitive.
1282
+ # @param account_name [String] Cosmos DB database account name.
1283
+ # @param database_name [String] Cosmos DB database name.
1284
+ # @param container_name [String] Cosmos DB container name.
1285
+ # @param stored_procedure_name [String] Cosmos DB storedProcedure name.
1286
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1287
+ # will be added to the HTTP request.
1288
+ #
1289
+ def delete_sql_stored_procedure(resource_group_name, account_name, database_name, container_name, stored_procedure_name, custom_headers:nil)
1290
+ response = delete_sql_stored_procedure_async(resource_group_name, account_name, database_name, container_name, stored_procedure_name, custom_headers:custom_headers).value!
1291
+ nil
1292
+ end
1293
+
1294
+ #
1295
+ # @param resource_group_name [String] The name of the resource group. The name
1296
+ # is case insensitive.
1297
+ # @param account_name [String] Cosmos DB database account name.
1298
+ # @param database_name [String] Cosmos DB database name.
1299
+ # @param container_name [String] Cosmos DB container name.
1300
+ # @param stored_procedure_name [String] Cosmos DB storedProcedure name.
1301
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1302
+ # will be added to the HTTP request.
1303
+ #
1304
+ # @return [Concurrent::Promise] promise which provides async access to http
1305
+ # response.
1306
+ #
1307
+ def delete_sql_stored_procedure_async(resource_group_name, account_name, database_name, container_name, stored_procedure_name, custom_headers:nil)
1308
+ # Send request
1309
+ promise = begin_delete_sql_stored_procedure_async(resource_group_name, account_name, database_name, container_name, stored_procedure_name, custom_headers:custom_headers)
1310
+
1311
+ promise = promise.then do |response|
1312
+ # Defining deserialization method.
1313
+ deserialize_method = lambda do |parsed_response|
1314
+ end
1315
+
1316
+ # Waiting for response.
1317
+ @client.get_long_running_operation_result(response, deserialize_method)
1318
+ end
1319
+
1320
+ promise
1321
+ end
1322
+
1323
+ #
1324
+ # Lists the SQL userDefinedFunction under an existing Azure Cosmos DB database
1325
+ # account.
1326
+ #
1327
+ # @param resource_group_name [String] The name of the resource group. The name
1328
+ # is case insensitive.
1329
+ # @param account_name [String] Cosmos DB database account name.
1330
+ # @param database_name [String] Cosmos DB database name.
1331
+ # @param container_name [String] Cosmos DB container name.
1332
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1333
+ # will be added to the HTTP request.
1334
+ #
1335
+ # @return [SqlUserDefinedFunctionListResult] operation results.
1336
+ #
1337
+ def list_sql_user_defined_functions(resource_group_name, account_name, database_name, container_name, custom_headers:nil)
1338
+ response = list_sql_user_defined_functions_async(resource_group_name, account_name, database_name, container_name, custom_headers:custom_headers).value!
1339
+ response.body unless response.nil?
1340
+ end
1341
+
1342
+ #
1343
+ # Lists the SQL userDefinedFunction under an existing Azure Cosmos DB database
1344
+ # account.
1345
+ #
1346
+ # @param resource_group_name [String] The name of the resource group. The name
1347
+ # is case insensitive.
1348
+ # @param account_name [String] Cosmos DB database account name.
1349
+ # @param database_name [String] Cosmos DB database name.
1350
+ # @param container_name [String] Cosmos DB container name.
1351
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1352
+ # will be added to the HTTP request.
1353
+ #
1354
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1355
+ #
1356
+ def list_sql_user_defined_functions_with_http_info(resource_group_name, account_name, database_name, container_name, custom_headers:nil)
1357
+ list_sql_user_defined_functions_async(resource_group_name, account_name, database_name, container_name, custom_headers:custom_headers).value!
1358
+ end
1359
+
1360
+ #
1361
+ # Lists the SQL userDefinedFunction under an existing Azure Cosmos DB database
1362
+ # account.
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 database_name [String] Cosmos DB database name.
1368
+ # @param container_name [String] Cosmos DB container name.
1369
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1370
+ # to the HTTP request.
1371
+ #
1372
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1373
+ #
1374
+ def list_sql_user_defined_functions_async(resource_group_name, account_name, database_name, container_name, custom_headers:nil)
1375
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1376
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
1377
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1378
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1379
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1380
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1381
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
1382
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
1383
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
1384
+ 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?
1385
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
1386
+ fail ArgumentError, 'container_name is nil' if container_name.nil?
1387
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1388
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
1389
+
1390
+
1391
+ request_headers = {}
1392
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1393
+
1394
+ # Set Headers
1395
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1396
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1397
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions'
1398
+
1399
+ request_url = @base_url || @client.base_url
1400
+
1401
+ options = {
1402
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1403
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name,'containerName' => container_name},
1404
+ query_params: {'api-version' => @client.api_version},
1405
+ headers: request_headers.merge(custom_headers || {}),
1406
+ base_url: request_url
1407
+ }
1408
+ promise = @client.make_request_async(:get, path_template, options)
1409
+
1410
+ promise = promise.then do |result|
1411
+ http_response = result.response
1412
+ status_code = http_response.status
1413
+ response_content = http_response.body
1414
+ unless status_code == 200
1415
+ error_model = JSON.load(response_content)
1416
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1417
+ end
1418
+
1419
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1420
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1421
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1422
+ # Deserialize Response
1423
+ if status_code == 200
1424
+ begin
1425
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1426
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::SqlUserDefinedFunctionListResult.mapper()
1427
+ result.body = @client.deserialize(result_mapper, parsed_response)
1428
+ rescue Exception => e
1429
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1430
+ end
1431
+ end
1432
+
1433
+ result
1434
+ end
1435
+
1436
+ promise.execute
1437
+ end
1438
+
1439
+ #
1440
+ # Gets the SQL userDefinedFunction under an existing Azure Cosmos DB database
1441
+ # account.
1442
+ #
1443
+ # @param resource_group_name [String] The name of the resource group. The name
1444
+ # is case insensitive.
1445
+ # @param account_name [String] Cosmos DB database account name.
1446
+ # @param database_name [String] Cosmos DB database name.
1447
+ # @param container_name [String] Cosmos DB container name.
1448
+ # @param user_defined_function_name [String] Cosmos DB userDefinedFunction
1449
+ # name.
1450
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1451
+ # will be added to the HTTP request.
1452
+ #
1453
+ # @return [SqlUserDefinedFunctionGetResults] operation results.
1454
+ #
1455
+ def get_sql_user_defined_function(resource_group_name, account_name, database_name, container_name, user_defined_function_name, custom_headers:nil)
1456
+ response = get_sql_user_defined_function_async(resource_group_name, account_name, database_name, container_name, user_defined_function_name, custom_headers:custom_headers).value!
1457
+ response.body unless response.nil?
1458
+ end
1459
+
1460
+ #
1461
+ # Gets the SQL userDefinedFunction under an existing Azure Cosmos DB database
1462
+ # account.
1463
+ #
1464
+ # @param resource_group_name [String] The name of the resource group. The name
1465
+ # is case insensitive.
1466
+ # @param account_name [String] Cosmos DB database account name.
1467
+ # @param database_name [String] Cosmos DB database name.
1468
+ # @param container_name [String] Cosmos DB container name.
1469
+ # @param user_defined_function_name [String] Cosmos DB userDefinedFunction
1470
+ # name.
1471
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1472
+ # will be added to the HTTP request.
1473
+ #
1474
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1475
+ #
1476
+ def get_sql_user_defined_function_with_http_info(resource_group_name, account_name, database_name, container_name, user_defined_function_name, custom_headers:nil)
1477
+ get_sql_user_defined_function_async(resource_group_name, account_name, database_name, container_name, user_defined_function_name, custom_headers:custom_headers).value!
1478
+ end
1479
+
1480
+ #
1481
+ # Gets the SQL userDefinedFunction under an existing Azure Cosmos DB database
1482
+ # account.
1483
+ #
1484
+ # @param resource_group_name [String] The name of the resource group. The name
1485
+ # is case insensitive.
1486
+ # @param account_name [String] Cosmos DB database account name.
1487
+ # @param database_name [String] Cosmos DB database name.
1488
+ # @param container_name [String] Cosmos DB container name.
1489
+ # @param user_defined_function_name [String] Cosmos DB userDefinedFunction
1490
+ # name.
1491
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1492
+ # to the HTTP request.
1493
+ #
1494
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1495
+ #
1496
+ def get_sql_user_defined_function_async(resource_group_name, account_name, database_name, container_name, user_defined_function_name, custom_headers:nil)
1497
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1498
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
1499
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1500
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1501
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1502
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1503
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
1504
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
1505
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
1506
+ 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?
1507
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
1508
+ fail ArgumentError, 'container_name is nil' if container_name.nil?
1509
+ fail ArgumentError, 'user_defined_function_name is nil' if user_defined_function_name.nil?
1510
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1511
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
1512
+
1513
+
1514
+ request_headers = {}
1515
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1516
+
1517
+ # Set Headers
1518
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1519
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1520
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions/{userDefinedFunctionName}'
1521
+
1522
+ request_url = @base_url || @client.base_url
1523
+
1524
+ options = {
1525
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1526
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name,'containerName' => container_name,'userDefinedFunctionName' => user_defined_function_name},
1527
+ query_params: {'api-version' => @client.api_version},
1528
+ headers: request_headers.merge(custom_headers || {}),
1529
+ base_url: request_url
1530
+ }
1531
+ promise = @client.make_request_async(:get, path_template, options)
1532
+
1533
+ promise = promise.then do |result|
1534
+ http_response = result.response
1535
+ status_code = http_response.status
1536
+ response_content = http_response.body
1537
+ unless status_code == 200
1538
+ error_model = JSON.load(response_content)
1539
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1540
+ end
1541
+
1542
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1543
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1544
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1545
+ # Deserialize Response
1546
+ if status_code == 200
1547
+ begin
1548
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1549
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::SqlUserDefinedFunctionGetResults.mapper()
1550
+ result.body = @client.deserialize(result_mapper, parsed_response)
1551
+ rescue Exception => e
1552
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1553
+ end
1554
+ end
1555
+
1556
+ result
1557
+ end
1558
+
1559
+ promise.execute
1560
+ end
1561
+
1562
+ #
1563
+ # Create or update an Azure Cosmos DB SQL userDefinedFunction
1564
+ #
1565
+ # @param resource_group_name [String] The name of the resource group. The name
1566
+ # is case insensitive.
1567
+ # @param account_name [String] Cosmos DB database account name.
1568
+ # @param database_name [String] Cosmos DB database name.
1569
+ # @param container_name [String] Cosmos DB container name.
1570
+ # @param user_defined_function_name [String] Cosmos DB userDefinedFunction
1571
+ # name.
1572
+ # @param create_update_sql_user_defined_function_parameters
1573
+ # [SqlUserDefinedFunctionCreateUpdateParameters] The parameters to provide for
1574
+ # the current SQL userDefinedFunction.
1575
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1576
+ # will be added to the HTTP request.
1577
+ #
1578
+ # @return [SqlUserDefinedFunctionGetResults] operation results.
1579
+ #
1580
+ def create_update_sql_user_defined_function(resource_group_name, account_name, database_name, container_name, user_defined_function_name, create_update_sql_user_defined_function_parameters, custom_headers:nil)
1581
+ response = create_update_sql_user_defined_function_async(resource_group_name, account_name, database_name, container_name, user_defined_function_name, create_update_sql_user_defined_function_parameters, custom_headers:custom_headers).value!
1582
+ response.body unless response.nil?
1583
+ end
1584
+
1585
+ #
1586
+ # @param resource_group_name [String] The name of the resource group. The name
1587
+ # is case insensitive.
1588
+ # @param account_name [String] Cosmos DB database account name.
1589
+ # @param database_name [String] Cosmos DB database name.
1590
+ # @param container_name [String] Cosmos DB container name.
1591
+ # @param user_defined_function_name [String] Cosmos DB userDefinedFunction
1592
+ # name.
1593
+ # @param create_update_sql_user_defined_function_parameters
1594
+ # [SqlUserDefinedFunctionCreateUpdateParameters] The parameters to provide for
1595
+ # the current SQL userDefinedFunction.
1596
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1597
+ # will be added to the HTTP request.
1598
+ #
1599
+ # @return [Concurrent::Promise] promise which provides async access to http
1600
+ # response.
1601
+ #
1602
+ def create_update_sql_user_defined_function_async(resource_group_name, account_name, database_name, container_name, user_defined_function_name, create_update_sql_user_defined_function_parameters, custom_headers:nil)
1603
+ # Send request
1604
+ promise = begin_create_update_sql_user_defined_function_async(resource_group_name, account_name, database_name, container_name, user_defined_function_name, create_update_sql_user_defined_function_parameters, custom_headers:custom_headers)
1605
+
1606
+ promise = promise.then do |response|
1607
+ # Defining deserialization method.
1608
+ deserialize_method = lambda do |parsed_response|
1609
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::SqlUserDefinedFunctionGetResults.mapper()
1610
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
1611
+ end
1612
+
1613
+ # Waiting for response.
1614
+ @client.get_long_running_operation_result(response, deserialize_method)
1615
+ end
1616
+
1617
+ promise
1618
+ end
1619
+
1620
+ #
1621
+ # Deletes an existing Azure Cosmos DB SQL userDefinedFunction.
1622
+ #
1623
+ # @param resource_group_name [String] The name of the resource group. The name
1624
+ # is case insensitive.
1625
+ # @param account_name [String] Cosmos DB database account name.
1626
+ # @param database_name [String] Cosmos DB database name.
1627
+ # @param container_name [String] Cosmos DB container name.
1628
+ # @param user_defined_function_name [String] Cosmos DB userDefinedFunction
1629
+ # name.
1630
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1631
+ # will be added to the HTTP request.
1632
+ #
1633
+ def delete_sql_user_defined_function(resource_group_name, account_name, database_name, container_name, user_defined_function_name, custom_headers:nil)
1634
+ response = delete_sql_user_defined_function_async(resource_group_name, account_name, database_name, container_name, user_defined_function_name, custom_headers:custom_headers).value!
1635
+ nil
1636
+ end
1637
+
1638
+ #
1639
+ # @param resource_group_name [String] The name of the resource group. The name
1640
+ # is case insensitive.
1641
+ # @param account_name [String] Cosmos DB database account name.
1642
+ # @param database_name [String] Cosmos DB database name.
1643
+ # @param container_name [String] Cosmos DB container name.
1644
+ # @param user_defined_function_name [String] Cosmos DB userDefinedFunction
1645
+ # name.
1646
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1647
+ # will be added to the HTTP request.
1648
+ #
1649
+ # @return [Concurrent::Promise] promise which provides async access to http
1650
+ # response.
1651
+ #
1652
+ def delete_sql_user_defined_function_async(resource_group_name, account_name, database_name, container_name, user_defined_function_name, custom_headers:nil)
1653
+ # Send request
1654
+ promise = begin_delete_sql_user_defined_function_async(resource_group_name, account_name, database_name, container_name, user_defined_function_name, custom_headers:custom_headers)
1655
+
1656
+ promise = promise.then do |response|
1657
+ # Defining deserialization method.
1658
+ deserialize_method = lambda do |parsed_response|
1659
+ end
1660
+
1661
+ # Waiting for response.
1662
+ @client.get_long_running_operation_result(response, deserialize_method)
1663
+ end
1664
+
1665
+ promise
1666
+ end
1667
+
1668
+ #
1669
+ # Lists the SQL trigger under an existing Azure Cosmos DB database account.
1670
+ #
1671
+ # @param resource_group_name [String] The name of the resource group. The name
1672
+ # is case insensitive.
1673
+ # @param account_name [String] Cosmos DB database account name.
1674
+ # @param database_name [String] Cosmos DB database name.
1675
+ # @param container_name [String] Cosmos DB container name.
1676
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1677
+ # will be added to the HTTP request.
1678
+ #
1679
+ # @return [SqlTriggerListResult] operation results.
1680
+ #
1681
+ def list_sql_triggers(resource_group_name, account_name, database_name, container_name, custom_headers:nil)
1682
+ response = list_sql_triggers_async(resource_group_name, account_name, database_name, container_name, custom_headers:custom_headers).value!
1683
+ response.body unless response.nil?
1684
+ end
1685
+
1686
+ #
1687
+ # Lists the SQL trigger under an existing Azure Cosmos DB database account.
1688
+ #
1689
+ # @param resource_group_name [String] The name of the resource group. The name
1690
+ # is case insensitive.
1691
+ # @param account_name [String] Cosmos DB database account name.
1692
+ # @param database_name [String] Cosmos DB database name.
1693
+ # @param container_name [String] Cosmos DB container name.
1694
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1695
+ # will be added to the HTTP request.
1696
+ #
1697
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1698
+ #
1699
+ def list_sql_triggers_with_http_info(resource_group_name, account_name, database_name, container_name, custom_headers:nil)
1700
+ list_sql_triggers_async(resource_group_name, account_name, database_name, container_name, custom_headers:custom_headers).value!
1701
+ end
1702
+
1703
+ #
1704
+ # Lists the SQL trigger under an existing Azure Cosmos DB database account.
1705
+ #
1706
+ # @param resource_group_name [String] The name of the resource group. The name
1707
+ # is case insensitive.
1708
+ # @param account_name [String] Cosmos DB database account name.
1709
+ # @param database_name [String] Cosmos DB database name.
1710
+ # @param container_name [String] Cosmos DB container name.
1711
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1712
+ # to the HTTP request.
1713
+ #
1714
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1715
+ #
1716
+ def list_sql_triggers_async(resource_group_name, account_name, database_name, container_name, custom_headers:nil)
1717
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1718
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
1719
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1720
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1721
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1722
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1723
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
1724
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
1725
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
1726
+ 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?
1727
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
1728
+ fail ArgumentError, 'container_name is nil' if container_name.nil?
1729
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1730
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
1731
+
1732
+
1733
+ request_headers = {}
1734
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1735
+
1736
+ # Set Headers
1737
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1738
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1739
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers'
1740
+
1741
+ request_url = @base_url || @client.base_url
1742
+
1743
+ options = {
1744
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1745
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name,'containerName' => container_name},
1746
+ query_params: {'api-version' => @client.api_version},
1747
+ headers: request_headers.merge(custom_headers || {}),
1748
+ base_url: request_url
1749
+ }
1750
+ promise = @client.make_request_async(:get, path_template, options)
1751
+
1752
+ promise = promise.then do |result|
1753
+ http_response = result.response
1754
+ status_code = http_response.status
1755
+ response_content = http_response.body
1756
+ unless status_code == 200
1757
+ error_model = JSON.load(response_content)
1758
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1759
+ end
1760
+
1761
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1762
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1763
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1764
+ # Deserialize Response
1765
+ if status_code == 200
1766
+ begin
1767
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1768
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::SqlTriggerListResult.mapper()
1769
+ result.body = @client.deserialize(result_mapper, parsed_response)
1770
+ rescue Exception => e
1771
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1772
+ end
1773
+ end
1774
+
1775
+ result
1776
+ end
1777
+
1778
+ promise.execute
1779
+ end
1780
+
1781
+ #
1782
+ # Gets the SQL trigger under an existing Azure Cosmos DB database account.
1783
+ #
1784
+ # @param resource_group_name [String] The name of the resource group. The name
1785
+ # is case insensitive.
1786
+ # @param account_name [String] Cosmos DB database account name.
1787
+ # @param database_name [String] Cosmos DB database name.
1788
+ # @param container_name [String] Cosmos DB container name.
1789
+ # @param trigger_name [String] Cosmos DB trigger name.
1790
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1791
+ # will be added to the HTTP request.
1792
+ #
1793
+ # @return [SqlTriggerGetResults] operation results.
1794
+ #
1795
+ def get_sql_trigger(resource_group_name, account_name, database_name, container_name, trigger_name, custom_headers:nil)
1796
+ response = get_sql_trigger_async(resource_group_name, account_name, database_name, container_name, trigger_name, custom_headers:custom_headers).value!
1797
+ response.body unless response.nil?
1798
+ end
1799
+
1800
+ #
1801
+ # Gets the SQL trigger under an existing Azure Cosmos DB database account.
1802
+ #
1803
+ # @param resource_group_name [String] The name of the resource group. The name
1804
+ # is case insensitive.
1805
+ # @param account_name [String] Cosmos DB database account name.
1806
+ # @param database_name [String] Cosmos DB database name.
1807
+ # @param container_name [String] Cosmos DB container name.
1808
+ # @param trigger_name [String] Cosmos DB trigger name.
1809
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1810
+ # will be added to the HTTP request.
1811
+ #
1812
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1813
+ #
1814
+ def get_sql_trigger_with_http_info(resource_group_name, account_name, database_name, container_name, trigger_name, custom_headers:nil)
1815
+ get_sql_trigger_async(resource_group_name, account_name, database_name, container_name, trigger_name, custom_headers:custom_headers).value!
1816
+ end
1817
+
1818
+ #
1819
+ # Gets the SQL trigger under an existing Azure Cosmos DB database account.
1820
+ #
1821
+ # @param resource_group_name [String] The name of the resource group. The name
1822
+ # is case insensitive.
1823
+ # @param account_name [String] Cosmos DB database account name.
1824
+ # @param database_name [String] Cosmos DB database name.
1825
+ # @param container_name [String] Cosmos DB container name.
1826
+ # @param trigger_name [String] Cosmos DB trigger name.
1827
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1828
+ # to the HTTP request.
1829
+ #
1830
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1831
+ #
1832
+ def get_sql_trigger_async(resource_group_name, account_name, database_name, container_name, trigger_name, custom_headers:nil)
1833
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1834
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
1835
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1836
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1837
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1838
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
1839
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
1840
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
1841
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
1842
+ 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?
1843
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
1844
+ fail ArgumentError, 'container_name is nil' if container_name.nil?
1845
+ fail ArgumentError, 'trigger_name is nil' if trigger_name.nil?
1846
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1847
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
1848
+
1849
+
1850
+ request_headers = {}
1851
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1852
+
1853
+ # Set Headers
1854
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1855
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1856
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers/{triggerName}'
1857
+
1858
+ request_url = @base_url || @client.base_url
1859
+
1860
+ options = {
1861
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1862
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name,'containerName' => container_name,'triggerName' => trigger_name},
1863
+ query_params: {'api-version' => @client.api_version},
1864
+ headers: request_headers.merge(custom_headers || {}),
1865
+ base_url: request_url
1866
+ }
1867
+ promise = @client.make_request_async(:get, path_template, options)
1868
+
1869
+ promise = promise.then do |result|
1870
+ http_response = result.response
1871
+ status_code = http_response.status
1872
+ response_content = http_response.body
1873
+ unless status_code == 200
1874
+ error_model = JSON.load(response_content)
1875
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1876
+ end
1877
+
1878
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1879
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1880
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1881
+ # Deserialize Response
1882
+ if status_code == 200
1883
+ begin
1884
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1885
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::SqlTriggerGetResults.mapper()
1886
+ result.body = @client.deserialize(result_mapper, parsed_response)
1887
+ rescue Exception => e
1888
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1889
+ end
1890
+ end
1891
+
1892
+ result
1893
+ end
1894
+
1895
+ promise.execute
1896
+ end
1897
+
1898
+ #
1899
+ # Create or update an Azure Cosmos DB SQL trigger
1900
+ #
1901
+ # @param resource_group_name [String] The name of the resource group. The name
1902
+ # is case insensitive.
1903
+ # @param account_name [String] Cosmos DB database account name.
1904
+ # @param database_name [String] Cosmos DB database name.
1905
+ # @param container_name [String] Cosmos DB container name.
1906
+ # @param trigger_name [String] Cosmos DB trigger name.
1907
+ # @param create_update_sql_trigger_parameters
1908
+ # [SqlTriggerCreateUpdateParameters] The parameters to provide for the current
1909
+ # SQL trigger.
1910
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1911
+ # will be added to the HTTP request.
1912
+ #
1913
+ # @return [SqlTriggerGetResults] operation results.
1914
+ #
1915
+ def create_update_sql_trigger(resource_group_name, account_name, database_name, container_name, trigger_name, create_update_sql_trigger_parameters, custom_headers:nil)
1916
+ response = create_update_sql_trigger_async(resource_group_name, account_name, database_name, container_name, trigger_name, create_update_sql_trigger_parameters, custom_headers:custom_headers).value!
1917
+ response.body unless response.nil?
1918
+ end
1919
+
1920
+ #
1921
+ # @param resource_group_name [String] The name of the resource group. The name
1922
+ # is case insensitive.
1923
+ # @param account_name [String] Cosmos DB database account name.
1924
+ # @param database_name [String] Cosmos DB database name.
1925
+ # @param container_name [String] Cosmos DB container name.
1926
+ # @param trigger_name [String] Cosmos DB trigger name.
1927
+ # @param create_update_sql_trigger_parameters
1928
+ # [SqlTriggerCreateUpdateParameters] The parameters to provide for the current
1929
+ # SQL trigger.
1930
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1931
+ # will be added to the HTTP request.
1932
+ #
1933
+ # @return [Concurrent::Promise] promise which provides async access to http
1934
+ # response.
1935
+ #
1936
+ def create_update_sql_trigger_async(resource_group_name, account_name, database_name, container_name, trigger_name, create_update_sql_trigger_parameters, custom_headers:nil)
1937
+ # Send request
1938
+ promise = begin_create_update_sql_trigger_async(resource_group_name, account_name, database_name, container_name, trigger_name, create_update_sql_trigger_parameters, custom_headers:custom_headers)
1939
+
1940
+ promise = promise.then do |response|
1941
+ # Defining deserialization method.
1942
+ deserialize_method = lambda do |parsed_response|
1943
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::SqlTriggerGetResults.mapper()
1944
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
1945
+ end
1946
+
1947
+ # Waiting for response.
1948
+ @client.get_long_running_operation_result(response, deserialize_method)
1949
+ end
1950
+
1951
+ promise
1952
+ end
1953
+
1954
+ #
1955
+ # Deletes an existing Azure Cosmos DB SQL trigger.
1956
+ #
1957
+ # @param resource_group_name [String] The name of the resource group. The name
1958
+ # is case insensitive.
1959
+ # @param account_name [String] Cosmos DB database account name.
1960
+ # @param database_name [String] Cosmos DB database name.
1961
+ # @param container_name [String] Cosmos DB container name.
1962
+ # @param trigger_name [String] Cosmos DB trigger name.
1963
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1964
+ # will be added to the HTTP request.
1965
+ #
1966
+ def delete_sql_trigger(resource_group_name, account_name, database_name, container_name, trigger_name, custom_headers:nil)
1967
+ response = delete_sql_trigger_async(resource_group_name, account_name, database_name, container_name, trigger_name, custom_headers:custom_headers).value!
1968
+ nil
1969
+ end
1970
+
1971
+ #
1972
+ # @param resource_group_name [String] The name of the resource group. The name
1973
+ # is case insensitive.
1974
+ # @param account_name [String] Cosmos DB database account name.
1975
+ # @param database_name [String] Cosmos DB database name.
1976
+ # @param container_name [String] Cosmos DB container name.
1977
+ # @param trigger_name [String] Cosmos DB trigger name.
1978
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1979
+ # will be added to the HTTP request.
1980
+ #
1981
+ # @return [Concurrent::Promise] promise which provides async access to http
1982
+ # response.
1983
+ #
1984
+ def delete_sql_trigger_async(resource_group_name, account_name, database_name, container_name, trigger_name, custom_headers:nil)
1985
+ # Send request
1986
+ promise = begin_delete_sql_trigger_async(resource_group_name, account_name, database_name, container_name, trigger_name, custom_headers:custom_headers)
1987
+
1988
+ promise = promise.then do |response|
1989
+ # Defining deserialization method.
1990
+ deserialize_method = lambda do |parsed_response|
1991
+ end
1992
+
1993
+ # Waiting for response.
1994
+ @client.get_long_running_operation_result(response, deserialize_method)
1995
+ end
1996
+
1997
+ promise
1998
+ end
1999
+
2000
+ #
2001
+ # Create or update an Azure Cosmos DB SQL database
2002
+ #
2003
+ # @param resource_group_name [String] The name of the resource group. The name
2004
+ # is case insensitive.
2005
+ # @param account_name [String] Cosmos DB database account name.
2006
+ # @param database_name [String] Cosmos DB database name.
2007
+ # @param create_update_sql_database_parameters
2008
+ # [SqlDatabaseCreateUpdateParameters] The parameters to provide for the current
2009
+ # SQL database.
2010
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2011
+ # will be added to the HTTP request.
2012
+ #
2013
+ # @return [SqlDatabaseGetResults] operation results.
2014
+ #
2015
+ def begin_create_update_sql_database(resource_group_name, account_name, database_name, create_update_sql_database_parameters, custom_headers:nil)
2016
+ response = begin_create_update_sql_database_async(resource_group_name, account_name, database_name, create_update_sql_database_parameters, custom_headers:custom_headers).value!
2017
+ response.body unless response.nil?
2018
+ end
2019
+
2020
+ #
2021
+ # Create or update an Azure Cosmos DB SQL database
2022
+ #
2023
+ # @param resource_group_name [String] The name of the resource group. The name
2024
+ # is case insensitive.
2025
+ # @param account_name [String] Cosmos DB database account name.
2026
+ # @param database_name [String] Cosmos DB database name.
2027
+ # @param create_update_sql_database_parameters
2028
+ # [SqlDatabaseCreateUpdateParameters] The parameters to provide for the current
2029
+ # SQL database.
2030
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2031
+ # will be added to the HTTP request.
2032
+ #
2033
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2034
+ #
2035
+ def begin_create_update_sql_database_with_http_info(resource_group_name, account_name, database_name, create_update_sql_database_parameters, custom_headers:nil)
2036
+ begin_create_update_sql_database_async(resource_group_name, account_name, database_name, create_update_sql_database_parameters, custom_headers:custom_headers).value!
2037
+ end
2038
+
2039
+ #
2040
+ # Create or update an Azure Cosmos DB SQL database
2041
+ #
2042
+ # @param resource_group_name [String] The name of the resource group. The name
2043
+ # is case insensitive.
2044
+ # @param account_name [String] Cosmos DB database account name.
2045
+ # @param database_name [String] Cosmos DB database name.
2046
+ # @param create_update_sql_database_parameters
2047
+ # [SqlDatabaseCreateUpdateParameters] The parameters to provide for the current
2048
+ # SQL database.
2049
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2050
+ # to the HTTP request.
2051
+ #
2052
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2053
+ #
2054
+ def begin_create_update_sql_database_async(resource_group_name, account_name, database_name, create_update_sql_database_parameters, custom_headers:nil)
2055
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2056
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
2057
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2058
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
2059
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
2060
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
2061
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
2062
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
2063
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
2064
+ 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?
2065
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
2066
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2067
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
2068
+ fail ArgumentError, 'create_update_sql_database_parameters is nil' if create_update_sql_database_parameters.nil?
2069
+
2070
+
2071
+ request_headers = {}
2072
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2073
+
2074
+ # Set Headers
2075
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2076
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2077
+
2078
+ # Serialize Request
2079
+ request_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::SqlDatabaseCreateUpdateParameters.mapper()
2080
+ request_content = @client.serialize(request_mapper, create_update_sql_database_parameters)
2081
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
2082
+
2083
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}'
2084
+
2085
+ request_url = @base_url || @client.base_url
2086
+
2087
+ options = {
2088
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2089
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name},
2090
+ query_params: {'api-version' => @client.api_version},
2091
+ body: request_content,
2092
+ headers: request_headers.merge(custom_headers || {}),
2093
+ base_url: request_url
2094
+ }
2095
+ promise = @client.make_request_async(:put, path_template, options)
2096
+
2097
+ promise = promise.then do |result|
2098
+ http_response = result.response
2099
+ status_code = http_response.status
2100
+ response_content = http_response.body
2101
+ unless status_code == 202 || status_code == 200
2102
+ error_model = JSON.load(response_content)
2103
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2104
+ end
2105
+
2106
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2107
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2108
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2109
+ # Deserialize Response
2110
+ if status_code == 200
2111
+ begin
2112
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2113
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::SqlDatabaseGetResults.mapper()
2114
+ result.body = @client.deserialize(result_mapper, parsed_response)
2115
+ rescue Exception => e
2116
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2117
+ end
2118
+ end
2119
+
2120
+ result
2121
+ end
2122
+
2123
+ promise.execute
2124
+ end
2125
+
2126
+ #
2127
+ # Deletes an existing Azure Cosmos DB SQL database.
2128
+ #
2129
+ # @param resource_group_name [String] The name of the resource group. The name
2130
+ # is case insensitive.
2131
+ # @param account_name [String] Cosmos DB database account name.
2132
+ # @param database_name [String] Cosmos DB database name.
2133
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2134
+ # will be added to the HTTP request.
2135
+ #
2136
+ #
2137
+ def begin_delete_sql_database(resource_group_name, account_name, database_name, custom_headers:nil)
2138
+ response = begin_delete_sql_database_async(resource_group_name, account_name, database_name, custom_headers:custom_headers).value!
2139
+ nil
2140
+ end
2141
+
2142
+ #
2143
+ # Deletes an existing Azure Cosmos DB SQL database.
2144
+ #
2145
+ # @param resource_group_name [String] The name of the resource group. The name
2146
+ # is case insensitive.
2147
+ # @param account_name [String] Cosmos DB database account name.
2148
+ # @param database_name [String] Cosmos DB database name.
2149
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2150
+ # will be added to the HTTP request.
2151
+ #
2152
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2153
+ #
2154
+ def begin_delete_sql_database_with_http_info(resource_group_name, account_name, database_name, custom_headers:nil)
2155
+ begin_delete_sql_database_async(resource_group_name, account_name, database_name, custom_headers:custom_headers).value!
2156
+ end
2157
+
2158
+ #
2159
+ # Deletes an existing Azure Cosmos DB SQL database.
2160
+ #
2161
+ # @param resource_group_name [String] The name of the resource group. The name
2162
+ # is case insensitive.
2163
+ # @param account_name [String] Cosmos DB database account name.
2164
+ # @param database_name [String] Cosmos DB database name.
2165
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2166
+ # to the HTTP request.
2167
+ #
2168
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2169
+ #
2170
+ def begin_delete_sql_database_async(resource_group_name, account_name, database_name, custom_headers:nil)
2171
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2172
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
2173
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2174
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
2175
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
2176
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
2177
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
2178
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
2179
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
2180
+ 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?
2181
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
2182
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2183
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
2184
+
2185
+
2186
+ request_headers = {}
2187
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2188
+
2189
+ # Set Headers
2190
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2191
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2192
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}'
2193
+
2194
+ request_url = @base_url || @client.base_url
2195
+
2196
+ options = {
2197
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2198
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name},
2199
+ query_params: {'api-version' => @client.api_version},
2200
+ headers: request_headers.merge(custom_headers || {}),
2201
+ base_url: request_url
2202
+ }
2203
+ promise = @client.make_request_async(:delete, path_template, options)
2204
+
2205
+ promise = promise.then do |result|
2206
+ http_response = result.response
2207
+ status_code = http_response.status
2208
+ response_content = http_response.body
2209
+ unless status_code == 202 || status_code == 204
2210
+ error_model = JSON.load(response_content)
2211
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2212
+ end
2213
+
2214
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2215
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2216
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2217
+
2218
+ result
2219
+ end
2220
+
2221
+ promise.execute
2222
+ end
2223
+
2224
+ #
2225
+ # Update RUs per second of an Azure Cosmos DB SQL database
2226
+ #
2227
+ # @param resource_group_name [String] The name of the resource group. The name
2228
+ # is case insensitive.
2229
+ # @param account_name [String] Cosmos DB database account name.
2230
+ # @param database_name [String] Cosmos DB database name.
2231
+ # @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
2232
+ # parameters to provide for the RUs per second of the current SQL database.
2233
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2234
+ # will be added to the HTTP request.
2235
+ #
2236
+ # @return [ThroughputSettingsGetResults] operation results.
2237
+ #
2238
+ def begin_update_sql_database_throughput(resource_group_name, account_name, database_name, update_throughput_parameters, custom_headers:nil)
2239
+ response = begin_update_sql_database_throughput_async(resource_group_name, account_name, database_name, update_throughput_parameters, custom_headers:custom_headers).value!
2240
+ response.body unless response.nil?
2241
+ end
2242
+
2243
+ #
2244
+ # Update RUs per second of an Azure Cosmos DB SQL database
2245
+ #
2246
+ # @param resource_group_name [String] The name of the resource group. The name
2247
+ # is case insensitive.
2248
+ # @param account_name [String] Cosmos DB database account name.
2249
+ # @param database_name [String] Cosmos DB database name.
2250
+ # @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
2251
+ # parameters to provide for the RUs per second of the current SQL database.
2252
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2253
+ # will be added to the HTTP request.
2254
+ #
2255
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2256
+ #
2257
+ def begin_update_sql_database_throughput_with_http_info(resource_group_name, account_name, database_name, update_throughput_parameters, custom_headers:nil)
2258
+ begin_update_sql_database_throughput_async(resource_group_name, account_name, database_name, update_throughput_parameters, custom_headers:custom_headers).value!
2259
+ end
2260
+
2261
+ #
2262
+ # Update RUs per second of an Azure Cosmos DB SQL database
2263
+ #
2264
+ # @param resource_group_name [String] The name of the resource group. The name
2265
+ # is case insensitive.
2266
+ # @param account_name [String] Cosmos DB database account name.
2267
+ # @param database_name [String] Cosmos DB database name.
2268
+ # @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
2269
+ # parameters to provide for the RUs per second of the current SQL database.
2270
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2271
+ # to the HTTP request.
2272
+ #
2273
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2274
+ #
2275
+ def begin_update_sql_database_throughput_async(resource_group_name, account_name, database_name, update_throughput_parameters, custom_headers:nil)
2276
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2277
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
2278
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2279
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
2280
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
2281
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
2282
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
2283
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
2284
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
2285
+ 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?
2286
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
2287
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2288
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
2289
+ fail ArgumentError, 'update_throughput_parameters is nil' if update_throughput_parameters.nil?
2290
+
2291
+
2292
+ request_headers = {}
2293
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2294
+
2295
+ # Set Headers
2296
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2297
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2298
+
2299
+ # Serialize Request
2300
+ request_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::ThroughputSettingsUpdateParameters.mapper()
2301
+ request_content = @client.serialize(request_mapper, update_throughput_parameters)
2302
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
2303
+
2304
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default'
2305
+
2306
+ request_url = @base_url || @client.base_url
2307
+
2308
+ options = {
2309
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2310
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name},
2311
+ query_params: {'api-version' => @client.api_version},
2312
+ body: request_content,
2313
+ headers: request_headers.merge(custom_headers || {}),
2314
+ base_url: request_url
2315
+ }
2316
+ promise = @client.make_request_async(:put, path_template, options)
2317
+
2318
+ promise = promise.then do |result|
2319
+ http_response = result.response
2320
+ status_code = http_response.status
2321
+ response_content = http_response.body
2322
+ unless status_code == 202 || status_code == 200
2323
+ error_model = JSON.load(response_content)
2324
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2325
+ end
2326
+
2327
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2328
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2329
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2330
+ # Deserialize Response
2331
+ if status_code == 200
2332
+ begin
2333
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2334
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::ThroughputSettingsGetResults.mapper()
2335
+ result.body = @client.deserialize(result_mapper, parsed_response)
2336
+ rescue Exception => e
2337
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2338
+ end
2339
+ end
2340
+
2341
+ result
2342
+ end
2343
+
2344
+ promise.execute
2345
+ end
2346
+
2347
+ #
2348
+ # Create or update an Azure Cosmos DB SQL container
2349
+ #
2350
+ # @param resource_group_name [String] The name of the resource group. The name
2351
+ # is case insensitive.
2352
+ # @param account_name [String] Cosmos DB database account name.
2353
+ # @param database_name [String] Cosmos DB database name.
2354
+ # @param container_name [String] Cosmos DB container name.
2355
+ # @param create_update_sql_container_parameters
2356
+ # [SqlContainerCreateUpdateParameters] The parameters to provide for the
2357
+ # current SQL container.
2358
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2359
+ # will be added to the HTTP request.
2360
+ #
2361
+ # @return [SqlContainerGetResults] operation results.
2362
+ #
2363
+ def begin_create_update_sql_container(resource_group_name, account_name, database_name, container_name, create_update_sql_container_parameters, custom_headers:nil)
2364
+ response = begin_create_update_sql_container_async(resource_group_name, account_name, database_name, container_name, create_update_sql_container_parameters, custom_headers:custom_headers).value!
2365
+ response.body unless response.nil?
2366
+ end
2367
+
2368
+ #
2369
+ # Create or update an Azure Cosmos DB SQL container
2370
+ #
2371
+ # @param resource_group_name [String] The name of the resource group. The name
2372
+ # is case insensitive.
2373
+ # @param account_name [String] Cosmos DB database account name.
2374
+ # @param database_name [String] Cosmos DB database name.
2375
+ # @param container_name [String] Cosmos DB container name.
2376
+ # @param create_update_sql_container_parameters
2377
+ # [SqlContainerCreateUpdateParameters] The parameters to provide for the
2378
+ # current SQL container.
2379
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2380
+ # will be added to the HTTP request.
2381
+ #
2382
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2383
+ #
2384
+ def begin_create_update_sql_container_with_http_info(resource_group_name, account_name, database_name, container_name, create_update_sql_container_parameters, custom_headers:nil)
2385
+ begin_create_update_sql_container_async(resource_group_name, account_name, database_name, container_name, create_update_sql_container_parameters, custom_headers:custom_headers).value!
2386
+ end
2387
+
2388
+ #
2389
+ # Create or update an Azure Cosmos DB SQL container
2390
+ #
2391
+ # @param resource_group_name [String] The name of the resource group. The name
2392
+ # is case insensitive.
2393
+ # @param account_name [String] Cosmos DB database account name.
2394
+ # @param database_name [String] Cosmos DB database name.
2395
+ # @param container_name [String] Cosmos DB container name.
2396
+ # @param create_update_sql_container_parameters
2397
+ # [SqlContainerCreateUpdateParameters] The parameters to provide for the
2398
+ # current SQL container.
2399
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2400
+ # to the HTTP request.
2401
+ #
2402
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2403
+ #
2404
+ def begin_create_update_sql_container_async(resource_group_name, account_name, database_name, container_name, create_update_sql_container_parameters, custom_headers:nil)
2405
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2406
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
2407
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2408
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
2409
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
2410
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
2411
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
2412
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
2413
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
2414
+ 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?
2415
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
2416
+ fail ArgumentError, 'container_name is nil' if container_name.nil?
2417
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2418
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
2419
+ fail ArgumentError, 'create_update_sql_container_parameters is nil' if create_update_sql_container_parameters.nil?
2420
+
2421
+
2422
+ request_headers = {}
2423
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2424
+
2425
+ # Set Headers
2426
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2427
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2428
+
2429
+ # Serialize Request
2430
+ request_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::SqlContainerCreateUpdateParameters.mapper()
2431
+ request_content = @client.serialize(request_mapper, create_update_sql_container_parameters)
2432
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
2433
+
2434
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}'
2435
+
2436
+ request_url = @base_url || @client.base_url
2437
+
2438
+ options = {
2439
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2440
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name,'containerName' => container_name},
2441
+ query_params: {'api-version' => @client.api_version},
2442
+ body: request_content,
2443
+ headers: request_headers.merge(custom_headers || {}),
2444
+ base_url: request_url
2445
+ }
2446
+ promise = @client.make_request_async(:put, path_template, options)
2447
+
2448
+ promise = promise.then do |result|
2449
+ http_response = result.response
2450
+ status_code = http_response.status
2451
+ response_content = http_response.body
2452
+ unless status_code == 202 || status_code == 200
2453
+ error_model = JSON.load(response_content)
2454
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2455
+ end
2456
+
2457
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2458
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2459
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2460
+ # Deserialize Response
2461
+ if status_code == 200
2462
+ begin
2463
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2464
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::SqlContainerGetResults.mapper()
2465
+ result.body = @client.deserialize(result_mapper, parsed_response)
2466
+ rescue Exception => e
2467
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2468
+ end
2469
+ end
2470
+
2471
+ result
2472
+ end
2473
+
2474
+ promise.execute
2475
+ end
2476
+
2477
+ #
2478
+ # Deletes an existing Azure Cosmos DB SQL container.
2479
+ #
2480
+ # @param resource_group_name [String] The name of the resource group. The name
2481
+ # is case insensitive.
2482
+ # @param account_name [String] Cosmos DB database account name.
2483
+ # @param database_name [String] Cosmos DB database name.
2484
+ # @param container_name [String] Cosmos DB container name.
2485
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2486
+ # will be added to the HTTP request.
2487
+ #
2488
+ #
2489
+ def begin_delete_sql_container(resource_group_name, account_name, database_name, container_name, custom_headers:nil)
2490
+ response = begin_delete_sql_container_async(resource_group_name, account_name, database_name, container_name, custom_headers:custom_headers).value!
2491
+ nil
2492
+ end
2493
+
2494
+ #
2495
+ # Deletes an existing Azure Cosmos DB SQL container.
2496
+ #
2497
+ # @param resource_group_name [String] The name of the resource group. The name
2498
+ # is case insensitive.
2499
+ # @param account_name [String] Cosmos DB database account name.
2500
+ # @param database_name [String] Cosmos DB database name.
2501
+ # @param container_name [String] Cosmos DB container name.
2502
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2503
+ # will be added to the HTTP request.
2504
+ #
2505
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2506
+ #
2507
+ def begin_delete_sql_container_with_http_info(resource_group_name, account_name, database_name, container_name, custom_headers:nil)
2508
+ begin_delete_sql_container_async(resource_group_name, account_name, database_name, container_name, custom_headers:custom_headers).value!
2509
+ end
2510
+
2511
+ #
2512
+ # Deletes an existing Azure Cosmos DB SQL container.
2513
+ #
2514
+ # @param resource_group_name [String] The name of the resource group. The name
2515
+ # is case insensitive.
2516
+ # @param account_name [String] Cosmos DB database account name.
2517
+ # @param database_name [String] Cosmos DB database name.
2518
+ # @param container_name [String] Cosmos DB container name.
2519
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2520
+ # to the HTTP request.
2521
+ #
2522
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2523
+ #
2524
+ def begin_delete_sql_container_async(resource_group_name, account_name, database_name, container_name, custom_headers:nil)
2525
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2526
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
2527
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2528
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
2529
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
2530
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
2531
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
2532
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
2533
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
2534
+ 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?
2535
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
2536
+ fail ArgumentError, 'container_name is nil' if container_name.nil?
2537
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2538
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
2539
+
2540
+
2541
+ request_headers = {}
2542
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2543
+
2544
+ # Set Headers
2545
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2546
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2547
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}'
2548
+
2549
+ request_url = @base_url || @client.base_url
2550
+
2551
+ options = {
2552
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2553
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name,'containerName' => container_name},
2554
+ query_params: {'api-version' => @client.api_version},
2555
+ headers: request_headers.merge(custom_headers || {}),
2556
+ base_url: request_url
2557
+ }
2558
+ promise = @client.make_request_async(:delete, path_template, options)
2559
+
2560
+ promise = promise.then do |result|
2561
+ http_response = result.response
2562
+ status_code = http_response.status
2563
+ response_content = http_response.body
2564
+ unless status_code == 202 || status_code == 204
2565
+ error_model = JSON.load(response_content)
2566
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2567
+ end
2568
+
2569
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2570
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2571
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2572
+
2573
+ result
2574
+ end
2575
+
2576
+ promise.execute
2577
+ end
2578
+
2579
+ #
2580
+ # Update RUs per second of an Azure Cosmos DB SQL container
2581
+ #
2582
+ # @param resource_group_name [String] The name of the resource group. The name
2583
+ # is case insensitive.
2584
+ # @param account_name [String] Cosmos DB database account name.
2585
+ # @param database_name [String] Cosmos DB database name.
2586
+ # @param container_name [String] Cosmos DB container name.
2587
+ # @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
2588
+ # parameters to provide for the RUs per second of the current SQL container.
2589
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2590
+ # will be added to the HTTP request.
2591
+ #
2592
+ # @return [ThroughputSettingsGetResults] operation results.
2593
+ #
2594
+ def begin_update_sql_container_throughput(resource_group_name, account_name, database_name, container_name, update_throughput_parameters, custom_headers:nil)
2595
+ response = begin_update_sql_container_throughput_async(resource_group_name, account_name, database_name, container_name, update_throughput_parameters, custom_headers:custom_headers).value!
2596
+ response.body unless response.nil?
2597
+ end
2598
+
2599
+ #
2600
+ # Update RUs per second of an Azure Cosmos DB SQL container
2601
+ #
2602
+ # @param resource_group_name [String] The name of the resource group. The name
2603
+ # is case insensitive.
2604
+ # @param account_name [String] Cosmos DB database account name.
2605
+ # @param database_name [String] Cosmos DB database name.
2606
+ # @param container_name [String] Cosmos DB container name.
2607
+ # @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
2608
+ # parameters to provide for the RUs per second of the current SQL container.
2609
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2610
+ # will be added to the HTTP request.
2611
+ #
2612
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2613
+ #
2614
+ def begin_update_sql_container_throughput_with_http_info(resource_group_name, account_name, database_name, container_name, update_throughput_parameters, custom_headers:nil)
2615
+ begin_update_sql_container_throughput_async(resource_group_name, account_name, database_name, container_name, update_throughput_parameters, custom_headers:custom_headers).value!
2616
+ end
2617
+
2618
+ #
2619
+ # Update RUs per second of an Azure Cosmos DB SQL container
2620
+ #
2621
+ # @param resource_group_name [String] The name of the resource group. The name
2622
+ # is case insensitive.
2623
+ # @param account_name [String] Cosmos DB database account name.
2624
+ # @param database_name [String] Cosmos DB database name.
2625
+ # @param container_name [String] Cosmos DB container name.
2626
+ # @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
2627
+ # parameters to provide for the RUs per second of the current SQL container.
2628
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2629
+ # to the HTTP request.
2630
+ #
2631
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2632
+ #
2633
+ def begin_update_sql_container_throughput_async(resource_group_name, account_name, database_name, container_name, update_throughput_parameters, custom_headers:nil)
2634
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2635
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
2636
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2637
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
2638
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
2639
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
2640
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
2641
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
2642
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
2643
+ 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?
2644
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
2645
+ fail ArgumentError, 'container_name is nil' if container_name.nil?
2646
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2647
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
2648
+ fail ArgumentError, 'update_throughput_parameters is nil' if update_throughput_parameters.nil?
2649
+
2650
+
2651
+ request_headers = {}
2652
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2653
+
2654
+ # Set Headers
2655
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2656
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2657
+
2658
+ # Serialize Request
2659
+ request_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::ThroughputSettingsUpdateParameters.mapper()
2660
+ request_content = @client.serialize(request_mapper, update_throughput_parameters)
2661
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
2662
+
2663
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default'
2664
+
2665
+ request_url = @base_url || @client.base_url
2666
+
2667
+ options = {
2668
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2669
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name,'containerName' => container_name},
2670
+ query_params: {'api-version' => @client.api_version},
2671
+ body: request_content,
2672
+ headers: request_headers.merge(custom_headers || {}),
2673
+ base_url: request_url
2674
+ }
2675
+ promise = @client.make_request_async(:put, path_template, options)
2676
+
2677
+ promise = promise.then do |result|
2678
+ http_response = result.response
2679
+ status_code = http_response.status
2680
+ response_content = http_response.body
2681
+ unless status_code == 202 || status_code == 200
2682
+ error_model = JSON.load(response_content)
2683
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2684
+ end
2685
+
2686
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2687
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2688
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2689
+ # Deserialize Response
2690
+ if status_code == 200
2691
+ begin
2692
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2693
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::ThroughputSettingsGetResults.mapper()
2694
+ result.body = @client.deserialize(result_mapper, parsed_response)
2695
+ rescue Exception => e
2696
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2697
+ end
2698
+ end
2699
+
2700
+ result
2701
+ end
2702
+
2703
+ promise.execute
2704
+ end
2705
+
2706
+ #
2707
+ # Create or update an Azure Cosmos DB SQL storedProcedure
2708
+ #
2709
+ # @param resource_group_name [String] The name of the resource group. The name
2710
+ # is case insensitive.
2711
+ # @param account_name [String] Cosmos DB database account name.
2712
+ # @param database_name [String] Cosmos DB database name.
2713
+ # @param container_name [String] Cosmos DB container name.
2714
+ # @param stored_procedure_name [String] Cosmos DB storedProcedure name.
2715
+ # @param create_update_sql_stored_procedure_parameters
2716
+ # [SqlStoredProcedureCreateUpdateParameters] The parameters to provide for the
2717
+ # current SQL storedProcedure.
2718
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2719
+ # will be added to the HTTP request.
2720
+ #
2721
+ # @return [SqlStoredProcedureGetResults] operation results.
2722
+ #
2723
+ def begin_create_update_sql_stored_procedure(resource_group_name, account_name, database_name, container_name, stored_procedure_name, create_update_sql_stored_procedure_parameters, custom_headers:nil)
2724
+ response = begin_create_update_sql_stored_procedure_async(resource_group_name, account_name, database_name, container_name, stored_procedure_name, create_update_sql_stored_procedure_parameters, custom_headers:custom_headers).value!
2725
+ response.body unless response.nil?
2726
+ end
2727
+
2728
+ #
2729
+ # Create or update an Azure Cosmos DB SQL storedProcedure
2730
+ #
2731
+ # @param resource_group_name [String] The name of the resource group. The name
2732
+ # is case insensitive.
2733
+ # @param account_name [String] Cosmos DB database account name.
2734
+ # @param database_name [String] Cosmos DB database name.
2735
+ # @param container_name [String] Cosmos DB container name.
2736
+ # @param stored_procedure_name [String] Cosmos DB storedProcedure name.
2737
+ # @param create_update_sql_stored_procedure_parameters
2738
+ # [SqlStoredProcedureCreateUpdateParameters] The parameters to provide for the
2739
+ # current SQL storedProcedure.
2740
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2741
+ # will be added to the HTTP request.
2742
+ #
2743
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2744
+ #
2745
+ def begin_create_update_sql_stored_procedure_with_http_info(resource_group_name, account_name, database_name, container_name, stored_procedure_name, create_update_sql_stored_procedure_parameters, custom_headers:nil)
2746
+ begin_create_update_sql_stored_procedure_async(resource_group_name, account_name, database_name, container_name, stored_procedure_name, create_update_sql_stored_procedure_parameters, custom_headers:custom_headers).value!
2747
+ end
2748
+
2749
+ #
2750
+ # Create or update an Azure Cosmos DB SQL storedProcedure
2751
+ #
2752
+ # @param resource_group_name [String] The name of the resource group. The name
2753
+ # is case insensitive.
2754
+ # @param account_name [String] Cosmos DB database account name.
2755
+ # @param database_name [String] Cosmos DB database name.
2756
+ # @param container_name [String] Cosmos DB container name.
2757
+ # @param stored_procedure_name [String] Cosmos DB storedProcedure name.
2758
+ # @param create_update_sql_stored_procedure_parameters
2759
+ # [SqlStoredProcedureCreateUpdateParameters] The parameters to provide for the
2760
+ # current SQL storedProcedure.
2761
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2762
+ # to the HTTP request.
2763
+ #
2764
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2765
+ #
2766
+ def begin_create_update_sql_stored_procedure_async(resource_group_name, account_name, database_name, container_name, stored_procedure_name, create_update_sql_stored_procedure_parameters, custom_headers:nil)
2767
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2768
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
2769
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2770
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
2771
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
2772
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
2773
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
2774
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
2775
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
2776
+ 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?
2777
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
2778
+ fail ArgumentError, 'container_name is nil' if container_name.nil?
2779
+ fail ArgumentError, 'stored_procedure_name is nil' if stored_procedure_name.nil?
2780
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2781
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
2782
+ fail ArgumentError, 'create_update_sql_stored_procedure_parameters is nil' if create_update_sql_stored_procedure_parameters.nil?
2783
+
2784
+
2785
+ request_headers = {}
2786
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2787
+
2788
+ # Set Headers
2789
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2790
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2791
+
2792
+ # Serialize Request
2793
+ request_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::SqlStoredProcedureCreateUpdateParameters.mapper()
2794
+ request_content = @client.serialize(request_mapper, create_update_sql_stored_procedure_parameters)
2795
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
2796
+
2797
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures/{storedProcedureName}'
2798
+
2799
+ request_url = @base_url || @client.base_url
2800
+
2801
+ options = {
2802
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2803
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name,'containerName' => container_name,'storedProcedureName' => stored_procedure_name},
2804
+ query_params: {'api-version' => @client.api_version},
2805
+ body: request_content,
2806
+ headers: request_headers.merge(custom_headers || {}),
2807
+ base_url: request_url
2808
+ }
2809
+ promise = @client.make_request_async(:put, path_template, options)
2810
+
2811
+ promise = promise.then do |result|
2812
+ http_response = result.response
2813
+ status_code = http_response.status
2814
+ response_content = http_response.body
2815
+ unless status_code == 202 || status_code == 200
2816
+ error_model = JSON.load(response_content)
2817
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2818
+ end
2819
+
2820
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2821
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2822
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2823
+ # Deserialize Response
2824
+ if status_code == 200
2825
+ begin
2826
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2827
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::SqlStoredProcedureGetResults.mapper()
2828
+ result.body = @client.deserialize(result_mapper, parsed_response)
2829
+ rescue Exception => e
2830
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2831
+ end
2832
+ end
2833
+
2834
+ result
2835
+ end
2836
+
2837
+ promise.execute
2838
+ end
2839
+
2840
+ #
2841
+ # Deletes an existing Azure Cosmos DB SQL storedProcedure.
2842
+ #
2843
+ # @param resource_group_name [String] The name of the resource group. The name
2844
+ # is case insensitive.
2845
+ # @param account_name [String] Cosmos DB database account name.
2846
+ # @param database_name [String] Cosmos DB database name.
2847
+ # @param container_name [String] Cosmos DB container name.
2848
+ # @param stored_procedure_name [String] Cosmos DB storedProcedure name.
2849
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2850
+ # will be added to the HTTP request.
2851
+ #
2852
+ #
2853
+ def begin_delete_sql_stored_procedure(resource_group_name, account_name, database_name, container_name, stored_procedure_name, custom_headers:nil)
2854
+ response = begin_delete_sql_stored_procedure_async(resource_group_name, account_name, database_name, container_name, stored_procedure_name, custom_headers:custom_headers).value!
2855
+ nil
2856
+ end
2857
+
2858
+ #
2859
+ # Deletes an existing Azure Cosmos DB SQL storedProcedure.
2860
+ #
2861
+ # @param resource_group_name [String] The name of the resource group. The name
2862
+ # is case insensitive.
2863
+ # @param account_name [String] Cosmos DB database account name.
2864
+ # @param database_name [String] Cosmos DB database name.
2865
+ # @param container_name [String] Cosmos DB container name.
2866
+ # @param stored_procedure_name [String] Cosmos DB storedProcedure name.
2867
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2868
+ # will be added to the HTTP request.
2869
+ #
2870
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2871
+ #
2872
+ def begin_delete_sql_stored_procedure_with_http_info(resource_group_name, account_name, database_name, container_name, stored_procedure_name, custom_headers:nil)
2873
+ begin_delete_sql_stored_procedure_async(resource_group_name, account_name, database_name, container_name, stored_procedure_name, custom_headers:custom_headers).value!
2874
+ end
2875
+
2876
+ #
2877
+ # Deletes an existing Azure Cosmos DB SQL storedProcedure.
2878
+ #
2879
+ # @param resource_group_name [String] The name of the resource group. The name
2880
+ # is case insensitive.
2881
+ # @param account_name [String] Cosmos DB database account name.
2882
+ # @param database_name [String] Cosmos DB database name.
2883
+ # @param container_name [String] Cosmos DB container name.
2884
+ # @param stored_procedure_name [String] Cosmos DB storedProcedure name.
2885
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2886
+ # to the HTTP request.
2887
+ #
2888
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2889
+ #
2890
+ def begin_delete_sql_stored_procedure_async(resource_group_name, account_name, database_name, container_name, stored_procedure_name, custom_headers:nil)
2891
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2892
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
2893
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2894
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
2895
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
2896
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
2897
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
2898
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
2899
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
2900
+ 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?
2901
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
2902
+ fail ArgumentError, 'container_name is nil' if container_name.nil?
2903
+ fail ArgumentError, 'stored_procedure_name is nil' if stored_procedure_name.nil?
2904
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2905
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
2906
+
2907
+
2908
+ request_headers = {}
2909
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2910
+
2911
+ # Set Headers
2912
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2913
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2914
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures/{storedProcedureName}'
2915
+
2916
+ request_url = @base_url || @client.base_url
2917
+
2918
+ options = {
2919
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2920
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name,'containerName' => container_name,'storedProcedureName' => stored_procedure_name},
2921
+ query_params: {'api-version' => @client.api_version},
2922
+ headers: request_headers.merge(custom_headers || {}),
2923
+ base_url: request_url
2924
+ }
2925
+ promise = @client.make_request_async(:delete, path_template, options)
2926
+
2927
+ promise = promise.then do |result|
2928
+ http_response = result.response
2929
+ status_code = http_response.status
2930
+ response_content = http_response.body
2931
+ unless status_code == 202 || status_code == 204
2932
+ error_model = JSON.load(response_content)
2933
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2934
+ end
2935
+
2936
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2937
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2938
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2939
+
2940
+ result
2941
+ end
2942
+
2943
+ promise.execute
2944
+ end
2945
+
2946
+ #
2947
+ # Create or update an Azure Cosmos DB SQL userDefinedFunction
2948
+ #
2949
+ # @param resource_group_name [String] The name of the resource group. The name
2950
+ # is case insensitive.
2951
+ # @param account_name [String] Cosmos DB database account name.
2952
+ # @param database_name [String] Cosmos DB database name.
2953
+ # @param container_name [String] Cosmos DB container name.
2954
+ # @param user_defined_function_name [String] Cosmos DB userDefinedFunction
2955
+ # name.
2956
+ # @param create_update_sql_user_defined_function_parameters
2957
+ # [SqlUserDefinedFunctionCreateUpdateParameters] The parameters to provide for
2958
+ # the current SQL userDefinedFunction.
2959
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2960
+ # will be added to the HTTP request.
2961
+ #
2962
+ # @return [SqlUserDefinedFunctionGetResults] operation results.
2963
+ #
2964
+ def begin_create_update_sql_user_defined_function(resource_group_name, account_name, database_name, container_name, user_defined_function_name, create_update_sql_user_defined_function_parameters, custom_headers:nil)
2965
+ response = begin_create_update_sql_user_defined_function_async(resource_group_name, account_name, database_name, container_name, user_defined_function_name, create_update_sql_user_defined_function_parameters, custom_headers:custom_headers).value!
2966
+ response.body unless response.nil?
2967
+ end
2968
+
2969
+ #
2970
+ # Create or update an Azure Cosmos DB SQL userDefinedFunction
2971
+ #
2972
+ # @param resource_group_name [String] The name of the resource group. The name
2973
+ # is case insensitive.
2974
+ # @param account_name [String] Cosmos DB database account name.
2975
+ # @param database_name [String] Cosmos DB database name.
2976
+ # @param container_name [String] Cosmos DB container name.
2977
+ # @param user_defined_function_name [String] Cosmos DB userDefinedFunction
2978
+ # name.
2979
+ # @param create_update_sql_user_defined_function_parameters
2980
+ # [SqlUserDefinedFunctionCreateUpdateParameters] The parameters to provide for
2981
+ # the current SQL userDefinedFunction.
2982
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2983
+ # will be added to the HTTP request.
2984
+ #
2985
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2986
+ #
2987
+ def begin_create_update_sql_user_defined_function_with_http_info(resource_group_name, account_name, database_name, container_name, user_defined_function_name, create_update_sql_user_defined_function_parameters, custom_headers:nil)
2988
+ begin_create_update_sql_user_defined_function_async(resource_group_name, account_name, database_name, container_name, user_defined_function_name, create_update_sql_user_defined_function_parameters, custom_headers:custom_headers).value!
2989
+ end
2990
+
2991
+ #
2992
+ # Create or update an Azure Cosmos DB SQL userDefinedFunction
2993
+ #
2994
+ # @param resource_group_name [String] The name of the resource group. The name
2995
+ # is case insensitive.
2996
+ # @param account_name [String] Cosmos DB database account name.
2997
+ # @param database_name [String] Cosmos DB database name.
2998
+ # @param container_name [String] Cosmos DB container name.
2999
+ # @param user_defined_function_name [String] Cosmos DB userDefinedFunction
3000
+ # name.
3001
+ # @param create_update_sql_user_defined_function_parameters
3002
+ # [SqlUserDefinedFunctionCreateUpdateParameters] The parameters to provide for
3003
+ # the current SQL userDefinedFunction.
3004
+ # @param [Hash{String => String}] A hash of custom headers that will be added
3005
+ # to the HTTP request.
3006
+ #
3007
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
3008
+ #
3009
+ def begin_create_update_sql_user_defined_function_async(resource_group_name, account_name, database_name, container_name, user_defined_function_name, create_update_sql_user_defined_function_parameters, custom_headers:nil)
3010
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
3011
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
3012
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
3013
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
3014
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
3015
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
3016
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
3017
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
3018
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
3019
+ 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?
3020
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
3021
+ fail ArgumentError, 'container_name is nil' if container_name.nil?
3022
+ fail ArgumentError, 'user_defined_function_name is nil' if user_defined_function_name.nil?
3023
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
3024
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
3025
+ fail ArgumentError, 'create_update_sql_user_defined_function_parameters is nil' if create_update_sql_user_defined_function_parameters.nil?
3026
+
3027
+
3028
+ request_headers = {}
3029
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
3030
+
3031
+ # Set Headers
3032
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
3033
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
3034
+
3035
+ # Serialize Request
3036
+ request_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::SqlUserDefinedFunctionCreateUpdateParameters.mapper()
3037
+ request_content = @client.serialize(request_mapper, create_update_sql_user_defined_function_parameters)
3038
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
3039
+
3040
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions/{userDefinedFunctionName}'
3041
+
3042
+ request_url = @base_url || @client.base_url
3043
+
3044
+ options = {
3045
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
3046
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name,'containerName' => container_name,'userDefinedFunctionName' => user_defined_function_name},
3047
+ query_params: {'api-version' => @client.api_version},
3048
+ body: request_content,
3049
+ headers: request_headers.merge(custom_headers || {}),
3050
+ base_url: request_url
3051
+ }
3052
+ promise = @client.make_request_async(:put, path_template, options)
3053
+
3054
+ promise = promise.then do |result|
3055
+ http_response = result.response
3056
+ status_code = http_response.status
3057
+ response_content = http_response.body
3058
+ unless status_code == 202 || status_code == 200
3059
+ error_model = JSON.load(response_content)
3060
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
3061
+ end
3062
+
3063
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
3064
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
3065
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
3066
+ # Deserialize Response
3067
+ if status_code == 200
3068
+ begin
3069
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
3070
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::SqlUserDefinedFunctionGetResults.mapper()
3071
+ result.body = @client.deserialize(result_mapper, parsed_response)
3072
+ rescue Exception => e
3073
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
3074
+ end
3075
+ end
3076
+
3077
+ result
3078
+ end
3079
+
3080
+ promise.execute
3081
+ end
3082
+
3083
+ #
3084
+ # Deletes an existing Azure Cosmos DB SQL userDefinedFunction.
3085
+ #
3086
+ # @param resource_group_name [String] The name of the resource group. The name
3087
+ # is case insensitive.
3088
+ # @param account_name [String] Cosmos DB database account name.
3089
+ # @param database_name [String] Cosmos DB database name.
3090
+ # @param container_name [String] Cosmos DB container name.
3091
+ # @param user_defined_function_name [String] Cosmos DB userDefinedFunction
3092
+ # name.
3093
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3094
+ # will be added to the HTTP request.
3095
+ #
3096
+ #
3097
+ def begin_delete_sql_user_defined_function(resource_group_name, account_name, database_name, container_name, user_defined_function_name, custom_headers:nil)
3098
+ response = begin_delete_sql_user_defined_function_async(resource_group_name, account_name, database_name, container_name, user_defined_function_name, custom_headers:custom_headers).value!
3099
+ nil
3100
+ end
3101
+
3102
+ #
3103
+ # Deletes an existing Azure Cosmos DB SQL userDefinedFunction.
3104
+ #
3105
+ # @param resource_group_name [String] The name of the resource group. The name
3106
+ # is case insensitive.
3107
+ # @param account_name [String] Cosmos DB database account name.
3108
+ # @param database_name [String] Cosmos DB database name.
3109
+ # @param container_name [String] Cosmos DB container name.
3110
+ # @param user_defined_function_name [String] Cosmos DB userDefinedFunction
3111
+ # name.
3112
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3113
+ # will be added to the HTTP request.
3114
+ #
3115
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
3116
+ #
3117
+ def begin_delete_sql_user_defined_function_with_http_info(resource_group_name, account_name, database_name, container_name, user_defined_function_name, custom_headers:nil)
3118
+ begin_delete_sql_user_defined_function_async(resource_group_name, account_name, database_name, container_name, user_defined_function_name, custom_headers:custom_headers).value!
3119
+ end
3120
+
3121
+ #
3122
+ # Deletes an existing Azure Cosmos DB SQL userDefinedFunction.
3123
+ #
3124
+ # @param resource_group_name [String] The name of the resource group. The name
3125
+ # is case insensitive.
3126
+ # @param account_name [String] Cosmos DB database account name.
3127
+ # @param database_name [String] Cosmos DB database name.
3128
+ # @param container_name [String] Cosmos DB container name.
3129
+ # @param user_defined_function_name [String] Cosmos DB userDefinedFunction
3130
+ # name.
3131
+ # @param [Hash{String => String}] A hash of custom headers that will be added
3132
+ # to the HTTP request.
3133
+ #
3134
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
3135
+ #
3136
+ def begin_delete_sql_user_defined_function_async(resource_group_name, account_name, database_name, container_name, user_defined_function_name, custom_headers:nil)
3137
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
3138
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
3139
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
3140
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
3141
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
3142
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
3143
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
3144
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
3145
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
3146
+ 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?
3147
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
3148
+ fail ArgumentError, 'container_name is nil' if container_name.nil?
3149
+ fail ArgumentError, 'user_defined_function_name is nil' if user_defined_function_name.nil?
3150
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
3151
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
3152
+
3153
+
3154
+ request_headers = {}
3155
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
3156
+
3157
+ # Set Headers
3158
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
3159
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
3160
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions/{userDefinedFunctionName}'
3161
+
3162
+ request_url = @base_url || @client.base_url
3163
+
3164
+ options = {
3165
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
3166
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name,'containerName' => container_name,'userDefinedFunctionName' => user_defined_function_name},
3167
+ query_params: {'api-version' => @client.api_version},
3168
+ headers: request_headers.merge(custom_headers || {}),
3169
+ base_url: request_url
3170
+ }
3171
+ promise = @client.make_request_async(:delete, path_template, options)
3172
+
3173
+ promise = promise.then do |result|
3174
+ http_response = result.response
3175
+ status_code = http_response.status
3176
+ response_content = http_response.body
3177
+ unless status_code == 202 || status_code == 204
3178
+ error_model = JSON.load(response_content)
3179
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
3180
+ end
3181
+
3182
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
3183
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
3184
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
3185
+
3186
+ result
3187
+ end
3188
+
3189
+ promise.execute
3190
+ end
3191
+
3192
+ #
3193
+ # Create or update an Azure Cosmos DB SQL trigger
3194
+ #
3195
+ # @param resource_group_name [String] The name of the resource group. The name
3196
+ # is case insensitive.
3197
+ # @param account_name [String] Cosmos DB database account name.
3198
+ # @param database_name [String] Cosmos DB database name.
3199
+ # @param container_name [String] Cosmos DB container name.
3200
+ # @param trigger_name [String] Cosmos DB trigger name.
3201
+ # @param create_update_sql_trigger_parameters
3202
+ # [SqlTriggerCreateUpdateParameters] The parameters to provide for the current
3203
+ # SQL trigger.
3204
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3205
+ # will be added to the HTTP request.
3206
+ #
3207
+ # @return [SqlTriggerGetResults] operation results.
3208
+ #
3209
+ def begin_create_update_sql_trigger(resource_group_name, account_name, database_name, container_name, trigger_name, create_update_sql_trigger_parameters, custom_headers:nil)
3210
+ response = begin_create_update_sql_trigger_async(resource_group_name, account_name, database_name, container_name, trigger_name, create_update_sql_trigger_parameters, custom_headers:custom_headers).value!
3211
+ response.body unless response.nil?
3212
+ end
3213
+
3214
+ #
3215
+ # Create or update an Azure Cosmos DB SQL trigger
3216
+ #
3217
+ # @param resource_group_name [String] The name of the resource group. The name
3218
+ # is case insensitive.
3219
+ # @param account_name [String] Cosmos DB database account name.
3220
+ # @param database_name [String] Cosmos DB database name.
3221
+ # @param container_name [String] Cosmos DB container name.
3222
+ # @param trigger_name [String] Cosmos DB trigger name.
3223
+ # @param create_update_sql_trigger_parameters
3224
+ # [SqlTriggerCreateUpdateParameters] The parameters to provide for the current
3225
+ # SQL trigger.
3226
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3227
+ # will be added to the HTTP request.
3228
+ #
3229
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
3230
+ #
3231
+ def begin_create_update_sql_trigger_with_http_info(resource_group_name, account_name, database_name, container_name, trigger_name, create_update_sql_trigger_parameters, custom_headers:nil)
3232
+ begin_create_update_sql_trigger_async(resource_group_name, account_name, database_name, container_name, trigger_name, create_update_sql_trigger_parameters, custom_headers:custom_headers).value!
3233
+ end
3234
+
3235
+ #
3236
+ # Create or update an Azure Cosmos DB SQL trigger
3237
+ #
3238
+ # @param resource_group_name [String] The name of the resource group. The name
3239
+ # is case insensitive.
3240
+ # @param account_name [String] Cosmos DB database account name.
3241
+ # @param database_name [String] Cosmos DB database name.
3242
+ # @param container_name [String] Cosmos DB container name.
3243
+ # @param trigger_name [String] Cosmos DB trigger name.
3244
+ # @param create_update_sql_trigger_parameters
3245
+ # [SqlTriggerCreateUpdateParameters] The parameters to provide for the current
3246
+ # SQL trigger.
3247
+ # @param [Hash{String => String}] A hash of custom headers that will be added
3248
+ # to the HTTP request.
3249
+ #
3250
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
3251
+ #
3252
+ def begin_create_update_sql_trigger_async(resource_group_name, account_name, database_name, container_name, trigger_name, create_update_sql_trigger_parameters, custom_headers:nil)
3253
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
3254
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
3255
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
3256
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
3257
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
3258
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
3259
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
3260
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
3261
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
3262
+ 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?
3263
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
3264
+ fail ArgumentError, 'container_name is nil' if container_name.nil?
3265
+ fail ArgumentError, 'trigger_name is nil' if trigger_name.nil?
3266
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
3267
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
3268
+ fail ArgumentError, 'create_update_sql_trigger_parameters is nil' if create_update_sql_trigger_parameters.nil?
3269
+
3270
+
3271
+ request_headers = {}
3272
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
3273
+
3274
+ # Set Headers
3275
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
3276
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
3277
+
3278
+ # Serialize Request
3279
+ request_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::SqlTriggerCreateUpdateParameters.mapper()
3280
+ request_content = @client.serialize(request_mapper, create_update_sql_trigger_parameters)
3281
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
3282
+
3283
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers/{triggerName}'
3284
+
3285
+ request_url = @base_url || @client.base_url
3286
+
3287
+ options = {
3288
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
3289
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name,'containerName' => container_name,'triggerName' => trigger_name},
3290
+ query_params: {'api-version' => @client.api_version},
3291
+ body: request_content,
3292
+ headers: request_headers.merge(custom_headers || {}),
3293
+ base_url: request_url
3294
+ }
3295
+ promise = @client.make_request_async(:put, path_template, options)
3296
+
3297
+ promise = promise.then do |result|
3298
+ http_response = result.response
3299
+ status_code = http_response.status
3300
+ response_content = http_response.body
3301
+ unless status_code == 202 || status_code == 200
3302
+ error_model = JSON.load(response_content)
3303
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
3304
+ end
3305
+
3306
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
3307
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
3308
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
3309
+ # Deserialize Response
3310
+ if status_code == 200
3311
+ begin
3312
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
3313
+ result_mapper = Azure::Cosmosdb::Mgmt::V2020_03_01::Models::SqlTriggerGetResults.mapper()
3314
+ result.body = @client.deserialize(result_mapper, parsed_response)
3315
+ rescue Exception => e
3316
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
3317
+ end
3318
+ end
3319
+
3320
+ result
3321
+ end
3322
+
3323
+ promise.execute
3324
+ end
3325
+
3326
+ #
3327
+ # Deletes an existing Azure Cosmos DB SQL trigger.
3328
+ #
3329
+ # @param resource_group_name [String] The name of the resource group. The name
3330
+ # is case insensitive.
3331
+ # @param account_name [String] Cosmos DB database account name.
3332
+ # @param database_name [String] Cosmos DB database name.
3333
+ # @param container_name [String] Cosmos DB container name.
3334
+ # @param trigger_name [String] Cosmos DB trigger name.
3335
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3336
+ # will be added to the HTTP request.
3337
+ #
3338
+ #
3339
+ def begin_delete_sql_trigger(resource_group_name, account_name, database_name, container_name, trigger_name, custom_headers:nil)
3340
+ response = begin_delete_sql_trigger_async(resource_group_name, account_name, database_name, container_name, trigger_name, custom_headers:custom_headers).value!
3341
+ nil
3342
+ end
3343
+
3344
+ #
3345
+ # Deletes an existing Azure Cosmos DB SQL trigger.
3346
+ #
3347
+ # @param resource_group_name [String] The name of the resource group. The name
3348
+ # is case insensitive.
3349
+ # @param account_name [String] Cosmos DB database account name.
3350
+ # @param database_name [String] Cosmos DB database name.
3351
+ # @param container_name [String] Cosmos DB container name.
3352
+ # @param trigger_name [String] Cosmos DB trigger name.
3353
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
3354
+ # will be added to the HTTP request.
3355
+ #
3356
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
3357
+ #
3358
+ def begin_delete_sql_trigger_with_http_info(resource_group_name, account_name, database_name, container_name, trigger_name, custom_headers:nil)
3359
+ begin_delete_sql_trigger_async(resource_group_name, account_name, database_name, container_name, trigger_name, custom_headers:custom_headers).value!
3360
+ end
3361
+
3362
+ #
3363
+ # Deletes an existing Azure Cosmos DB SQL trigger.
3364
+ #
3365
+ # @param resource_group_name [String] The name of the resource group. The name
3366
+ # is case insensitive.
3367
+ # @param account_name [String] Cosmos DB database account name.
3368
+ # @param database_name [String] Cosmos DB database name.
3369
+ # @param container_name [String] Cosmos DB container name.
3370
+ # @param trigger_name [String] Cosmos DB trigger name.
3371
+ # @param [Hash{String => String}] A hash of custom headers that will be added
3372
+ # to the HTTP request.
3373
+ #
3374
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
3375
+ #
3376
+ def begin_delete_sql_trigger_async(resource_group_name, account_name, database_name, container_name, trigger_name, custom_headers:nil)
3377
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
3378
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
3379
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
3380
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
3381
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
3382
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
3383
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
3384
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
3385
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
3386
+ 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?
3387
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
3388
+ fail ArgumentError, 'container_name is nil' if container_name.nil?
3389
+ fail ArgumentError, 'trigger_name is nil' if trigger_name.nil?
3390
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
3391
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
3392
+
3393
+
3394
+ request_headers = {}
3395
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
3396
+
3397
+ # Set Headers
3398
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
3399
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
3400
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers/{triggerName}'
3401
+
3402
+ request_url = @base_url || @client.base_url
3403
+
3404
+ options = {
3405
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
3406
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'databaseName' => database_name,'containerName' => container_name,'triggerName' => trigger_name},
3407
+ query_params: {'api-version' => @client.api_version},
3408
+ headers: request_headers.merge(custom_headers || {}),
3409
+ base_url: request_url
3410
+ }
3411
+ promise = @client.make_request_async(:delete, path_template, options)
3412
+
3413
+ promise = promise.then do |result|
3414
+ http_response = result.response
3415
+ status_code = http_response.status
3416
+ response_content = http_response.body
3417
+ unless status_code == 202 || status_code == 204
3418
+ error_model = JSON.load(response_content)
3419
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
3420
+ end
3421
+
3422
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
3423
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
3424
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
3425
+
3426
+ result
3427
+ end
3428
+
3429
+ promise.execute
3430
+ end
3431
+
3432
+ end
3433
+ end