azure_mgmt_monitor 0.17.1 → 0.17.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (238) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-04-01/generated/azure_mgmt_monitor/activity_logs.rb +4 -0
  3. data/lib/2015-04-01/generated/azure_mgmt_monitor/autoscale_settings.rb +16 -0
  4. data/lib/2015-04-01/generated/azure_mgmt_monitor/event_categories.rb +2 -0
  5. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/autoscale_setting_resource_collection.rb +1 -1
  6. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/event_data_collection.rb +1 -1
  7. data/lib/2015-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  8. data/lib/2015-04-01/generated/azure_mgmt_monitor/operations.rb +2 -0
  9. data/lib/2015-04-01/generated/azure_mgmt_monitor/tenant_activity_logs.rb +4 -0
  10. data/lib/2015-05-01/generated/azure_mgmt_monitor.rb +106 -0
  11. data/lib/2015-05-01/generated/azure_mgmt_monitor/analytics_items.rb +585 -0
  12. data/lib/2015-05-01/generated/azure_mgmt_monitor/annotations.rb +505 -0
  13. data/lib/2015-05-01/generated/azure_mgmt_monitor/apikeys.rb +473 -0
  14. data/lib/2015-05-01/generated/azure_mgmt_monitor/application_insights_management_client.rb +193 -0
  15. data/lib/2015-05-01/generated/azure_mgmt_monitor/component_available_features.rb +130 -0
  16. data/lib/2015-05-01/generated/azure_mgmt_monitor/component_current_billing_features.rb +252 -0
  17. data/lib/2015-05-01/generated/azure_mgmt_monitor/component_feature_capabilities.rb +130 -0
  18. data/lib/2015-05-01/generated/azure_mgmt_monitor/component_quota_status.rb +133 -0
  19. data/lib/2015-05-01/generated/azure_mgmt_monitor/components.rb +1134 -0
  20. data/lib/2015-05-01/generated/azure_mgmt_monitor/export_configurations.rb +646 -0
  21. data/lib/2015-05-01/generated/azure_mgmt_monitor/favorites.rb +653 -0
  22. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/annotation.rb +103 -0
  23. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/annotation_error.rb +70 -0
  24. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/annotations_list_result.rb +56 -0
  25. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/apikey_request.rb +84 -0
  26. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component.rb +261 -0
  27. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_analytics_item.rb +146 -0
  28. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_analytics_item_properties.rb +49 -0
  29. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_apikey.rb +121 -0
  30. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_apikey_list_result.rb +57 -0
  31. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_available_features.rb +58 -0
  32. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_billing_features.rb +70 -0
  33. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_data_volume_cap.rb +106 -0
  34. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_export_configuration.rb +277 -0
  35. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_export_request.rb +143 -0
  36. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_favorite.rb +182 -0
  37. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_feature.rb +153 -0
  38. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_feature_capabilities.rb +228 -0
  39. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_feature_capability.rb +108 -0
  40. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_list_result.rb +102 -0
  41. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_proactive_detection_configuration.rb +117 -0
  42. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_proactive_detection_configuration_rule_definitions.rb +130 -0
  43. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_quota_status.rb +74 -0
  44. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_web_test_location.rb +61 -0
  45. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_web_test_locations_list_result.rb +58 -0
  46. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_type.rb +16 -0
  47. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/category_type.rb +18 -0
  48. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/component_purge_body.rb +67 -0
  49. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/component_purge_body_filters.rb +85 -0
  50. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/component_purge_response.rb +47 -0
  51. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/component_purge_status_response.rb +47 -0
  52. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/components_resource.rb +101 -0
  53. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/error_field_contract.rb +68 -0
  54. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/error_response.rb +58 -0
  55. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/favorite_source_type.rb +22 -0
  56. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/favorite_type.rb +16 -0
  57. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/flow_type.rb +15 -0
  58. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/inner_error.rb +57 -0
  59. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/item_scope.rb +16 -0
  60. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/item_scope_path.rb +16 -0
  61. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/item_type.rb +18 -0
  62. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/item_type_parameter.rb +19 -0
  63. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/link_properties.rb +68 -0
  64. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/operation.rb +58 -0
  65. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/operation_display.rb +69 -0
  66. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/operation_list_result.rb +101 -0
  67. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/purge_state.rb +16 -0
  68. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/request_source.rb +15 -0
  69. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/shared_type_kind.rb +16 -0
  70. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/tags_resource.rb +55 -0
  71. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/web_test.rb +249 -0
  72. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/web_test_geolocation.rb +47 -0
  73. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/web_test_kind.rb +16 -0
  74. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/web_test_list_result.rb +101 -0
  75. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/web_test_properties_configuration.rb +47 -0
  76. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/webtests_resource.rb +101 -0
  77. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/work_item_configuration.rb +91 -0
  78. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/work_item_configuration_error.rb +70 -0
  79. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/work_item_configurations_list_result.rb +57 -0
  80. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/work_item_create_configuration.rb +87 -0
  81. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/workbook.rb +228 -0
  82. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/workbook_error.rb +79 -0
  83. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/workbook_resource.rb +101 -0
  84. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/workbooks_list_result.rb +56 -0
  85. data/lib/2015-05-01/generated/azure_mgmt_monitor/module_definition.rb +9 -0
  86. data/lib/2015-05-01/generated/azure_mgmt_monitor/operations.rb +220 -0
  87. data/lib/2015-05-01/generated/azure_mgmt_monitor/proactive_detection_configurations.rb +392 -0
  88. data/lib/2015-05-01/generated/azure_mgmt_monitor/web_test_locations.rb +133 -0
  89. data/lib/2015-05-01/generated/azure_mgmt_monitor/web_tests.rb +1103 -0
  90. data/lib/2015-05-01/generated/azure_mgmt_monitor/work_item_configurations.rb +708 -0
  91. data/lib/2015-05-01/generated/azure_mgmt_monitor/workbooks.rb +589 -0
  92. data/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rule_incidents.rb +4 -0
  93. data/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rules.rb +12 -0
  94. data/lib/2016-03-01/generated/azure_mgmt_monitor/log_profiles.rb +10 -0
  95. data/lib/2016-03-01/generated/azure_mgmt_monitor/metric_definitions.rb +2 -0
  96. data/lib/2016-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  97. data/lib/2016-09-01/generated/azure_mgmt_monitor/metrics.rb +2 -0
  98. data/lib/2016-09-01/generated/azure_mgmt_monitor/monitor_client.rb +1 -1
  99. data/lib/2016-09-01/generated/azure_mgmt_monitor/service_diagnostic_settings_operations.rb +6 -0
  100. data/lib/2017-04-01/generated/azure_mgmt_monitor/action_groups.rb +14 -0
  101. data/lib/2017-04-01/generated/azure_mgmt_monitor/activity_log_alerts.rb +12 -0
  102. data/lib/2017-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  103. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_category_operations.rb +4 -0
  104. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_operations.rb +8 -0
  105. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/metric_definitions.rb +2 -0
  106. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/metrics.rb +2 -0
  107. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  108. data/lib/2017-10-01-preview/generated/azure_mgmt_monitor.rb +34 -0
  109. data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/application_insights_management_client.rb +146 -0
  110. data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/component_current_pricing_plan.rb +377 -0
  111. data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/easubscription_list_migration_date.rb +113 -0
  112. data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/easubscription_migrate_to_new_pricing_model.rb +102 -0
  113. data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/easubscription_rollback_to_legacy_pricing_model.rb +102 -0
  114. data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/models/application_insights_component_pricing_plan.rb +143 -0
  115. data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/models/easubscription_migration_date.rb +58 -0
  116. data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/models/resource.rb +80 -0
  117. data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/module_definition.rb +9 -0
  118. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/metric_baseline.rb +4 -0
  119. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  120. data/lib/2017-12-01-preview/generated/azure_mgmt_monitor.rb +32 -0
  121. data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/metric_namespaces.rb +120 -0
  122. data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
  123. data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/models/metric_namespace.rb +81 -0
  124. data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/models/metric_namespace_collection.rb +55 -0
  125. data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/models/metric_namespace_name.rb +46 -0
  126. data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/module_definition.rb +9 -0
  127. data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +128 -0
  128. data/lib/2018-01-01/generated/azure_mgmt_monitor/metric_definitions.rb +2 -0
  129. data/lib/2018-01-01/generated/azure_mgmt_monitor/metrics.rb +2 -0
  130. data/lib/2018-01-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  131. data/lib/2018-03-01/generated/azure_mgmt_monitor/action_groups.rb +14 -0
  132. data/lib/2018-03-01/generated/azure_mgmt_monitor/metric_alerts.rb +12 -0
  133. data/lib/2018-03-01/generated/azure_mgmt_monitor/metric_alerts_status.rb +4 -0
  134. data/lib/2018-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  135. data/lib/2018-04-16/generated/azure_mgmt_monitor/monitor_client.rb +1 -1
  136. data/lib/2018-04-16/generated/azure_mgmt_monitor/scheduled_query_rules.rb +12 -0
  137. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor.rb +44 -0
  138. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/guest_diagnostics_settings.rb +614 -0
  139. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/guest_diagnostics_settings_association.rb +634 -0
  140. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/data_source.rb +80 -0
  141. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/data_source_configuration.rb +98 -0
  142. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
  143. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/etw_event_configuration.rb +69 -0
  144. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/etw_provider_configuration.rb +67 -0
  145. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/event_log_configuration.rb +58 -0
  146. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_association_list.rb +68 -0
  147. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_association_resource.rb +98 -0
  148. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_association_resource_patch.rb +66 -0
  149. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_list.rb +68 -0
  150. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_patch_resource.rb +98 -0
  151. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_resource.rb +130 -0
  152. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/performance_counter_configuration.rb +69 -0
  153. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/resource.rb +110 -0
  154. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/sink_configuration.rb +48 -0
  155. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/module_definition.rb +9 -0
  156. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +136 -0
  157. data/lib/2018-06-17-preview/generated/azure_mgmt_monitor.rb +36 -0
  158. data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/application_insights_management_client.rb +131 -0
  159. data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/category_type.rb +18 -0
  160. data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/error_field_contract.rb +68 -0
  161. data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/resource.rb +123 -0
  162. data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/shared_type_kind.rb +16 -0
  163. data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/workbook.rb +185 -0
  164. data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/workbook_error.rb +79 -0
  165. data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/workbook_update_parameters.rb +122 -0
  166. data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/workbooks_list_result.rb +55 -0
  167. data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/module_definition.rb +9 -0
  168. data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/workbooks.rb +609 -0
  169. data/lib/2018-09-01/generated/azure_mgmt_monitor.rb +54 -0
  170. data/lib/2018-09-01/generated/azure_mgmt_monitor/action_groups.rb +707 -0
  171. data/lib/2018-09-01/generated/azure_mgmt_monitor/metric_baseline.rb +294 -0
  172. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/action_group_list.rb +67 -0
  173. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb +68 -0
  174. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +326 -0
  175. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/arm_role_receiver.rb +58 -0
  176. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb +102 -0
  177. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb +58 -0
  178. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/azure_function_receiver.rb +80 -0
  179. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/baseline.rb +86 -0
  180. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/baseline_metadata_value.rb +58 -0
  181. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/baseline_response.rb +171 -0
  182. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/calculate_baseline_response.rb +85 -0
  183. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/email_receiver.rb +72 -0
  184. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/enable_request.rb +46 -0
  185. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
  186. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb +94 -0
  187. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/localizable_string.rb +57 -0
  188. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/logic_app_receiver.rb +69 -0
  189. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/receiver_status.rb +17 -0
  190. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/resource.rb +110 -0
  191. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/result_type.rb +16 -0
  192. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/sensitivity.rb +17 -0
  193. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/sms_receiver.rb +83 -0
  194. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/time_series_information.rb +93 -0
  195. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/voice_receiver.rb +69 -0
  196. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/webhook_receiver.rb +58 -0
  197. data/lib/2018-09-01/generated/azure_mgmt_monitor/module_definition.rb +9 -0
  198. data/lib/2018-09-01/generated/azure_mgmt_monitor/monitor_management_client.rb +135 -0
  199. data/lib/2018-11-27-preview/generated/azure_mgmt_monitor.rb +36 -0
  200. data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/data_container.rb +47 -0
  201. data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/data_status.rb +16 -0
  202. data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/error.rb +57 -0
  203. data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/onboarding_status.rb +17 -0
  204. data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/proxy_resource.rb +71 -0
  205. data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/response_with_error.rb +47 -0
  206. data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/vminsights_onboarding_status.rb +123 -0
  207. data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/workspace_info.rb +69 -0
  208. data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/module_definition.rb +9 -0
  209. data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +128 -0
  210. data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/vminsights.rb +120 -0
  211. data/lib/2019-03-01/generated/azure_mgmt_monitor.rb +45 -0
  212. data/lib/2019-03-01/generated/azure_mgmt_monitor/action_groups.rb +707 -0
  213. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/action_group_list.rb +67 -0
  214. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb +68 -0
  215. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +326 -0
  216. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/arm_role_receiver.rb +69 -0
  217. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb +113 -0
  218. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb +58 -0
  219. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/azure_function_receiver.rb +91 -0
  220. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/email_receiver.rb +83 -0
  221. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/enable_request.rb +46 -0
  222. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
  223. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb +94 -0
  224. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/logic_app_receiver.rb +80 -0
  225. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/receiver_status.rb +17 -0
  226. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/resource.rb +110 -0
  227. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/sms_receiver.rb +83 -0
  228. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/voice_receiver.rb +69 -0
  229. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/webhook_receiver.rb +69 -0
  230. data/lib/2019-03-01/generated/azure_mgmt_monitor/module_definition.rb +9 -0
  231. data/lib/2019-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +131 -0
  232. data/lib/azure_mgmt_monitor.rb +12 -3
  233. data/lib/profiles/latest/modules/monitor_profile_module.rb +332 -106
  234. data/lib/profiles/v2019_03_01_hybrid/modules/monitor_profile_module.rb +297 -0
  235. data/lib/profiles/v2019_03_01_hybrid/monitor_module_definition.rb +8 -0
  236. data/lib/profiles/v2019_03_01_hybrid/monitor_v2019_03_01_hybrid_profile_client.rb +40 -0
  237. data/lib/version.rb +1 -1
  238. metadata +203 -5
@@ -0,0 +1,634 @@
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::Monitor::Mgmt::V2018_06_01_preview
7
+ #
8
+ # GuestDiagnosticsSettingsAssociation
9
+ #
10
+ class GuestDiagnosticsSettingsAssociation
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the GuestDiagnosticsSettingsAssociation class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [MonitorManagementClient] reference to the MonitorManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Creates or updates guest diagnostics settings association.
26
+ #
27
+ # @param resource_uri [String] The fully qualified ID of the resource,
28
+ # including the resource name and resource type.
29
+ # @param association_name [String] The name of the diagnostic settings
30
+ # association.
31
+ # @param diagnostic_settings_association
32
+ # [GuestDiagnosticSettingsAssociationResource] The diagnostic settings
33
+ # association to create or update.
34
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
35
+ # will be added to the HTTP request.
36
+ #
37
+ # @return [GuestDiagnosticSettingsAssociationResource] operation results.
38
+ #
39
+ def create_or_update(resource_uri, association_name, diagnostic_settings_association, custom_headers:nil)
40
+ response = create_or_update_async(resource_uri, association_name, diagnostic_settings_association, custom_headers:custom_headers).value!
41
+ response.body unless response.nil?
42
+ end
43
+
44
+ #
45
+ # Creates or updates guest diagnostics settings association.
46
+ #
47
+ # @param resource_uri [String] The fully qualified ID of the resource,
48
+ # including the resource name and resource type.
49
+ # @param association_name [String] The name of the diagnostic settings
50
+ # association.
51
+ # @param diagnostic_settings_association
52
+ # [GuestDiagnosticSettingsAssociationResource] The diagnostic settings
53
+ # association to create or update.
54
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
55
+ # will be added to the HTTP request.
56
+ #
57
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
58
+ #
59
+ def create_or_update_with_http_info(resource_uri, association_name, diagnostic_settings_association, custom_headers:nil)
60
+ create_or_update_async(resource_uri, association_name, diagnostic_settings_association, custom_headers:custom_headers).value!
61
+ end
62
+
63
+ #
64
+ # Creates or updates guest diagnostics settings association.
65
+ #
66
+ # @param resource_uri [String] The fully qualified ID of the resource,
67
+ # including the resource name and resource type.
68
+ # @param association_name [String] The name of the diagnostic settings
69
+ # association.
70
+ # @param diagnostic_settings_association
71
+ # [GuestDiagnosticSettingsAssociationResource] The diagnostic settings
72
+ # association to create or update.
73
+ # @param [Hash{String => String}] A hash of custom headers that will be added
74
+ # to the HTTP request.
75
+ #
76
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
77
+ #
78
+ def create_or_update_async(resource_uri, association_name, diagnostic_settings_association, custom_headers:nil)
79
+ fail ArgumentError, 'resource_uri is nil' if resource_uri.nil?
80
+ fail ArgumentError, 'association_name is nil' if association_name.nil?
81
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
82
+ fail ArgumentError, 'diagnostic_settings_association is nil' if diagnostic_settings_association.nil?
83
+
84
+
85
+ request_headers = {}
86
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
87
+
88
+ # Set Headers
89
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
90
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
91
+
92
+ # Serialize Request
93
+ request_mapper = Azure::Monitor::Mgmt::V2018_06_01_preview::Models::GuestDiagnosticSettingsAssociationResource.mapper()
94
+ request_content = @client.serialize(request_mapper, diagnostic_settings_association)
95
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
96
+
97
+ path_template = '{resourceUri}/providers/microsoft.insights/guestDiagnosticSettingsAssociation/{associationName}'
98
+
99
+ request_url = @base_url || @client.base_url
100
+
101
+ options = {
102
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
103
+ path_params: {'associationName' => association_name},
104
+ skip_encoding_path_params: {'resourceUri' => resource_uri},
105
+ query_params: {'api-version' => @client.api_version},
106
+ body: request_content,
107
+ headers: request_headers.merge(custom_headers || {}),
108
+ base_url: request_url
109
+ }
110
+ promise = @client.make_request_async(:put, path_template, options)
111
+
112
+ promise = promise.then do |result|
113
+ http_response = result.response
114
+ status_code = http_response.status
115
+ response_content = http_response.body
116
+ unless status_code == 200 || status_code == 201
117
+ error_model = JSON.load(response_content)
118
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
119
+ end
120
+
121
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
122
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
123
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
124
+ # Deserialize Response
125
+ if status_code == 200
126
+ begin
127
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
128
+ result_mapper = Azure::Monitor::Mgmt::V2018_06_01_preview::Models::GuestDiagnosticSettingsAssociationResource.mapper()
129
+ result.body = @client.deserialize(result_mapper, parsed_response)
130
+ rescue Exception => e
131
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
132
+ end
133
+ end
134
+ # Deserialize Response
135
+ if status_code == 201
136
+ begin
137
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
138
+ result_mapper = Azure::Monitor::Mgmt::V2018_06_01_preview::Models::GuestDiagnosticSettingsAssociationResource.mapper()
139
+ result.body = @client.deserialize(result_mapper, parsed_response)
140
+ rescue Exception => e
141
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
142
+ end
143
+ end
144
+
145
+ result
146
+ end
147
+
148
+ promise.execute
149
+ end
150
+
151
+ #
152
+ # Gets guest diagnostics association settings.
153
+ #
154
+ # @param resource_uri [String] The fully qualified ID of the resource,
155
+ # including the resource name and resource type.
156
+ # @param association_name [String] The name of the diagnostic settings
157
+ # association.
158
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
159
+ # will be added to the HTTP request.
160
+ #
161
+ # @return [GuestDiagnosticSettingsAssociationResource] operation results.
162
+ #
163
+ def get(resource_uri, association_name, custom_headers:nil)
164
+ response = get_async(resource_uri, association_name, custom_headers:custom_headers).value!
165
+ response.body unless response.nil?
166
+ end
167
+
168
+ #
169
+ # Gets guest diagnostics association settings.
170
+ #
171
+ # @param resource_uri [String] The fully qualified ID of the resource,
172
+ # including the resource name and resource type.
173
+ # @param association_name [String] The name of the diagnostic settings
174
+ # association.
175
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
176
+ # will be added to the HTTP request.
177
+ #
178
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
179
+ #
180
+ def get_with_http_info(resource_uri, association_name, custom_headers:nil)
181
+ get_async(resource_uri, association_name, custom_headers:custom_headers).value!
182
+ end
183
+
184
+ #
185
+ # Gets guest diagnostics association settings.
186
+ #
187
+ # @param resource_uri [String] The fully qualified ID of the resource,
188
+ # including the resource name and resource type.
189
+ # @param association_name [String] The name of the diagnostic settings
190
+ # association.
191
+ # @param [Hash{String => String}] A hash of custom headers that will be added
192
+ # to the HTTP request.
193
+ #
194
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
195
+ #
196
+ def get_async(resource_uri, association_name, custom_headers:nil)
197
+ fail ArgumentError, 'resource_uri is nil' if resource_uri.nil?
198
+ fail ArgumentError, 'association_name is nil' if association_name.nil?
199
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
200
+
201
+
202
+ request_headers = {}
203
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
204
+
205
+ # Set Headers
206
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
207
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
208
+ path_template = '{resourceUri}/providers/microsoft.insights/guestDiagnosticSettingsAssociation/{associationName}'
209
+
210
+ request_url = @base_url || @client.base_url
211
+
212
+ options = {
213
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
214
+ path_params: {'associationName' => association_name},
215
+ skip_encoding_path_params: {'resourceUri' => resource_uri},
216
+ query_params: {'api-version' => @client.api_version},
217
+ headers: request_headers.merge(custom_headers || {}),
218
+ base_url: request_url
219
+ }
220
+ promise = @client.make_request_async(:get, path_template, options)
221
+
222
+ promise = promise.then do |result|
223
+ http_response = result.response
224
+ status_code = http_response.status
225
+ response_content = http_response.body
226
+ unless status_code == 200
227
+ error_model = JSON.load(response_content)
228
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
229
+ end
230
+
231
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
232
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
233
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
234
+ # Deserialize Response
235
+ if status_code == 200
236
+ begin
237
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
238
+ result_mapper = Azure::Monitor::Mgmt::V2018_06_01_preview::Models::GuestDiagnosticSettingsAssociationResource.mapper()
239
+ result.body = @client.deserialize(result_mapper, parsed_response)
240
+ rescue Exception => e
241
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
242
+ end
243
+ end
244
+
245
+ result
246
+ end
247
+
248
+ promise.execute
249
+ end
250
+
251
+ #
252
+ # Delete guest diagnostics association settings.
253
+ #
254
+ # @param resource_uri [String] The fully qualified ID of the resource,
255
+ # including the resource name and resource type.
256
+ # @param association_name [String] The name of the diagnostic settings
257
+ # association.
258
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
259
+ # will be added to the HTTP request.
260
+ #
261
+ #
262
+ def delete(resource_uri, association_name, custom_headers:nil)
263
+ response = delete_async(resource_uri, association_name, custom_headers:custom_headers).value!
264
+ nil
265
+ end
266
+
267
+ #
268
+ # Delete guest diagnostics association settings.
269
+ #
270
+ # @param resource_uri [String] The fully qualified ID of the resource,
271
+ # including the resource name and resource type.
272
+ # @param association_name [String] The name of the diagnostic settings
273
+ # association.
274
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
275
+ # will be added to the HTTP request.
276
+ #
277
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
278
+ #
279
+ def delete_with_http_info(resource_uri, association_name, custom_headers:nil)
280
+ delete_async(resource_uri, association_name, custom_headers:custom_headers).value!
281
+ end
282
+
283
+ #
284
+ # Delete guest diagnostics association settings.
285
+ #
286
+ # @param resource_uri [String] The fully qualified ID of the resource,
287
+ # including the resource name and resource type.
288
+ # @param association_name [String] The name of the diagnostic settings
289
+ # association.
290
+ # @param [Hash{String => String}] A hash of custom headers that will be added
291
+ # to the HTTP request.
292
+ #
293
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
294
+ #
295
+ def delete_async(resource_uri, association_name, custom_headers:nil)
296
+ fail ArgumentError, 'resource_uri is nil' if resource_uri.nil?
297
+ fail ArgumentError, 'association_name is nil' if association_name.nil?
298
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
299
+
300
+
301
+ request_headers = {}
302
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
303
+
304
+ # Set Headers
305
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
306
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
307
+ path_template = '{resourceUri}/providers/microsoft.insights/guestDiagnosticSettingsAssociation/{associationName}'
308
+
309
+ request_url = @base_url || @client.base_url
310
+
311
+ options = {
312
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
313
+ path_params: {'associationName' => association_name},
314
+ skip_encoding_path_params: {'resourceUri' => resource_uri},
315
+ query_params: {'api-version' => @client.api_version},
316
+ headers: request_headers.merge(custom_headers || {}),
317
+ base_url: request_url
318
+ }
319
+ promise = @client.make_request_async(:delete, path_template, options)
320
+
321
+ promise = promise.then do |result|
322
+ http_response = result.response
323
+ status_code = http_response.status
324
+ response_content = http_response.body
325
+ unless status_code == 200 || status_code == 204
326
+ error_model = JSON.load(response_content)
327
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
328
+ end
329
+
330
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
331
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
332
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
333
+
334
+ result
335
+ end
336
+
337
+ promise.execute
338
+ end
339
+
340
+ #
341
+ # Updates an existing guestDiagnosticsSettingsAssociation Resource. To update
342
+ # other fields use the CreateOrUpdate method
343
+ #
344
+ # @param resource_uri [String] The fully qualified ID of the resource,
345
+ # including the resource name and resource type.
346
+ # @param association_name [String] The name of the diagnostic settings
347
+ # association.
348
+ # @param parameters [GuestDiagnosticSettingsAssociationResourcePatch]
349
+ # Parameters supplied to the operation.
350
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
351
+ # will be added to the HTTP request.
352
+ #
353
+ # @return [GuestDiagnosticSettingsAssociationResource] operation results.
354
+ #
355
+ def update(resource_uri, association_name, parameters, custom_headers:nil)
356
+ response = update_async(resource_uri, association_name, parameters, custom_headers:custom_headers).value!
357
+ response.body unless response.nil?
358
+ end
359
+
360
+ #
361
+ # Updates an existing guestDiagnosticsSettingsAssociation Resource. To update
362
+ # other fields use the CreateOrUpdate method
363
+ #
364
+ # @param resource_uri [String] The fully qualified ID of the resource,
365
+ # including the resource name and resource type.
366
+ # @param association_name [String] The name of the diagnostic settings
367
+ # association.
368
+ # @param parameters [GuestDiagnosticSettingsAssociationResourcePatch]
369
+ # Parameters supplied to the operation.
370
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
371
+ # will be added to the HTTP request.
372
+ #
373
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
374
+ #
375
+ def update_with_http_info(resource_uri, association_name, parameters, custom_headers:nil)
376
+ update_async(resource_uri, association_name, parameters, custom_headers:custom_headers).value!
377
+ end
378
+
379
+ #
380
+ # Updates an existing guestDiagnosticsSettingsAssociation Resource. To update
381
+ # other fields use the CreateOrUpdate method
382
+ #
383
+ # @param resource_uri [String] The fully qualified ID of the resource,
384
+ # including the resource name and resource type.
385
+ # @param association_name [String] The name of the diagnostic settings
386
+ # association.
387
+ # @param parameters [GuestDiagnosticSettingsAssociationResourcePatch]
388
+ # Parameters supplied to the operation.
389
+ # @param [Hash{String => String}] A hash of custom headers that will be added
390
+ # to the HTTP request.
391
+ #
392
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
393
+ #
394
+ def update_async(resource_uri, association_name, parameters, custom_headers:nil)
395
+ fail ArgumentError, 'resource_uri is nil' if resource_uri.nil?
396
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
397
+ fail ArgumentError, 'association_name is nil' if association_name.nil?
398
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
399
+
400
+
401
+ request_headers = {}
402
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
403
+
404
+ # Set Headers
405
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
406
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
407
+
408
+ # Serialize Request
409
+ request_mapper = Azure::Monitor::Mgmt::V2018_06_01_preview::Models::GuestDiagnosticSettingsAssociationResourcePatch.mapper()
410
+ request_content = @client.serialize(request_mapper, parameters)
411
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
412
+
413
+ path_template = '{resourceUri}/providers/microsoft.insights/guestDiagnosticSettingsAssociation/{associationName}'
414
+
415
+ request_url = @base_url || @client.base_url
416
+
417
+ options = {
418
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
419
+ path_params: {'associationName' => association_name},
420
+ skip_encoding_path_params: {'resourceUri' => resource_uri},
421
+ query_params: {'api-version' => @client.api_version},
422
+ body: request_content,
423
+ headers: request_headers.merge(custom_headers || {}),
424
+ base_url: request_url
425
+ }
426
+ promise = @client.make_request_async(:patch, path_template, options)
427
+
428
+ promise = promise.then do |result|
429
+ http_response = result.response
430
+ status_code = http_response.status
431
+ response_content = http_response.body
432
+ unless status_code == 200
433
+ error_model = JSON.load(response_content)
434
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
435
+ end
436
+
437
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
438
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
439
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
440
+ # Deserialize Response
441
+ if status_code == 200
442
+ begin
443
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
444
+ result_mapper = Azure::Monitor::Mgmt::V2018_06_01_preview::Models::GuestDiagnosticSettingsAssociationResource.mapper()
445
+ result.body = @client.deserialize(result_mapper, parsed_response)
446
+ rescue Exception => e
447
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
448
+ end
449
+ end
450
+
451
+ result
452
+ end
453
+
454
+ promise.execute
455
+ end
456
+
457
+ #
458
+ # Get a list of all guest diagnostic settings association in a subscription.
459
+ #
460
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
461
+ # will be added to the HTTP request.
462
+ #
463
+ # @return [GuestDiagnosticSettingsAssociationList] operation results.
464
+ #
465
+ def list(custom_headers:nil)
466
+ response = list_async(custom_headers:custom_headers).value!
467
+ response.body unless response.nil?
468
+ end
469
+
470
+ #
471
+ # Get a list of all guest diagnostic settings association in a subscription.
472
+ #
473
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
474
+ # will be added to the HTTP request.
475
+ #
476
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
477
+ #
478
+ def list_with_http_info(custom_headers:nil)
479
+ list_async(custom_headers:custom_headers).value!
480
+ end
481
+
482
+ #
483
+ # Get a list of all guest diagnostic settings association in a subscription.
484
+ #
485
+ # @param [Hash{String => String}] A hash of custom headers that will be added
486
+ # to the HTTP request.
487
+ #
488
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
489
+ #
490
+ def list_async(custom_headers:nil)
491
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
492
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
493
+
494
+
495
+ request_headers = {}
496
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
497
+
498
+ # Set Headers
499
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
500
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
501
+ path_template = 'subscriptions/{subscriptionId}/providers/microsoft.insights/guestDiagnosticSettingsAssociations'
502
+
503
+ request_url = @base_url || @client.base_url
504
+
505
+ options = {
506
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
507
+ path_params: {'subscriptionId' => @client.subscription_id},
508
+ query_params: {'api-version' => @client.api_version},
509
+ headers: request_headers.merge(custom_headers || {}),
510
+ base_url: request_url
511
+ }
512
+ promise = @client.make_request_async(:get, path_template, options)
513
+
514
+ promise = promise.then do |result|
515
+ http_response = result.response
516
+ status_code = http_response.status
517
+ response_content = http_response.body
518
+ unless status_code == 200
519
+ error_model = JSON.load(response_content)
520
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
521
+ end
522
+
523
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
524
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
525
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
526
+ # Deserialize Response
527
+ if status_code == 200
528
+ begin
529
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
530
+ result_mapper = Azure::Monitor::Mgmt::V2018_06_01_preview::Models::GuestDiagnosticSettingsAssociationList.mapper()
531
+ result.body = @client.deserialize(result_mapper, parsed_response)
532
+ rescue Exception => e
533
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
534
+ end
535
+ end
536
+
537
+ result
538
+ end
539
+
540
+ promise.execute
541
+ end
542
+
543
+ #
544
+ # Get a list of all guest diagnostic settings association in a resource group.
545
+ #
546
+ # @param resource_group_name [String] The name of the resource group.
547
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
548
+ # will be added to the HTTP request.
549
+ #
550
+ # @return [GuestDiagnosticSettingsAssociationList] operation results.
551
+ #
552
+ def list_by_resource_group(resource_group_name, custom_headers:nil)
553
+ response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
554
+ response.body unless response.nil?
555
+ end
556
+
557
+ #
558
+ # Get a list of all guest diagnostic settings association in a resource group.
559
+ #
560
+ # @param resource_group_name [String] The name of the resource group.
561
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
562
+ # will be added to the HTTP request.
563
+ #
564
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
565
+ #
566
+ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
567
+ list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
568
+ end
569
+
570
+ #
571
+ # Get a list of all guest diagnostic settings association in a resource group.
572
+ #
573
+ # @param resource_group_name [String] The name of the resource group.
574
+ # @param [Hash{String => String}] A hash of custom headers that will be added
575
+ # to the HTTP request.
576
+ #
577
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
578
+ #
579
+ def list_by_resource_group_async(resource_group_name, custom_headers:nil)
580
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
581
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
582
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
583
+
584
+
585
+ request_headers = {}
586
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
587
+
588
+ # Set Headers
589
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
590
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
591
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/guestDiagnosticSettingsAssociations'
592
+
593
+ request_url = @base_url || @client.base_url
594
+
595
+ options = {
596
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
597
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
598
+ query_params: {'api-version' => @client.api_version},
599
+ headers: request_headers.merge(custom_headers || {}),
600
+ base_url: request_url
601
+ }
602
+ promise = @client.make_request_async(:get, path_template, options)
603
+
604
+ promise = promise.then do |result|
605
+ http_response = result.response
606
+ status_code = http_response.status
607
+ response_content = http_response.body
608
+ unless status_code == 200
609
+ error_model = JSON.load(response_content)
610
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
611
+ end
612
+
613
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
614
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
615
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
616
+ # Deserialize Response
617
+ if status_code == 200
618
+ begin
619
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
620
+ result_mapper = Azure::Monitor::Mgmt::V2018_06_01_preview::Models::GuestDiagnosticSettingsAssociationList.mapper()
621
+ result.body = @client.deserialize(result_mapper, parsed_response)
622
+ rescue Exception => e
623
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
624
+ end
625
+ end
626
+
627
+ result
628
+ end
629
+
630
+ promise.execute
631
+ end
632
+
633
+ end
634
+ end