azure_mgmt_monitor 0.17.4 → 0.17.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (441) hide show
  1. checksums.yaml +5 -5
  2. data/LICENSE.txt +20 -20
  3. data/lib/2015-04-01/generated/azure_mgmt_monitor.rb +0 -0
  4. data/lib/2015-04-01/generated/azure_mgmt_monitor/activity_logs.rb +4 -0
  5. data/lib/2015-04-01/generated/azure_mgmt_monitor/autoscale_settings.rb +16 -0
  6. data/lib/2015-04-01/generated/azure_mgmt_monitor/event_categories.rb +2 -0
  7. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/autoscale_notification.rb +0 -0
  8. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/autoscale_profile.rb +0 -0
  9. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/autoscale_setting_resource.rb +0 -0
  10. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/autoscale_setting_resource_collection.rb +0 -0
  11. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/autoscale_setting_resource_patch.rb +0 -0
  12. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/comparison_operation_type.rb +0 -0
  13. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/email_notification.rb +0 -0
  14. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
  15. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/event_category_collection.rb +0 -0
  16. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/event_data.rb +0 -0
  17. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/event_data_collection.rb +0 -0
  18. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/event_level.rb +0 -0
  19. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/http_request_info.rb +0 -0
  20. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/localizable_string.rb +0 -0
  21. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/metric_statistic_type.rb +0 -0
  22. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/metric_trigger.rb +0 -0
  23. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/operation.rb +0 -0
  24. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/operation_display.rb +0 -0
  25. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/operation_list_result.rb +0 -0
  26. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/recurrence.rb +0 -0
  27. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/recurrent_schedule.rb +0 -0
  28. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/resource.rb +0 -0
  29. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/scale_action.rb +0 -0
  30. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/scale_capacity.rb +0 -0
  31. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/scale_direction.rb +0 -0
  32. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/scale_rule.rb +0 -0
  33. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/scale_type.rb +0 -0
  34. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/sender_authorization.rb +0 -0
  35. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/time_aggregation_type.rb +0 -0
  36. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/time_window.rb +0 -0
  37. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/webhook_notification.rb +0 -0
  38. data/lib/2015-04-01/generated/azure_mgmt_monitor/module_definition.rb +0 -0
  39. data/lib/2015-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  40. data/lib/2015-04-01/generated/azure_mgmt_monitor/operations.rb +2 -0
  41. data/lib/2015-04-01/generated/azure_mgmt_monitor/tenant_activity_logs.rb +4 -0
  42. data/lib/2015-05-01/generated/azure_mgmt_monitor.rb +106 -0
  43. data/lib/2015-05-01/generated/azure_mgmt_monitor/analytics_items.rb +585 -0
  44. data/lib/2015-05-01/generated/azure_mgmt_monitor/annotations.rb +505 -0
  45. data/lib/2015-05-01/generated/azure_mgmt_monitor/apikeys.rb +473 -0
  46. data/lib/2015-05-01/generated/azure_mgmt_monitor/application_insights_management_client.rb +193 -0
  47. data/lib/2015-05-01/generated/azure_mgmt_monitor/component_available_features.rb +130 -0
  48. data/lib/2015-05-01/generated/azure_mgmt_monitor/component_current_billing_features.rb +252 -0
  49. data/lib/2015-05-01/generated/azure_mgmt_monitor/component_feature_capabilities.rb +130 -0
  50. data/lib/2015-05-01/generated/azure_mgmt_monitor/component_quota_status.rb +133 -0
  51. data/lib/2015-05-01/generated/azure_mgmt_monitor/components.rb +1134 -0
  52. data/lib/2015-05-01/generated/azure_mgmt_monitor/export_configurations.rb +646 -0
  53. data/lib/2015-05-01/generated/azure_mgmt_monitor/favorites.rb +653 -0
  54. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/annotation.rb +103 -0
  55. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/annotation_error.rb +70 -0
  56. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/annotations_list_result.rb +56 -0
  57. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/apikey_request.rb +84 -0
  58. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component.rb +261 -0
  59. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_analytics_item.rb +146 -0
  60. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_analytics_item_properties.rb +49 -0
  61. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_apikey.rb +121 -0
  62. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_apikey_list_result.rb +57 -0
  63. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_available_features.rb +58 -0
  64. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_billing_features.rb +70 -0
  65. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_data_volume_cap.rb +106 -0
  66. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_export_configuration.rb +277 -0
  67. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_export_request.rb +143 -0
  68. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_favorite.rb +182 -0
  69. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_feature.rb +153 -0
  70. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_feature_capabilities.rb +228 -0
  71. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_feature_capability.rb +108 -0
  72. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_list_result.rb +102 -0
  73. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_proactive_detection_configuration.rb +117 -0
  74. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_proactive_detection_configuration_rule_definitions.rb +130 -0
  75. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_quota_status.rb +74 -0
  76. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_web_test_location.rb +61 -0
  77. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_web_test_locations_list_result.rb +58 -0
  78. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_type.rb +16 -0
  79. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/category_type.rb +18 -0
  80. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/component_purge_body.rb +67 -0
  81. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/component_purge_body_filters.rb +85 -0
  82. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/component_purge_response.rb +47 -0
  83. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/component_purge_status_response.rb +47 -0
  84. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/components_resource.rb +101 -0
  85. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/error_field_contract.rb +68 -0
  86. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/error_response.rb +58 -0
  87. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/favorite_source_type.rb +22 -0
  88. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/favorite_type.rb +16 -0
  89. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/flow_type.rb +15 -0
  90. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/inner_error.rb +57 -0
  91. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/item_scope.rb +16 -0
  92. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/item_scope_path.rb +16 -0
  93. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/item_type.rb +18 -0
  94. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/item_type_parameter.rb +19 -0
  95. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/link_properties.rb +68 -0
  96. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/operation.rb +58 -0
  97. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/operation_display.rb +69 -0
  98. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/operation_list_result.rb +101 -0
  99. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/purge_state.rb +16 -0
  100. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/request_source.rb +15 -0
  101. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/shared_type_kind.rb +16 -0
  102. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/tags_resource.rb +55 -0
  103. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/web_test.rb +249 -0
  104. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/web_test_geolocation.rb +47 -0
  105. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/web_test_kind.rb +16 -0
  106. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/web_test_list_result.rb +101 -0
  107. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/web_test_properties_configuration.rb +47 -0
  108. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/webtests_resource.rb +101 -0
  109. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/work_item_configuration.rb +91 -0
  110. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/work_item_configuration_error.rb +70 -0
  111. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/work_item_configurations_list_result.rb +57 -0
  112. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/work_item_create_configuration.rb +87 -0
  113. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/workbook.rb +228 -0
  114. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/workbook_error.rb +79 -0
  115. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/workbook_resource.rb +101 -0
  116. data/lib/2015-05-01/generated/azure_mgmt_monitor/models/workbooks_list_result.rb +56 -0
  117. data/lib/2015-05-01/generated/azure_mgmt_monitor/module_definition.rb +9 -0
  118. data/lib/2015-05-01/generated/azure_mgmt_monitor/operations.rb +220 -0
  119. data/lib/2015-05-01/generated/azure_mgmt_monitor/proactive_detection_configurations.rb +392 -0
  120. data/lib/2015-05-01/generated/azure_mgmt_monitor/web_test_locations.rb +133 -0
  121. data/lib/2015-05-01/generated/azure_mgmt_monitor/web_tests.rb +1103 -0
  122. data/lib/2015-05-01/generated/azure_mgmt_monitor/work_item_configurations.rb +708 -0
  123. data/lib/2015-05-01/generated/azure_mgmt_monitor/workbooks.rb +589 -0
  124. data/lib/2016-03-01/generated/azure_mgmt_monitor.rb +0 -0
  125. data/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rule_incidents.rb +4 -0
  126. data/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rules.rb +12 -0
  127. data/lib/2016-03-01/generated/azure_mgmt_monitor/log_profiles.rb +10 -0
  128. data/lib/2016-03-01/generated/azure_mgmt_monitor/metric_definitions.rb +2 -0
  129. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/aggregation_type.rb +0 -0
  130. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/alert_rule_resource.rb +0 -0
  131. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/alert_rule_resource_collection.rb +0 -0
  132. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb +0 -0
  133. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/condition_operator.rb +0 -0
  134. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
  135. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/incident.rb +0 -0
  136. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/incident_list_result.rb +0 -0
  137. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/localizable_string.rb +0 -0
  138. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/location_threshold_rule_condition.rb +0 -0
  139. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/log_profile_collection.rb +0 -0
  140. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/log_profile_resource.rb +0 -0
  141. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/log_profile_resource_patch.rb +0 -0
  142. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/management_event_aggregation_condition.rb +0 -0
  143. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/management_event_rule_condition.rb +0 -0
  144. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/metric_availability.rb +0 -0
  145. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/metric_definition.rb +0 -0
  146. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/metric_definition_collection.rb +0 -0
  147. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/resource.rb +0 -0
  148. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/retention_policy.rb +0 -0
  149. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/rule_action.rb +0 -0
  150. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/rule_condition.rb +0 -0
  151. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/rule_data_source.rb +0 -0
  152. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/rule_email_action.rb +0 -0
  153. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/rule_management_event_claims_data_source.rb +0 -0
  154. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/rule_management_event_data_source.rb +0 -0
  155. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/rule_metric_data_source.rb +0 -0
  156. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/rule_webhook_action.rb +0 -0
  157. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/threshold_rule_condition.rb +0 -0
  158. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/time_aggregation_operator.rb +0 -0
  159. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/unit.rb +0 -0
  160. data/lib/2016-03-01/generated/azure_mgmt_monitor/module_definition.rb +0 -0
  161. data/lib/2016-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  162. data/lib/2016-09-01/generated/azure_mgmt_monitor.rb +0 -0
  163. data/lib/2016-09-01/generated/azure_mgmt_monitor/metrics.rb +2 -0
  164. data/lib/2016-09-01/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
  165. data/lib/2016-09-01/generated/azure_mgmt_monitor/models/localizable_string.rb +0 -0
  166. data/lib/2016-09-01/generated/azure_mgmt_monitor/models/log_settings.rb +0 -0
  167. data/lib/2016-09-01/generated/azure_mgmt_monitor/models/metric.rb +0 -0
  168. data/lib/2016-09-01/generated/azure_mgmt_monitor/models/metric_collection.rb +0 -0
  169. data/lib/2016-09-01/generated/azure_mgmt_monitor/models/metric_settings.rb +0 -0
  170. data/lib/2016-09-01/generated/azure_mgmt_monitor/models/metric_value.rb +0 -0
  171. data/lib/2016-09-01/generated/azure_mgmt_monitor/models/resource.rb +0 -0
  172. data/lib/2016-09-01/generated/azure_mgmt_monitor/models/retention_policy.rb +0 -0
  173. data/lib/2016-09-01/generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource.rb +0 -0
  174. data/lib/2016-09-01/generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource_patch.rb +0 -0
  175. data/lib/2016-09-01/generated/azure_mgmt_monitor/models/unit.rb +0 -0
  176. data/lib/2016-09-01/generated/azure_mgmt_monitor/module_definition.rb +0 -0
  177. data/lib/2016-09-01/generated/azure_mgmt_monitor/monitor_client.rb +1 -1
  178. data/lib/2016-09-01/generated/azure_mgmt_monitor/service_diagnostic_settings_operations.rb +6 -0
  179. data/lib/2017-04-01/generated/azure_mgmt_monitor.rb +0 -0
  180. data/lib/2017-04-01/generated/azure_mgmt_monitor/action_groups.rb +14 -0
  181. data/lib/2017-04-01/generated/azure_mgmt_monitor/activity_log_alerts.rb +12 -0
  182. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/action_group_list.rb +0 -0
  183. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb +0 -0
  184. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +0 -0
  185. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/activity_log_alert_action_group.rb +0 -0
  186. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/activity_log_alert_action_list.rb +0 -0
  187. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/activity_log_alert_all_of_condition.rb +0 -0
  188. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/activity_log_alert_leaf_condition.rb +0 -0
  189. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/activity_log_alert_list.rb +0 -0
  190. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/activity_log_alert_patch_body.rb +0 -0
  191. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/activity_log_alert_resource.rb +0 -0
  192. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb +0 -0
  193. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb +0 -0
  194. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/email_receiver.rb +0 -0
  195. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/enable_request.rb +0 -0
  196. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
  197. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb +0 -0
  198. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/receiver_status.rb +0 -0
  199. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/resource.rb +0 -0
  200. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/sms_receiver.rb +0 -0
  201. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/webhook_receiver.rb +0 -0
  202. data/lib/2017-04-01/generated/azure_mgmt_monitor/module_definition.rb +0 -0
  203. data/lib/2017-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  204. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor.rb +0 -0
  205. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_category_operations.rb +4 -0
  206. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_operations.rb +8 -0
  207. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/metric_definitions.rb +2 -0
  208. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/metrics.rb +2 -0
  209. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/aggregation_type.rb +0 -0
  210. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/category_type.rb +0 -0
  211. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/diagnostic_settings_category_resource.rb +0 -0
  212. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/diagnostic_settings_category_resource_collection.rb +0 -0
  213. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/diagnostic_settings_resource.rb +0 -0
  214. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/diagnostic_settings_resource_collection.rb +0 -0
  215. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
  216. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/localizable_string.rb +0 -0
  217. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/log_settings.rb +0 -0
  218. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metadata_value.rb +0 -0
  219. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metric.rb +0 -0
  220. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metric_availability.rb +0 -0
  221. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metric_definition.rb +0 -0
  222. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metric_definition_collection.rb +0 -0
  223. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metric_settings.rb +0 -0
  224. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metric_value.rb +0 -0
  225. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/proxy_only_resource.rb +0 -0
  226. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/response.rb +0 -0
  227. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/result_type.rb +0 -0
  228. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/retention_policy.rb +0 -0
  229. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/time_series_element.rb +0 -0
  230. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/unit.rb +0 -0
  231. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/module_definition.rb +0 -0
  232. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  233. data/lib/2017-10-01-preview/generated/azure_mgmt_monitor.rb +34 -0
  234. data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/application_insights_management_client.rb +146 -0
  235. data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/component_current_pricing_plan.rb +377 -0
  236. data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/easubscription_list_migration_date.rb +113 -0
  237. data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/easubscription_migrate_to_new_pricing_model.rb +102 -0
  238. data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/easubscription_rollback_to_legacy_pricing_model.rb +102 -0
  239. data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/models/application_insights_component_pricing_plan.rb +143 -0
  240. data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/models/easubscription_migration_date.rb +58 -0
  241. data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/models/resource.rb +80 -0
  242. data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/module_definition.rb +9 -0
  243. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor.rb +0 -0
  244. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/metric_baseline.rb +4 -0
  245. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/baseline.rb +0 -0
  246. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/baseline_metadata_value.rb +0 -0
  247. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/baseline_response.rb +0 -0
  248. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/calculate_baseline_response.rb +0 -0
  249. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
  250. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/localizable_string.rb +0 -0
  251. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/result_type.rb +0 -0
  252. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/sensitivity.rb +0 -0
  253. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/time_series_information.rb +0 -0
  254. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/module_definition.rb +0 -0
  255. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  256. data/lib/2017-12-01-preview/generated/azure_mgmt_monitor.rb +0 -0
  257. data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/metric_namespaces.rb +2 -0
  258. data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
  259. data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/models/metric_namespace.rb +0 -0
  260. data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/models/metric_namespace_collection.rb +0 -0
  261. data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/models/metric_namespace_name.rb +0 -0
  262. data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/module_definition.rb +0 -0
  263. data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  264. data/lib/2018-01-01/generated/azure_mgmt_monitor.rb +0 -0
  265. data/lib/2018-01-01/generated/azure_mgmt_monitor/metric_definitions.rb +2 -0
  266. data/lib/2018-01-01/generated/azure_mgmt_monitor/metrics.rb +2 -0
  267. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/aggregation_type.rb +0 -0
  268. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
  269. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/localizable_string.rb +0 -0
  270. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metadata_value.rb +0 -0
  271. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric.rb +0 -0
  272. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_availability.rb +0 -0
  273. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_definition.rb +0 -0
  274. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_definition_collection.rb +0 -0
  275. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_value.rb +0 -0
  276. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/response.rb +0 -0
  277. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/result_type.rb +0 -0
  278. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/time_series_element.rb +0 -0
  279. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/unit.rb +0 -0
  280. data/lib/2018-01-01/generated/azure_mgmt_monitor/module_definition.rb +0 -0
  281. data/lib/2018-01-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  282. data/lib/2018-03-01/generated/azure_mgmt_monitor.rb +0 -0
  283. data/lib/2018-03-01/generated/azure_mgmt_monitor/action_groups.rb +14 -0
  284. data/lib/2018-03-01/generated/azure_mgmt_monitor/metric_alerts.rb +12 -0
  285. data/lib/2018-03-01/generated/azure_mgmt_monitor/metric_alerts_status.rb +4 -0
  286. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/action_group_list.rb +0 -0
  287. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb +0 -0
  288. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +0 -0
  289. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb +0 -0
  290. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb +0 -0
  291. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/azure_function_receiver.rb +0 -0
  292. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/email_receiver.rb +0 -0
  293. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/enable_request.rb +0 -0
  294. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
  295. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb +0 -0
  296. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/logic_app_receiver.rb +0 -0
  297. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_action.rb +0 -0
  298. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_criteria.rb +0 -0
  299. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_resource.rb +0 -0
  300. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_resource_collection.rb +0 -0
  301. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_resource_patch.rb +0 -0
  302. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_single_resource_multiple_metric_criteria.rb +0 -0
  303. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_status.rb +0 -0
  304. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_status_collection.rb +0 -0
  305. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_status_properties.rb +0 -0
  306. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_criteria.rb +0 -0
  307. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_dimension.rb +0 -0
  308. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/receiver_status.rb +0 -0
  309. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/resource.rb +0 -0
  310. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/sms_receiver.rb +0 -0
  311. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/voice_receiver.rb +0 -0
  312. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/webhook_receiver.rb +0 -0
  313. data/lib/2018-03-01/generated/azure_mgmt_monitor/module_definition.rb +0 -0
  314. data/lib/2018-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  315. data/lib/2018-04-16/generated/azure_mgmt_monitor.rb +0 -0
  316. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/action.rb +0 -0
  317. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/alert_severity.rb +0 -0
  318. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/alerting_action.rb +0 -0
  319. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/az_ns_action_group.rb +0 -0
  320. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/conditional_operator.rb +0 -0
  321. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/enabled.rb +0 -0
  322. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
  323. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/log_metric_trigger.rb +0 -0
  324. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/log_search_rule_resource.rb +0 -0
  325. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/log_search_rule_resource_collection.rb +0 -0
  326. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/log_search_rule_resource_patch.rb +0 -0
  327. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/metric_trigger_type.rb +0 -0
  328. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/provisioning_state.rb +0 -0
  329. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/query_type.rb +0 -0
  330. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/resource.rb +0 -0
  331. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/schedule.rb +0 -0
  332. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/source.rb +0 -0
  333. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/trigger_condition.rb +0 -0
  334. data/lib/2018-04-16/generated/azure_mgmt_monitor/module_definition.rb +0 -0
  335. data/lib/2018-04-16/generated/azure_mgmt_monitor/monitor_client.rb +1 -1
  336. data/lib/2018-04-16/generated/azure_mgmt_monitor/scheduled_query_rules.rb +12 -0
  337. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor.rb +0 -0
  338. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/guest_diagnostics_settings.rb +12 -0
  339. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/guest_diagnostics_settings_association.rb +12 -0
  340. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/data_source.rb +0 -0
  341. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/data_source_configuration.rb +0 -0
  342. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
  343. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/etw_event_configuration.rb +0 -0
  344. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/etw_provider_configuration.rb +0 -0
  345. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/event_log_configuration.rb +0 -0
  346. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_association_list.rb +0 -0
  347. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_association_resource.rb +0 -0
  348. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_association_resource_patch.rb +0 -0
  349. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_list.rb +0 -0
  350. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_patch_resource.rb +0 -0
  351. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_resource.rb +0 -0
  352. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/performance_counter_configuration.rb +0 -0
  353. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/resource.rb +0 -0
  354. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/sink_configuration.rb +0 -0
  355. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/module_definition.rb +0 -0
  356. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  357. data/lib/2018-06-17-preview/generated/azure_mgmt_monitor.rb +36 -0
  358. data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/application_insights_management_client.rb +131 -0
  359. data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/category_type.rb +18 -0
  360. data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/error_field_contract.rb +68 -0
  361. data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/resource.rb +123 -0
  362. data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/shared_type_kind.rb +16 -0
  363. data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/workbook.rb +185 -0
  364. data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/workbook_error.rb +79 -0
  365. data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/workbook_update_parameters.rb +122 -0
  366. data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/workbooks_list_result.rb +55 -0
  367. data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/module_definition.rb +9 -0
  368. data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/workbooks.rb +609 -0
  369. data/lib/2018-09-01/generated/azure_mgmt_monitor.rb +0 -0
  370. data/lib/2018-09-01/generated/azure_mgmt_monitor/action_groups.rb +14 -0
  371. data/lib/2018-09-01/generated/azure_mgmt_monitor/metric_baseline.rb +4 -0
  372. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/action_group_list.rb +0 -0
  373. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb +0 -0
  374. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +0 -0
  375. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/arm_role_receiver.rb +0 -0
  376. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb +0 -0
  377. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb +0 -0
  378. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/azure_function_receiver.rb +0 -0
  379. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/baseline.rb +0 -0
  380. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/baseline_metadata_value.rb +0 -0
  381. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/baseline_response.rb +0 -0
  382. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/calculate_baseline_response.rb +0 -0
  383. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/email_receiver.rb +0 -0
  384. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/enable_request.rb +0 -0
  385. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
  386. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb +0 -0
  387. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/localizable_string.rb +0 -0
  388. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/logic_app_receiver.rb +0 -0
  389. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/receiver_status.rb +0 -0
  390. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/resource.rb +0 -0
  391. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/result_type.rb +0 -0
  392. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/sensitivity.rb +0 -0
  393. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/sms_receiver.rb +0 -0
  394. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/time_series_information.rb +0 -0
  395. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/voice_receiver.rb +0 -0
  396. data/lib/2018-09-01/generated/azure_mgmt_monitor/models/webhook_receiver.rb +0 -0
  397. data/lib/2018-09-01/generated/azure_mgmt_monitor/module_definition.rb +0 -0
  398. data/lib/2018-09-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  399. data/lib/2018-11-27-preview/generated/azure_mgmt_monitor.rb +0 -0
  400. data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/data_container.rb +0 -0
  401. data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/data_status.rb +0 -0
  402. data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/error.rb +0 -0
  403. data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/onboarding_status.rb +0 -0
  404. data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/proxy_resource.rb +0 -0
  405. data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/response_with_error.rb +0 -0
  406. data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/vminsights_onboarding_status.rb +0 -0
  407. data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/workspace_info.rb +0 -0
  408. data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/module_definition.rb +0 -0
  409. data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  410. data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/vminsights.rb +2 -0
  411. data/lib/2019-03-01/generated/azure_mgmt_monitor.rb +0 -0
  412. data/lib/2019-03-01/generated/azure_mgmt_monitor/action_groups.rb +14 -0
  413. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/action_group_list.rb +0 -0
  414. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb +0 -0
  415. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +0 -0
  416. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/arm_role_receiver.rb +0 -0
  417. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb +0 -0
  418. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb +0 -0
  419. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/azure_function_receiver.rb +0 -0
  420. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/email_receiver.rb +0 -0
  421. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/enable_request.rb +0 -0
  422. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
  423. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb +0 -0
  424. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/logic_app_receiver.rb +0 -0
  425. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/receiver_status.rb +0 -0
  426. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/resource.rb +0 -0
  427. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/sms_receiver.rb +0 -0
  428. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/voice_receiver.rb +0 -0
  429. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/webhook_receiver.rb +0 -0
  430. data/lib/2019-03-01/generated/azure_mgmt_monitor/module_definition.rb +0 -0
  431. data/lib/2019-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  432. data/lib/azure_mgmt_monitor.rb +10 -7
  433. data/lib/module_definition.rb +9 -9
  434. data/lib/profiles/latest/modules/monitor_profile_module.rb +735 -735
  435. data/lib/profiles/latest/monitor_latest_profile_client.rb +40 -40
  436. data/lib/profiles/latest/monitor_module_definition.rb +8 -8
  437. data/lib/profiles/v2019_03_01_hybrid/modules/monitor_profile_module.rb +297 -297
  438. data/lib/profiles/v2019_03_01_hybrid/monitor_module_definition.rb +8 -8
  439. data/lib/profiles/v2019_03_01_hybrid/monitor_v2019_03_01_hybrid_profile_client.rb +40 -40
  440. data/lib/version.rb +1 -1
  441. metadata +109 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 280f199be3d83dc5efb96eff07ddd8bbfa8e5b4fece90b6ab76591e1dadb31b5
4
- data.tar.gz: 5fd4569ea7b49b0ef156cb82da3b767fd485e0ceeafda40cbc16af69c2ab1edb
2
+ SHA1:
3
+ metadata.gz: b50a8fb77e754f2c38ab6e90b7109f0e2e6bde51
4
+ data.tar.gz: 3cbab9fd0b359c649f80fa5def593883bece75f1
5
5
  SHA512:
6
- metadata.gz: a778e79f56016f7c88a5b251638a1087ee12a1f72412f4802ea723432643d27c3c95a99c4e6774876fe4370f80e5d55a26ee21ed6ab408395761d417d70c9a09
7
- data.tar.gz: c81d0e41c313c51026d623aca1dd873d4592a3b0627e17d83c80fb9ba9e81d9427051e593cdb0875597ea11d7a43c0d0893f542d1f6059b5076bd8b9323d979c
6
+ metadata.gz: 918b7c6df91a56daefccda5835feb655f3349e5135236402ef02ff862ba5ab8e4f4e596e776e578d61a64d9a9c0ccbe0abf49b242b7294b10e19f34474cd75fa
7
+ data.tar.gz: 1d2bc5cc633f4edf4e1fcd74625d43b545a3ed420c8c20379d40296588321bb706c9077e36b2b8a786b1f2d38ed7e1139051fee4858ae8c64069a72ef6746890
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2015 Microsoft Corporation
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Microsoft Corporation
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
21
  THE SOFTWARE.
@@ -160,6 +160,8 @@ module Azure::Monitor::Mgmt::V2015_04_01
160
160
  end
161
161
 
162
162
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
163
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
164
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
163
165
  # Deserialize Response
164
166
  if status_code == 200
165
167
  begin
@@ -248,6 +250,8 @@ module Azure::Monitor::Mgmt::V2015_04_01
248
250
  end
249
251
 
250
252
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
253
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
254
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
251
255
  # Deserialize Response
252
256
  if status_code == 200
253
257
  begin
@@ -92,6 +92,8 @@ module Azure::Monitor::Mgmt::V2015_04_01
92
92
  end
93
93
 
94
94
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
95
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
96
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
95
97
  # Deserialize Response
96
98
  if status_code == 200
97
99
  begin
@@ -198,6 +200,8 @@ module Azure::Monitor::Mgmt::V2015_04_01
198
200
  end
199
201
 
200
202
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
203
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
204
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
201
205
  # Deserialize Response
202
206
  if status_code == 200
203
207
  begin
@@ -299,6 +303,8 @@ module Azure::Monitor::Mgmt::V2015_04_01
299
303
  end
300
304
 
301
305
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
306
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
307
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
302
308
 
303
309
  result
304
310
  end
@@ -381,6 +387,8 @@ module Azure::Monitor::Mgmt::V2015_04_01
381
387
  end
382
388
 
383
389
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
390
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
391
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
384
392
  # Deserialize Response
385
393
  if status_code == 200
386
394
  begin
@@ -490,6 +498,8 @@ module Azure::Monitor::Mgmt::V2015_04_01
490
498
  end
491
499
 
492
500
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
501
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
502
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
493
503
  # Deserialize Response
494
504
  if status_code == 200
495
505
  begin
@@ -574,6 +584,8 @@ module Azure::Monitor::Mgmt::V2015_04_01
574
584
  end
575
585
 
576
586
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
587
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
588
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
577
589
  # Deserialize Response
578
590
  if status_code == 200
579
591
  begin
@@ -662,6 +674,8 @@ module Azure::Monitor::Mgmt::V2015_04_01
662
674
  end
663
675
 
664
676
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
677
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
678
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
665
679
  # Deserialize Response
666
680
  if status_code == 200
667
681
  begin
@@ -750,6 +764,8 @@ module Azure::Monitor::Mgmt::V2015_04_01
750
764
  end
751
765
 
752
766
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
767
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
768
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
753
769
  # Deserialize Response
754
770
  if status_code == 200
755
771
  begin
@@ -92,6 +92,8 @@ module Azure::Monitor::Mgmt::V2015_04_01
92
92
  end
93
93
 
94
94
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
95
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
96
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
95
97
  # Deserialize Response
96
98
  if status_code == 200
97
99
  begin
@@ -140,7 +140,7 @@ module Azure::Monitor::Mgmt::V2015_04_01
140
140
  #
141
141
  def add_telemetry
142
142
  sdk_information = 'azure_mgmt_monitor'
143
- sdk_information = "#{sdk_information}/0.17.4"
143
+ sdk_information = "#{sdk_information}/0.17.5"
144
144
  add_user_agent_information(sdk_information)
145
145
  end
146
146
  end
@@ -86,6 +86,8 @@ module Azure::Monitor::Mgmt::V2015_04_01
86
86
  end
87
87
 
88
88
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
89
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
90
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
89
91
  # Deserialize Response
90
92
  if status_code == 200
91
93
  begin
@@ -170,6 +170,8 @@ module Azure::Monitor::Mgmt::V2015_04_01
170
170
  end
171
171
 
172
172
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
173
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
174
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
173
175
  # Deserialize Response
174
176
  if status_code == 200
175
177
  begin
@@ -270,6 +272,8 @@ module Azure::Monitor::Mgmt::V2015_04_01
270
272
  end
271
273
 
272
274
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
275
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
276
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
273
277
  # Deserialize Response
274
278
  if status_code == 200
275
279
  begin
@@ -0,0 +1,106 @@
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
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require '2015-05-01/generated/azure_mgmt_monitor/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::Monitor::Mgmt::V2015_05_01
23
+ autoload :Operations, '2015-05-01/generated/azure_mgmt_monitor/operations.rb'
24
+ autoload :Annotations, '2015-05-01/generated/azure_mgmt_monitor/annotations.rb'
25
+ autoload :APIKeys, '2015-05-01/generated/azure_mgmt_monitor/apikeys.rb'
26
+ autoload :ExportConfigurations, '2015-05-01/generated/azure_mgmt_monitor/export_configurations.rb'
27
+ autoload :ComponentCurrentBillingFeatures, '2015-05-01/generated/azure_mgmt_monitor/component_current_billing_features.rb'
28
+ autoload :ComponentQuotaStatus, '2015-05-01/generated/azure_mgmt_monitor/component_quota_status.rb'
29
+ autoload :ComponentFeatureCapabilities, '2015-05-01/generated/azure_mgmt_monitor/component_feature_capabilities.rb'
30
+ autoload :ComponentAvailableFeatures, '2015-05-01/generated/azure_mgmt_monitor/component_available_features.rb'
31
+ autoload :ProactiveDetectionConfigurations, '2015-05-01/generated/azure_mgmt_monitor/proactive_detection_configurations.rb'
32
+ autoload :Components, '2015-05-01/generated/azure_mgmt_monitor/components.rb'
33
+ autoload :WorkItemConfigurations, '2015-05-01/generated/azure_mgmt_monitor/work_item_configurations.rb'
34
+ autoload :Favorites, '2015-05-01/generated/azure_mgmt_monitor/favorites.rb'
35
+ autoload :WebTestLocations, '2015-05-01/generated/azure_mgmt_monitor/web_test_locations.rb'
36
+ autoload :WebTests, '2015-05-01/generated/azure_mgmt_monitor/web_tests.rb'
37
+ autoload :AnalyticsItems, '2015-05-01/generated/azure_mgmt_monitor/analytics_items.rb'
38
+ autoload :Workbooks, '2015-05-01/generated/azure_mgmt_monitor/workbooks.rb'
39
+ autoload :ApplicationInsightsManagementClient, '2015-05-01/generated/azure_mgmt_monitor/application_insights_management_client.rb'
40
+
41
+ module Models
42
+ autoload :ApplicationInsightsComponentListResult, '2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_list_result.rb'
43
+ autoload :ErrorResponse, '2015-05-01/generated/azure_mgmt_monitor/models/error_response.rb'
44
+ autoload :ComponentPurgeBodyFilters, '2015-05-01/generated/azure_mgmt_monitor/models/component_purge_body_filters.rb'
45
+ autoload :Operation, '2015-05-01/generated/azure_mgmt_monitor/models/operation.rb'
46
+ autoload :ComponentPurgeBody, '2015-05-01/generated/azure_mgmt_monitor/models/component_purge_body.rb'
47
+ autoload :Annotation, '2015-05-01/generated/azure_mgmt_monitor/models/annotation.rb'
48
+ autoload :ComponentPurgeResponse, '2015-05-01/generated/azure_mgmt_monitor/models/component_purge_response.rb'
49
+ autoload :InnerError, '2015-05-01/generated/azure_mgmt_monitor/models/inner_error.rb'
50
+ autoload :ComponentPurgeStatusResponse, '2015-05-01/generated/azure_mgmt_monitor/models/component_purge_status_response.rb'
51
+ autoload :APIKeyRequest, '2015-05-01/generated/azure_mgmt_monitor/models/apikey_request.rb'
52
+ autoload :WorkItemConfiguration, '2015-05-01/generated/azure_mgmt_monitor/models/work_item_configuration.rb'
53
+ autoload :ApplicationInsightsComponentAPIKeyListResult, '2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_apikey_list_result.rb'
54
+ autoload :WorkItemConfigurationsListResult, '2015-05-01/generated/azure_mgmt_monitor/models/work_item_configurations_list_result.rb'
55
+ autoload :ApplicationInsightsComponentExportConfiguration, '2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_export_configuration.rb'
56
+ autoload :WorkItemCreateConfiguration, '2015-05-01/generated/azure_mgmt_monitor/models/work_item_create_configuration.rb'
57
+ autoload :ApplicationInsightsComponentBillingFeatures, '2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_billing_features.rb'
58
+ autoload :WorkItemConfigurationError, '2015-05-01/generated/azure_mgmt_monitor/models/work_item_configuration_error.rb'
59
+ autoload :ApplicationInsightsComponentFeatureCapabilities, '2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_feature_capabilities.rb'
60
+ autoload :ApplicationInsightsComponentFavorite, '2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_favorite.rb'
61
+ autoload :ApplicationInsightsComponentFeature, '2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_feature.rb'
62
+ autoload :ApplicationInsightsComponentWebTestLocation, '2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_web_test_location.rb'
63
+ autoload :ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions, '2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_proactive_detection_configuration_rule_definitions.rb'
64
+ autoload :ApplicationInsightsWebTestLocationsListResult, '2015-05-01/generated/azure_mgmt_monitor/models/application_insights_web_test_locations_list_result.rb'
65
+ autoload :ComponentsResource, '2015-05-01/generated/azure_mgmt_monitor/models/components_resource.rb'
66
+ autoload :WebtestsResource, '2015-05-01/generated/azure_mgmt_monitor/models/webtests_resource.rb'
67
+ autoload :TagsResource, '2015-05-01/generated/azure_mgmt_monitor/models/tags_resource.rb'
68
+ autoload :OperationDisplay, '2015-05-01/generated/azure_mgmt_monitor/models/operation_display.rb'
69
+ autoload :AnnotationsListResult, '2015-05-01/generated/azure_mgmt_monitor/models/annotations_list_result.rb'
70
+ autoload :WebTestGeolocation, '2015-05-01/generated/azure_mgmt_monitor/models/web_test_geolocation.rb'
71
+ autoload :ApplicationInsightsComponentAPIKey, '2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_apikey.rb'
72
+ autoload :WebTestPropertiesConfiguration, '2015-05-01/generated/azure_mgmt_monitor/models/web_test_properties_configuration.rb'
73
+ autoload :ApplicationInsightsComponentDataVolumeCap, '2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_data_volume_cap.rb'
74
+ autoload :WorkbookError, '2015-05-01/generated/azure_mgmt_monitor/models/workbook_error.rb'
75
+ autoload :ApplicationInsightsComponentFeatureCapability, '2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_feature_capability.rb'
76
+ autoload :WebTestListResult, '2015-05-01/generated/azure_mgmt_monitor/models/web_test_list_result.rb'
77
+ autoload :ApplicationInsightsComponentProactiveDetectionConfiguration, '2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_proactive_detection_configuration.rb'
78
+ autoload :ApplicationInsightsComponentAnalyticsItemProperties, '2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_analytics_item_properties.rb'
79
+ autoload :AnnotationError, '2015-05-01/generated/azure_mgmt_monitor/models/annotation_error.rb'
80
+ autoload :ApplicationInsightsComponentAnalyticsItem, '2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_analytics_item.rb'
81
+ autoload :ApplicationInsightsComponentQuotaStatus, '2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_quota_status.rb'
82
+ autoload :WorkbookResource, '2015-05-01/generated/azure_mgmt_monitor/models/workbook_resource.rb'
83
+ autoload :OperationListResult, '2015-05-01/generated/azure_mgmt_monitor/models/operation_list_result.rb'
84
+ autoload :ErrorFieldContract, '2015-05-01/generated/azure_mgmt_monitor/models/error_field_contract.rb'
85
+ autoload :ApplicationInsightsComponentAvailableFeatures, '2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_available_features.rb'
86
+ autoload :WorkbooksListResult, '2015-05-01/generated/azure_mgmt_monitor/models/workbooks_list_result.rb'
87
+ autoload :ApplicationInsightsComponentExportRequest, '2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_export_request.rb'
88
+ autoload :LinkProperties, '2015-05-01/generated/azure_mgmt_monitor/models/link_properties.rb'
89
+ autoload :ApplicationInsightsComponent, '2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component.rb'
90
+ autoload :WebTest, '2015-05-01/generated/azure_mgmt_monitor/models/web_test.rb'
91
+ autoload :Workbook, '2015-05-01/generated/azure_mgmt_monitor/models/workbook.rb'
92
+ autoload :ApplicationType, '2015-05-01/generated/azure_mgmt_monitor/models/application_type.rb'
93
+ autoload :FlowType, '2015-05-01/generated/azure_mgmt_monitor/models/flow_type.rb'
94
+ autoload :RequestSource, '2015-05-01/generated/azure_mgmt_monitor/models/request_source.rb'
95
+ autoload :PurgeState, '2015-05-01/generated/azure_mgmt_monitor/models/purge_state.rb'
96
+ autoload :FavoriteType, '2015-05-01/generated/azure_mgmt_monitor/models/favorite_type.rb'
97
+ autoload :WebTestKind, '2015-05-01/generated/azure_mgmt_monitor/models/web_test_kind.rb'
98
+ autoload :ItemScope, '2015-05-01/generated/azure_mgmt_monitor/models/item_scope.rb'
99
+ autoload :ItemType, '2015-05-01/generated/azure_mgmt_monitor/models/item_type.rb'
100
+ autoload :SharedTypeKind, '2015-05-01/generated/azure_mgmt_monitor/models/shared_type_kind.rb'
101
+ autoload :FavoriteSourceType, '2015-05-01/generated/azure_mgmt_monitor/models/favorite_source_type.rb'
102
+ autoload :ItemScopePath, '2015-05-01/generated/azure_mgmt_monitor/models/item_scope_path.rb'
103
+ autoload :ItemTypeParameter, '2015-05-01/generated/azure_mgmt_monitor/models/item_type_parameter.rb'
104
+ autoload :CategoryType, '2015-05-01/generated/azure_mgmt_monitor/models/category_type.rb'
105
+ end
106
+ end
@@ -0,0 +1,585 @@
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::V2015_05_01
7
+ #
8
+ # Composite Swagger for Application Insights Management Client
9
+ #
10
+ class AnalyticsItems
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the AnalyticsItems class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [ApplicationInsightsManagementClient] reference to the ApplicationInsightsManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Gets a list of Analytics Items defined within an Application Insights
26
+ # component.
27
+ #
28
+ # @param resource_group_name [String] The name of the resource group. The name
29
+ # is case insensitive.
30
+ # @param resource_name [String] The name of the Application Insights component
31
+ # resource.
32
+ # @param scope_path [ItemScopePath] Enum indicating if this item definition is
33
+ # owned by a specific user or is shared between all users with access to the
34
+ # Application Insights component. Possible values include: 'analyticsItems',
35
+ # 'myanalyticsItems'
36
+ # @param scope [ItemScope] Enum indicating if this item definition is owned by
37
+ # a specific user or is shared between all users with access to the Application
38
+ # Insights component. Possible values include: 'shared', 'user'
39
+ # @param type [ItemTypeParameter] Enum indicating the type of the Analytics
40
+ # item. Possible values include: 'none', 'query', 'function', 'folder',
41
+ # 'recent'
42
+ # @param include_content [Boolean] Flag indicating whether or not to return the
43
+ # content of each applicable item. If false, only return the item information.
44
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
45
+ # will be added to the HTTP request.
46
+ #
47
+ # @return [Array] operation results.
48
+ #
49
+ def list(resource_group_name, resource_name, scope_path, scope:nil, type:nil, include_content:nil, custom_headers:nil)
50
+ response = list_async(resource_group_name, resource_name, scope_path, scope:scope, type:type, include_content:include_content, custom_headers:custom_headers).value!
51
+ response.body unless response.nil?
52
+ end
53
+
54
+ #
55
+ # Gets a list of Analytics Items defined within an Application Insights
56
+ # component.
57
+ #
58
+ # @param resource_group_name [String] The name of the resource group. The name
59
+ # is case insensitive.
60
+ # @param resource_name [String] The name of the Application Insights component
61
+ # resource.
62
+ # @param scope_path [ItemScopePath] Enum indicating if this item definition is
63
+ # owned by a specific user or is shared between all users with access to the
64
+ # Application Insights component. Possible values include: 'analyticsItems',
65
+ # 'myanalyticsItems'
66
+ # @param scope [ItemScope] Enum indicating if this item definition is owned by
67
+ # a specific user or is shared between all users with access to the Application
68
+ # Insights component. Possible values include: 'shared', 'user'
69
+ # @param type [ItemTypeParameter] Enum indicating the type of the Analytics
70
+ # item. Possible values include: 'none', 'query', 'function', 'folder',
71
+ # 'recent'
72
+ # @param include_content [Boolean] Flag indicating whether or not to return the
73
+ # content of each applicable item. If false, only return the item information.
74
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
75
+ # will be added to the HTTP request.
76
+ #
77
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
78
+ #
79
+ def list_with_http_info(resource_group_name, resource_name, scope_path, scope:nil, type:nil, include_content:nil, custom_headers:nil)
80
+ list_async(resource_group_name, resource_name, scope_path, scope:scope, type:type, include_content:include_content, custom_headers:custom_headers).value!
81
+ end
82
+
83
+ #
84
+ # Gets a list of Analytics Items defined within an Application Insights
85
+ # component.
86
+ #
87
+ # @param resource_group_name [String] The name of the resource group. The name
88
+ # is case insensitive.
89
+ # @param resource_name [String] The name of the Application Insights component
90
+ # resource.
91
+ # @param scope_path [ItemScopePath] Enum indicating if this item definition is
92
+ # owned by a specific user or is shared between all users with access to the
93
+ # Application Insights component. Possible values include: 'analyticsItems',
94
+ # 'myanalyticsItems'
95
+ # @param scope [ItemScope] Enum indicating if this item definition is owned by
96
+ # a specific user or is shared between all users with access to the Application
97
+ # Insights component. Possible values include: 'shared', 'user'
98
+ # @param type [ItemTypeParameter] Enum indicating the type of the Analytics
99
+ # item. Possible values include: 'none', 'query', 'function', 'folder',
100
+ # 'recent'
101
+ # @param include_content [Boolean] Flag indicating whether or not to return the
102
+ # content of each applicable item. If false, only return the item information.
103
+ # @param [Hash{String => String}] A hash of custom headers that will be added
104
+ # to the HTTP request.
105
+ #
106
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
107
+ #
108
+ def list_async(resource_group_name, resource_name, scope_path, scope:nil, type:nil, include_content:nil, custom_headers:nil)
109
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
110
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
111
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
112
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
113
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
114
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
115
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
116
+ fail ArgumentError, 'scope_path is nil' if scope_path.nil?
117
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
118
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
119
+
120
+
121
+ request_headers = {}
122
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
123
+
124
+ # Set Headers
125
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
126
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
127
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}'
128
+
129
+ request_url = @base_url || @client.base_url
130
+
131
+ options = {
132
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
133
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name,'scopePath' => scope_path},
134
+ query_params: {'api-version' => @client.api_version,'scope' => scope,'type' => type,'includeContent' => include_content},
135
+ headers: request_headers.merge(custom_headers || {}),
136
+ base_url: request_url
137
+ }
138
+ promise = @client.make_request_async(:get, path_template, options)
139
+
140
+ promise = promise.then do |result|
141
+ http_response = result.response
142
+ status_code = http_response.status
143
+ response_content = http_response.body
144
+ unless status_code == 200
145
+ error_model = JSON.load(response_content)
146
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
147
+ end
148
+
149
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
150
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
151
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
152
+ # Deserialize Response
153
+ if status_code == 200
154
+ begin
155
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
156
+ result_mapper = {
157
+ client_side_validation: true,
158
+ required: false,
159
+ serialized_name: 'parsed_response',
160
+ type: {
161
+ name: 'Sequence',
162
+ element: {
163
+ client_side_validation: true,
164
+ required: false,
165
+ serialized_name: 'ApplicationInsightsComponentAnalyticsItemElementType',
166
+ type: {
167
+ name: 'Composite',
168
+ class_name: 'ApplicationInsightsComponentAnalyticsItem'
169
+ }
170
+ }
171
+ }
172
+ }
173
+ result.body = @client.deserialize(result_mapper, parsed_response)
174
+ rescue Exception => e
175
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
176
+ end
177
+ end
178
+
179
+ result
180
+ end
181
+
182
+ promise.execute
183
+ end
184
+
185
+ #
186
+ # Gets a specific Analytics Items defined within an Application Insights
187
+ # component.
188
+ #
189
+ # @param resource_group_name [String] The name of the resource group. The name
190
+ # is case insensitive.
191
+ # @param resource_name [String] The name of the Application Insights component
192
+ # resource.
193
+ # @param scope_path [ItemScopePath] Enum indicating if this item definition is
194
+ # owned by a specific user or is shared between all users with access to the
195
+ # Application Insights component. Possible values include: 'analyticsItems',
196
+ # 'myanalyticsItems'
197
+ # @param id [String] The Id of a specific item defined in the Application
198
+ # Insights component
199
+ # @param name [String] The name of a specific item defined in the Application
200
+ # Insights component
201
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
202
+ # will be added to the HTTP request.
203
+ #
204
+ # @return [ApplicationInsightsComponentAnalyticsItem] operation results.
205
+ #
206
+ def get(resource_group_name, resource_name, scope_path, id:nil, name:nil, custom_headers:nil)
207
+ response = get_async(resource_group_name, resource_name, scope_path, id:id, name:name, custom_headers:custom_headers).value!
208
+ response.body unless response.nil?
209
+ end
210
+
211
+ #
212
+ # Gets a specific Analytics Items defined within an Application Insights
213
+ # component.
214
+ #
215
+ # @param resource_group_name [String] The name of the resource group. The name
216
+ # is case insensitive.
217
+ # @param resource_name [String] The name of the Application Insights component
218
+ # resource.
219
+ # @param scope_path [ItemScopePath] Enum indicating if this item definition is
220
+ # owned by a specific user or is shared between all users with access to the
221
+ # Application Insights component. Possible values include: 'analyticsItems',
222
+ # 'myanalyticsItems'
223
+ # @param id [String] The Id of a specific item defined in the Application
224
+ # Insights component
225
+ # @param name [String] The name of a specific item defined in the Application
226
+ # Insights component
227
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
228
+ # will be added to the HTTP request.
229
+ #
230
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
231
+ #
232
+ def get_with_http_info(resource_group_name, resource_name, scope_path, id:nil, name:nil, custom_headers:nil)
233
+ get_async(resource_group_name, resource_name, scope_path, id:id, name:name, custom_headers:custom_headers).value!
234
+ end
235
+
236
+ #
237
+ # Gets a specific Analytics Items defined within an Application Insights
238
+ # component.
239
+ #
240
+ # @param resource_group_name [String] The name of the resource group. The name
241
+ # is case insensitive.
242
+ # @param resource_name [String] The name of the Application Insights component
243
+ # resource.
244
+ # @param scope_path [ItemScopePath] Enum indicating if this item definition is
245
+ # owned by a specific user or is shared between all users with access to the
246
+ # Application Insights component. Possible values include: 'analyticsItems',
247
+ # 'myanalyticsItems'
248
+ # @param id [String] The Id of a specific item defined in the Application
249
+ # Insights component
250
+ # @param name [String] The name of a specific item defined in the Application
251
+ # Insights component
252
+ # @param [Hash{String => String}] A hash of custom headers that will be added
253
+ # to the HTTP request.
254
+ #
255
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
256
+ #
257
+ def get_async(resource_group_name, resource_name, scope_path, id:nil, name:nil, custom_headers:nil)
258
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
259
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
260
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
261
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
262
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
263
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
264
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
265
+ fail ArgumentError, 'scope_path is nil' if scope_path.nil?
266
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
267
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
268
+
269
+
270
+ request_headers = {}
271
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
272
+
273
+ # Set Headers
274
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
275
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
276
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}/item'
277
+
278
+ request_url = @base_url || @client.base_url
279
+
280
+ options = {
281
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
282
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name,'scopePath' => scope_path},
283
+ query_params: {'api-version' => @client.api_version,'id' => id,'name' => name},
284
+ headers: request_headers.merge(custom_headers || {}),
285
+ base_url: request_url
286
+ }
287
+ promise = @client.make_request_async(:get, path_template, options)
288
+
289
+ promise = promise.then do |result|
290
+ http_response = result.response
291
+ status_code = http_response.status
292
+ response_content = http_response.body
293
+ unless status_code == 200
294
+ error_model = JSON.load(response_content)
295
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
296
+ end
297
+
298
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
299
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
300
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
301
+ # Deserialize Response
302
+ if status_code == 200
303
+ begin
304
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
305
+ result_mapper = Azure::Monitor::Mgmt::V2015_05_01::Models::ApplicationInsightsComponentAnalyticsItem.mapper()
306
+ result.body = @client.deserialize(result_mapper, parsed_response)
307
+ rescue Exception => e
308
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
309
+ end
310
+ end
311
+
312
+ result
313
+ end
314
+
315
+ promise.execute
316
+ end
317
+
318
+ #
319
+ # Adds or Updates a specific Analytics Item within an Application Insights
320
+ # component.
321
+ #
322
+ # @param resource_group_name [String] The name of the resource group. The name
323
+ # is case insensitive.
324
+ # @param resource_name [String] The name of the Application Insights component
325
+ # resource.
326
+ # @param scope_path [ItemScopePath] Enum indicating if this item definition is
327
+ # owned by a specific user or is shared between all users with access to the
328
+ # Application Insights component. Possible values include: 'analyticsItems',
329
+ # 'myanalyticsItems'
330
+ # @param item_properties [ApplicationInsightsComponentAnalyticsItem] Properties
331
+ # that need to be specified to create a new item and add it to an Application
332
+ # Insights component.
333
+ # @param override_item [Boolean] Flag indicating whether or not to force save
334
+ # an item. This allows overriding an item if it already exists.
335
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
336
+ # will be added to the HTTP request.
337
+ #
338
+ # @return [ApplicationInsightsComponentAnalyticsItem] operation results.
339
+ #
340
+ def put(resource_group_name, resource_name, scope_path, item_properties, override_item:nil, custom_headers:nil)
341
+ response = put_async(resource_group_name, resource_name, scope_path, item_properties, override_item:override_item, custom_headers:custom_headers).value!
342
+ response.body unless response.nil?
343
+ end
344
+
345
+ #
346
+ # Adds or Updates a specific Analytics Item within an Application Insights
347
+ # component.
348
+ #
349
+ # @param resource_group_name [String] The name of the resource group. The name
350
+ # is case insensitive.
351
+ # @param resource_name [String] The name of the Application Insights component
352
+ # resource.
353
+ # @param scope_path [ItemScopePath] Enum indicating if this item definition is
354
+ # owned by a specific user or is shared between all users with access to the
355
+ # Application Insights component. Possible values include: 'analyticsItems',
356
+ # 'myanalyticsItems'
357
+ # @param item_properties [ApplicationInsightsComponentAnalyticsItem] Properties
358
+ # that need to be specified to create a new item and add it to an Application
359
+ # Insights component.
360
+ # @param override_item [Boolean] Flag indicating whether or not to force save
361
+ # an item. This allows overriding an item if it already exists.
362
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
363
+ # will be added to the HTTP request.
364
+ #
365
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
366
+ #
367
+ def put_with_http_info(resource_group_name, resource_name, scope_path, item_properties, override_item:nil, custom_headers:nil)
368
+ put_async(resource_group_name, resource_name, scope_path, item_properties, override_item:override_item, custom_headers:custom_headers).value!
369
+ end
370
+
371
+ #
372
+ # Adds or Updates a specific Analytics Item within an Application Insights
373
+ # component.
374
+ #
375
+ # @param resource_group_name [String] The name of the resource group. The name
376
+ # is case insensitive.
377
+ # @param resource_name [String] The name of the Application Insights component
378
+ # resource.
379
+ # @param scope_path [ItemScopePath] Enum indicating if this item definition is
380
+ # owned by a specific user or is shared between all users with access to the
381
+ # Application Insights component. Possible values include: 'analyticsItems',
382
+ # 'myanalyticsItems'
383
+ # @param item_properties [ApplicationInsightsComponentAnalyticsItem] Properties
384
+ # that need to be specified to create a new item and add it to an Application
385
+ # Insights component.
386
+ # @param override_item [Boolean] Flag indicating whether or not to force save
387
+ # an item. This allows overriding an item if it already exists.
388
+ # @param [Hash{String => String}] A hash of custom headers that will be added
389
+ # to the HTTP request.
390
+ #
391
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
392
+ #
393
+ def put_async(resource_group_name, resource_name, scope_path, item_properties, override_item:nil, custom_headers:nil)
394
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
395
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
396
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
397
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
398
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
399
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
400
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
401
+ fail ArgumentError, 'scope_path is nil' if scope_path.nil?
402
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
403
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
404
+ fail ArgumentError, 'item_properties is nil' if item_properties.nil?
405
+
406
+
407
+ request_headers = {}
408
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
409
+
410
+ # Set Headers
411
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
412
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
413
+
414
+ # Serialize Request
415
+ request_mapper = Azure::Monitor::Mgmt::V2015_05_01::Models::ApplicationInsightsComponentAnalyticsItem.mapper()
416
+ request_content = @client.serialize(request_mapper, item_properties)
417
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
418
+
419
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}/item'
420
+
421
+ request_url = @base_url || @client.base_url
422
+
423
+ options = {
424
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
425
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name,'scopePath' => scope_path},
426
+ query_params: {'api-version' => @client.api_version,'overrideItem' => override_item},
427
+ body: request_content,
428
+ headers: request_headers.merge(custom_headers || {}),
429
+ base_url: request_url
430
+ }
431
+ promise = @client.make_request_async(:put, path_template, options)
432
+
433
+ promise = promise.then do |result|
434
+ http_response = result.response
435
+ status_code = http_response.status
436
+ response_content = http_response.body
437
+ unless status_code == 200
438
+ error_model = JSON.load(response_content)
439
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
440
+ end
441
+
442
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
443
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
444
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
445
+ # Deserialize Response
446
+ if status_code == 200
447
+ begin
448
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
449
+ result_mapper = Azure::Monitor::Mgmt::V2015_05_01::Models::ApplicationInsightsComponentAnalyticsItem.mapper()
450
+ result.body = @client.deserialize(result_mapper, parsed_response)
451
+ rescue Exception => e
452
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
453
+ end
454
+ end
455
+
456
+ result
457
+ end
458
+
459
+ promise.execute
460
+ end
461
+
462
+ #
463
+ # Deletes a specific Analytics Items defined within an Application Insights
464
+ # component.
465
+ #
466
+ # @param resource_group_name [String] The name of the resource group. The name
467
+ # is case insensitive.
468
+ # @param resource_name [String] The name of the Application Insights component
469
+ # resource.
470
+ # @param scope_path [ItemScopePath] Enum indicating if this item definition is
471
+ # owned by a specific user or is shared between all users with access to the
472
+ # Application Insights component. Possible values include: 'analyticsItems',
473
+ # 'myanalyticsItems'
474
+ # @param id [String] The Id of a specific item defined in the Application
475
+ # Insights component
476
+ # @param name [String] The name of a specific item defined in the Application
477
+ # Insights component
478
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
479
+ # will be added to the HTTP request.
480
+ #
481
+ #
482
+ def delete(resource_group_name, resource_name, scope_path, id:nil, name:nil, custom_headers:nil)
483
+ response = delete_async(resource_group_name, resource_name, scope_path, id:id, name:name, custom_headers:custom_headers).value!
484
+ nil
485
+ end
486
+
487
+ #
488
+ # Deletes a specific Analytics Items defined within an Application Insights
489
+ # component.
490
+ #
491
+ # @param resource_group_name [String] The name of the resource group. The name
492
+ # is case insensitive.
493
+ # @param resource_name [String] The name of the Application Insights component
494
+ # resource.
495
+ # @param scope_path [ItemScopePath] Enum indicating if this item definition is
496
+ # owned by a specific user or is shared between all users with access to the
497
+ # Application Insights component. Possible values include: 'analyticsItems',
498
+ # 'myanalyticsItems'
499
+ # @param id [String] The Id of a specific item defined in the Application
500
+ # Insights component
501
+ # @param name [String] The name of a specific item defined in the Application
502
+ # Insights component
503
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
504
+ # will be added to the HTTP request.
505
+ #
506
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
507
+ #
508
+ def delete_with_http_info(resource_group_name, resource_name, scope_path, id:nil, name:nil, custom_headers:nil)
509
+ delete_async(resource_group_name, resource_name, scope_path, id:id, name:name, custom_headers:custom_headers).value!
510
+ end
511
+
512
+ #
513
+ # Deletes a specific Analytics Items defined within an Application Insights
514
+ # component.
515
+ #
516
+ # @param resource_group_name [String] The name of the resource group. The name
517
+ # is case insensitive.
518
+ # @param resource_name [String] The name of the Application Insights component
519
+ # resource.
520
+ # @param scope_path [ItemScopePath] Enum indicating if this item definition is
521
+ # owned by a specific user or is shared between all users with access to the
522
+ # Application Insights component. Possible values include: 'analyticsItems',
523
+ # 'myanalyticsItems'
524
+ # @param id [String] The Id of a specific item defined in the Application
525
+ # Insights component
526
+ # @param name [String] The name of a specific item defined in the Application
527
+ # Insights component
528
+ # @param [Hash{String => String}] A hash of custom headers that will be added
529
+ # to the HTTP request.
530
+ #
531
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
532
+ #
533
+ def delete_async(resource_group_name, resource_name, scope_path, id:nil, name:nil, custom_headers:nil)
534
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
535
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
536
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
537
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
538
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
539
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
540
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
541
+ fail ArgumentError, 'scope_path is nil' if scope_path.nil?
542
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
543
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
544
+
545
+
546
+ request_headers = {}
547
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
548
+
549
+ # Set Headers
550
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
551
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
552
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}/item'
553
+
554
+ request_url = @base_url || @client.base_url
555
+
556
+ options = {
557
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
558
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name,'scopePath' => scope_path},
559
+ query_params: {'api-version' => @client.api_version,'id' => id,'name' => name},
560
+ headers: request_headers.merge(custom_headers || {}),
561
+ base_url: request_url
562
+ }
563
+ promise = @client.make_request_async(:delete, path_template, options)
564
+
565
+ promise = promise.then do |result|
566
+ http_response = result.response
567
+ status_code = http_response.status
568
+ response_content = http_response.body
569
+ unless status_code == 200
570
+ error_model = JSON.load(response_content)
571
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
572
+ end
573
+
574
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
575
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
576
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
577
+
578
+ result
579
+ end
580
+
581
+ promise.execute
582
+ end
583
+
584
+ end
585
+ end