azure_mgmt_alerts_management 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (206) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management.rb +76 -0
  4. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/alerts.rb +708 -0
  5. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/alerts_management_client.rb +150 -0
  6. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alert.rb +259 -0
  7. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alert_modification.rb +74 -0
  8. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alert_modification_event.rb +17 -0
  9. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alert_modification_item.rb +114 -0
  10. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alert_modification_properties.rb +68 -0
  11. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alert_state.rb +17 -0
  12. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alerts_list.rb +98 -0
  13. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alerts_sort_by_fields.rb +24 -0
  14. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alerts_summary.rb +147 -0
  15. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alerts_summary_by_monitor_condition.rb +57 -0
  16. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alerts_summary_by_monitor_service.rb +189 -0
  17. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alerts_summary_by_severity_and_monitor_condition.rb +101 -0
  18. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alerts_summary_by_severity_and_monitor_condition_sev0.rb +52 -0
  19. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alerts_summary_by_severity_and_monitor_condition_sev1.rb +52 -0
  20. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alerts_summary_by_severity_and_monitor_condition_sev2.rb +52 -0
  21. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alerts_summary_by_severity_and_monitor_condition_sev3.rb +52 -0
  22. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alerts_summary_by_severity_and_monitor_condition_sev4.rb +52 -0
  23. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alerts_summary_by_state.rb +68 -0
  24. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alerts_summary_properties_summary_by_monitor_service.rb +148 -0
  25. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alerts_summary_properties_summary_by_severity.rb +100 -0
  26. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alerts_summary_properties_summary_by_severity_and_monitor_condition.rb +81 -0
  27. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alerts_summary_properties_summary_by_severity_sev0.rb +60 -0
  28. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alerts_summary_properties_summary_by_severity_sev1.rb +60 -0
  29. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alerts_summary_properties_summary_by_severity_sev2.rb +60 -0
  30. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alerts_summary_properties_summary_by_severity_sev3.rb +60 -0
  31. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alerts_summary_properties_summary_by_severity_sev4.rb +60 -0
  32. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/alerts_summary_properties_summary_by_state.rb +59 -0
  33. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/api_version.rb +16 -0
  34. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/monitor_condition.rb +16 -0
  35. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/monitor_service.rb +28 -0
  36. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/operation.rb +58 -0
  37. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/operation_display.rb +79 -0
  38. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/operations_list.rb +98 -0
  39. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/resource.rb +80 -0
  40. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/severity.rb +19 -0
  41. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/signal_type.rb +17 -0
  42. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/smart_group.rb +297 -0
  43. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/smart_group_aggregated_property.rb +57 -0
  44. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/smart_group_modification.rb +74 -0
  45. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/smart_group_modification_event.rb +18 -0
  46. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/smart_group_modification_item.rb +115 -0
  47. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/smart_group_modification_properties.rb +79 -0
  48. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/smart_groups_list.rb +66 -0
  49. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/smart_groups_sort_by_fields.rb +19 -0
  50. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/state.rb +17 -0
  51. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/models/time_range.rb +18 -0
  52. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/module_definition.rb +9 -0
  53. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/operations.rb +225 -0
  54. data/lib/2018-05-05-preview/generated/azure_mgmt_alerts_management/smart_groups.rb +460 -0
  55. data/lib/2018-05-05/generated/azure_mgmt_alerts_management.rb +64 -0
  56. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/alerts.rb +908 -0
  57. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/alerts_management_client.rb +141 -0
  58. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/alert.rb +74 -0
  59. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/alert_modification.rb +74 -0
  60. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/alert_modification_event.rb +17 -0
  61. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/alert_modification_item.rb +114 -0
  62. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/alert_modification_properties.rb +68 -0
  63. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/alert_properties.rb +69 -0
  64. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/alert_state.rb +17 -0
  65. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/alerts_list.rb +98 -0
  66. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/alerts_sort_by_fields.rb +24 -0
  67. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/alerts_summary.rb +74 -0
  68. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/alerts_summary_group.rb +88 -0
  69. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/alerts_summary_group_by_fields.rb +20 -0
  70. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/alerts_summary_group_item.rb +88 -0
  71. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/error_response.rb +47 -0
  72. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/error_response_body.rb +91 -0
  73. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/essentials.rb +257 -0
  74. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/monitor_condition.rb +16 -0
  75. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/monitor_service.rb +28 -0
  76. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/operation.rb +58 -0
  77. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/operation_display.rb +79 -0
  78. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/operations_list.rb +98 -0
  79. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/resource.rb +80 -0
  80. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/severity.rb +19 -0
  81. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/signal_type.rb +17 -0
  82. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/smart_group.rb +297 -0
  83. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/smart_group_aggregated_property.rb +57 -0
  84. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/smart_group_modification.rb +74 -0
  85. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/smart_group_modification_event.rb +18 -0
  86. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/smart_group_modification_item.rb +115 -0
  87. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/smart_group_modification_properties.rb +79 -0
  88. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/smart_groups_list.rb +98 -0
  89. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/smart_groups_sort_by_fields.rb +19 -0
  90. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/state.rb +17 -0
  91. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/models/time_range.rb +18 -0
  92. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/module_definition.rb +9 -0
  93. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/operations.rb +225 -0
  94. data/lib/2018-05-05/generated/azure_mgmt_alerts_management/smart_groups.rb +648 -0
  95. data/lib/2019-03-01/generated/azure_mgmt_alerts_management.rb +71 -0
  96. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/alerts.rb +977 -0
  97. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/alerts_management_client.rb +154 -0
  98. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/action_groups_information.rb +78 -0
  99. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/alert.rb +74 -0
  100. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/alert_modification.rb +74 -0
  101. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/alert_modification_event.rb +17 -0
  102. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/alert_modification_item.rb +114 -0
  103. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/alert_modification_properties.rb +68 -0
  104. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/alert_properties.rb +69 -0
  105. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/alert_rule.rb +164 -0
  106. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/alert_rule_state.rb +16 -0
  107. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/alert_rules_list.rb +98 -0
  108. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/alert_state.rb +17 -0
  109. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/alerts_list.rb +98 -0
  110. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/alerts_sort_by_fields.rb +24 -0
  111. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/alerts_summary.rb +74 -0
  112. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/alerts_summary_group.rb +88 -0
  113. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/alerts_summary_group_by_fields.rb +20 -0
  114. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/alerts_summary_group_item.rb +88 -0
  115. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/azure_resource.rb +71 -0
  116. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/detector.rb +130 -0
  117. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/error_response1.rb +57 -0
  118. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/essentials.rb +257 -0
  119. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/monitor_condition.rb +16 -0
  120. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/monitor_service.rb +29 -0
  121. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/operation.rb +58 -0
  122. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/operation_display.rb +79 -0
  123. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/operations_list.rb +98 -0
  124. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/proxy_resource.rb +71 -0
  125. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/severity.rb +19 -0
  126. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/signal_type.rb +17 -0
  127. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/smart_group.rb +297 -0
  128. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/smart_group_aggregated_property.rb +57 -0
  129. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/smart_group_modification.rb +74 -0
  130. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/smart_group_modification_event.rb +18 -0
  131. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/smart_group_modification_item.rb +115 -0
  132. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/smart_group_modification_properties.rb +79 -0
  133. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/smart_groups_list.rb +66 -0
  134. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/smart_groups_sort_by_fields.rb +19 -0
  135. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/state.rb +17 -0
  136. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/throttling_information.rb +48 -0
  137. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/models/time_range.rb +18 -0
  138. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/module_definition.rb +9 -0
  139. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/operations.rb +225 -0
  140. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/smart_detector_alert_rules.rb +725 -0
  141. data/lib/2019-03-01/generated/azure_mgmt_alerts_management/smart_groups.rb +499 -0
  142. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management.rb +82 -0
  143. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/action_rules.rb +1082 -0
  144. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/alerts.rb +911 -0
  145. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/alerts_management_client.rb +145 -0
  146. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/action_group.rb +133 -0
  147. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/action_rule.rb +101 -0
  148. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/action_rule_properties.rb +146 -0
  149. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/action_rule_status.rb +16 -0
  150. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/action_rules_list.rb +98 -0
  151. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/alert.rb +74 -0
  152. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/alert_modification.rb +74 -0
  153. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/alert_modification_event.rb +17 -0
  154. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/alert_modification_item.rb +114 -0
  155. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/alert_modification_properties.rb +68 -0
  156. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/alert_properties.rb +69 -0
  157. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/alert_state.rb +17 -0
  158. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/alerts_list.rb +98 -0
  159. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/alerts_sort_by_fields.rb +24 -0
  160. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/alerts_summary.rb +74 -0
  161. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/alerts_summary_group.rb +88 -0
  162. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/alerts_summary_group_by_fields.rb +20 -0
  163. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/alerts_summary_group_item.rb +88 -0
  164. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/condition.rb +66 -0
  165. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/conditions.rb +121 -0
  166. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/diagnostics.rb +122 -0
  167. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/error_response.rb +47 -0
  168. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/error_response_body.rb +91 -0
  169. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/essentials.rb +258 -0
  170. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/managed_resource.rb +92 -0
  171. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/monitor_condition.rb +16 -0
  172. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/monitor_service.rb +28 -0
  173. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/operation.rb +58 -0
  174. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/operation_display.rb +79 -0
  175. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/operations_list.rb +98 -0
  176. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/operator.rb +18 -0
  177. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/patch_object.rb +58 -0
  178. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/resource.rb +80 -0
  179. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/scope.rb +69 -0
  180. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/scope_type.rb +16 -0
  181. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/severity.rb +19 -0
  182. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/signal_type.rb +17 -0
  183. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/smart_group.rb +297 -0
  184. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/smart_group_aggregated_property.rb +57 -0
  185. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/smart_group_modification.rb +74 -0
  186. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/smart_group_modification_event.rb +18 -0
  187. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/smart_group_modification_item.rb +115 -0
  188. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/smart_group_modification_properties.rb +79 -0
  189. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/smart_groups_list.rb +98 -0
  190. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/smart_groups_sort_by_fields.rb +19 -0
  191. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/state.rb +17 -0
  192. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/suppression.rb +135 -0
  193. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/suppression_config.rb +60 -0
  194. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/suppression_schedule.rb +98 -0
  195. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/suppression_type.rb +19 -0
  196. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/time_range.rb +18 -0
  197. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/module_definition.rb +9 -0
  198. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/operations.rb +225 -0
  199. data/lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/smart_groups.rb +648 -0
  200. data/lib/azure_mgmt_alerts_management.rb +9 -0
  201. data/lib/module_definition.rb +7 -0
  202. data/lib/profiles/latest/alertsmanagement_latest_profile_client.rb +40 -0
  203. data/lib/profiles/latest/alertsmanagement_module_definition.rb +8 -0
  204. data/lib/profiles/latest/modules/alertsmanagement_profile_module.rb +271 -0
  205. data/lib/version.rb +7 -0
  206. metadata +321 -0
@@ -0,0 +1,145 @@
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::AlertsManagement::Mgmt::V2019_05_05_preview
7
+ #
8
+ # A service client - single point of access to the REST API.
9
+ #
10
+ class AlertsManagementClient < 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] Subscription credentials which uniquely identify
21
+ # Microsoft Azure subscription. The subscription ID forms part of the URI
22
+ # for every service call.
23
+ attr_accessor :subscription_id
24
+
25
+ # @return [String] client API version
26
+ attr_reader :api_version
27
+
28
+ # @return [String] The preferred language for the response.
29
+ attr_accessor :accept_language
30
+
31
+ # @return [Integer] The retry timeout in seconds for Long Running
32
+ # Operations. Default value is 30.
33
+ attr_accessor :long_running_operation_retry_timeout
34
+
35
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
36
+ # generated. When set to true a unique x-ms-client-request-id value is
37
+ # generated and included in each request. Default is true.
38
+ attr_accessor :generate_client_request_id
39
+
40
+ # @return [Operations] operations
41
+ attr_reader :operations
42
+
43
+ # @return [Alerts] alerts
44
+ attr_reader :alerts
45
+
46
+ # @return [SmartGroups] smart_groups
47
+ attr_reader :smart_groups
48
+
49
+ # @return [ActionRules] action_rules
50
+ attr_reader :action_rules
51
+
52
+ #
53
+ # Creates initializes a new instance of the AlertsManagementClient class.
54
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
55
+ # @param base_url [String] the base URI of the service.
56
+ # @param options [Array] filters to be applied to the HTTP requests.
57
+ #
58
+ def initialize(credentials = nil, base_url = nil, options = nil)
59
+ super(credentials, options)
60
+ @base_url = base_url || 'https://management.azure.com'
61
+
62
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
63
+ @credentials = credentials
64
+
65
+ @operations = Operations.new(self)
66
+ @alerts = Alerts.new(self)
67
+ @smart_groups = SmartGroups.new(self)
68
+ @action_rules = ActionRules.new(self)
69
+ @api_version = '2019-05-05-preview'
70
+ @accept_language = 'en-US'
71
+ @long_running_operation_retry_timeout = 30
72
+ @generate_client_request_id = true
73
+ add_telemetry
74
+ end
75
+
76
+ #
77
+ # Makes a request and returns the body of the response.
78
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
79
+ # @param path [String] the path, relative to {base_url}.
80
+ # @param options [Hash{String=>String}] specifying any request options like :body.
81
+ # @return [Hash{String=>String}] containing the body of the response.
82
+ # Example:
83
+ #
84
+ # request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
85
+ # path = "/path"
86
+ # options = {
87
+ # body: request_content,
88
+ # query_params: {'api-version' => '2016-02-01'}
89
+ # }
90
+ # result = @client.make_request(:put, path, options)
91
+ #
92
+ def make_request(method, path, options = {})
93
+ result = make_request_with_http_info(method, path, options)
94
+ result.body unless result.nil?
95
+ end
96
+
97
+ #
98
+ # Makes a request and returns the operation response.
99
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
100
+ # @param path [String] the path, relative to {base_url}.
101
+ # @param options [Hash{String=>String}] specifying any request options like :body.
102
+ # @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
103
+ #
104
+ def make_request_with_http_info(method, path, options = {})
105
+ result = make_request_async(method, path, options).value!
106
+ result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
107
+ result
108
+ end
109
+
110
+ #
111
+ # Makes a request asynchronously.
112
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
113
+ # @param path [String] the path, relative to {base_url}.
114
+ # @param options [Hash{String=>String}] specifying any request options like :body.
115
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
116
+ #
117
+ def make_request_async(method, path, options = {})
118
+ fail ArgumentError, 'method is nil' if method.nil?
119
+ fail ArgumentError, 'path is nil' if path.nil?
120
+
121
+ request_url = options[:base_url] || @base_url
122
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
123
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
124
+ end
125
+
126
+ request_headers = @request_headers
127
+ request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
128
+ options.merge!({headers: request_headers.merge(options[:headers] || {})})
129
+ options.merge!({credentials: @credentials}) unless @credentials.nil?
130
+
131
+ super(request_url, method, path, options)
132
+ end
133
+
134
+
135
+ private
136
+ #
137
+ # Adds telemetry information.
138
+ #
139
+ def add_telemetry
140
+ sdk_information = 'azure_mgmt_alerts_management'
141
+ sdk_information = "#{sdk_information}/0.17.0"
142
+ add_user_agent_information(sdk_information)
143
+ end
144
+ end
145
+ end
@@ -0,0 +1,133 @@
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::AlertsManagement::Mgmt::V2019_05_05_preview
7
+ module Models
8
+ #
9
+ # Action Group based Action Rule
10
+
11
+ # Action rule with action group configuration
12
+ #
13
+ class ActionGroup < ActionRuleProperties
14
+
15
+ include MsRestAzure
16
+
17
+
18
+ def initialize
19
+ @type = "ActionGroup"
20
+ end
21
+
22
+ attr_accessor :type
23
+
24
+ # @return [String] Action group to trigger if action rule matches
25
+ attr_accessor :action_group_id
26
+
27
+
28
+ #
29
+ # Mapper for ActionGroup class as Ruby Hash.
30
+ # This will be used for serialization/deserialization.
31
+ #
32
+ def self.mapper()
33
+ {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'ActionGroup',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'ActionGroup',
40
+ model_properties: {
41
+ scope: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'scope',
45
+ type: {
46
+ name: 'Composite',
47
+ class_name: 'Scope'
48
+ }
49
+ },
50
+ conditions: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ serialized_name: 'conditions',
54
+ type: {
55
+ name: 'Composite',
56
+ class_name: 'Conditions'
57
+ }
58
+ },
59
+ description: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'description',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ created_at: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ read_only: true,
71
+ serialized_name: 'createdAt',
72
+ type: {
73
+ name: 'DateTime'
74
+ }
75
+ },
76
+ last_modified_at: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ read_only: true,
80
+ serialized_name: 'lastModifiedAt',
81
+ type: {
82
+ name: 'DateTime'
83
+ }
84
+ },
85
+ created_by: {
86
+ client_side_validation: true,
87
+ required: false,
88
+ read_only: true,
89
+ serialized_name: 'createdBy',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ },
94
+ last_modified_by: {
95
+ client_side_validation: true,
96
+ required: false,
97
+ read_only: true,
98
+ serialized_name: 'lastModifiedBy',
99
+ type: {
100
+ name: 'String'
101
+ }
102
+ },
103
+ status: {
104
+ client_side_validation: true,
105
+ required: false,
106
+ serialized_name: 'status',
107
+ type: {
108
+ name: 'String'
109
+ }
110
+ },
111
+ type: {
112
+ client_side_validation: true,
113
+ required: true,
114
+ serialized_name: 'type',
115
+ type: {
116
+ name: 'String'
117
+ }
118
+ },
119
+ action_group_id: {
120
+ client_side_validation: true,
121
+ required: true,
122
+ serialized_name: 'actionGroupId',
123
+ type: {
124
+ name: 'String'
125
+ }
126
+ }
127
+ }
128
+ }
129
+ }
130
+ end
131
+ end
132
+ end
133
+ end
@@ -0,0 +1,101 @@
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::AlertsManagement::Mgmt::V2019_05_05_preview
7
+ module Models
8
+ #
9
+ # Action rule object containing target scope, conditions and suppression
10
+ # logic
11
+ #
12
+ class ActionRule < ManagedResource
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [ActionRuleProperties] action rule properties
17
+ attr_accessor :properties
18
+
19
+
20
+ #
21
+ # Mapper for ActionRule class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ client_side_validation: true,
27
+ required: false,
28
+ serialized_name: 'ActionRule',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'ActionRule',
32
+ model_properties: {
33
+ id: {
34
+ client_side_validation: true,
35
+ required: false,
36
+ read_only: true,
37
+ serialized_name: 'id',
38
+ type: {
39
+ name: 'String'
40
+ }
41
+ },
42
+ type: {
43
+ client_side_validation: true,
44
+ required: false,
45
+ read_only: true,
46
+ serialized_name: 'type',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ },
51
+ name: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ read_only: true,
55
+ serialized_name: 'name',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ },
60
+ location: {
61
+ client_side_validation: true,
62
+ required: true,
63
+ serialized_name: 'location',
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ },
68
+ tags: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ serialized_name: 'tags',
72
+ type: {
73
+ name: 'Dictionary',
74
+ value: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ serialized_name: 'StringElementType',
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ }
82
+ }
83
+ },
84
+ properties: {
85
+ client_side_validation: true,
86
+ required: false,
87
+ serialized_name: 'properties',
88
+ type: {
89
+ name: 'Composite',
90
+ polymorphic_discriminator: 'type',
91
+ uber_parent: 'ActionRuleProperties',
92
+ class_name: 'ActionRuleProperties'
93
+ }
94
+ }
95
+ }
96
+ }
97
+ }
98
+ end
99
+ end
100
+ end
101
+ end
@@ -0,0 +1,146 @@
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::AlertsManagement::Mgmt::V2019_05_05_preview
7
+ module Models
8
+ #
9
+ # Action rule properties defining scope, conditions, suppression logic for
10
+ # action rule
11
+ #
12
+ class ActionRuleProperties
13
+
14
+ include MsRestAzure
15
+
16
+ @@discriminatorMap = Hash.new
17
+ @@discriminatorMap["Suppression"] = "Suppression"
18
+ @@discriminatorMap["ActionGroup"] = "ActionGroup"
19
+ @@discriminatorMap["Diagnostics"] = "Diagnostics"
20
+
21
+ def initialize
22
+ @type = "ActionRuleProperties"
23
+ end
24
+
25
+ attr_accessor :type
26
+
27
+ # @return [Scope] scope on which action rule will apply
28
+ attr_accessor :scope
29
+
30
+ # @return [Conditions] conditions on which alerts will be filtered
31
+ attr_accessor :conditions
32
+
33
+ # @return [String] Description of action rule
34
+ attr_accessor :description
35
+
36
+ # @return [DateTime] Creation time of action rule. Date-Time in ISO-8601
37
+ # format.
38
+ attr_accessor :created_at
39
+
40
+ # @return [DateTime] Last updated time of action rule. Date-Time in
41
+ # ISO-8601 format.
42
+ attr_accessor :last_modified_at
43
+
44
+ # @return [String] Created by user name.
45
+ attr_accessor :created_by
46
+
47
+ # @return [String] Last modified by user name.
48
+ attr_accessor :last_modified_by
49
+
50
+ # @return [ActionRuleStatus] Indicates if the given action rule is
51
+ # enabled or disabled. Possible values include: 'Enabled', 'Disabled'
52
+ attr_accessor :status
53
+
54
+
55
+ #
56
+ # Mapper for ActionRuleProperties class as Ruby Hash.
57
+ # This will be used for serialization/deserialization.
58
+ #
59
+ def self.mapper()
60
+ {
61
+ client_side_validation: true,
62
+ required: false,
63
+ serialized_name: 'ActionRuleProperties',
64
+ type: {
65
+ name: 'Composite',
66
+ polymorphic_discriminator: 'type',
67
+ uber_parent: 'ActionRuleProperties',
68
+ class_name: 'ActionRuleProperties',
69
+ model_properties: {
70
+ scope: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ serialized_name: 'scope',
74
+ type: {
75
+ name: 'Composite',
76
+ class_name: 'Scope'
77
+ }
78
+ },
79
+ conditions: {
80
+ client_side_validation: true,
81
+ required: false,
82
+ serialized_name: 'conditions',
83
+ type: {
84
+ name: 'Composite',
85
+ class_name: 'Conditions'
86
+ }
87
+ },
88
+ description: {
89
+ client_side_validation: true,
90
+ required: false,
91
+ serialized_name: 'description',
92
+ type: {
93
+ name: 'String'
94
+ }
95
+ },
96
+ created_at: {
97
+ client_side_validation: true,
98
+ required: false,
99
+ read_only: true,
100
+ serialized_name: 'createdAt',
101
+ type: {
102
+ name: 'DateTime'
103
+ }
104
+ },
105
+ last_modified_at: {
106
+ client_side_validation: true,
107
+ required: false,
108
+ read_only: true,
109
+ serialized_name: 'lastModifiedAt',
110
+ type: {
111
+ name: 'DateTime'
112
+ }
113
+ },
114
+ created_by: {
115
+ client_side_validation: true,
116
+ required: false,
117
+ read_only: true,
118
+ serialized_name: 'createdBy',
119
+ type: {
120
+ name: 'String'
121
+ }
122
+ },
123
+ last_modified_by: {
124
+ client_side_validation: true,
125
+ required: false,
126
+ read_only: true,
127
+ serialized_name: 'lastModifiedBy',
128
+ type: {
129
+ name: 'String'
130
+ }
131
+ },
132
+ status: {
133
+ client_side_validation: true,
134
+ required: false,
135
+ serialized_name: 'status',
136
+ type: {
137
+ name: 'String'
138
+ }
139
+ }
140
+ }
141
+ }
142
+ }
143
+ end
144
+ end
145
+ end
146
+ end