azure_mgmt_security 0.17.1 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (600) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-06-01-preview/generated/azure_mgmt_security.rb +114 -0
  3. data/lib/2015-06-01-preview/generated/azure_mgmt_security/adaptive_application_controls.rb +394 -0
  4. data/lib/2015-06-01-preview/generated/azure_mgmt_security/adaptive_network_hardenings.rb +539 -0
  5. data/lib/2015-06-01-preview/generated/azure_mgmt_security/alerts.rb +1438 -0
  6. data/lib/2015-06-01-preview/generated/azure_mgmt_security/allowed_connections.rb +535 -0
  7. data/lib/2015-06-01-preview/generated/azure_mgmt_security/discovered_security_solutions.rb +532 -0
  8. data/lib/2015-06-01-preview/generated/azure_mgmt_security/external_security_solutions.rb +525 -0
  9. data/lib/2015-06-01-preview/generated/azure_mgmt_security/jit_network_access_policies.rb +1295 -0
  10. data/lib/2015-06-01-preview/generated/azure_mgmt_security/locations.rb +330 -0
  11. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/aad_connectivity_state.rb +17 -0
  12. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/aad_connectivity_state1.rb +48 -0
  13. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/aad_external_security_solution.rb +99 -0
  14. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/aad_solution_properties.rb +83 -0
  15. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/adaptive_network_hardening.rb +116 -0
  16. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/adaptive_network_hardening_enforce_request.rb +77 -0
  17. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/adaptive_network_hardenings_list.rb +99 -0
  18. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/alert.rb +375 -0
  19. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/alert_confidence_reason.rb +59 -0
  20. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/alert_entity.rb +66 -0
  21. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/alert_list.rb +99 -0
  22. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/allowed_connections_list.rb +100 -0
  23. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/allowed_connections_resource.rb +118 -0
  24. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/app_whitelisting_group.rb +203 -0
  25. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/app_whitelisting_groups.rb +56 -0
  26. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/app_whitelisting_issue_summary.rb +61 -0
  27. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/app_whitelisting_put_group_data.rb +102 -0
  28. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/asc_location.rb +73 -0
  29. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/asc_location_list.rb +100 -0
  30. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/ata_external_security_solution.rb +98 -0
  31. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/ata_solution_properties.rb +87 -0
  32. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
  33. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/cef_external_security_solution.rb +98 -0
  34. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/cef_solution_properties.rb +109 -0
  35. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/connectable_resource.rb +91 -0
  36. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/connected_resource.rb +71 -0
  37. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/connected_workspace.rb +47 -0
  38. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/connection_type.rb +16 -0
  39. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/direction.rb +16 -0
  40. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/discovered_security_solution.rb +129 -0
  41. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/discovered_security_solution_list.rb +99 -0
  42. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/effective_network_security_groups.rb +66 -0
  43. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/etag.rb +48 -0
  44. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/external_security_solution.rb +98 -0
  45. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/external_security_solution_kind.rb +17 -0
  46. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/external_security_solution_kind1.rb +47 -0
  47. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/external_security_solution_list.rb +101 -0
  48. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/external_security_solution_properties.rb +88 -0
  49. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_policies_list.rb +99 -0
  50. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_policy.rb +149 -0
  51. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_policy_initiate_port.rb +70 -0
  52. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_policy_initiate_request.rb +68 -0
  53. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_policy_initiate_virtual_machine.rb +70 -0
  54. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_policy_virtual_machine.rb +81 -0
  55. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_port_rule.rb +103 -0
  56. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_request.rb +89 -0
  57. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_request_port.rb +128 -0
  58. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_request_virtual_machine.rb +69 -0
  59. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/kind.rb +46 -0
  60. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/location.rb +47 -0
  61. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/operation.rb +71 -0
  62. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/operation_display.rb +84 -0
  63. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/operation_list.rb +99 -0
  64. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/path_recommendation.rb +156 -0
  65. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/protection_mode.rb +80 -0
  66. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/protocol.rb +17 -0
  67. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/publisher_info.rb +84 -0
  68. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/reported_severity.rb +18 -0
  69. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/resource.rb +80 -0
  70. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/rule.rb +111 -0
  71. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/security_family.rb +18 -0
  72. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/security_task.rb +123 -0
  73. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/security_task_list.rb +100 -0
  74. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/security_task_parameters.rb +67 -0
  75. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/status.rb +16 -0
  76. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/status_reason.rb +17 -0
  77. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/tags.rb +55 -0
  78. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/topology_list.rb +100 -0
  79. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/topology_resource.rb +118 -0
  80. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/topology_single_resource.rb +154 -0
  81. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/topology_single_resource_child.rb +49 -0
  82. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/topology_single_resource_parent.rb +49 -0
  83. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/tracked_resource.rb +125 -0
  84. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/transport_protocol.rb +16 -0
  85. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/user_recommendation.rb +58 -0
  86. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/vm_recommendation.rb +81 -0
  87. data/lib/2015-06-01-preview/generated/azure_mgmt_security/module_definition.rb +9 -0
  88. data/lib/2015-06-01-preview/generated/azure_mgmt_security/operations.rb +218 -0
  89. data/lib/2015-06-01-preview/generated/azure_mgmt_security/security_center.rb +175 -0
  90. data/lib/2015-06-01-preview/generated/azure_mgmt_security/tasks.rb +1055 -0
  91. data/lib/2015-06-01-preview/generated/azure_mgmt_security/topology.rb +530 -0
  92. data/lib/2017-08-01-preview/generated/azure_mgmt_security.rb +95 -11
  93. data/lib/2017-08-01-preview/generated/azure_mgmt_security/advanced_threat_protection.rb +224 -0
  94. data/lib/2017-08-01-preview/generated/azure_mgmt_security/auto_provisioning_settings.rb +12 -4
  95. data/lib/2017-08-01-preview/generated/azure_mgmt_security/compliances.rb +12 -5
  96. data/lib/2017-08-01-preview/generated/azure_mgmt_security/device_security_groups.rb +539 -0
  97. data/lib/2017-08-01-preview/generated/azure_mgmt_security/information_protection_policies.rb +463 -0
  98. data/lib/2017-08-01-preview/generated/azure_mgmt_security/io_tsecurity_solutions.rb +230 -0
  99. data/lib/2017-08-01-preview/generated/azure_mgmt_security/io_tsecurity_solutions_analytics.rb +227 -0
  100. data/lib/2017-08-01-preview/generated/azure_mgmt_security/io_tsecurity_solutions_analytics_aggregated_alert.rb +224 -0
  101. data/lib/2017-08-01-preview/generated/azure_mgmt_security/io_tsecurity_solutions_analytics_aggregated_alerts.rb +243 -0
  102. data/lib/2017-08-01-preview/generated/azure_mgmt_security/io_tsecurity_solutions_analytics_recommendation.rb +133 -0
  103. data/lib/2017-08-01-preview/generated/azure_mgmt_security/io_tsecurity_solutions_analytics_recommendations.rb +243 -0
  104. data/lib/2017-08-01-preview/generated/azure_mgmt_security/io_tsecurity_solutions_resource_group.rb +242 -0
  105. data/lib/2017-08-01-preview/generated/azure_mgmt_security/iot_security_solution.rb +459 -0
  106. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/active_connections_not_in_allowed_range.rb +100 -0
  107. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/advanced_threat_protection_setting.rb +74 -0
  108. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/allowlist_custom_alert_rule.rb +106 -0
  109. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/amqp_c2dmessages_not_in_allowed_range.rb +101 -0
  110. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/amqp_c2drejected_messages_not_in_allowed_range.rb +101 -0
  111. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/amqp_d2cmessages_not_in_allowed_range.rb +101 -0
  112. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/asc_location.rb +73 -0
  113. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/auto_provisioning_setting_list.rb +1 -1
  114. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
  115. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/compliance_list.rb +1 -1
  116. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/connection_to_ip_not_allowed.rb +102 -0
  117. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/custom_alert_rule.rb +104 -0
  118. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/data_export_setting.rb +81 -0
  119. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/data_source.rb +15 -0
  120. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/denylist_custom_alert_rule.rb +106 -0
  121. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/device_security_group.rb +146 -0
  122. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/device_security_group_list.rb +100 -0
  123. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/direct_method_invokes_not_in_allowed_range.rb +100 -0
  124. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/etag.rb +48 -0
  125. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/export_data.rb +15 -0
  126. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/failed_local_logins_not_in_allowed_range.rb +100 -0
  127. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/file_uploads_not_in_allowed_range.rb +100 -0
  128. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/http_c2dmessages_not_in_allowed_range.rb +101 -0
  129. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/http_c2drejected_messages_not_in_allowed_range.rb +101 -0
  130. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/http_d2cmessages_not_in_allowed_range.rb +101 -0
  131. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/information_protection_keyword.rb +80 -0
  132. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/information_protection_policy.rb +128 -0
  133. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/information_protection_policy_list.rb +100 -0
  134. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/information_type.rb +125 -0
  135. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_aggregated_alert.rb +238 -0
  136. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_aggregated_alert_list.rb +100 -0
  137. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_aggregated_recommendation.rb +212 -0
  138. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_aggregated_recommendation_list.rb +101 -0
  139. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_alerted_device.rb +60 -0
  140. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_alerted_devices_list.rb +68 -0
  141. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_device_alert.rb +73 -0
  142. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_device_alerts_list.rb +67 -0
  143. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_device_recommendation.rb +73 -0
  144. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_device_recommendations_list.rb +68 -0
  145. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_solution_analytics_model.rb +149 -0
  146. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_solution_analytics_model_list.rb +68 -0
  147. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_solution_analytics_model_properties_devices_metrics_item.rb +61 -0
  148. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_solution_model.rb +248 -0
  149. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_solutions_list.rb +99 -0
  150. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tseverity_metrics.rb +68 -0
  151. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/kind.rb +46 -0
  152. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/list_custom_alert_rule.rb +89 -0
  153. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/local_user_not_allowed.rb +102 -0
  154. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/mqtt_c2dmessages_not_in_allowed_range.rb +101 -0
  155. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/mqtt_c2drejected_messages_not_in_allowed_range.rb +101 -0
  156. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/mqtt_d2cmessages_not_in_allowed_range.rb +101 -0
  157. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/pricing_list.rb +1 -1
  158. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/process_not_allowed.rb +102 -0
  159. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/queue_purges_not_in_allowed_range.rb +100 -0
  160. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/rank.rb +19 -0
  161. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/recommendation_config_status.rb +16 -0
  162. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/recommendation_configuration_properties.rb +79 -0
  163. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/recommendation_type.rb +30 -0
  164. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/reported_severity.rb +18 -0
  165. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/security_contact.rb +1 -1
  166. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/security_contact_list.rb +1 -1
  167. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/security_solution_status.rb +16 -0
  168. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/sensitivity_label.rb +92 -0
  169. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/setting.rb +70 -0
  170. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/setting_kind.rb +16 -0
  171. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/setting_resource.rb +75 -0
  172. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/settings_list.rb +99 -0
  173. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/tags.rb +55 -0
  174. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/tags_resource.rb +55 -0
  175. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/threshold_custom_alert_rule.rb +99 -0
  176. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/time_window_custom_alert_rule.rb +104 -0
  177. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/tracked_resource.rb +125 -0
  178. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/twin_updates_not_in_allowed_range.rb +100 -0
  179. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/unauthorized_operations_not_in_allowed_range.rb +100 -0
  180. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/update_iot_security_solution_data.rb +84 -0
  181. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/user_defined_resources_properties.rb +68 -0
  182. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/value_type.rb +16 -0
  183. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/workspace_setting_list.rb +1 -1
  184. data/lib/2017-08-01-preview/generated/azure_mgmt_security/pricings.rb +23 -7
  185. data/lib/2017-08-01-preview/generated/azure_mgmt_security/security_center.rb +200 -0
  186. data/lib/2017-08-01-preview/generated/azure_mgmt_security/security_contacts.rb +18 -6
  187. data/lib/2017-08-01-preview/generated/azure_mgmt_security/settings.rb +420 -0
  188. data/lib/2017-08-01-preview/generated/azure_mgmt_security/workspace_settings.rb +38 -16
  189. data/lib/2017-08-01/generated/azure_mgmt_security.rb +38 -0
  190. data/lib/2017-08-01/generated/azure_mgmt_security/compliance_results.rb +330 -0
  191. data/lib/2017-08-01/generated/azure_mgmt_security/models/asc_location.rb +73 -0
  192. data/lib/2017-08-01/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
  193. data/lib/2017-08-01/generated/azure_mgmt_security/models/compliance_result.rb +76 -0
  194. data/lib/2017-08-01/generated/azure_mgmt_security/models/compliance_result_list.rb +99 -0
  195. data/lib/2017-08-01/generated/azure_mgmt_security/models/etag.rb +48 -0
  196. data/lib/2017-08-01/generated/azure_mgmt_security/models/kind.rb +46 -0
  197. data/lib/2017-08-01/generated/azure_mgmt_security/models/resource.rb +80 -0
  198. data/lib/2017-08-01/generated/azure_mgmt_security/models/resource_status.rb +18 -0
  199. data/lib/2017-08-01/generated/azure_mgmt_security/models/tags.rb +55 -0
  200. data/lib/2017-08-01/generated/azure_mgmt_security/models/tracked_resource.rb +125 -0
  201. data/lib/2017-08-01/generated/azure_mgmt_security/module_definition.rb +9 -0
  202. data/lib/2017-08-01/generated/azure_mgmt_security/security_center.rb +128 -0
  203. data/lib/2018-06-01/generated/azure_mgmt_security.rb +38 -0
  204. data/lib/2018-06-01/generated/azure_mgmt_security/models/asc_location.rb +73 -0
  205. data/lib/2018-06-01/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
  206. data/lib/2018-06-01/generated/azure_mgmt_security/models/etag.rb +48 -0
  207. data/lib/2018-06-01/generated/azure_mgmt_security/models/kind.rb +46 -0
  208. data/lib/2018-06-01/generated/azure_mgmt_security/models/pricing.rb +93 -0
  209. data/lib/2018-06-01/generated/azure_mgmt_security/models/pricing_list.rb +55 -0
  210. data/lib/2018-06-01/generated/azure_mgmt_security/models/pricing_tier.rb +16 -0
  211. data/lib/2018-06-01/generated/azure_mgmt_security/models/resource.rb +80 -0
  212. data/lib/2018-06-01/generated/azure_mgmt_security/models/tags.rb +55 -0
  213. data/lib/2018-06-01/generated/azure_mgmt_security/models/tracked_resource.rb +125 -0
  214. data/lib/2018-06-01/generated/azure_mgmt_security/module_definition.rb +9 -0
  215. data/lib/2018-06-01/generated/azure_mgmt_security/pricings.rb +305 -0
  216. data/lib/{2017-08-01-preview/generated/azure_mgmt_security/security_management_client.rb → 2018-06-01/generated/azure_mgmt_security/security_center.rb} +5 -21
  217. data/lib/2019-01-01-preview/generated/azure_mgmt_security.rb +71 -0
  218. data/lib/2019-01-01-preview/generated/azure_mgmt_security/alerts_suppression_rules.rb +514 -0
  219. data/lib/2019-01-01-preview/generated/azure_mgmt_security/assessments.rb +555 -0
  220. data/lib/2019-01-01-preview/generated/azure_mgmt_security/assessments_metadata.rb +311 -0
  221. data/lib/2019-01-01-preview/generated/azure_mgmt_security/assessments_metadata_subscription.rb +513 -0
  222. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/alerts_suppression_rule.rb +146 -0
  223. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/alerts_suppression_rules_list.rb +99 -0
  224. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/asc_location.rb +73 -0
  225. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/assessment_links.rb +47 -0
  226. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/assessment_status.rb +71 -0
  227. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/assessment_status_code.rb +17 -0
  228. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/assessment_type.rb +17 -0
  229. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/azure_resource_details.rb +62 -0
  230. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
  231. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/category.rb +19 -0
  232. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/etag.rb +48 -0
  233. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/expand_enum.rb +16 -0
  234. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/implementation_effort.rb +17 -0
  235. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/kind.rb +46 -0
  236. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/on_premise_resource_details.rb +95 -0
  237. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/on_premise_sql_resource_details.rb +104 -0
  238. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/regulatory_compliance_assessment.rb +166 -0
  239. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/regulatory_compliance_assessment_list.rb +99 -0
  240. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/regulatory_compliance_control.rb +126 -0
  241. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/regulatory_compliance_control_list.rb +100 -0
  242. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/regulatory_compliance_standard.rb +127 -0
  243. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/regulatory_compliance_standard_list.rb +99 -0
  244. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/resource.rb +80 -0
  245. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/resource_details.rb +48 -0
  246. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/rule_state.rb +17 -0
  247. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/scope_element.rb +65 -0
  248. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/security_assessment.rb +132 -0
  249. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/security_assessment_list.rb +101 -0
  250. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/security_assessment_metadata.rb +209 -0
  251. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/security_assessment_metadata_list.rb +100 -0
  252. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/severity.rb +17 -0
  253. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/state.rb +18 -0
  254. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/suppression_alerts_scope.rb +57 -0
  255. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/tags.rb +55 -0
  256. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/threats.rb +22 -0
  257. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/tracked_resource.rb +125 -0
  258. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/user_impact.rb +17 -0
  259. data/lib/2019-01-01-preview/generated/azure_mgmt_security/module_definition.rb +9 -0
  260. data/lib/2019-01-01-preview/generated/azure_mgmt_security/regulatory_compliance_assessments.rb +359 -0
  261. data/lib/2019-01-01-preview/generated/azure_mgmt_security/regulatory_compliance_controls.rb +343 -0
  262. data/lib/2019-01-01-preview/generated/azure_mgmt_security/regulatory_compliance_standards.rb +320 -0
  263. data/lib/2019-01-01-preview/generated/azure_mgmt_security/security_center.rb +157 -0
  264. data/lib/2019-01-01/generated/azure_mgmt_security.rb +45 -0
  265. data/lib/2019-01-01/generated/azure_mgmt_security/alerts.rb +1486 -0
  266. data/lib/2019-01-01/generated/azure_mgmt_security/models/alert.rb +375 -0
  267. data/lib/2019-01-01/generated/azure_mgmt_security/models/alert_confidence_reason.rb +59 -0
  268. data/lib/2019-01-01/generated/azure_mgmt_security/models/alert_entity.rb +66 -0
  269. data/lib/2019-01-01/generated/azure_mgmt_security/models/alert_list.rb +99 -0
  270. data/lib/2019-01-01/generated/azure_mgmt_security/models/asc_location.rb +73 -0
  271. data/lib/2019-01-01/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
  272. data/lib/2019-01-01/generated/azure_mgmt_security/models/data_export_settings.rb +88 -0
  273. data/lib/2019-01-01/generated/azure_mgmt_security/models/etag.rb +48 -0
  274. data/lib/2019-01-01/generated/azure_mgmt_security/models/kind.rb +46 -0
  275. data/lib/2019-01-01/generated/azure_mgmt_security/models/reported_severity.rb +18 -0
  276. data/lib/2019-01-01/generated/azure_mgmt_security/models/resource.rb +80 -0
  277. data/lib/2019-01-01/generated/azure_mgmt_security/models/setting.rb +77 -0
  278. data/lib/2019-01-01/generated/azure_mgmt_security/models/setting_resource.rb +71 -0
  279. data/lib/2019-01-01/generated/azure_mgmt_security/models/settings_list.rb +99 -0
  280. data/lib/2019-01-01/generated/azure_mgmt_security/models/tags.rb +55 -0
  281. data/lib/2019-01-01/generated/azure_mgmt_security/models/tracked_resource.rb +125 -0
  282. data/lib/2019-01-01/generated/azure_mgmt_security/module_definition.rb +9 -0
  283. data/lib/2019-01-01/generated/azure_mgmt_security/security_center.rb +139 -0
  284. data/lib/2019-01-01/generated/azure_mgmt_security/settings.rb +420 -0
  285. data/lib/2019-08-01/generated/azure_mgmt_security.rb +78 -0
  286. data/lib/2019-08-01/generated/azure_mgmt_security/iot_alert_types.rb +231 -0
  287. data/lib/2019-08-01/generated/azure_mgmt_security/iot_alerts.rb +375 -0
  288. data/lib/2019-08-01/generated/azure_mgmt_security/iot_recommendation_types.rb +231 -0
  289. data/lib/2019-08-01/generated/azure_mgmt_security/iot_recommendations.rb +360 -0
  290. data/lib/2019-08-01/generated/azure_mgmt_security/iot_security_solution.rb +891 -0
  291. data/lib/2019-08-01/generated/azure_mgmt_security/iot_security_solution_analytics.rb +227 -0
  292. data/lib/2019-08-01/generated/azure_mgmt_security/iot_security_solutions_analytics_aggregated_alert.rb +452 -0
  293. data/lib/2019-08-01/generated/azure_mgmt_security/iot_security_solutions_analytics_recommendation.rb +364 -0
  294. data/lib/2019-08-01/generated/azure_mgmt_security/models/alert_intent.rb +30 -0
  295. data/lib/2019-08-01/generated/azure_mgmt_security/models/alert_severity.rb +18 -0
  296. data/lib/2019-08-01/generated/azure_mgmt_security/models/asc_location.rb +73 -0
  297. data/lib/2019-08-01/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
  298. data/lib/2019-08-01/generated/azure_mgmt_security/models/data_source.rb +15 -0
  299. data/lib/2019-08-01/generated/azure_mgmt_security/models/etag.rb +48 -0
  300. data/lib/2019-08-01/generated/azure_mgmt_security/models/export_data.rb +15 -0
  301. data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_aggregated_alert.rb +262 -0
  302. data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_aggregated_alert_list.rb +101 -0
  303. data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_aggregated_alert_properties_top_devices_list_item.rb +74 -0
  304. data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_aggregated_recommendation.rb +214 -0
  305. data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_aggregated_recommendation_list.rb +102 -0
  306. data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_alerted_device.rb +60 -0
  307. data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_device_alert.rb +73 -0
  308. data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_device_recommendation.rb +73 -0
  309. data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_solution_analytics_model.rb +175 -0
  310. data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_solution_analytics_model_list.rb +69 -0
  311. data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_solution_analytics_model_properties_devices_metrics_item.rb +62 -0
  312. data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_solution_model.rb +263 -0
  313. data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_solutions_list.rb +100 -0
  314. data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tseverity_metrics.rb +68 -0
  315. data/lib/2019-08-01/generated/azure_mgmt_security/models/iot_alert.rb +128 -0
  316. data/lib/2019-08-01/generated/azure_mgmt_security/models/iot_alert_list.rb +114 -0
  317. data/lib/2019-08-01/generated/azure_mgmt_security/models/iot_alert_type.rb +188 -0
  318. data/lib/2019-08-01/generated/azure_mgmt_security/models/iot_alert_type_list.rb +55 -0
  319. data/lib/2019-08-01/generated/azure_mgmt_security/models/iot_recommendation.rb +109 -0
  320. data/lib/2019-08-01/generated/azure_mgmt_security/models/iot_recommendation_list.rb +114 -0
  321. data/lib/2019-08-01/generated/azure_mgmt_security/models/iot_recommendation_type.rb +184 -0
  322. data/lib/2019-08-01/generated/azure_mgmt_security/models/iot_recommendation_type_list.rb +55 -0
  323. data/lib/2019-08-01/generated/azure_mgmt_security/models/kind.rb +46 -0
  324. data/lib/2019-08-01/generated/azure_mgmt_security/models/recommendation_config_status.rb +16 -0
  325. data/lib/2019-08-01/generated/azure_mgmt_security/models/recommendation_configuration_properties.rb +81 -0
  326. data/lib/2019-08-01/generated/azure_mgmt_security/models/recommendation_severity.rb +21 -0
  327. data/lib/2019-08-01/generated/azure_mgmt_security/models/recommendation_type.rb +30 -0
  328. data/lib/2019-08-01/generated/azure_mgmt_security/models/reported_severity.rb +18 -0
  329. data/lib/2019-08-01/generated/azure_mgmt_security/models/resource.rb +80 -0
  330. data/lib/2019-08-01/generated/azure_mgmt_security/models/security_solution_status.rb +16 -0
  331. data/lib/2019-08-01/generated/azure_mgmt_security/models/tags.rb +55 -0
  332. data/lib/2019-08-01/generated/azure_mgmt_security/models/tags_resource.rb +55 -0
  333. data/lib/2019-08-01/generated/azure_mgmt_security/models/tracked_resource.rb +125 -0
  334. data/lib/2019-08-01/generated/azure_mgmt_security/models/unmasked_ip_logging_status.rb +16 -0
  335. data/lib/2019-08-01/generated/azure_mgmt_security/models/update_iot_security_solution_data.rb +84 -0
  336. data/lib/2019-08-01/generated/azure_mgmt_security/models/user_defined_resources_properties.rb +68 -0
  337. data/lib/2019-08-01/generated/azure_mgmt_security/module_definition.rb +9 -0
  338. data/lib/2019-08-01/generated/azure_mgmt_security/security_center.rb +161 -0
  339. data/lib/2020-01-01-preview/generated/azure_mgmt_security.rb +62 -0
  340. data/lib/2020-01-01-preview/generated/azure_mgmt_security/connectors.rb +504 -0
  341. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/asc_location.rb +73 -0
  342. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/authentication_details_properties.rb +83 -0
  343. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/authentication_provisioning_state.rb +18 -0
  344. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/auto_provision.rb +16 -0
  345. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/aw_assume_role_authentication_details_properties.rb +117 -0
  346. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/aws_creds_authentication_details_properties.rb +115 -0
  347. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/azure_resource_link.rb +47 -0
  348. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
  349. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/connector_setting.rb +91 -0
  350. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/connector_setting_list.rb +101 -0
  351. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/control_type.rb +16 -0
  352. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/etag.rb +48 -0
  353. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/expand_controls_enum.rb +15 -0
  354. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/gcp_credentials_details_properties.rb +201 -0
  355. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/hybrid_compute_provisioning_state.rb +17 -0
  356. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/hybrid_compute_settings_properties.rb +112 -0
  357. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/kind.rb +46 -0
  358. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/permission_property.rb +18 -0
  359. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/proxy_server_properties.rb +58 -0
  360. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/resource.rb +80 -0
  361. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_control_definition_item.rb +141 -0
  362. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_control_definition_list.rb +101 -0
  363. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_control_definition_source.rb +47 -0
  364. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_control_details.rb +187 -0
  365. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_control_list.rb +101 -0
  366. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_control_score.rb +86 -0
  367. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_item.rb +137 -0
  368. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_scores_list.rb +101 -0
  369. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/service_principal_properties.rb +58 -0
  370. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/tags.rb +55 -0
  371. data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/tracked_resource.rb +125 -0
  372. data/lib/2020-01-01-preview/generated/azure_mgmt_security/module_definition.rb +9 -0
  373. data/lib/2020-01-01-preview/generated/azure_mgmt_security/secure_score_control_definitions.rb +423 -0
  374. data/lib/2020-01-01-preview/generated/azure_mgmt_security/secure_score_controls.rb +444 -0
  375. data/lib/2020-01-01-preview/generated/azure_mgmt_security/secure_scores.rb +326 -0
  376. data/lib/2020-01-01-preview/generated/azure_mgmt_security/security_center.rb +143 -0
  377. data/lib/2020-01-01/generated/azure_mgmt_security.rb +144 -0
  378. data/lib/2020-01-01/generated/azure_mgmt_security/adaptive_application_controls.rb +394 -0
  379. data/lib/2020-01-01/generated/azure_mgmt_security/adaptive_network_hardenings.rb +539 -0
  380. data/lib/2020-01-01/generated/azure_mgmt_security/allowed_connections.rb +535 -0
  381. data/lib/2020-01-01/generated/azure_mgmt_security/assessments.rb +555 -0
  382. data/lib/2020-01-01/generated/azure_mgmt_security/assessments_metadata.rb +799 -0
  383. data/lib/2020-01-01/generated/azure_mgmt_security/discovered_security_solutions.rb +532 -0
  384. data/lib/2020-01-01/generated/azure_mgmt_security/external_security_solutions.rb +525 -0
  385. data/lib/2020-01-01/generated/azure_mgmt_security/jit_network_access_policies.rb +1295 -0
  386. data/lib/2020-01-01/generated/azure_mgmt_security/models/aad_connectivity_state.rb +17 -0
  387. data/lib/2020-01-01/generated/azure_mgmt_security/models/aad_connectivity_state1.rb +48 -0
  388. data/lib/2020-01-01/generated/azure_mgmt_security/models/aad_external_security_solution.rb +99 -0
  389. data/lib/2020-01-01/generated/azure_mgmt_security/models/aad_solution_properties.rb +83 -0
  390. data/lib/2020-01-01/generated/azure_mgmt_security/models/adaptive_application_control_group.rb +207 -0
  391. data/lib/2020-01-01/generated/azure_mgmt_security/models/adaptive_application_control_groups.rb +56 -0
  392. data/lib/2020-01-01/generated/azure_mgmt_security/models/adaptive_application_control_issue_summary.rb +61 -0
  393. data/lib/2020-01-01/generated/azure_mgmt_security/models/adaptive_network_hardening.rb +116 -0
  394. data/lib/2020-01-01/generated/azure_mgmt_security/models/adaptive_network_hardening_enforce_request.rb +77 -0
  395. data/lib/2020-01-01/generated/azure_mgmt_security/models/adaptive_network_hardenings_list.rb +99 -0
  396. data/lib/2020-01-01/generated/azure_mgmt_security/models/allowed_connections_list.rb +100 -0
  397. data/lib/2020-01-01/generated/azure_mgmt_security/models/allowed_connections_resource.rb +118 -0
  398. data/lib/2020-01-01/generated/azure_mgmt_security/models/asc_location.rb +73 -0
  399. data/lib/2020-01-01/generated/azure_mgmt_security/models/assessment_links.rb +47 -0
  400. data/lib/2020-01-01/generated/azure_mgmt_security/models/assessment_status.rb +71 -0
  401. data/lib/2020-01-01/generated/azure_mgmt_security/models/assessment_status_code.rb +17 -0
  402. data/lib/2020-01-01/generated/azure_mgmt_security/models/assessment_type.rb +18 -0
  403. data/lib/2020-01-01/generated/azure_mgmt_security/models/ata_external_security_solution.rb +98 -0
  404. data/lib/2020-01-01/generated/azure_mgmt_security/models/ata_solution_properties.rb +87 -0
  405. data/lib/2020-01-01/generated/azure_mgmt_security/models/azure_resource_details.rb +62 -0
  406. data/lib/2020-01-01/generated/azure_mgmt_security/models/azure_resource_link.rb +47 -0
  407. data/lib/2020-01-01/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
  408. data/lib/2020-01-01/generated/azure_mgmt_security/models/category.rb +19 -0
  409. data/lib/2020-01-01/generated/azure_mgmt_security/models/cef_external_security_solution.rb +98 -0
  410. data/lib/2020-01-01/generated/azure_mgmt_security/models/cef_solution_properties.rb +109 -0
  411. data/lib/2020-01-01/generated/azure_mgmt_security/models/connectable_resource.rb +91 -0
  412. data/lib/2020-01-01/generated/azure_mgmt_security/models/connected_resource.rb +71 -0
  413. data/lib/2020-01-01/generated/azure_mgmt_security/models/connected_workspace.rb +47 -0
  414. data/lib/2020-01-01/generated/azure_mgmt_security/models/connection_type.rb +16 -0
  415. data/lib/2020-01-01/generated/azure_mgmt_security/models/control_type.rb +16 -0
  416. data/lib/2020-01-01/generated/azure_mgmt_security/models/direction.rb +16 -0
  417. data/lib/2020-01-01/generated/azure_mgmt_security/models/discovered_security_solution.rb +129 -0
  418. data/lib/2020-01-01/generated/azure_mgmt_security/models/discovered_security_solution_list.rb +99 -0
  419. data/lib/2020-01-01/generated/azure_mgmt_security/models/effective_network_security_groups.rb +66 -0
  420. data/lib/2020-01-01/generated/azure_mgmt_security/models/etag.rb +48 -0
  421. data/lib/2020-01-01/generated/azure_mgmt_security/models/expand_controls_enum.rb +15 -0
  422. data/lib/2020-01-01/generated/azure_mgmt_security/models/expand_enum.rb +16 -0
  423. data/lib/2020-01-01/generated/azure_mgmt_security/models/external_security_solution.rb +98 -0
  424. data/lib/2020-01-01/generated/azure_mgmt_security/models/external_security_solution_kind.rb +17 -0
  425. data/lib/2020-01-01/generated/azure_mgmt_security/models/external_security_solution_kind1.rb +47 -0
  426. data/lib/2020-01-01/generated/azure_mgmt_security/models/external_security_solution_list.rb +101 -0
  427. data/lib/2020-01-01/generated/azure_mgmt_security/models/external_security_solution_properties.rb +88 -0
  428. data/lib/2020-01-01/generated/azure_mgmt_security/models/implementation_effort.rb +17 -0
  429. data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_policies_list.rb +99 -0
  430. data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_policy.rb +149 -0
  431. data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_policy_initiate_port.rb +70 -0
  432. data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_policy_initiate_request.rb +68 -0
  433. data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_policy_initiate_virtual_machine.rb +70 -0
  434. data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_policy_virtual_machine.rb +81 -0
  435. data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_port_rule.rb +103 -0
  436. data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_request.rb +89 -0
  437. data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_request_port.rb +128 -0
  438. data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_request_virtual_machine.rb +69 -0
  439. data/lib/2020-01-01/generated/azure_mgmt_security/models/kind.rb +46 -0
  440. data/lib/2020-01-01/generated/azure_mgmt_security/models/location.rb +47 -0
  441. data/lib/2020-01-01/generated/azure_mgmt_security/models/on_premise_resource_details.rb +95 -0
  442. data/lib/2020-01-01/generated/azure_mgmt_security/models/on_premise_sql_resource_details.rb +104 -0
  443. data/lib/2020-01-01/generated/azure_mgmt_security/models/path_recommendation.rb +158 -0
  444. data/lib/2020-01-01/generated/azure_mgmt_security/models/protection_mode.rb +80 -0
  445. data/lib/2020-01-01/generated/azure_mgmt_security/models/protocol.rb +17 -0
  446. data/lib/2020-01-01/generated/azure_mgmt_security/models/provisioning_state.rb +17 -0
  447. data/lib/2020-01-01/generated/azure_mgmt_security/models/publisher_info.rb +84 -0
  448. data/lib/2020-01-01/generated/azure_mgmt_security/models/resource.rb +80 -0
  449. data/lib/2020-01-01/generated/azure_mgmt_security/models/resource_details.rb +48 -0
  450. data/lib/2020-01-01/generated/azure_mgmt_security/models/rule.rb +111 -0
  451. data/lib/2020-01-01/generated/azure_mgmt_security/models/secure_score_control_definition_item.rb +141 -0
  452. data/lib/2020-01-01/generated/azure_mgmt_security/models/secure_score_control_definition_list.rb +101 -0
  453. data/lib/2020-01-01/generated/azure_mgmt_security/models/secure_score_control_definition_source.rb +47 -0
  454. data/lib/2020-01-01/generated/azure_mgmt_security/models/secure_score_control_details.rb +187 -0
  455. data/lib/2020-01-01/generated/azure_mgmt_security/models/secure_score_control_list.rb +101 -0
  456. data/lib/2020-01-01/generated/azure_mgmt_security/models/secure_score_control_score.rb +86 -0
  457. data/lib/2020-01-01/generated/azure_mgmt_security/models/secure_score_item.rb +137 -0
  458. data/lib/2020-01-01/generated/azure_mgmt_security/models/secure_scores_list.rb +101 -0
  459. data/lib/2020-01-01/generated/azure_mgmt_security/models/security_assessment.rb +156 -0
  460. data/lib/2020-01-01/generated/azure_mgmt_security/models/security_assessment_list.rb +101 -0
  461. data/lib/2020-01-01/generated/azure_mgmt_security/models/security_assessment_metadata.rb +221 -0
  462. data/lib/2020-01-01/generated/azure_mgmt_security/models/security_assessment_metadata_list.rb +100 -0
  463. data/lib/2020-01-01/generated/azure_mgmt_security/models/security_assessment_metadata_partner_data.rb +70 -0
  464. data/lib/2020-01-01/generated/azure_mgmt_security/models/security_assessment_metadata_properties.rb +194 -0
  465. data/lib/2020-01-01/generated/azure_mgmt_security/models/security_assessment_partner_data.rb +57 -0
  466. data/lib/2020-01-01/generated/azure_mgmt_security/models/security_family.rb +18 -0
  467. data/lib/2020-01-01/generated/azure_mgmt_security/models/security_solution.rb +130 -0
  468. data/lib/2020-01-01/generated/azure_mgmt_security/models/security_solution_list.rb +99 -0
  469. data/lib/2020-01-01/generated/azure_mgmt_security/models/security_solutions_reference_data.rb +162 -0
  470. data/lib/2020-01-01/generated/azure_mgmt_security/models/security_solutions_reference_data_list.rb +56 -0
  471. data/lib/2020-01-01/generated/azure_mgmt_security/models/server_vulnerability_assessment.rb +76 -0
  472. data/lib/2020-01-01/generated/azure_mgmt_security/models/server_vulnerability_assessments_list.rb +55 -0
  473. data/lib/2020-01-01/generated/azure_mgmt_security/models/severity.rb +17 -0
  474. data/lib/2020-01-01/generated/azure_mgmt_security/models/status.rb +16 -0
  475. data/lib/2020-01-01/generated/azure_mgmt_security/models/status_reason.rb +17 -0
  476. data/lib/2020-01-01/generated/azure_mgmt_security/models/tags.rb +55 -0
  477. data/lib/2020-01-01/generated/azure_mgmt_security/models/threats.rb +22 -0
  478. data/lib/2020-01-01/generated/azure_mgmt_security/models/topology_list.rb +100 -0
  479. data/lib/2020-01-01/generated/azure_mgmt_security/models/topology_resource.rb +118 -0
  480. data/lib/2020-01-01/generated/azure_mgmt_security/models/topology_single_resource.rb +154 -0
  481. data/lib/2020-01-01/generated/azure_mgmt_security/models/topology_single_resource_child.rb +49 -0
  482. data/lib/2020-01-01/generated/azure_mgmt_security/models/topology_single_resource_parent.rb +49 -0
  483. data/lib/2020-01-01/generated/azure_mgmt_security/models/tracked_resource.rb +125 -0
  484. data/lib/2020-01-01/generated/azure_mgmt_security/models/transport_protocol.rb +16 -0
  485. data/lib/2020-01-01/generated/azure_mgmt_security/models/user_impact.rb +17 -0
  486. data/lib/2020-01-01/generated/azure_mgmt_security/models/user_recommendation.rb +58 -0
  487. data/lib/2020-01-01/generated/azure_mgmt_security/models/vm_recommendation.rb +81 -0
  488. data/lib/2020-01-01/generated/azure_mgmt_security/module_definition.rb +9 -0
  489. data/lib/2020-01-01/generated/azure_mgmt_security/secure_score_control_definitions.rb +423 -0
  490. data/lib/2020-01-01/generated/azure_mgmt_security/secure_score_controls.rb +444 -0
  491. data/lib/2020-01-01/generated/azure_mgmt_security/secure_scores.rb +326 -0
  492. data/lib/2020-01-01/generated/azure_mgmt_security/security_center.rb +193 -0
  493. data/lib/2020-01-01/generated/azure_mgmt_security/security_solutions.rb +324 -0
  494. data/lib/2020-01-01/generated/azure_mgmt_security/security_solutions_reference_data_operations.rb +200 -0
  495. data/lib/2020-01-01/generated/azure_mgmt_security/server_vulnerability_assessment_operations.rb +462 -0
  496. data/lib/2020-01-01/generated/azure_mgmt_security/topology.rb +530 -0
  497. data/lib/2020-07-01-preview/generated/azure_mgmt_security.rb +59 -0
  498. data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/asc_location.rb +73 -0
  499. data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
  500. data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/baseline.rb +73 -0
  501. data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/baseline_adjusted_result.rb +113 -0
  502. data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/benchmark_reference.rb +57 -0
  503. data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/etag.rb +48 -0
  504. data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/kind.rb +46 -0
  505. data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/query_check.rb +92 -0
  506. data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/remediation.rb +87 -0
  507. data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/resource.rb +80 -0
  508. data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/rule_results.rb +74 -0
  509. data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/rule_results_input.rb +75 -0
  510. data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/rule_results_properties.rb +62 -0
  511. data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/rule_severity.rb +19 -0
  512. data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/rule_status.rb +17 -0
  513. data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/rule_type.rb +18 -0
  514. data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/rules_results.rb +55 -0
  515. data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/rules_results_input.rb +83 -0
  516. data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/scan.rb +74 -0
  517. data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/scan_properties.rb +192 -0
  518. data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/scan_result.rb +74 -0
  519. data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/scan_result_properties.rb +133 -0
  520. data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/scan_results.rb +56 -0
  521. data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/scan_state.rb +18 -0
  522. data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/scan_trigger_type.rb +16 -0
  523. data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/scans.rb +55 -0
  524. data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/tags.rb +55 -0
  525. data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/tracked_resource.rb +125 -0
  526. data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/va_rule.rb +146 -0
  527. data/lib/2020-07-01-preview/generated/azure_mgmt_security/module_definition.rb +9 -0
  528. data/lib/2020-07-01-preview/generated/azure_mgmt_security/security_center.rb +135 -0
  529. data/lib/2020-07-01-preview/generated/azure_mgmt_security/sql_vulnerability_assessment_baseline_rules.rb +535 -0
  530. data/lib/2020-07-01-preview/generated/azure_mgmt_security/sql_vulnerability_assessment_scan_results.rb +237 -0
  531. data/lib/2020-07-01-preview/generated/azure_mgmt_security/sql_vulnerability_assessment_scans.rb +225 -0
  532. data/lib/2020-08-06-preview/generated/azure_mgmt_security.rb +89 -0
  533. data/lib/2020-08-06-preview/generated/azure_mgmt_security/device_operations.rb +119 -0
  534. data/lib/2020-08-06-preview/generated/azure_mgmt_security/devices_for_hub.rb +244 -0
  535. data/lib/2020-08-06-preview/generated/azure_mgmt_security/devices_for_subscription.rb +241 -0
  536. data/lib/2020-08-06-preview/generated/azure_mgmt_security/iot_alert_types.rb +203 -0
  537. data/lib/2020-08-06-preview/generated/azure_mgmt_security/iot_alerts.rb +377 -0
  538. data/lib/2020-08-06-preview/generated/azure_mgmt_security/iot_defender_settings.rb +473 -0
  539. data/lib/2020-08-06-preview/generated/azure_mgmt_security/iot_recommendation_types.rb +203 -0
  540. data/lib/2020-08-06-preview/generated/azure_mgmt_security/iot_recommendations.rb +349 -0
  541. data/lib/2020-08-06-preview/generated/azure_mgmt_security/iot_sensors.rb +511 -0
  542. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/alert_intent.rb +30 -0
  543. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/alert_severity.rb +18 -0
  544. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/asc_location.rb +73 -0
  545. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/authorization_state.rb +16 -0
  546. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
  547. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/device.rb +397 -0
  548. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/device_criticality.rb +16 -0
  549. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/device_list.rb +100 -0
  550. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/device_status.rb +16 -0
  551. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/etag.rb +48 -0
  552. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/firmware.rb +121 -0
  553. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_alert_list_model.rb +101 -0
  554. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_alert_model.rb +128 -0
  555. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_alert_type.rb +188 -0
  556. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_alert_type_list.rb +55 -0
  557. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_defender_settings_list.rb +56 -0
  558. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_defender_settings_model.rb +96 -0
  559. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_recommendation_list_model.rb +101 -0
  560. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_recommendation_model.rb +109 -0
  561. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_recommendation_type.rb +184 -0
  562. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_recommendation_type_list.rb +55 -0
  563. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_sensor.rb +73 -0
  564. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_sensors_list.rb +56 -0
  565. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/ip_address.rb +95 -0
  566. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/kind.rb +46 -0
  567. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/mac_address.rb +87 -0
  568. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/mac_significance.rb +16 -0
  569. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/management_state.rb +16 -0
  570. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/network_interface.rb +79 -0
  571. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/on_premise_iot_sensor.rb +73 -0
  572. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/on_premise_iot_sensors_list.rb +56 -0
  573. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/package_download_info.rb +71 -0
  574. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/package_downloads.rb +76 -0
  575. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/package_downloads_central_manager.rb +71 -0
  576. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/package_downloads_central_manager_full.rb +71 -0
  577. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/package_downloads_central_manager_full_ovf.rb +121 -0
  578. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/package_downloads_sensor.rb +69 -0
  579. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/package_downloads_sensor_full.rb +70 -0
  580. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/package_downloads_sensor_full_ovf.rb +98 -0
  581. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/package_downloads_threat_intelligence.rb +46 -0
  582. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/programming_state.rb +16 -0
  583. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/protocol.rb +58 -0
  584. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/purdue_level.rb +17 -0
  585. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/recommendation_severity.rb +21 -0
  586. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/relation_to_ip_status.rb +16 -0
  587. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/resource.rb +80 -0
  588. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/scanning_functionality.rb +16 -0
  589. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/sensor.rb +59 -0
  590. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/site.rb +47 -0
  591. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/tags.rb +55 -0
  592. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/tracked_resource.rb +125 -0
  593. data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/version_kind.rb +17 -0
  594. data/lib/2020-08-06-preview/generated/azure_mgmt_security/module_definition.rb +9 -0
  595. data/lib/2020-08-06-preview/generated/azure_mgmt_security/on_premise_iot_sensors.rb +482 -0
  596. data/lib/2020-08-06-preview/generated/azure_mgmt_security/security_center.rb +167 -0
  597. data/lib/azure_mgmt_security.rb +10 -0
  598. data/lib/profiles/latest/modules/security_profile_module.rb +1352 -36
  599. data/lib/version.rb +1 -1
  600. metadata +588 -6
@@ -0,0 +1,9 @@
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 end
7
+ module Azure::Security end
8
+ module Azure::Security::Mgmt end
9
+ module Azure::Security::Mgmt::V2020_01_01_preview end
@@ -0,0 +1,423 @@
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::Security::Mgmt::V2020_01_01_preview
7
+ #
8
+ # API spec for Microsoft.Security (Azure Security Center) resource provider
9
+ #
10
+ class SecureScoreControlDefinitions
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the SecureScoreControlDefinitions class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [SecurityCenter] reference to the SecurityCenter
22
+ attr_reader :client
23
+
24
+ #
25
+ # List the available security controls, their assessments, and the max score
26
+ #
27
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
28
+ # will be added to the HTTP request.
29
+ #
30
+ # @return [Array<SecureScoreControlDefinitionItem>] operation results.
31
+ #
32
+ def list(custom_headers:nil)
33
+ first_page = list_as_lazy(custom_headers:custom_headers)
34
+ first_page.get_all_items
35
+ end
36
+
37
+ #
38
+ # List the available security controls, their assessments, and the max score
39
+ #
40
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
41
+ # will be added to the HTTP request.
42
+ #
43
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
44
+ #
45
+ def list_with_http_info(custom_headers:nil)
46
+ list_async(custom_headers:custom_headers).value!
47
+ end
48
+
49
+ #
50
+ # List the available security controls, their assessments, and the max score
51
+ #
52
+ # @param [Hash{String => String}] A hash of custom headers that will be added
53
+ # to the HTTP request.
54
+ #
55
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
56
+ #
57
+ def list_async(custom_headers:nil)
58
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
59
+
60
+
61
+ request_headers = {}
62
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
63
+
64
+ # Set Headers
65
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
66
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
67
+ path_template = 'providers/Microsoft.Security/secureScoreControlDefinitions'
68
+
69
+ request_url = @base_url || @client.base_url
70
+
71
+ options = {
72
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
73
+ query_params: {'api-version' => @client.api_version},
74
+ headers: request_headers.merge(custom_headers || {}),
75
+ base_url: request_url
76
+ }
77
+ promise = @client.make_request_async(:get, path_template, options)
78
+
79
+ promise = promise.then do |result|
80
+ http_response = result.response
81
+ status_code = http_response.status
82
+ response_content = http_response.body
83
+ unless status_code == 200
84
+ error_model = JSON.load(response_content)
85
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
86
+ end
87
+
88
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
89
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
90
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
91
+ # Deserialize Response
92
+ if status_code == 200
93
+ begin
94
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
95
+ result_mapper = Azure::Security::Mgmt::V2020_01_01_preview::Models::SecureScoreControlDefinitionList.mapper()
96
+ result.body = @client.deserialize(result_mapper, parsed_response)
97
+ rescue Exception => e
98
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
99
+ end
100
+ end
101
+
102
+ result
103
+ end
104
+
105
+ promise.execute
106
+ end
107
+
108
+ #
109
+ # For a specified subscription, list the available security controls, their
110
+ # assessments, and the max score
111
+ #
112
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
113
+ # will be added to the HTTP request.
114
+ #
115
+ # @return [Array<SecureScoreControlDefinitionItem>] operation results.
116
+ #
117
+ def list_by_subscription(custom_headers:nil)
118
+ first_page = list_by_subscription_as_lazy(custom_headers:custom_headers)
119
+ first_page.get_all_items
120
+ end
121
+
122
+ #
123
+ # For a specified subscription, list the available security controls, their
124
+ # assessments, and the max score
125
+ #
126
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
127
+ # will be added to the HTTP request.
128
+ #
129
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
130
+ #
131
+ def list_by_subscription_with_http_info(custom_headers:nil)
132
+ list_by_subscription_async(custom_headers:custom_headers).value!
133
+ end
134
+
135
+ #
136
+ # For a specified subscription, list the available security controls, their
137
+ # assessments, and the max score
138
+ #
139
+ # @param [Hash{String => String}] A hash of custom headers that will be added
140
+ # to the HTTP request.
141
+ #
142
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
143
+ #
144
+ def list_by_subscription_async(custom_headers:nil)
145
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
146
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
147
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'Pattern': '^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$'" if !@client.subscription_id.nil? && @client.subscription_id.match(Regexp.new('^^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$$')).nil?
148
+
149
+
150
+ request_headers = {}
151
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
152
+
153
+ # Set Headers
154
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
155
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
156
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Security/secureScoreControlDefinitions'
157
+
158
+ request_url = @base_url || @client.base_url
159
+
160
+ options = {
161
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
162
+ path_params: {'subscriptionId' => @client.subscription_id},
163
+ query_params: {'api-version' => @client.api_version},
164
+ headers: request_headers.merge(custom_headers || {}),
165
+ base_url: request_url
166
+ }
167
+ promise = @client.make_request_async(:get, path_template, options)
168
+
169
+ promise = promise.then do |result|
170
+ http_response = result.response
171
+ status_code = http_response.status
172
+ response_content = http_response.body
173
+ unless status_code == 200
174
+ error_model = JSON.load(response_content)
175
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
176
+ end
177
+
178
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
179
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
180
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
181
+ # Deserialize Response
182
+ if status_code == 200
183
+ begin
184
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
185
+ result_mapper = Azure::Security::Mgmt::V2020_01_01_preview::Models::SecureScoreControlDefinitionList.mapper()
186
+ result.body = @client.deserialize(result_mapper, parsed_response)
187
+ rescue Exception => e
188
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
189
+ end
190
+ end
191
+
192
+ result
193
+ end
194
+
195
+ promise.execute
196
+ end
197
+
198
+ #
199
+ # List the available security controls, their assessments, and the max score
200
+ #
201
+ # @param next_page_link [String] The NextLink from the previous successful call
202
+ # to List operation.
203
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
204
+ # will be added to the HTTP request.
205
+ #
206
+ # @return [SecureScoreControlDefinitionList] operation results.
207
+ #
208
+ def list_next(next_page_link, custom_headers:nil)
209
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
210
+ response.body unless response.nil?
211
+ end
212
+
213
+ #
214
+ # List the available security controls, their assessments, and the max score
215
+ #
216
+ # @param next_page_link [String] The NextLink from the previous successful call
217
+ # to List operation.
218
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
219
+ # will be added to the HTTP request.
220
+ #
221
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
222
+ #
223
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
224
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
225
+ end
226
+
227
+ #
228
+ # List the available security controls, their assessments, and the max score
229
+ #
230
+ # @param next_page_link [String] The NextLink from the previous successful call
231
+ # to List operation.
232
+ # @param [Hash{String => String}] A hash of custom headers that will be added
233
+ # to the HTTP request.
234
+ #
235
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
236
+ #
237
+ def list_next_async(next_page_link, custom_headers:nil)
238
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
239
+
240
+
241
+ request_headers = {}
242
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
243
+
244
+ # Set Headers
245
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
246
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
247
+ path_template = '{nextLink}'
248
+
249
+ request_url = @base_url || @client.base_url
250
+
251
+ options = {
252
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
253
+ skip_encoding_path_params: {'nextLink' => next_page_link},
254
+ headers: request_headers.merge(custom_headers || {}),
255
+ base_url: request_url
256
+ }
257
+ promise = @client.make_request_async(:get, path_template, options)
258
+
259
+ promise = promise.then do |result|
260
+ http_response = result.response
261
+ status_code = http_response.status
262
+ response_content = http_response.body
263
+ unless status_code == 200
264
+ error_model = JSON.load(response_content)
265
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
266
+ end
267
+
268
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
269
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
270
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
271
+ # Deserialize Response
272
+ if status_code == 200
273
+ begin
274
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
275
+ result_mapper = Azure::Security::Mgmt::V2020_01_01_preview::Models::SecureScoreControlDefinitionList.mapper()
276
+ result.body = @client.deserialize(result_mapper, parsed_response)
277
+ rescue Exception => e
278
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
279
+ end
280
+ end
281
+
282
+ result
283
+ end
284
+
285
+ promise.execute
286
+ end
287
+
288
+ #
289
+ # For a specified subscription, list the available security controls, their
290
+ # assessments, and the max score
291
+ #
292
+ # @param next_page_link [String] The NextLink from the previous successful call
293
+ # to List operation.
294
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
295
+ # will be added to the HTTP request.
296
+ #
297
+ # @return [SecureScoreControlDefinitionList] operation results.
298
+ #
299
+ def list_by_subscription_next(next_page_link, custom_headers:nil)
300
+ response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
301
+ response.body unless response.nil?
302
+ end
303
+
304
+ #
305
+ # For a specified subscription, list the available security controls, their
306
+ # assessments, and the max score
307
+ #
308
+ # @param next_page_link [String] The NextLink from the previous successful call
309
+ # to List operation.
310
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
311
+ # will be added to the HTTP request.
312
+ #
313
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
314
+ #
315
+ def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil)
316
+ list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
317
+ end
318
+
319
+ #
320
+ # For a specified subscription, list the available security controls, their
321
+ # assessments, and the max score
322
+ #
323
+ # @param next_page_link [String] The NextLink from the previous successful call
324
+ # to List operation.
325
+ # @param [Hash{String => String}] A hash of custom headers that will be added
326
+ # to the HTTP request.
327
+ #
328
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
329
+ #
330
+ def list_by_subscription_next_async(next_page_link, custom_headers:nil)
331
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
332
+
333
+
334
+ request_headers = {}
335
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
336
+
337
+ # Set Headers
338
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
339
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
340
+ path_template = '{nextLink}'
341
+
342
+ request_url = @base_url || @client.base_url
343
+
344
+ options = {
345
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
346
+ skip_encoding_path_params: {'nextLink' => next_page_link},
347
+ headers: request_headers.merge(custom_headers || {}),
348
+ base_url: request_url
349
+ }
350
+ promise = @client.make_request_async(:get, path_template, options)
351
+
352
+ promise = promise.then do |result|
353
+ http_response = result.response
354
+ status_code = http_response.status
355
+ response_content = http_response.body
356
+ unless status_code == 200
357
+ error_model = JSON.load(response_content)
358
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
359
+ end
360
+
361
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
362
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
363
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
364
+ # Deserialize Response
365
+ if status_code == 200
366
+ begin
367
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
368
+ result_mapper = Azure::Security::Mgmt::V2020_01_01_preview::Models::SecureScoreControlDefinitionList.mapper()
369
+ result.body = @client.deserialize(result_mapper, parsed_response)
370
+ rescue Exception => e
371
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
372
+ end
373
+ end
374
+
375
+ result
376
+ end
377
+
378
+ promise.execute
379
+ end
380
+
381
+ #
382
+ # List the available security controls, their assessments, and the max score
383
+ #
384
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
385
+ # will be added to the HTTP request.
386
+ #
387
+ # @return [SecureScoreControlDefinitionList] which provide lazy access to pages
388
+ # of the response.
389
+ #
390
+ def list_as_lazy(custom_headers:nil)
391
+ response = list_async(custom_headers:custom_headers).value!
392
+ unless response.nil?
393
+ page = response.body
394
+ page.next_method = Proc.new do |next_page_link|
395
+ list_next_async(next_page_link, custom_headers:custom_headers)
396
+ end
397
+ page
398
+ end
399
+ end
400
+
401
+ #
402
+ # For a specified subscription, list the available security controls, their
403
+ # assessments, and the max score
404
+ #
405
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
406
+ # will be added to the HTTP request.
407
+ #
408
+ # @return [SecureScoreControlDefinitionList] which provide lazy access to pages
409
+ # of the response.
410
+ #
411
+ def list_by_subscription_as_lazy(custom_headers:nil)
412
+ response = list_by_subscription_async(custom_headers:custom_headers).value!
413
+ unless response.nil?
414
+ page = response.body
415
+ page.next_method = Proc.new do |next_page_link|
416
+ list_by_subscription_next_async(next_page_link, custom_headers:custom_headers)
417
+ end
418
+ page
419
+ end
420
+ end
421
+
422
+ end
423
+ end
@@ -0,0 +1,444 @@
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::Security::Mgmt::V2020_01_01_preview
7
+ #
8
+ # API spec for Microsoft.Security (Azure Security Center) resource provider
9
+ #
10
+ class SecureScoreControls
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the SecureScoreControls class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [SecurityCenter] reference to the SecurityCenter
22
+ attr_reader :client
23
+
24
+ #
25
+ # Get all security controls for a specific initiative within a scope
26
+ #
27
+ # @param secure_score_name [String] The initiative name. For the ASC Default
28
+ # initiative, use 'ascScore' as in the sample request below.
29
+ # @param expand [ExpandControlsEnum] OData expand. Optional. Possible values
30
+ # include: 'definition'
31
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
32
+ # will be added to the HTTP request.
33
+ #
34
+ # @return [Array<SecureScoreControlDetails>] operation results.
35
+ #
36
+ def list_by_secure_score(secure_score_name, expand:nil, custom_headers:nil)
37
+ first_page = list_by_secure_score_as_lazy(secure_score_name, expand:expand, custom_headers:custom_headers)
38
+ first_page.get_all_items
39
+ end
40
+
41
+ #
42
+ # Get all security controls for a specific initiative within a scope
43
+ #
44
+ # @param secure_score_name [String] The initiative name. For the ASC Default
45
+ # initiative, use 'ascScore' as in the sample request below.
46
+ # @param expand [ExpandControlsEnum] OData expand. Optional. Possible values
47
+ # include: 'definition'
48
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
49
+ # will be added to the HTTP request.
50
+ #
51
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
+ #
53
+ def list_by_secure_score_with_http_info(secure_score_name, expand:nil, custom_headers:nil)
54
+ list_by_secure_score_async(secure_score_name, expand:expand, custom_headers:custom_headers).value!
55
+ end
56
+
57
+ #
58
+ # Get all security controls for a specific initiative within a scope
59
+ #
60
+ # @param secure_score_name [String] The initiative name. For the ASC Default
61
+ # initiative, use 'ascScore' as in the sample request below.
62
+ # @param expand [ExpandControlsEnum] OData expand. Optional. Possible values
63
+ # include: 'definition'
64
+ # @param [Hash{String => String}] A hash of custom headers that will be added
65
+ # to the HTTP request.
66
+ #
67
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
68
+ #
69
+ def list_by_secure_score_async(secure_score_name, expand:nil, custom_headers:nil)
70
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
71
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
72
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'Pattern': '^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$'" if !@client.subscription_id.nil? && @client.subscription_id.match(Regexp.new('^^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$$')).nil?
73
+ fail ArgumentError, 'secure_score_name is nil' if secure_score_name.nil?
74
+
75
+
76
+ request_headers = {}
77
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
78
+
79
+ # Set Headers
80
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
81
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
82
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Security/secureScores/{secureScoreName}/secureScoreControls'
83
+
84
+ request_url = @base_url || @client.base_url
85
+
86
+ options = {
87
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
88
+ path_params: {'subscriptionId' => @client.subscription_id,'secureScoreName' => secure_score_name},
89
+ query_params: {'api-version' => @client.api_version,'$expand' => expand},
90
+ headers: request_headers.merge(custom_headers || {}),
91
+ base_url: request_url
92
+ }
93
+ promise = @client.make_request_async(:get, path_template, options)
94
+
95
+ promise = promise.then do |result|
96
+ http_response = result.response
97
+ status_code = http_response.status
98
+ response_content = http_response.body
99
+ unless status_code == 200
100
+ error_model = JSON.load(response_content)
101
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
102
+ end
103
+
104
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
105
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
106
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
107
+ # Deserialize Response
108
+ if status_code == 200
109
+ begin
110
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
111
+ result_mapper = Azure::Security::Mgmt::V2020_01_01_preview::Models::SecureScoreControlList.mapper()
112
+ result.body = @client.deserialize(result_mapper, parsed_response)
113
+ rescue Exception => e
114
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
115
+ end
116
+ end
117
+
118
+ result
119
+ end
120
+
121
+ promise.execute
122
+ end
123
+
124
+ #
125
+ # Get all security controls within a scope
126
+ #
127
+ # @param expand [ExpandControlsEnum] OData expand. Optional. Possible values
128
+ # include: 'definition'
129
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
130
+ # will be added to the HTTP request.
131
+ #
132
+ # @return [Array<SecureScoreControlDetails>] operation results.
133
+ #
134
+ def list(expand:nil, custom_headers:nil)
135
+ first_page = list_as_lazy(expand:expand, custom_headers:custom_headers)
136
+ first_page.get_all_items
137
+ end
138
+
139
+ #
140
+ # Get all security controls within a scope
141
+ #
142
+ # @param expand [ExpandControlsEnum] OData expand. Optional. Possible values
143
+ # include: 'definition'
144
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
145
+ # will be added to the HTTP request.
146
+ #
147
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
148
+ #
149
+ def list_with_http_info(expand:nil, custom_headers:nil)
150
+ list_async(expand:expand, custom_headers:custom_headers).value!
151
+ end
152
+
153
+ #
154
+ # Get all security controls within a scope
155
+ #
156
+ # @param expand [ExpandControlsEnum] OData expand. Optional. Possible values
157
+ # include: 'definition'
158
+ # @param [Hash{String => String}] A hash of custom headers that will be added
159
+ # to the HTTP request.
160
+ #
161
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
162
+ #
163
+ def list_async(expand:nil, custom_headers:nil)
164
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
165
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
166
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'Pattern': '^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$'" if !@client.subscription_id.nil? && @client.subscription_id.match(Regexp.new('^^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$$')).nil?
167
+
168
+
169
+ request_headers = {}
170
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
171
+
172
+ # Set Headers
173
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
174
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
175
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Security/secureScoreControls'
176
+
177
+ request_url = @base_url || @client.base_url
178
+
179
+ options = {
180
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
181
+ path_params: {'subscriptionId' => @client.subscription_id},
182
+ query_params: {'api-version' => @client.api_version,'$expand' => expand},
183
+ headers: request_headers.merge(custom_headers || {}),
184
+ base_url: request_url
185
+ }
186
+ promise = @client.make_request_async(:get, path_template, options)
187
+
188
+ promise = promise.then do |result|
189
+ http_response = result.response
190
+ status_code = http_response.status
191
+ response_content = http_response.body
192
+ unless status_code == 200
193
+ error_model = JSON.load(response_content)
194
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
195
+ end
196
+
197
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
198
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
199
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
200
+ # Deserialize Response
201
+ if status_code == 200
202
+ begin
203
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
204
+ result_mapper = Azure::Security::Mgmt::V2020_01_01_preview::Models::SecureScoreControlList.mapper()
205
+ result.body = @client.deserialize(result_mapper, parsed_response)
206
+ rescue Exception => e
207
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
208
+ end
209
+ end
210
+
211
+ result
212
+ end
213
+
214
+ promise.execute
215
+ end
216
+
217
+ #
218
+ # Get all security controls for a specific initiative within a scope
219
+ #
220
+ # @param next_page_link [String] The NextLink from the previous successful call
221
+ # to List operation.
222
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
223
+ # will be added to the HTTP request.
224
+ #
225
+ # @return [SecureScoreControlList] operation results.
226
+ #
227
+ def list_by_secure_score_next(next_page_link, custom_headers:nil)
228
+ response = list_by_secure_score_next_async(next_page_link, custom_headers:custom_headers).value!
229
+ response.body unless response.nil?
230
+ end
231
+
232
+ #
233
+ # Get all security controls for a specific initiative within a scope
234
+ #
235
+ # @param next_page_link [String] The NextLink from the previous successful call
236
+ # to List operation.
237
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
238
+ # will be added to the HTTP request.
239
+ #
240
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
241
+ #
242
+ def list_by_secure_score_next_with_http_info(next_page_link, custom_headers:nil)
243
+ list_by_secure_score_next_async(next_page_link, custom_headers:custom_headers).value!
244
+ end
245
+
246
+ #
247
+ # Get all security controls for a specific initiative within a scope
248
+ #
249
+ # @param next_page_link [String] The NextLink from the previous successful call
250
+ # to List operation.
251
+ # @param [Hash{String => String}] A hash of custom headers that will be added
252
+ # to the HTTP request.
253
+ #
254
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
255
+ #
256
+ def list_by_secure_score_next_async(next_page_link, custom_headers:nil)
257
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
258
+
259
+
260
+ request_headers = {}
261
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
262
+
263
+ # Set Headers
264
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
265
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
266
+ path_template = '{nextLink}'
267
+
268
+ request_url = @base_url || @client.base_url
269
+
270
+ options = {
271
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
272
+ skip_encoding_path_params: {'nextLink' => next_page_link},
273
+ headers: request_headers.merge(custom_headers || {}),
274
+ base_url: request_url
275
+ }
276
+ promise = @client.make_request_async(:get, path_template, options)
277
+
278
+ promise = promise.then do |result|
279
+ http_response = result.response
280
+ status_code = http_response.status
281
+ response_content = http_response.body
282
+ unless status_code == 200
283
+ error_model = JSON.load(response_content)
284
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
285
+ end
286
+
287
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
288
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
289
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
290
+ # Deserialize Response
291
+ if status_code == 200
292
+ begin
293
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
294
+ result_mapper = Azure::Security::Mgmt::V2020_01_01_preview::Models::SecureScoreControlList.mapper()
295
+ result.body = @client.deserialize(result_mapper, parsed_response)
296
+ rescue Exception => e
297
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
298
+ end
299
+ end
300
+
301
+ result
302
+ end
303
+
304
+ promise.execute
305
+ end
306
+
307
+ #
308
+ # Get all security controls within a scope
309
+ #
310
+ # @param next_page_link [String] The NextLink from the previous successful call
311
+ # to List operation.
312
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
313
+ # will be added to the HTTP request.
314
+ #
315
+ # @return [SecureScoreControlList] operation results.
316
+ #
317
+ def list_next(next_page_link, custom_headers:nil)
318
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
319
+ response.body unless response.nil?
320
+ end
321
+
322
+ #
323
+ # Get all security controls within a scope
324
+ #
325
+ # @param next_page_link [String] The NextLink from the previous successful call
326
+ # to List operation.
327
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
328
+ # will be added to the HTTP request.
329
+ #
330
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
331
+ #
332
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
333
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
334
+ end
335
+
336
+ #
337
+ # Get all security controls within a scope
338
+ #
339
+ # @param next_page_link [String] The NextLink from the previous successful call
340
+ # to List operation.
341
+ # @param [Hash{String => String}] A hash of custom headers that will be added
342
+ # to the HTTP request.
343
+ #
344
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
345
+ #
346
+ def list_next_async(next_page_link, custom_headers:nil)
347
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
348
+
349
+
350
+ request_headers = {}
351
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
352
+
353
+ # Set Headers
354
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
355
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
356
+ path_template = '{nextLink}'
357
+
358
+ request_url = @base_url || @client.base_url
359
+
360
+ options = {
361
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
362
+ skip_encoding_path_params: {'nextLink' => next_page_link},
363
+ headers: request_headers.merge(custom_headers || {}),
364
+ base_url: request_url
365
+ }
366
+ promise = @client.make_request_async(:get, path_template, options)
367
+
368
+ promise = promise.then do |result|
369
+ http_response = result.response
370
+ status_code = http_response.status
371
+ response_content = http_response.body
372
+ unless status_code == 200
373
+ error_model = JSON.load(response_content)
374
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
375
+ end
376
+
377
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
378
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
379
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
380
+ # Deserialize Response
381
+ if status_code == 200
382
+ begin
383
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
384
+ result_mapper = Azure::Security::Mgmt::V2020_01_01_preview::Models::SecureScoreControlList.mapper()
385
+ result.body = @client.deserialize(result_mapper, parsed_response)
386
+ rescue Exception => e
387
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
388
+ end
389
+ end
390
+
391
+ result
392
+ end
393
+
394
+ promise.execute
395
+ end
396
+
397
+ #
398
+ # Get all security controls for a specific initiative within a scope
399
+ #
400
+ # @param secure_score_name [String] The initiative name. For the ASC Default
401
+ # initiative, use 'ascScore' as in the sample request below.
402
+ # @param expand [ExpandControlsEnum] OData expand. Optional. Possible values
403
+ # include: 'definition'
404
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
405
+ # will be added to the HTTP request.
406
+ #
407
+ # @return [SecureScoreControlList] which provide lazy access to pages of the
408
+ # response.
409
+ #
410
+ def list_by_secure_score_as_lazy(secure_score_name, expand:nil, custom_headers:nil)
411
+ response = list_by_secure_score_async(secure_score_name, expand:expand, custom_headers:custom_headers).value!
412
+ unless response.nil?
413
+ page = response.body
414
+ page.next_method = Proc.new do |next_page_link|
415
+ list_by_secure_score_next_async(next_page_link, custom_headers:custom_headers)
416
+ end
417
+ page
418
+ end
419
+ end
420
+
421
+ #
422
+ # Get all security controls within a scope
423
+ #
424
+ # @param expand [ExpandControlsEnum] OData expand. Optional. Possible values
425
+ # include: 'definition'
426
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
427
+ # will be added to the HTTP request.
428
+ #
429
+ # @return [SecureScoreControlList] which provide lazy access to pages of the
430
+ # response.
431
+ #
432
+ def list_as_lazy(expand:nil, custom_headers:nil)
433
+ response = list_async(expand:expand, custom_headers:custom_headers).value!
434
+ unless response.nil?
435
+ page = response.body
436
+ page.next_method = Proc.new do |next_page_link|
437
+ list_next_async(next_page_link, custom_headers:custom_headers)
438
+ end
439
+ page
440
+ end
441
+ end
442
+
443
+ end
444
+ end