azure_mgmt_sql 0.16.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (206) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2014-04-01/generated/azure_mgmt_sql.rb +62 -61
  3. data/lib/2014-04-01/generated/azure_mgmt_sql/models/database.rb +8 -8
  4. data/lib/2014-04-01/generated/azure_mgmt_sql/models/elastic_pool.rb +8 -8
  5. data/lib/2014-04-01/generated/azure_mgmt_sql/models/server.rb +8 -8
  6. data/lib/2014-04-01/generated/azure_mgmt_sql/models/tracked_resource.rb +11 -11
  7. data/lib/2014-04-01/generated/azure_mgmt_sql/server_advisors.rb +454 -0
  8. data/lib/2014-04-01/generated/azure_mgmt_sql/sql_management_client.rb +22 -17
  9. data/lib/2015-05-01-preview/generated/azure_mgmt_sql.rb +43 -25
  10. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_automatic_tuning_operations.rb +246 -0
  11. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_blob_auditing_policies.rb +6 -12
  12. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/firewall_rules.rb +666 -0
  13. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/managed_instances.rb +986 -0
  14. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_disabled_reason.rb +21 -0
  15. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_mode.rb +18 -0
  16. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_option_mode_actual.rb +16 -0
  17. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_option_mode_desired.rb +17 -0
  18. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/automatic_tuning_options.rb +91 -0
  19. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/database_automatic_tuning.rb +110 -0
  20. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/database_blob_auditing_policy.rb +72 -2
  21. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/firewall_rule.rb +86 -0
  22. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/firewall_rule_list.rb +55 -0
  23. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/firewall_rule_list_result.rb +100 -0
  24. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/managed_instance.rb +206 -0
  25. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/managed_instance_list_result.rb +100 -0
  26. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/managed_instance_update.rb +161 -0
  27. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/proxy_resource_with_writable_name.rb +61 -0
  28. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/resource_with_writable_name.rb +70 -0
  29. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/models/sku.rb +97 -0
  30. data/lib/2015-05-01-preview/generated/azure_mgmt_sql/sql_management_client.rb +20 -6
  31. data/lib/2017-03-01-preview/generated/azure_mgmt_sql.rb +88 -11
  32. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/backup_long_term_retention_policies.rb +402 -0
  33. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/data_warehouse_user_activities_operations.rb +134 -0
  34. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/database_blob_auditing_policies.rb +258 -0
  35. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/database_operations.rb +4 -4
  36. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/database_vulnerability_assessment_rule_baselines.rb +400 -0
  37. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/database_vulnerability_assessments.rb +356 -0
  38. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/databases.rb +4 -4
  39. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/extended_database_blob_auditing_policies.rb +258 -0
  40. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/extended_server_blob_auditing_policies.rb +290 -0
  41. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_agents.rb +816 -0
  42. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_credentials.rb +571 -0
  43. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_executions.rb +1101 -0
  44. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_step_executions.rb +415 -0
  45. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_steps.rb +927 -0
  46. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_target_executions.rb +697 -0
  47. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_target_groups.rb +571 -0
  48. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_versions.rb +358 -0
  49. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/jobs.rb +570 -0
  50. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/long_term_retention_backups.rb +925 -0
  51. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/managed_databases.rb +963 -0
  52. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/backup_long_term_retention_policy.rb +110 -0
  53. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/blob_auditing_policy_state.rb +16 -0
  54. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/complete_database_restore_definition.rb +47 -0
  55. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/create_mode.rb +1 -0
  56. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/data_warehouse_user_activities.rb +74 -0
  57. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database.rb +9 -9
  58. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_blob_auditing_policy.rb +238 -0
  59. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_operation.rb +36 -0
  60. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/{status.rb → database_status.rb} +2 -2
  61. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_update.rb +9 -9
  62. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_vulnerability_assessment.rb +100 -0
  63. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_vulnerability_assessment_rule_baseline.rb +84 -0
  64. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/database_vulnerability_assessment_rule_baseline_item.rb +56 -0
  65. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/extended_database_blob_auditing_policy.rb +238 -0
  66. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/extended_server_blob_auditing_policy.rb +238 -0
  67. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job.rb +99 -0
  68. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_agent.rb +122 -0
  69. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_agent_list_result.rb +100 -0
  70. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_agent_state.rb +19 -0
  71. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_agent_update.rb +54 -0
  72. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_credential.rb +85 -0
  73. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_credential_list_result.rb +100 -0
  74. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_execution.rb +224 -0
  75. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_execution_lifecycle.rb +24 -0
  76. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_execution_list_result.rb +100 -0
  77. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_execution_target.rb +73 -0
  78. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_list_result.rb +100 -0
  79. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_schedule.rb +98 -0
  80. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_schedule_type.rb +16 -0
  81. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_step.rb +135 -0
  82. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_step_action.rb +73 -0
  83. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_step_action_source.rb +15 -0
  84. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_step_action_type.rb +15 -0
  85. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_step_execution_options.rb +100 -0
  86. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_step_list_result.rb +100 -0
  87. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_step_output.rb +127 -0
  88. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_step_output_type.rb +15 -0
  89. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_target.rb +121 -0
  90. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_target_group.rb +82 -0
  91. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_target_group_list_result.rb +100 -0
  92. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_target_group_membership_type.rb +16 -0
  93. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_target_type.rb +19 -0
  94. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_version.rb +62 -0
  95. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/job_version_list_result.rb +100 -0
  96. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/long_term_retention_backup.rb +134 -0
  97. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/{database_restore_point_list_result.rb → long_term_retention_backup_list_result.rb} +9 -9
  98. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/long_term_retention_database_state.rb +17 -0
  99. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/managed_database.rb +242 -0
  100. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/managed_database_create_mode.rb +17 -0
  101. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/managed_database_list_result.rb +100 -0
  102. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/managed_database_status.rb +19 -0
  103. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/managed_database_update.rb +210 -0
  104. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/provisioning_state.rb +19 -0
  105. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/{database_restore_point.rb → restore_point.rb} +6 -5
  106. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/restore_point_list_result.rb +68 -0
  107. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/security_alert_policy_state.rb +17 -0
  108. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/sensitivity_label.rb +84 -0
  109. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/sensitivity_label_list_result.rb +100 -0
  110. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/sensitivity_label_source.rb +16 -0
  111. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_blob_auditing_policy.rb +226 -0
  112. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/server_security_alert_policy.rb +166 -0
  113. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/{arm_sku.rb → sku.rb} +16 -11
  114. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/vulnerability_assessment_policy_baseline_name.rb +16 -0
  115. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/models/vulnerability_assessment_recurring_scans_properties.rb +80 -0
  116. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/{database_restore_points.rb → restore_points.rb} +93 -111
  117. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/sensitivity_labels.rb +612 -0
  118. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/server_automatic_tuning_operations.rb +4 -4
  119. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/server_blob_auditing_policies.rb +290 -0
  120. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/server_dns_aliases.rb +4 -4
  121. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/server_security_alert_policies.rb +290 -0
  122. data/lib/2017-03-01-preview/generated/azure_mgmt_sql/sql_management_client.rb +100 -9
  123. data/lib/2017-10-01-preview/generated/azure_mgmt_sql.rb +104 -0
  124. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/backup_short_term_retention_policies.rb +684 -0
  125. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/capabilities.rb +128 -0
  126. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/database_operations.rb +338 -0
  127. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/database_vulnerability_assessment_scans.rb +621 -0
  128. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/databases.rb +1566 -0
  129. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/elastic_pool_operations.rb +338 -0
  130. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/elastic_pools.rb +815 -0
  131. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/instance_failover_groups.rb +983 -0
  132. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/managed_instance_tde_certificates.rb +175 -0
  133. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/backup_short_term_retention_policy.rb +74 -0
  134. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/backup_short_term_retention_policy_list_result.rb +101 -0
  135. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/capability_group.rb +17 -0
  136. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/capability_status.rb +18 -0
  137. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/catalog_collation_type.rb +16 -0
  138. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/create_mode.rb +24 -0
  139. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database.rb +482 -0
  140. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database_license_type.rb +16 -0
  141. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database_list_result.rb +100 -0
  142. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database_operation.rb +233 -0
  143. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database_operation_list_result.rb +100 -0
  144. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database_read_scale.rb +16 -0
  145. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database_status.rb +32 -0
  146. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database_update.rb +425 -0
  147. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database_vulnerability_assessment.rb +100 -0
  148. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/database_vulnerability_assessment_scans_export.rb +76 -0
  149. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/edition_capability.rb +107 -0
  150. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/elastic_pool.rb +187 -0
  151. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/elastic_pool_edition_capability.rb +107 -0
  152. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/elastic_pool_license_type.rb +16 -0
  153. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/elastic_pool_list_result.rb +100 -0
  154. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/elastic_pool_operation.rb +231 -0
  155. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/elastic_pool_operation_list_result.rb +100 -0
  156. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/elastic_pool_per_database_max_performance_level_capability.rb +108 -0
  157. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/elastic_pool_per_database_min_performance_level_capability.rb +86 -0
  158. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/elastic_pool_per_database_settings.rb +57 -0
  159. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/elastic_pool_performance_level_capability.rb +200 -0
  160. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/elastic_pool_state.rb +17 -0
  161. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/elastic_pool_update.rb +116 -0
  162. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/instance_failover_group.rb +156 -0
  163. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/instance_failover_group_list_result.rb +100 -0
  164. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/instance_failover_group_read_only_endpoint.rb +48 -0
  165. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/instance_failover_group_read_write_endpoint.rb +62 -0
  166. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/instance_failover_group_replication_role.rb +16 -0
  167. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/license_type_capability.rb +72 -0
  168. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/location_capabilities.rb +116 -0
  169. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/log_size_capability.rb +61 -0
  170. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/log_size_unit.rb +19 -0
  171. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/managed_instance_edition_capability.rb +94 -0
  172. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/managed_instance_family_capability.rb +161 -0
  173. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/managed_instance_pair_info.rb +57 -0
  174. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/managed_instance_vcores_capability.rb +84 -0
  175. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/managed_instance_version_capability.rb +94 -0
  176. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/management_operation_state.rb +20 -0
  177. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/max_size_capability.rb +61 -0
  178. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/max_size_range_capability.rb +113 -0
  179. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/max_size_unit.rb +18 -0
  180. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/partner_region_info.rb +60 -0
  181. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/performance_level_capability.rb +60 -0
  182. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/performance_level_unit.rb +16 -0
  183. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/proxy_resource.rb +62 -0
  184. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/read_only_endpoint_failover_policy.rb +16 -0
  185. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/read_write_endpoint_failover_policy.rb +16 -0
  186. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/resource.rb +71 -0
  187. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/resource_move_definition.rb +46 -0
  188. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/sample_name.rb +17 -0
  189. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/server_version_capability.rb +116 -0
  190. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/service_objective_capability.rb +166 -0
  191. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/sku.rb +97 -0
  192. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/tde_certificate.rb +84 -0
  193. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/tracked_resource.rb +92 -0
  194. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/vulnerability_assessment_recurring_scans_properties.rb +80 -0
  195. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/vulnerability_assessment_scan_error.rb +59 -0
  196. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/vulnerability_assessment_scan_record.rb +169 -0
  197. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/vulnerability_assessment_scan_record_list_result.rb +102 -0
  198. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/vulnerability_assessment_scan_state.rb +18 -0
  199. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/models/vulnerability_assessment_scan_trigger_type.rb +16 -0
  200. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/module_definition.rb +9 -0
  201. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/sql_management_client.rb +171 -0
  202. data/lib/2017-10-01-preview/generated/azure_mgmt_sql/tde_certificates.rb +175 -0
  203. data/lib/azure_mgmt_sql.rb +2 -1
  204. data/lib/profiles/latest/modules/sql_profile_module.rb +855 -411
  205. data/lib/version.rb +1 -1
  206. metadata +186 -10
@@ -6,46 +6,51 @@
6
6
  module Azure::SQL::Mgmt::V2017_03_01_preview
7
7
  module Models
8
8
  #
9
- # An ARM Resource SKU.
9
+ # The resource model definition representing SKU
10
10
  #
11
- class ArmSku
11
+ class Sku
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] The name of the SKU, typically, a letter + Number
16
- # code, e.g. P3.
15
+ # @return [String] The name of the SKU. Ex - P3. It is typically a
16
+ # letter+number code
17
17
  attr_accessor :name
18
18
 
19
- # @return [String] The tier of the particular SKU, e.g. Basic, Premium.
19
+ # @return [String] This field is required to be implemented by the
20
+ # Resource Provider if the service has more than one tier, but is not
21
+ # required on a PUT.
20
22
  attr_accessor :tier
21
23
 
22
- # @return [String] Size of the particular SKU
24
+ # @return [String] The SKU size. When the name field is the combination
25
+ # of tier and some other value, this would be the standalone code.
23
26
  attr_accessor :size
24
27
 
25
28
  # @return [String] If the service has different generations of hardware,
26
29
  # for the same SKU, then that can be captured here.
27
30
  attr_accessor :family
28
31
 
29
- # @return [Integer] Capacity of the particular SKU.
32
+ # @return [Integer] If the SKU supports scale out/in then the capacity
33
+ # integer should be included. If scale out/in is not possible for the
34
+ # resource this may be omitted.
30
35
  attr_accessor :capacity
31
36
 
32
37
 
33
38
  #
34
- # Mapper for ArmSku class as Ruby Hash.
39
+ # Mapper for Sku class as Ruby Hash.
35
40
  # This will be used for serialization/deserialization.
36
41
  #
37
42
  def self.mapper()
38
43
  {
39
44
  client_side_validation: true,
40
45
  required: false,
41
- serialized_name: 'ArmSku',
46
+ serialized_name: 'Sku',
42
47
  type: {
43
48
  name: 'Composite',
44
- class_name: 'ArmSku',
49
+ class_name: 'Sku',
45
50
  model_properties: {
46
51
  name: {
47
52
  client_side_validation: true,
48
- required: false,
53
+ required: true,
49
54
  serialized_name: 'name',
50
55
  type: {
51
56
  name: 'String'
@@ -0,0 +1,16 @@
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::SQL::Mgmt::V2017_03_01_preview
7
+ module Models
8
+ #
9
+ # Defines values for VulnerabilityAssessmentPolicyBaselineName
10
+ #
11
+ module VulnerabilityAssessmentPolicyBaselineName
12
+ Master = "master"
13
+ Default = "default"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,80 @@
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::SQL::Mgmt::V2017_03_01_preview
7
+ module Models
8
+ #
9
+ # Properties of a Vulnerability Assessment recurring scans.
10
+ #
11
+ class VulnerabilityAssessmentRecurringScansProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Boolean] Recurring scans state.
16
+ attr_accessor :is_enabled
17
+
18
+ # @return [Boolean] Specifies that the schedule scan notification will be
19
+ # is sent to the subscription administrators. Default value: true .
20
+ attr_accessor :email_subscription_admins
21
+
22
+ # @return [Array<String>] Specifies an array of e-mail addresses to which
23
+ # the scan notification is sent.
24
+ attr_accessor :emails
25
+
26
+
27
+ #
28
+ # Mapper for VulnerabilityAssessmentRecurringScansProperties class as
29
+ # Ruby Hash.
30
+ # This will be used for serialization/deserialization.
31
+ #
32
+ def self.mapper()
33
+ {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'VulnerabilityAssessmentRecurringScansProperties',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'VulnerabilityAssessmentRecurringScansProperties',
40
+ model_properties: {
41
+ is_enabled: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'isEnabled',
45
+ type: {
46
+ name: 'Boolean'
47
+ }
48
+ },
49
+ email_subscription_admins: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'emailSubscriptionAdmins',
53
+ default_value: true,
54
+ type: {
55
+ name: 'Boolean'
56
+ }
57
+ },
58
+ emails: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ serialized_name: 'emails',
62
+ type: {
63
+ name: 'Sequence',
64
+ element: {
65
+ client_side_validation: true,
66
+ required: false,
67
+ serialized_name: 'StringElementType',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ }
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+ end
78
+ end
79
+ end
80
+ end
@@ -5,16 +5,16 @@
5
5
 
6
6
  module Azure::SQL::Mgmt::V2017_03_01_preview
7
7
  #
8
- # The Azure SQL Database management API provides a RESTful set of web APIs
9
- # that interact with Azure SQL Database services to manage your databases.
10
- # The API enables users to create, retrieve, update, and delete databases,
11
- # servers, and other entities.
8
+ # The Azure SQL Database management API provides a RESTful set of web
9
+ # services that interact with Azure SQL Database services to manage your
10
+ # databases. The API enables you to create, retrieve, update, and delete
11
+ # databases.
12
12
  #
13
- class DatabaseRestorePoints
13
+ class RestorePoints
14
14
  include MsRestAzure
15
15
 
16
16
  #
17
- # Creates and initializes a new instance of the DatabaseRestorePoints class.
17
+ # Creates and initializes a new instance of the RestorePoints class.
18
18
  # @param client service class for accessing basic functionality.
19
19
  #
20
20
  def initialize(client)
@@ -25,7 +25,7 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
25
25
  attr_reader :client
26
26
 
27
27
  #
28
- # Gets a collection of restore points that belongs to the database.
28
+ # Gets a list of database restore points.
29
29
  #
30
30
  # @param resource_group_name [String] The name of the resource group that
31
31
  # contains the resource. You can obtain this value from the Azure Resource
@@ -35,15 +35,15 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
35
35
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
36
36
  # will be added to the HTTP request.
37
37
  #
38
- # @return [Array<DatabaseRestorePoint>] operation results.
38
+ # @return [RestorePointListResult] operation results.
39
39
  #
40
40
  def list_by_database(resource_group_name, server_name, database_name, custom_headers:nil)
41
- first_page = list_by_database_as_lazy(resource_group_name, server_name, database_name, custom_headers:custom_headers)
42
- first_page.get_all_items
41
+ response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
42
+ response.body unless response.nil?
43
43
  end
44
44
 
45
45
  #
46
- # Gets a collection of restore points that belongs to the database.
46
+ # Gets a list of database restore points.
47
47
  #
48
48
  # @param resource_group_name [String] The name of the resource group that
49
49
  # contains the resource. You can obtain this value from the Azure Resource
@@ -60,7 +60,7 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
60
60
  end
61
61
 
62
62
  #
63
- # Gets a collection of restore points that belongs to the database.
63
+ # Gets a list of database restore points.
64
64
  #
65
65
  # @param resource_group_name [String] The name of the resource group that
66
66
  # contains the resource. You can obtain this value from the Azure Resource
@@ -113,7 +113,7 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
113
113
  if status_code == 200
114
114
  begin
115
115
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
116
- result_mapper = Azure::SQL::Mgmt::V2017_03_01_preview::Models::DatabaseRestorePointListResult.mapper()
116
+ result_mapper = Azure::SQL::Mgmt::V2017_03_01_preview::Models::RestorePointListResult.mapper()
117
117
  result.body = @client.deserialize(result_mapper, parsed_response)
118
118
  rescue Exception => e
119
119
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -139,7 +139,7 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
139
139
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
140
140
  # will be added to the HTTP request.
141
141
  #
142
- # @return [DatabaseRestorePoint] operation results.
142
+ # @return [RestorePoint] operation results.
143
143
  #
144
144
  def create(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
145
145
  response = create_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value!
@@ -167,7 +167,7 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
167
167
  promise = promise.then do |response|
168
168
  # Defining deserialization method.
169
169
  deserialize_method = lambda do |parsed_response|
170
- result_mapper = Azure::SQL::Mgmt::V2017_03_01_preview::Models::DatabaseRestorePoint.mapper()
170
+ result_mapper = Azure::SQL::Mgmt::V2017_03_01_preview::Models::RestorePoint.mapper()
171
171
  parsed_response = @client.deserialize(result_mapper, parsed_response)
172
172
  end
173
173
 
@@ -190,7 +190,7 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
190
190
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
191
191
  # will be added to the HTTP request.
192
192
  #
193
- # @return [DatabaseRestorePoint] operation results.
193
+ # @return [RestorePoint] operation results.
194
194
  #
195
195
  def get(resource_group_name, server_name, database_name, restore_point_name, custom_headers:nil)
196
196
  response = get_async(resource_group_name, server_name, database_name, restore_point_name, custom_headers:custom_headers).value!
@@ -271,7 +271,7 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
271
271
  if status_code == 200
272
272
  begin
273
273
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
274
- result_mapper = Azure::SQL::Mgmt::V2017_03_01_preview::Models::DatabaseRestorePoint.mapper()
274
+ result_mapper = Azure::SQL::Mgmt::V2017_03_01_preview::Models::RestorePoint.mapper()
275
275
  result.body = @client.deserialize(result_mapper, parsed_response)
276
276
  rescue Exception => e
277
277
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -285,64 +285,60 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
285
285
  end
286
286
 
287
287
  #
288
- # Creates a restore point for a data warehouse.
288
+ # Deletes a restore point.
289
289
  #
290
290
  # @param resource_group_name [String] The name of the resource group that
291
291
  # contains the resource. You can obtain this value from the Azure Resource
292
292
  # Manager API or the portal.
293
293
  # @param server_name [String] The name of the server.
294
294
  # @param database_name [String] The name of the database.
295
- # @param parameters [CreateDatabaseRestorePointDefinition] The definition for
296
- # creating the restore point of this database.
295
+ # @param restore_point_name [String] The name of the restore point.
297
296
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
298
297
  # will be added to the HTTP request.
299
298
  #
300
- # @return [DatabaseRestorePoint] operation results.
301
299
  #
302
- def begin_create(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
303
- response = begin_create_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value!
304
- response.body unless response.nil?
300
+ def delete(resource_group_name, server_name, database_name, restore_point_name, custom_headers:nil)
301
+ response = delete_async(resource_group_name, server_name, database_name, restore_point_name, custom_headers:custom_headers).value!
302
+ nil
305
303
  end
306
304
 
307
305
  #
308
- # Creates a restore point for a data warehouse.
306
+ # Deletes a restore point.
309
307
  #
310
308
  # @param resource_group_name [String] The name of the resource group that
311
309
  # contains the resource. You can obtain this value from the Azure Resource
312
310
  # Manager API or the portal.
313
311
  # @param server_name [String] The name of the server.
314
312
  # @param database_name [String] The name of the database.
315
- # @param parameters [CreateDatabaseRestorePointDefinition] The definition for
316
- # creating the restore point of this database.
313
+ # @param restore_point_name [String] The name of the restore point.
317
314
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
318
315
  # will be added to the HTTP request.
319
316
  #
320
317
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
321
318
  #
322
- def begin_create_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
323
- begin_create_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value!
319
+ def delete_with_http_info(resource_group_name, server_name, database_name, restore_point_name, custom_headers:nil)
320
+ delete_async(resource_group_name, server_name, database_name, restore_point_name, custom_headers:custom_headers).value!
324
321
  end
325
322
 
326
323
  #
327
- # Creates a restore point for a data warehouse.
324
+ # Deletes a restore point.
328
325
  #
329
326
  # @param resource_group_name [String] The name of the resource group that
330
327
  # contains the resource. You can obtain this value from the Azure Resource
331
328
  # Manager API or the portal.
332
329
  # @param server_name [String] The name of the server.
333
330
  # @param database_name [String] The name of the database.
334
- # @param parameters [CreateDatabaseRestorePointDefinition] The definition for
335
- # creating the restore point of this database.
331
+ # @param restore_point_name [String] The name of the restore point.
336
332
  # @param [Hash{String => String}] A hash of custom headers that will be added
337
333
  # to the HTTP request.
338
334
  #
339
335
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
340
336
  #
341
- def begin_create_async(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
337
+ def delete_async(resource_group_name, server_name, database_name, restore_point_name, custom_headers:nil)
342
338
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
343
339
  fail ArgumentError, 'server_name is nil' if server_name.nil?
344
340
  fail ArgumentError, 'database_name is nil' if database_name.nil?
345
- fail ArgumentError, 'parameters is nil' if parameters.nil?
341
+ fail ArgumentError, 'restore_point_name is nil' if restore_point_name.nil?
346
342
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
347
343
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
348
344
 
@@ -353,56 +349,29 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
353
349
  # Set Headers
354
350
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
355
351
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
356
-
357
- # Serialize Request
358
- request_mapper = Azure::SQL::Mgmt::V2017_03_01_preview::Models::CreateDatabaseRestorePointDefinition.mapper()
359
- request_content = @client.serialize(request_mapper, parameters)
360
- request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
361
-
362
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/restorePoints'
352
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/restorePoints/{restorePointName}'
363
353
 
364
354
  request_url = @base_url || @client.base_url
365
355
 
366
356
  options = {
367
357
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
368
- path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_name,'databaseName' => database_name,'subscriptionId' => @client.subscription_id},
358
+ path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_name,'databaseName' => database_name,'restorePointName' => restore_point_name,'subscriptionId' => @client.subscription_id},
369
359
  query_params: {'api-version' => @client.api_version},
370
- body: request_content,
371
360
  headers: request_headers.merge(custom_headers || {}),
372
361
  base_url: request_url
373
362
  }
374
- promise = @client.make_request_async(:post, path_template, options)
363
+ promise = @client.make_request_async(:delete, path_template, options)
375
364
 
376
365
  promise = promise.then do |result|
377
366
  http_response = result.response
378
367
  status_code = http_response.status
379
368
  response_content = http_response.body
380
- unless status_code == 200 || status_code == 202 || status_code == 201
369
+ unless status_code == 200
381
370
  error_model = JSON.load(response_content)
382
371
  fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
383
372
  end
384
373
 
385
374
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
386
- # Deserialize Response
387
- if status_code == 200
388
- begin
389
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
390
- result_mapper = Azure::SQL::Mgmt::V2017_03_01_preview::Models::DatabaseRestorePoint.mapper()
391
- result.body = @client.deserialize(result_mapper, parsed_response)
392
- rescue Exception => e
393
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
394
- end
395
- end
396
- # Deserialize Response
397
- if status_code == 201
398
- begin
399
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
400
- result_mapper = Azure::SQL::Mgmt::V2017_03_01_preview::Models::DatabaseRestorePoint.mapper()
401
- result.body = @client.deserialize(result_mapper, parsed_response)
402
- rescue Exception => e
403
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
404
- end
405
- end
406
375
 
407
376
  result
408
377
  end
@@ -411,46 +380,66 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
411
380
  end
412
381
 
413
382
  #
414
- # Gets a collection of restore points that belongs to the database.
383
+ # Creates a restore point for a data warehouse.
415
384
  #
416
- # @param next_page_link [String] The NextLink from the previous successful call
417
- # to List operation.
385
+ # @param resource_group_name [String] The name of the resource group that
386
+ # contains the resource. You can obtain this value from the Azure Resource
387
+ # Manager API or the portal.
388
+ # @param server_name [String] The name of the server.
389
+ # @param database_name [String] The name of the database.
390
+ # @param parameters [CreateDatabaseRestorePointDefinition] The definition for
391
+ # creating the restore point of this database.
418
392
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
419
393
  # will be added to the HTTP request.
420
394
  #
421
- # @return [DatabaseRestorePointListResult] operation results.
395
+ # @return [RestorePoint] operation results.
422
396
  #
423
- def list_by_database_next(next_page_link, custom_headers:nil)
424
- response = list_by_database_next_async(next_page_link, custom_headers:custom_headers).value!
397
+ def begin_create(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
398
+ response = begin_create_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value!
425
399
  response.body unless response.nil?
426
400
  end
427
401
 
428
402
  #
429
- # Gets a collection of restore points that belongs to the database.
403
+ # Creates a restore point for a data warehouse.
430
404
  #
431
- # @param next_page_link [String] The NextLink from the previous successful call
432
- # to List operation.
405
+ # @param resource_group_name [String] The name of the resource group that
406
+ # contains the resource. You can obtain this value from the Azure Resource
407
+ # Manager API or the portal.
408
+ # @param server_name [String] The name of the server.
409
+ # @param database_name [String] The name of the database.
410
+ # @param parameters [CreateDatabaseRestorePointDefinition] The definition for
411
+ # creating the restore point of this database.
433
412
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
434
413
  # will be added to the HTTP request.
435
414
  #
436
415
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
437
416
  #
438
- def list_by_database_next_with_http_info(next_page_link, custom_headers:nil)
439
- list_by_database_next_async(next_page_link, custom_headers:custom_headers).value!
417
+ def begin_create_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
418
+ begin_create_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value!
440
419
  end
441
420
 
442
421
  #
443
- # Gets a collection of restore points that belongs to the database.
422
+ # Creates a restore point for a data warehouse.
444
423
  #
445
- # @param next_page_link [String] The NextLink from the previous successful call
446
- # to List operation.
424
+ # @param resource_group_name [String] The name of the resource group that
425
+ # contains the resource. You can obtain this value from the Azure Resource
426
+ # Manager API or the portal.
427
+ # @param server_name [String] The name of the server.
428
+ # @param database_name [String] The name of the database.
429
+ # @param parameters [CreateDatabaseRestorePointDefinition] The definition for
430
+ # creating the restore point of this database.
447
431
  # @param [Hash{String => String}] A hash of custom headers that will be added
448
432
  # to the HTTP request.
449
433
  #
450
434
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
451
435
  #
452
- def list_by_database_next_async(next_page_link, custom_headers:nil)
453
- fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
436
+ def begin_create_async(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
437
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
438
+ fail ArgumentError, 'server_name is nil' if server_name.nil?
439
+ fail ArgumentError, 'database_name is nil' if database_name.nil?
440
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
441
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
442
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
454
443
 
455
444
 
456
445
  request_headers = {}
@@ -459,23 +448,31 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
459
448
  # Set Headers
460
449
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
461
450
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
462
- path_template = '{nextLink}'
451
+
452
+ # Serialize Request
453
+ request_mapper = Azure::SQL::Mgmt::V2017_03_01_preview::Models::CreateDatabaseRestorePointDefinition.mapper()
454
+ request_content = @client.serialize(request_mapper, parameters)
455
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
456
+
457
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/restorePoints'
463
458
 
464
459
  request_url = @base_url || @client.base_url
465
460
 
466
461
  options = {
467
462
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
468
- skip_encoding_path_params: {'nextLink' => next_page_link},
463
+ path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_name,'databaseName' => database_name,'subscriptionId' => @client.subscription_id},
464
+ query_params: {'api-version' => @client.api_version},
465
+ body: request_content,
469
466
  headers: request_headers.merge(custom_headers || {}),
470
467
  base_url: request_url
471
468
  }
472
- promise = @client.make_request_async(:get, path_template, options)
469
+ promise = @client.make_request_async(:post, path_template, options)
473
470
 
474
471
  promise = promise.then do |result|
475
472
  http_response = result.response
476
473
  status_code = http_response.status
477
474
  response_content = http_response.body
478
- unless status_code == 200
475
+ unless status_code == 200 || status_code == 202 || status_code == 201
479
476
  error_model = JSON.load(response_content)
480
477
  fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
481
478
  end
@@ -485,7 +482,17 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
485
482
  if status_code == 200
486
483
  begin
487
484
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
488
- result_mapper = Azure::SQL::Mgmt::V2017_03_01_preview::Models::DatabaseRestorePointListResult.mapper()
485
+ result_mapper = Azure::SQL::Mgmt::V2017_03_01_preview::Models::RestorePoint.mapper()
486
+ result.body = @client.deserialize(result_mapper, parsed_response)
487
+ rescue Exception => e
488
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
489
+ end
490
+ end
491
+ # Deserialize Response
492
+ if status_code == 201
493
+ begin
494
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
495
+ result_mapper = Azure::SQL::Mgmt::V2017_03_01_preview::Models::RestorePoint.mapper()
489
496
  result.body = @client.deserialize(result_mapper, parsed_response)
490
497
  rescue Exception => e
491
498
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -498,30 +505,5 @@ module Azure::SQL::Mgmt::V2017_03_01_preview
498
505
  promise.execute
499
506
  end
500
507
 
501
- #
502
- # Gets a collection of restore points that belongs to the database.
503
- #
504
- # @param resource_group_name [String] The name of the resource group that
505
- # contains the resource. You can obtain this value from the Azure Resource
506
- # Manager API or the portal.
507
- # @param server_name [String] The name of the server.
508
- # @param database_name [String] The name of the database.
509
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
510
- # will be added to the HTTP request.
511
- #
512
- # @return [DatabaseRestorePointListResult] which provide lazy access to pages
513
- # of the response.
514
- #
515
- def list_by_database_as_lazy(resource_group_name, server_name, database_name, custom_headers:nil)
516
- response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
517
- unless response.nil?
518
- page = response.body
519
- page.next_method = Proc.new do |next_page_link|
520
- list_by_database_next_async(next_page_link, custom_headers:custom_headers)
521
- end
522
- page
523
- end
524
- end
525
-
526
508
  end
527
509
  end