azure_mgmt_security 0.17.2 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (249) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-06-01-preview/generated/azure_mgmt_security.rb +109 -0
  3. data/lib/2015-06-01-preview/generated/azure_mgmt_security/adaptive_application_controls.rb +313 -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 +1280 -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 +191 -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 +86 -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/cef_external_security_solution.rb +98 -0
  33. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/cef_solution_properties.rb +109 -0
  34. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/connectable_resource.rb +91 -0
  35. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/connected_resource.rb +71 -0
  36. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/connected_workspace.rb +47 -0
  37. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/connection_type.rb +16 -0
  38. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/direction.rb +16 -0
  39. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/discovered_security_solution.rb +129 -0
  40. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/discovered_security_solution_list.rb +99 -0
  41. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/effective_network_security_groups.rb +66 -0
  42. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/external_security_solution.rb +98 -0
  43. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/external_security_solution_kind.rb +17 -0
  44. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/external_security_solution_kind1.rb +47 -0
  45. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/external_security_solution_list.rb +101 -0
  46. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/external_security_solution_properties.rb +88 -0
  47. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_policies_list.rb +99 -0
  48. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_policy.rb +149 -0
  49. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_policy_initiate_port.rb +70 -0
  50. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_policy_initiate_request.rb +57 -0
  51. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_policy_initiate_virtual_machine.rb +70 -0
  52. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_policy_virtual_machine.rb +81 -0
  53. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_port_rule.rb +103 -0
  54. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_request.rb +78 -0
  55. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_request_port.rb +128 -0
  56. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_request_virtual_machine.rb +69 -0
  57. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/kind.rb +46 -0
  58. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/location.rb +47 -0
  59. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/operation.rb +71 -0
  60. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/operation_display.rb +84 -0
  61. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/operation_list.rb +99 -0
  62. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/path_recommendation.rb +156 -0
  63. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/protocol.rb +17 -0
  64. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/publisher_info.rb +84 -0
  65. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/reported_severity.rb +18 -0
  66. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/resource.rb +80 -0
  67. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/rule.rb +111 -0
  68. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/security_family.rb +18 -0
  69. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/security_task.rb +123 -0
  70. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/security_task_list.rb +100 -0
  71. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/security_task_parameters.rb +67 -0
  72. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/status.rb +16 -0
  73. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/status_reason.rb +17 -0
  74. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/topology_list.rb +100 -0
  75. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/topology_resource.rb +118 -0
  76. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/topology_single_resource.rb +154 -0
  77. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/topology_single_resource_child.rb +49 -0
  78. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/topology_single_resource_parent.rb +49 -0
  79. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/transport_protocol.rb +16 -0
  80. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/user_recommendation.rb +58 -0
  81. data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/vm_recommendation.rb +69 -0
  82. data/lib/2015-06-01-preview/generated/azure_mgmt_security/module_definition.rb +9 -0
  83. data/lib/2015-06-01-preview/generated/azure_mgmt_security/operations.rb +218 -0
  84. data/lib/2015-06-01-preview/generated/azure_mgmt_security/security_center.rb +175 -0
  85. data/lib/2015-06-01-preview/generated/azure_mgmt_security/tasks.rb +1055 -0
  86. data/lib/2015-06-01-preview/generated/azure_mgmt_security/topology.rb +530 -0
  87. data/lib/2017-08-01-preview/generated/azure_mgmt_security.rb +72 -13
  88. data/lib/2017-08-01-preview/generated/azure_mgmt_security/advanced_threat_protection.rb +222 -0
  89. data/lib/2017-08-01-preview/generated/azure_mgmt_security/auto_provisioning_settings.rb +12 -4
  90. data/lib/2017-08-01-preview/generated/azure_mgmt_security/compliances.rb +9 -3
  91. data/lib/2017-08-01-preview/generated/azure_mgmt_security/device_security_groups.rb +523 -0
  92. data/lib/2017-08-01-preview/generated/azure_mgmt_security/information_protection_policies.rb +447 -0
  93. data/lib/2017-08-01-preview/generated/azure_mgmt_security/io_tsecurity_solutions.rb +230 -0
  94. data/lib/2017-08-01-preview/generated/azure_mgmt_security/io_tsecurity_solutions_analytics.rb +227 -0
  95. data/lib/2017-08-01-preview/generated/azure_mgmt_security/io_tsecurity_solutions_analytics_aggregated_alert.rb +224 -0
  96. data/lib/2017-08-01-preview/generated/azure_mgmt_security/io_tsecurity_solutions_analytics_aggregated_alerts.rb +243 -0
  97. data/lib/2017-08-01-preview/generated/azure_mgmt_security/io_tsecurity_solutions_analytics_recommendation.rb +133 -0
  98. data/lib/2017-08-01-preview/generated/azure_mgmt_security/io_tsecurity_solutions_analytics_recommendations.rb +243 -0
  99. data/lib/2017-08-01-preview/generated/azure_mgmt_security/io_tsecurity_solutions_resource_group.rb +242 -0
  100. data/lib/2017-08-01-preview/generated/azure_mgmt_security/iot_security_solution.rb +459 -0
  101. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/advanced_threat_protection_setting.rb +74 -0
  102. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/allowlist_custom_alert_rule.rb +99 -0
  103. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/asc_location.rb +73 -0
  104. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/custom_alert_rule.rb +81 -0
  105. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/data_export_setting.rb +81 -0
  106. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/data_source.rb +15 -0
  107. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/denylist_custom_alert_rule.rb +99 -0
  108. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/device_security_group.rb +146 -0
  109. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/device_security_group_list.rb +100 -0
  110. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/export_data.rb +15 -0
  111. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/information_protection_keyword.rb +80 -0
  112. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/information_protection_policy.rb +116 -0
  113. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/information_protection_policy_list.rb +100 -0
  114. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/information_type.rb +114 -0
  115. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_aggregated_alert.rb +238 -0
  116. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_aggregated_alert_list.rb +100 -0
  117. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_aggregated_recommendation.rb +212 -0
  118. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_aggregated_recommendation_list.rb +101 -0
  119. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_alerted_device.rb +60 -0
  120. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_alerted_devices_list.rb +68 -0
  121. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_device_alert.rb +73 -0
  122. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_device_alerts_list.rb +67 -0
  123. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_device_recommendation.rb +73 -0
  124. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_device_recommendations_list.rb +68 -0
  125. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_solution_analytics_model.rb +149 -0
  126. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_solution_analytics_model_list.rb +68 -0
  127. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_solution_analytics_model_properties_devices_metrics_item.rb +61 -0
  128. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_solution_model.rb +248 -0
  129. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_solutions_list.rb +99 -0
  130. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tseverity_metrics.rb +68 -0
  131. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/list_custom_alert_rule.rb +82 -0
  132. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/recommendation_config_status.rb +16 -0
  133. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/recommendation_configuration_properties.rb +79 -0
  134. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/recommendation_type.rb +30 -0
  135. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/reported_severity.rb +18 -0
  136. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/security_contact.rb +1 -1
  137. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/security_solution_status.rb +16 -0
  138. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/sensitivity_label.rb +68 -0
  139. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/setting.rb +70 -0
  140. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/setting_kind.rb +16 -0
  141. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/setting_resource.rb +75 -0
  142. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/settings_list.rb +99 -0
  143. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/tags_resource.rb +55 -0
  144. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/threshold_custom_alert_rule.rb +92 -0
  145. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/time_window_custom_alert_rule.rb +115 -0
  146. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/update_iot_security_solution_data.rb +84 -0
  147. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/user_defined_resources_properties.rb +68 -0
  148. data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/value_type.rb +16 -0
  149. data/lib/2017-08-01-preview/generated/azure_mgmt_security/pricings.rb +23 -7
  150. data/lib/2017-08-01-preview/generated/azure_mgmt_security/security_center.rb +200 -0
  151. data/lib/2017-08-01-preview/generated/azure_mgmt_security/security_contacts.rb +18 -6
  152. data/lib/2017-08-01-preview/generated/azure_mgmt_security/settings.rb +420 -0
  153. data/lib/2017-08-01-preview/generated/azure_mgmt_security/workspace_settings.rb +38 -16
  154. data/lib/2017-08-01/generated/azure_mgmt_security.rb +33 -0
  155. data/lib/2017-08-01/generated/azure_mgmt_security/compliance_results.rb +329 -0
  156. data/lib/2017-08-01/generated/azure_mgmt_security/models/asc_location.rb +73 -0
  157. data/lib/2017-08-01/generated/azure_mgmt_security/models/compliance_result.rb +76 -0
  158. data/lib/2017-08-01/generated/azure_mgmt_security/models/compliance_result_list.rb +99 -0
  159. data/lib/2017-08-01/generated/azure_mgmt_security/models/resource.rb +80 -0
  160. data/lib/2017-08-01/generated/azure_mgmt_security/models/resource_status.rb +18 -0
  161. data/lib/2017-08-01/generated/azure_mgmt_security/module_definition.rb +9 -0
  162. data/lib/2017-08-01/generated/azure_mgmt_security/security_center.rb +128 -0
  163. data/lib/2018-06-01/generated/azure_mgmt_security.rb +33 -0
  164. data/lib/2018-06-01/generated/azure_mgmt_security/models/asc_location.rb +73 -0
  165. data/lib/2018-06-01/generated/azure_mgmt_security/models/pricing.rb +90 -0
  166. data/lib/2018-06-01/generated/azure_mgmt_security/models/pricing_list.rb +55 -0
  167. data/lib/2018-06-01/generated/azure_mgmt_security/models/pricing_tier.rb +16 -0
  168. data/lib/2018-06-01/generated/azure_mgmt_security/models/resource.rb +80 -0
  169. data/lib/2018-06-01/generated/azure_mgmt_security/module_definition.rb +9 -0
  170. data/lib/2018-06-01/generated/azure_mgmt_security/pricings.rb +332 -0
  171. 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
  172. data/lib/2019-01-01-preview/generated/azure_mgmt_security.rb +42 -0
  173. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/asc_location.rb +73 -0
  174. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/regulatory_compliance_assessment.rb +166 -0
  175. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/regulatory_compliance_assessment_list.rb +99 -0
  176. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/regulatory_compliance_control.rb +126 -0
  177. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/regulatory_compliance_control_list.rb +100 -0
  178. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/regulatory_compliance_standard.rb +127 -0
  179. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/regulatory_compliance_standard_list.rb +99 -0
  180. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/resource.rb +80 -0
  181. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/server_vulnerability_assessment.rb +76 -0
  182. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/server_vulnerability_assessments_list.rb +55 -0
  183. data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/state.rb +18 -0
  184. data/lib/2019-01-01-preview/generated/azure_mgmt_security/module_definition.rb +9 -0
  185. data/lib/2019-01-01-preview/generated/azure_mgmt_security/regulatory_compliance_assessments.rb +359 -0
  186. data/lib/2019-01-01-preview/generated/azure_mgmt_security/regulatory_compliance_controls.rb +343 -0
  187. data/lib/2019-01-01-preview/generated/azure_mgmt_security/regulatory_compliance_standards.rb +320 -0
  188. data/lib/2019-01-01-preview/generated/azure_mgmt_security/security_center.rb +145 -0
  189. data/lib/2019-01-01-preview/generated/azure_mgmt_security/server_vulnerability_assessment_operations.rb +462 -0
  190. data/lib/2019-01-01/generated/azure_mgmt_security.rb +41 -0
  191. data/lib/2019-01-01/generated/azure_mgmt_security/alerts.rb +1280 -0
  192. data/lib/2019-01-01/generated/azure_mgmt_security/models/alert.rb +375 -0
  193. data/lib/2019-01-01/generated/azure_mgmt_security/models/alert_confidence_reason.rb +59 -0
  194. data/lib/2019-01-01/generated/azure_mgmt_security/models/alert_entity.rb +66 -0
  195. data/lib/2019-01-01/generated/azure_mgmt_security/models/alert_list.rb +99 -0
  196. data/lib/2019-01-01/generated/azure_mgmt_security/models/asc_location.rb +73 -0
  197. data/lib/2019-01-01/generated/azure_mgmt_security/models/data_export_setting.rb +81 -0
  198. data/lib/2019-01-01/generated/azure_mgmt_security/models/reported_severity.rb +18 -0
  199. data/lib/2019-01-01/generated/azure_mgmt_security/models/resource.rb +80 -0
  200. data/lib/2019-01-01/generated/azure_mgmt_security/models/setting.rb +70 -0
  201. data/lib/2019-01-01/generated/azure_mgmt_security/models/setting_kind.rb +16 -0
  202. data/lib/2019-01-01/generated/azure_mgmt_security/models/setting_resource.rb +75 -0
  203. data/lib/2019-01-01/generated/azure_mgmt_security/models/settings_list.rb +99 -0
  204. data/lib/2019-01-01/generated/azure_mgmt_security/module_definition.rb +9 -0
  205. data/lib/2019-01-01/generated/azure_mgmt_security/security_center.rb +139 -0
  206. data/lib/2019-01-01/generated/azure_mgmt_security/settings.rb +420 -0
  207. data/lib/2019-08-01/generated/azure_mgmt_security.rb +63 -0
  208. data/lib/2019-08-01/generated/azure_mgmt_security/io_tsecurity_solutions.rb +230 -0
  209. data/lib/2019-08-01/generated/azure_mgmt_security/io_tsecurity_solutions_analytics.rb +227 -0
  210. data/lib/2019-08-01/generated/azure_mgmt_security/io_tsecurity_solutions_analytics_aggregated_alert.rb +224 -0
  211. data/lib/2019-08-01/generated/azure_mgmt_security/io_tsecurity_solutions_analytics_aggregated_alerts.rb +243 -0
  212. data/lib/2019-08-01/generated/azure_mgmt_security/io_tsecurity_solutions_analytics_recommendation.rb +133 -0
  213. data/lib/2019-08-01/generated/azure_mgmt_security/io_tsecurity_solutions_analytics_recommendations.rb +243 -0
  214. data/lib/2019-08-01/generated/azure_mgmt_security/io_tsecurity_solutions_resource_group.rb +242 -0
  215. data/lib/2019-08-01/generated/azure_mgmt_security/iot_security_solution.rb +459 -0
  216. data/lib/2019-08-01/generated/azure_mgmt_security/models/asc_location.rb +73 -0
  217. data/lib/2019-08-01/generated/azure_mgmt_security/models/data_source.rb +15 -0
  218. data/lib/2019-08-01/generated/azure_mgmt_security/models/export_data.rb +15 -0
  219. data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_aggregated_alert.rb +238 -0
  220. data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_aggregated_alert_list.rb +100 -0
  221. data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_aggregated_recommendation.rb +212 -0
  222. data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_aggregated_recommendation_list.rb +101 -0
  223. data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_alerted_device.rb +60 -0
  224. data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_alerted_devices_list.rb +56 -0
  225. data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_device_alert.rb +73 -0
  226. data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_device_alerts_list.rb +67 -0
  227. data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_device_recommendation.rb +73 -0
  228. data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_device_recommendations_list.rb +56 -0
  229. data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_solution_analytics_model.rb +149 -0
  230. data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_solution_analytics_model_list.rb +68 -0
  231. data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_solution_analytics_model_properties_devices_metrics_item.rb +61 -0
  232. data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_solution_model.rb +248 -0
  233. data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_solutions_list.rb +99 -0
  234. data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tseverity_metrics.rb +68 -0
  235. data/lib/2019-08-01/generated/azure_mgmt_security/models/recommendation_config_status.rb +16 -0
  236. data/lib/2019-08-01/generated/azure_mgmt_security/models/recommendation_configuration_properties.rb +79 -0
  237. data/lib/2019-08-01/generated/azure_mgmt_security/models/recommendation_type.rb +30 -0
  238. data/lib/2019-08-01/generated/azure_mgmt_security/models/reported_severity.rb +18 -0
  239. data/lib/2019-08-01/generated/azure_mgmt_security/models/resource.rb +80 -0
  240. data/lib/2019-08-01/generated/azure_mgmt_security/models/security_solution_status.rb +16 -0
  241. data/lib/2019-08-01/generated/azure_mgmt_security/models/tags_resource.rb +55 -0
  242. data/lib/2019-08-01/generated/azure_mgmt_security/models/update_iot_security_solution_data.rb +84 -0
  243. data/lib/2019-08-01/generated/azure_mgmt_security/models/user_defined_resources_properties.rb +68 -0
  244. data/lib/2019-08-01/generated/azure_mgmt_security/module_definition.rb +9 -0
  245. data/lib/2019-08-01/generated/azure_mgmt_security/security_center.rb +164 -0
  246. data/lib/azure_mgmt_security.rb +6 -0
  247. data/lib/profiles/latest/modules/security_profile_module.rb +652 -40
  248. data/lib/version.rb +1 -1
  249. metadata +242 -6
@@ -0,0 +1,84 @@
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::V2017_08_01_preview
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class UpdateIotSecuritySolutionData < TagsResource
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [UserDefinedResourcesProperties]
17
+ attr_accessor :user_defined_resources
18
+
19
+ # @return [Array<RecommendationConfigurationProperties>]
20
+ attr_accessor :recommendations_configuration
21
+
22
+
23
+ #
24
+ # Mapper for UpdateIotSecuritySolutionData class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ client_side_validation: true,
30
+ required: false,
31
+ serialized_name: 'UpdateIotSecuritySolutionData',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'UpdateIotSecuritySolutionData',
35
+ model_properties: {
36
+ tags: {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: 'tags',
40
+ type: {
41
+ name: 'Dictionary',
42
+ value: {
43
+ client_side_validation: true,
44
+ required: false,
45
+ serialized_name: 'StringElementType',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ }
50
+ }
51
+ },
52
+ user_defined_resources: {
53
+ client_side_validation: true,
54
+ required: false,
55
+ serialized_name: 'userDefinedResources',
56
+ type: {
57
+ name: 'Composite',
58
+ class_name: 'UserDefinedResourcesProperties'
59
+ }
60
+ },
61
+ recommendations_configuration: {
62
+ client_side_validation: true,
63
+ required: false,
64
+ serialized_name: 'recommendationsConfiguration',
65
+ type: {
66
+ name: 'Sequence',
67
+ element: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ serialized_name: 'RecommendationConfigurationPropertiesElementType',
71
+ type: {
72
+ name: 'Composite',
73
+ class_name: 'RecommendationConfigurationProperties'
74
+ }
75
+ }
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
81
+ end
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,68 @@
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::V2017_08_01_preview
7
+ module Models
8
+ #
9
+ # Properties of the solution's user defined resources.
10
+ #
11
+ class UserDefinedResourcesProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Azure Resource Graph query which represents the
16
+ # security solution's user defined resources. Required to start with
17
+ # "where type != "Microsoft.Devices/IotHubs""
18
+ attr_accessor :query
19
+
20
+ # @return [Array<String>] List of Azure subscription ids on which the
21
+ # user defined resources query should be executed.
22
+ attr_accessor :query_subscriptions
23
+
24
+
25
+ #
26
+ # Mapper for UserDefinedResourcesProperties class as Ruby Hash.
27
+ # This will be used for serialization/deserialization.
28
+ #
29
+ def self.mapper()
30
+ {
31
+ client_side_validation: true,
32
+ required: false,
33
+ serialized_name: 'UserDefinedResourcesProperties',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'UserDefinedResourcesProperties',
37
+ model_properties: {
38
+ query: {
39
+ client_side_validation: true,
40
+ required: true,
41
+ serialized_name: 'query',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ },
46
+ query_subscriptions: {
47
+ client_side_validation: true,
48
+ required: true,
49
+ serialized_name: 'querySubscriptions',
50
+ type: {
51
+ name: 'Sequence',
52
+ element: {
53
+ client_side_validation: true,
54
+ required: false,
55
+ serialized_name: 'StringElementType',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
65
+ end
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Security::Mgmt::V2017_08_01_preview
7
+ module Models
8
+ #
9
+ # Defines values for ValueType
10
+ #
11
+ module ValueType
12
+ IpCidr = "IpCidr"
13
+ String = "String"
14
+ end
15
+ end
16
+ end
@@ -18,7 +18,7 @@ module Azure::Security::Mgmt::V2017_08_01_preview
18
18
  @client = client
19
19
  end
20
20
 
21
- # @return [SecurityManagementClient] reference to the SecurityManagementClient
21
+ # @return [SecurityCenter] reference to the SecurityCenter
22
22
  attr_reader :client
23
23
 
24
24
  #
@@ -55,7 +55,7 @@ module Azure::Security::Mgmt::V2017_08_01_preview
55
55
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
56
56
  #
57
57
  def list_async(custom_headers:nil)
58
- @client.api_version = '2017-08-01-preview'
58
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
59
59
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
60
60
  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?
61
61
 
@@ -89,6 +89,8 @@ module Azure::Security::Mgmt::V2017_08_01_preview
89
89
  end
90
90
 
91
91
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
92
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
93
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
92
94
  # Deserialize Response
93
95
  if status_code == 200
94
96
  begin
@@ -146,7 +148,7 @@ module Azure::Security::Mgmt::V2017_08_01_preview
146
148
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
147
149
  #
148
150
  def list_by_resource_group_async(resource_group_name, custom_headers:nil)
149
- @client.api_version = '2017-08-01-preview'
151
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
150
152
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
151
153
  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?
152
154
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -184,6 +186,8 @@ module Azure::Security::Mgmt::V2017_08_01_preview
184
186
  end
185
187
 
186
188
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
189
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
190
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
187
191
  # Deserialize Response
188
192
  if status_code == 200
189
193
  begin
@@ -241,7 +245,7 @@ module Azure::Security::Mgmt::V2017_08_01_preview
241
245
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
242
246
  #
243
247
  def get_subscription_pricing_async(pricing_name, custom_headers:nil)
244
- @client.api_version = '2017-08-01-preview'
248
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
245
249
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
246
250
  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?
247
251
  fail ArgumentError, 'pricing_name is nil' if pricing_name.nil?
@@ -276,6 +280,8 @@ module Azure::Security::Mgmt::V2017_08_01_preview
276
280
  end
277
281
 
278
282
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
283
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
284
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
279
285
  # Deserialize Response
280
286
  if status_code == 200
281
287
  begin
@@ -333,7 +339,7 @@ module Azure::Security::Mgmt::V2017_08_01_preview
333
339
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
334
340
  #
335
341
  def update_subscription_pricing_async(pricing_name, pricing, custom_headers:nil)
336
- @client.api_version = '2017-08-01-preview'
342
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
337
343
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
338
344
  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?
339
345
  fail ArgumentError, 'pricing_name is nil' if pricing_name.nil?
@@ -376,6 +382,8 @@ module Azure::Security::Mgmt::V2017_08_01_preview
376
382
  end
377
383
 
378
384
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
385
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
386
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
379
387
  # Deserialize Response
380
388
  if status_code == 200
381
389
  begin
@@ -436,7 +444,7 @@ module Azure::Security::Mgmt::V2017_08_01_preview
436
444
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
437
445
  #
438
446
  def get_resource_group_pricing_async(resource_group_name, pricing_name, custom_headers:nil)
439
- @client.api_version = '2017-08-01-preview'
447
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
440
448
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
441
449
  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?
442
450
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -475,6 +483,8 @@ module Azure::Security::Mgmt::V2017_08_01_preview
475
483
  end
476
484
 
477
485
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
486
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
487
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
478
488
  # Deserialize Response
479
489
  if status_code == 200
480
490
  begin
@@ -538,7 +548,7 @@ module Azure::Security::Mgmt::V2017_08_01_preview
538
548
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
539
549
  #
540
550
  def create_or_update_resource_group_pricing_async(resource_group_name, pricing_name, pricing, custom_headers:nil)
541
- @client.api_version = '2017-08-01-preview'
551
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
542
552
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
543
553
  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?
544
554
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -585,6 +595,8 @@ module Azure::Security::Mgmt::V2017_08_01_preview
585
595
  end
586
596
 
587
597
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
598
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
599
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
588
600
  # Deserialize Response
589
601
  if status_code == 200
590
602
  begin
@@ -673,6 +685,8 @@ module Azure::Security::Mgmt::V2017_08_01_preview
673
685
  end
674
686
 
675
687
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
688
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
689
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
676
690
  # Deserialize Response
677
691
  if status_code == 200
678
692
  begin
@@ -761,6 +775,8 @@ module Azure::Security::Mgmt::V2017_08_01_preview
761
775
  end
762
776
 
763
777
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
778
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
779
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
764
780
  # Deserialize Response
765
781
  if status_code == 200
766
782
  begin
@@ -0,0 +1,200 @@
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::V2017_08_01_preview
7
+ #
8
+ # A service client - single point of access to the REST API.
9
+ #
10
+ class SecurityCenter < MsRestAzure::AzureServiceClient
11
+ include MsRestAzure
12
+ include MsRestAzure::Serialization
13
+
14
+ # @return [String] the base URI of the service.
15
+ attr_accessor :base_url
16
+
17
+ # @return Credentials needed for the client to connect to Azure.
18
+ attr_reader :credentials
19
+
20
+ # @return [String] API version for the operation
21
+ attr_reader :api_version
22
+
23
+ # @return [String] Azure subscription ID
24
+ attr_accessor :subscription_id
25
+
26
+ # @return [String] The preferred language for the response.
27
+ attr_accessor :accept_language
28
+
29
+ # @return [Integer] The retry timeout in seconds for Long Running
30
+ # Operations. Default value is 30.
31
+ attr_accessor :long_running_operation_retry_timeout
32
+
33
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
34
+ # generated. When set to true a unique x-ms-client-request-id value is
35
+ # generated and included in each request. Default is true.
36
+ attr_accessor :generate_client_request_id
37
+
38
+ # @return [AdvancedThreatProtection] advanced_threat_protection
39
+ attr_reader :advanced_threat_protection
40
+
41
+ # @return [AutoProvisioningSettings] auto_provisioning_settings
42
+ attr_reader :auto_provisioning_settings
43
+
44
+ # @return [Compliances] compliances
45
+ attr_reader :compliances
46
+
47
+ # @return [DeviceSecurityGroups] device_security_groups
48
+ attr_reader :device_security_groups
49
+
50
+ # @return [InformationProtectionPolicies] information_protection_policies
51
+ attr_reader :information_protection_policies
52
+
53
+ # @return [IoTSecuritySolutionsAnalytics] io_tsecurity_solutions_analytics
54
+ attr_reader :io_tsecurity_solutions_analytics
55
+
56
+ # @return [IoTSecuritySolutionsAnalyticsAggregatedAlerts]
57
+ # io_tsecurity_solutions_analytics_aggregated_alerts
58
+ attr_reader :io_tsecurity_solutions_analytics_aggregated_alerts
59
+
60
+ # @return [IoTSecuritySolutionsAnalyticsAggregatedAlert]
61
+ # io_tsecurity_solutions_analytics_aggregated_alert
62
+ attr_reader :io_tsecurity_solutions_analytics_aggregated_alert
63
+
64
+ # @return [IoTSecuritySolutionsAnalyticsRecommendation]
65
+ # io_tsecurity_solutions_analytics_recommendation
66
+ attr_reader :io_tsecurity_solutions_analytics_recommendation
67
+
68
+ # @return [IoTSecuritySolutionsAnalyticsRecommendations]
69
+ # io_tsecurity_solutions_analytics_recommendations
70
+ attr_reader :io_tsecurity_solutions_analytics_recommendations
71
+
72
+ # @return [IoTSecuritySolutions] io_tsecurity_solutions
73
+ attr_reader :io_tsecurity_solutions
74
+
75
+ # @return [IoTSecuritySolutionsResourceGroup]
76
+ # io_tsecurity_solutions_resource_group
77
+ attr_reader :io_tsecurity_solutions_resource_group
78
+
79
+ # @return [IotSecuritySolution] iot_security_solution
80
+ attr_reader :iot_security_solution
81
+
82
+ # @return [Pricings] pricings
83
+ attr_reader :pricings
84
+
85
+ # @return [SecurityContacts] security_contacts
86
+ attr_reader :security_contacts
87
+
88
+ # @return [Settings] settings
89
+ attr_reader :settings
90
+
91
+ # @return [WorkspaceSettings] workspace_settings
92
+ attr_reader :workspace_settings
93
+
94
+ #
95
+ # Creates initializes a new instance of the SecurityCenter class.
96
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
97
+ # @param base_url [String] the base URI of the service.
98
+ # @param options [Array] filters to be applied to the HTTP requests.
99
+ #
100
+ def initialize(credentials = nil, base_url = nil, options = nil)
101
+ super(credentials, options)
102
+ @base_url = base_url || 'https://management.azure.com'
103
+
104
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
105
+ @credentials = credentials
106
+
107
+ @advanced_threat_protection = AdvancedThreatProtection.new(self)
108
+ @auto_provisioning_settings = AutoProvisioningSettings.new(self)
109
+ @compliances = Compliances.new(self)
110
+ @device_security_groups = DeviceSecurityGroups.new(self)
111
+ @information_protection_policies = InformationProtectionPolicies.new(self)
112
+ @io_tsecurity_solutions_analytics = IoTSecuritySolutionsAnalytics.new(self)
113
+ @io_tsecurity_solutions_analytics_aggregated_alerts = IoTSecuritySolutionsAnalyticsAggregatedAlerts.new(self)
114
+ @io_tsecurity_solutions_analytics_aggregated_alert = IoTSecuritySolutionsAnalyticsAggregatedAlert.new(self)
115
+ @io_tsecurity_solutions_analytics_recommendation = IoTSecuritySolutionsAnalyticsRecommendation.new(self)
116
+ @io_tsecurity_solutions_analytics_recommendations = IoTSecuritySolutionsAnalyticsRecommendations.new(self)
117
+ @io_tsecurity_solutions = IoTSecuritySolutions.new(self)
118
+ @io_tsecurity_solutions_resource_group = IoTSecuritySolutionsResourceGroup.new(self)
119
+ @iot_security_solution = IotSecuritySolution.new(self)
120
+ @pricings = Pricings.new(self)
121
+ @security_contacts = SecurityContacts.new(self)
122
+ @settings = Settings.new(self)
123
+ @workspace_settings = WorkspaceSettings.new(self)
124
+ @api_version = '2017-08-01-preview'
125
+ @accept_language = 'en-US'
126
+ @long_running_operation_retry_timeout = 30
127
+ @generate_client_request_id = true
128
+ add_telemetry
129
+ end
130
+
131
+ #
132
+ # Makes a request and returns the body of the response.
133
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
134
+ # @param path [String] the path, relative to {base_url}.
135
+ # @param options [Hash{String=>String}] specifying any request options like :body.
136
+ # @return [Hash{String=>String}] containing the body of the response.
137
+ # Example:
138
+ #
139
+ # request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
140
+ # path = "/path"
141
+ # options = {
142
+ # body: request_content,
143
+ # query_params: {'api-version' => '2016-02-01'}
144
+ # }
145
+ # result = @client.make_request(:put, path, options)
146
+ #
147
+ def make_request(method, path, options = {})
148
+ result = make_request_with_http_info(method, path, options)
149
+ result.body unless result.nil?
150
+ end
151
+
152
+ #
153
+ # Makes a request and returns the operation response.
154
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
155
+ # @param path [String] the path, relative to {base_url}.
156
+ # @param options [Hash{String=>String}] specifying any request options like :body.
157
+ # @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
158
+ #
159
+ def make_request_with_http_info(method, path, options = {})
160
+ result = make_request_async(method, path, options).value!
161
+ result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
162
+ result
163
+ end
164
+
165
+ #
166
+ # Makes a request asynchronously.
167
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
168
+ # @param path [String] the path, relative to {base_url}.
169
+ # @param options [Hash{String=>String}] specifying any request options like :body.
170
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
171
+ #
172
+ def make_request_async(method, path, options = {})
173
+ fail ArgumentError, 'method is nil' if method.nil?
174
+ fail ArgumentError, 'path is nil' if path.nil?
175
+
176
+ request_url = options[:base_url] || @base_url
177
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
178
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
179
+ end
180
+
181
+ request_headers = @request_headers
182
+ request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
183
+ options.merge!({headers: request_headers.merge(options[:headers] || {})})
184
+ options.merge!({credentials: @credentials}) unless @credentials.nil?
185
+
186
+ super(request_url, method, path, options)
187
+ end
188
+
189
+
190
+ private
191
+ #
192
+ # Adds telemetry information.
193
+ #
194
+ def add_telemetry
195
+ sdk_information = 'azure_mgmt_security'
196
+ sdk_information = "#{sdk_information}/0.18.0"
197
+ add_user_agent_information(sdk_information)
198
+ end
199
+ end
200
+ end