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
@@ -0,0 +1,473 @@
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 APIKeys
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the APIKeys 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 API keys of an Application Insights component.
26
+ #
27
+ # @param resource_group_name [String] The name of the resource group. The name
28
+ # is case insensitive.
29
+ # @param resource_name [String] The name of the Application Insights component
30
+ # resource.
31
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
32
+ # will be added to the HTTP request.
33
+ #
34
+ # @return [ApplicationInsightsComponentAPIKeyListResult] operation results.
35
+ #
36
+ def list(resource_group_name, resource_name, custom_headers:nil)
37
+ response = list_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
38
+ response.body unless response.nil?
39
+ end
40
+
41
+ #
42
+ # Gets a list of API keys of an Application Insights component.
43
+ #
44
+ # @param resource_group_name [String] The name of the resource group. The name
45
+ # is case insensitive.
46
+ # @param resource_name [String] The name of the Application Insights component
47
+ # resource.
48
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
49
+ # will be added to the HTTP request.
50
+ #
51
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
+ #
53
+ def list_with_http_info(resource_group_name, resource_name, custom_headers:nil)
54
+ list_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
55
+ end
56
+
57
+ #
58
+ # Gets a list of API keys of an Application Insights component.
59
+ #
60
+ # @param resource_group_name [String] The name of the resource group. The name
61
+ # is case insensitive.
62
+ # @param resource_name [String] The name of the Application Insights component
63
+ # resource.
64
+ # @param [Hash{String => String}] A hash of custom headers that will be added
65
+ # to the HTTP request.
66
+ #
67
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
68
+ #
69
+ def list_async(resource_group_name, resource_name, custom_headers:nil)
70
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
71
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
72
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
73
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
74
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
75
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
76
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
77
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
78
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
79
+
80
+
81
+ request_headers = {}
82
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
83
+
84
+ # Set Headers
85
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
86
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
87
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ApiKeys'
88
+
89
+ request_url = @base_url || @client.base_url
90
+
91
+ options = {
92
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
93
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'resourceName' => resource_name},
94
+ query_params: {'api-version' => @client.api_version},
95
+ headers: request_headers.merge(custom_headers || {}),
96
+ base_url: request_url
97
+ }
98
+ promise = @client.make_request_async(:get, path_template, options)
99
+
100
+ promise = promise.then do |result|
101
+ http_response = result.response
102
+ status_code = http_response.status
103
+ response_content = http_response.body
104
+ unless status_code == 200
105
+ error_model = JSON.load(response_content)
106
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
107
+ end
108
+
109
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
110
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
111
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
112
+ # Deserialize Response
113
+ if status_code == 200
114
+ begin
115
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
116
+ result_mapper = Azure::Monitor::Mgmt::V2015_05_01::Models::ApplicationInsightsComponentAPIKeyListResult.mapper()
117
+ result.body = @client.deserialize(result_mapper, parsed_response)
118
+ rescue Exception => e
119
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
120
+ end
121
+ end
122
+
123
+ result
124
+ end
125
+
126
+ promise.execute
127
+ end
128
+
129
+ #
130
+ # Create an API Key of an Application Insights component.
131
+ #
132
+ # @param resource_group_name [String] The name of the resource group. The name
133
+ # is case insensitive.
134
+ # @param resource_name [String] The name of the Application Insights component
135
+ # resource.
136
+ # @param apikey_properties [APIKeyRequest] Properties that need to be specified
137
+ # to create an API key of a Application Insights component.
138
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
139
+ # will be added to the HTTP request.
140
+ #
141
+ # @return [ApplicationInsightsComponentAPIKey] operation results.
142
+ #
143
+ def create(resource_group_name, resource_name, apikey_properties, custom_headers:nil)
144
+ response = create_async(resource_group_name, resource_name, apikey_properties, custom_headers:custom_headers).value!
145
+ response.body unless response.nil?
146
+ end
147
+
148
+ #
149
+ # Create an API Key of an Application Insights component.
150
+ #
151
+ # @param resource_group_name [String] The name of the resource group. The name
152
+ # is case insensitive.
153
+ # @param resource_name [String] The name of the Application Insights component
154
+ # resource.
155
+ # @param apikey_properties [APIKeyRequest] Properties that need to be specified
156
+ # to create an API key of a Application Insights component.
157
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
158
+ # will be added to the HTTP request.
159
+ #
160
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
161
+ #
162
+ def create_with_http_info(resource_group_name, resource_name, apikey_properties, custom_headers:nil)
163
+ create_async(resource_group_name, resource_name, apikey_properties, custom_headers:custom_headers).value!
164
+ end
165
+
166
+ #
167
+ # Create an API Key of an Application Insights component.
168
+ #
169
+ # @param resource_group_name [String] The name of the resource group. The name
170
+ # is case insensitive.
171
+ # @param resource_name [String] The name of the Application Insights component
172
+ # resource.
173
+ # @param apikey_properties [APIKeyRequest] Properties that need to be specified
174
+ # to create an API key of a Application Insights component.
175
+ # @param [Hash{String => String}] A hash of custom headers that will be added
176
+ # to the HTTP request.
177
+ #
178
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
179
+ #
180
+ def create_async(resource_group_name, resource_name, apikey_properties, custom_headers:nil)
181
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
182
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
183
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
184
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
185
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
186
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
187
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
188
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
189
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
190
+ fail ArgumentError, 'apikey_properties is nil' if apikey_properties.nil?
191
+
192
+
193
+ request_headers = {}
194
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
195
+
196
+ # Set Headers
197
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
198
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
199
+
200
+ # Serialize Request
201
+ request_mapper = Azure::Monitor::Mgmt::V2015_05_01::Models::APIKeyRequest.mapper()
202
+ request_content = @client.serialize(request_mapper, apikey_properties)
203
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
204
+
205
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ApiKeys'
206
+
207
+ request_url = @base_url || @client.base_url
208
+
209
+ options = {
210
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
211
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'resourceName' => resource_name},
212
+ query_params: {'api-version' => @client.api_version},
213
+ body: request_content,
214
+ headers: request_headers.merge(custom_headers || {}),
215
+ base_url: request_url
216
+ }
217
+ promise = @client.make_request_async(:post, path_template, options)
218
+
219
+ promise = promise.then do |result|
220
+ http_response = result.response
221
+ status_code = http_response.status
222
+ response_content = http_response.body
223
+ unless status_code == 200
224
+ error_model = JSON.load(response_content)
225
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
226
+ end
227
+
228
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
229
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
230
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
231
+ # Deserialize Response
232
+ if status_code == 200
233
+ begin
234
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
235
+ result_mapper = Azure::Monitor::Mgmt::V2015_05_01::Models::ApplicationInsightsComponentAPIKey.mapper()
236
+ result.body = @client.deserialize(result_mapper, parsed_response)
237
+ rescue Exception => e
238
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
239
+ end
240
+ end
241
+
242
+ result
243
+ end
244
+
245
+ promise.execute
246
+ end
247
+
248
+ #
249
+ # Delete an API Key of an Application Insights component.
250
+ #
251
+ # @param resource_group_name [String] The name of the resource group. The name
252
+ # is case insensitive.
253
+ # @param resource_name [String] The name of the Application Insights component
254
+ # resource.
255
+ # @param key_id [String] The API Key ID. This is unique within a Application
256
+ # Insights component.
257
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
258
+ # will be added to the HTTP request.
259
+ #
260
+ # @return [ApplicationInsightsComponentAPIKey] operation results.
261
+ #
262
+ def delete(resource_group_name, resource_name, key_id, custom_headers:nil)
263
+ response = delete_async(resource_group_name, resource_name, key_id, custom_headers:custom_headers).value!
264
+ response.body unless response.nil?
265
+ end
266
+
267
+ #
268
+ # Delete an API Key of an Application Insights component.
269
+ #
270
+ # @param resource_group_name [String] The name of the resource group. The name
271
+ # is case insensitive.
272
+ # @param resource_name [String] The name of the Application Insights component
273
+ # resource.
274
+ # @param key_id [String] The API Key ID. This is unique within a Application
275
+ # Insights component.
276
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
277
+ # will be added to the HTTP request.
278
+ #
279
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
280
+ #
281
+ def delete_with_http_info(resource_group_name, resource_name, key_id, custom_headers:nil)
282
+ delete_async(resource_group_name, resource_name, key_id, custom_headers:custom_headers).value!
283
+ end
284
+
285
+ #
286
+ # Delete an API Key of an Application Insights component.
287
+ #
288
+ # @param resource_group_name [String] The name of the resource group. The name
289
+ # is case insensitive.
290
+ # @param resource_name [String] The name of the Application Insights component
291
+ # resource.
292
+ # @param key_id [String] The API Key ID. This is unique within a Application
293
+ # Insights component.
294
+ # @param [Hash{String => String}] A hash of custom headers that will be added
295
+ # to the HTTP request.
296
+ #
297
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
298
+ #
299
+ def delete_async(resource_group_name, resource_name, key_id, custom_headers:nil)
300
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
301
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
302
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
303
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
304
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
305
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
306
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
307
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
308
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
309
+ fail ArgumentError, 'key_id is nil' if key_id.nil?
310
+
311
+
312
+ request_headers = {}
313
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
314
+
315
+ # Set Headers
316
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
317
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
318
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/APIKeys/{keyId}'
319
+
320
+ request_url = @base_url || @client.base_url
321
+
322
+ options = {
323
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
324
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'resourceName' => resource_name,'keyId' => key_id},
325
+ query_params: {'api-version' => @client.api_version},
326
+ headers: request_headers.merge(custom_headers || {}),
327
+ base_url: request_url
328
+ }
329
+ promise = @client.make_request_async(:delete, path_template, options)
330
+
331
+ promise = promise.then do |result|
332
+ http_response = result.response
333
+ status_code = http_response.status
334
+ response_content = http_response.body
335
+ unless status_code == 200
336
+ error_model = JSON.load(response_content)
337
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
338
+ end
339
+
340
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
341
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
342
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
343
+ # Deserialize Response
344
+ if status_code == 200
345
+ begin
346
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
347
+ result_mapper = Azure::Monitor::Mgmt::V2015_05_01::Models::ApplicationInsightsComponentAPIKey.mapper()
348
+ result.body = @client.deserialize(result_mapper, parsed_response)
349
+ rescue Exception => e
350
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
351
+ end
352
+ end
353
+
354
+ result
355
+ end
356
+
357
+ promise.execute
358
+ end
359
+
360
+ #
361
+ # Get the API Key for this key id.
362
+ #
363
+ # @param resource_group_name [String] The name of the resource group. The name
364
+ # is case insensitive.
365
+ # @param resource_name [String] The name of the Application Insights component
366
+ # resource.
367
+ # @param key_id [String] The API Key ID. This is unique within a Application
368
+ # Insights component.
369
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
370
+ # will be added to the HTTP request.
371
+ #
372
+ # @return [ApplicationInsightsComponentAPIKey] operation results.
373
+ #
374
+ def get(resource_group_name, resource_name, key_id, custom_headers:nil)
375
+ response = get_async(resource_group_name, resource_name, key_id, custom_headers:custom_headers).value!
376
+ response.body unless response.nil?
377
+ end
378
+
379
+ #
380
+ # Get the API Key for this key id.
381
+ #
382
+ # @param resource_group_name [String] The name of the resource group. The name
383
+ # is case insensitive.
384
+ # @param resource_name [String] The name of the Application Insights component
385
+ # resource.
386
+ # @param key_id [String] The API Key ID. This is unique within a Application
387
+ # Insights component.
388
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
389
+ # will be added to the HTTP request.
390
+ #
391
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
392
+ #
393
+ def get_with_http_info(resource_group_name, resource_name, key_id, custom_headers:nil)
394
+ get_async(resource_group_name, resource_name, key_id, custom_headers:custom_headers).value!
395
+ end
396
+
397
+ #
398
+ # Get the API Key for this key id.
399
+ #
400
+ # @param resource_group_name [String] The name of the resource group. The name
401
+ # is case insensitive.
402
+ # @param resource_name [String] The name of the Application Insights component
403
+ # resource.
404
+ # @param key_id [String] The API Key ID. This is unique within a Application
405
+ # Insights component.
406
+ # @param [Hash{String => String}] A hash of custom headers that will be added
407
+ # to the HTTP request.
408
+ #
409
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
410
+ #
411
+ def get_async(resource_group_name, resource_name, key_id, custom_headers:nil)
412
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
413
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
414
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
415
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
416
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
417
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
418
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
419
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
420
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
421
+ fail ArgumentError, 'key_id is nil' if key_id.nil?
422
+
423
+
424
+ request_headers = {}
425
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
426
+
427
+ # Set Headers
428
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
429
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
430
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/APIKeys/{keyId}'
431
+
432
+ request_url = @base_url || @client.base_url
433
+
434
+ options = {
435
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
436
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'resourceName' => resource_name,'keyId' => key_id},
437
+ query_params: {'api-version' => @client.api_version},
438
+ headers: request_headers.merge(custom_headers || {}),
439
+ base_url: request_url
440
+ }
441
+ promise = @client.make_request_async(:get, path_template, options)
442
+
443
+ promise = promise.then do |result|
444
+ http_response = result.response
445
+ status_code = http_response.status
446
+ response_content = http_response.body
447
+ unless status_code == 200
448
+ error_model = JSON.load(response_content)
449
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
450
+ end
451
+
452
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
453
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
454
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
455
+ # Deserialize Response
456
+ if status_code == 200
457
+ begin
458
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
459
+ result_mapper = Azure::Monitor::Mgmt::V2015_05_01::Models::ApplicationInsightsComponentAPIKey.mapper()
460
+ result.body = @client.deserialize(result_mapper, parsed_response)
461
+ rescue Exception => e
462
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
463
+ end
464
+ end
465
+
466
+ result
467
+ end
468
+
469
+ promise.execute
470
+ end
471
+
472
+ end
473
+ end