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.
- checksums.yaml +5 -5
- data/LICENSE.txt +20 -20
- data/lib/2015-04-01/generated/azure_mgmt_monitor.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/activity_logs.rb +4 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/autoscale_settings.rb +16 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/event_categories.rb +2 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/autoscale_notification.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/autoscale_profile.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/autoscale_setting_resource.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/autoscale_setting_resource_collection.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/autoscale_setting_resource_patch.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/comparison_operation_type.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/email_notification.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/event_category_collection.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/event_data.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/event_data_collection.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/event_level.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/http_request_info.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/localizable_string.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/metric_statistic_type.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/metric_trigger.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/operation.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/operation_display.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/operation_list_result.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/recurrence.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/recurrent_schedule.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/resource.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/scale_action.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/scale_capacity.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/scale_direction.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/scale_rule.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/scale_type.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/sender_authorization.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/time_aggregation_type.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/time_window.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/webhook_notification.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/module_definition.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2015-04-01/generated/azure_mgmt_monitor/operations.rb +2 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/tenant_activity_logs.rb +4 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor.rb +106 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/analytics_items.rb +585 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/annotations.rb +505 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/apikeys.rb +473 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/application_insights_management_client.rb +193 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/component_available_features.rb +130 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/component_current_billing_features.rb +252 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/component_feature_capabilities.rb +130 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/component_quota_status.rb +133 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/components.rb +1134 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/export_configurations.rb +646 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/favorites.rb +653 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/annotation.rb +103 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/annotation_error.rb +70 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/annotations_list_result.rb +56 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/apikey_request.rb +84 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component.rb +261 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_analytics_item.rb +146 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_analytics_item_properties.rb +49 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_apikey.rb +121 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_apikey_list_result.rb +57 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_available_features.rb +58 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_billing_features.rb +70 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_data_volume_cap.rb +106 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_export_configuration.rb +277 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_export_request.rb +143 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_favorite.rb +182 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_feature.rb +153 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_feature_capabilities.rb +228 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_feature_capability.rb +108 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_list_result.rb +102 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_proactive_detection_configuration.rb +117 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_proactive_detection_configuration_rule_definitions.rb +130 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_quota_status.rb +74 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_web_test_location.rb +61 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_web_test_locations_list_result.rb +58 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_type.rb +16 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/category_type.rb +18 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/component_purge_body.rb +67 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/component_purge_body_filters.rb +85 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/component_purge_response.rb +47 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/component_purge_status_response.rb +47 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/components_resource.rb +101 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/error_field_contract.rb +68 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/error_response.rb +58 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/favorite_source_type.rb +22 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/favorite_type.rb +16 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/flow_type.rb +15 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/inner_error.rb +57 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/item_scope.rb +16 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/item_scope_path.rb +16 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/item_type.rb +18 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/item_type_parameter.rb +19 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/link_properties.rb +68 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/operation.rb +58 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/operation_display.rb +69 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/operation_list_result.rb +101 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/purge_state.rb +16 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/request_source.rb +15 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/shared_type_kind.rb +16 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/tags_resource.rb +55 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/web_test.rb +249 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/web_test_geolocation.rb +47 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/web_test_kind.rb +16 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/web_test_list_result.rb +101 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/web_test_properties_configuration.rb +47 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/webtests_resource.rb +101 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/work_item_configuration.rb +91 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/work_item_configuration_error.rb +70 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/work_item_configurations_list_result.rb +57 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/work_item_create_configuration.rb +87 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/workbook.rb +228 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/workbook_error.rb +79 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/workbook_resource.rb +101 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/workbooks_list_result.rb +56 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/module_definition.rb +9 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/operations.rb +220 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/proactive_detection_configurations.rb +392 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/web_test_locations.rb +133 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/web_tests.rb +1103 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/work_item_configurations.rb +708 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/workbooks.rb +589 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rule_incidents.rb +4 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rules.rb +12 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/log_profiles.rb +10 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/metric_definitions.rb +2 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/aggregation_type.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/alert_rule_resource.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/alert_rule_resource_collection.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/condition_operator.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/incident.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/incident_list_result.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/localizable_string.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/location_threshold_rule_condition.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/log_profile_collection.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/log_profile_resource.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/log_profile_resource_patch.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/management_event_aggregation_condition.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/management_event_rule_condition.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/metric_availability.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/metric_definition.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/metric_definition_collection.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/resource.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/retention_policy.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/rule_action.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/rule_condition.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/rule_data_source.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/rule_email_action.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/rule_management_event_claims_data_source.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/rule_management_event_data_source.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/rule_metric_data_source.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/rule_webhook_action.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/threshold_rule_condition.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/time_aggregation_operator.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/unit.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/module_definition.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_monitor.rb +0 -0
- data/lib/2016-09-01/generated/azure_mgmt_monitor/metrics.rb +2 -0
- data/lib/2016-09-01/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
- data/lib/2016-09-01/generated/azure_mgmt_monitor/models/localizable_string.rb +0 -0
- data/lib/2016-09-01/generated/azure_mgmt_monitor/models/log_settings.rb +0 -0
- data/lib/2016-09-01/generated/azure_mgmt_monitor/models/metric.rb +0 -0
- data/lib/2016-09-01/generated/azure_mgmt_monitor/models/metric_collection.rb +0 -0
- data/lib/2016-09-01/generated/azure_mgmt_monitor/models/metric_settings.rb +0 -0
- data/lib/2016-09-01/generated/azure_mgmt_monitor/models/metric_value.rb +0 -0
- data/lib/2016-09-01/generated/azure_mgmt_monitor/models/resource.rb +0 -0
- data/lib/2016-09-01/generated/azure_mgmt_monitor/models/retention_policy.rb +0 -0
- data/lib/2016-09-01/generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource.rb +0 -0
- data/lib/2016-09-01/generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource_patch.rb +0 -0
- data/lib/2016-09-01/generated/azure_mgmt_monitor/models/unit.rb +0 -0
- data/lib/2016-09-01/generated/azure_mgmt_monitor/module_definition.rb +0 -0
- data/lib/2016-09-01/generated/azure_mgmt_monitor/monitor_client.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_monitor/service_diagnostic_settings_operations.rb +6 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/action_groups.rb +14 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/activity_log_alerts.rb +12 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/action_group_list.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/activity_log_alert_action_group.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/activity_log_alert_action_list.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/activity_log_alert_all_of_condition.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/activity_log_alert_leaf_condition.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/activity_log_alert_list.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/activity_log_alert_patch_body.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/activity_log_alert_resource.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/email_receiver.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/enable_request.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/receiver_status.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/resource.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/sms_receiver.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/webhook_receiver.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/module_definition.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_category_operations.rb +4 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_operations.rb +8 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/metric_definitions.rb +2 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/metrics.rb +2 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/aggregation_type.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/category_type.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/diagnostic_settings_category_resource.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/diagnostic_settings_category_resource_collection.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/diagnostic_settings_resource.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/diagnostic_settings_resource_collection.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/localizable_string.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/log_settings.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metadata_value.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metric.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metric_availability.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metric_definition.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metric_definition_collection.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metric_settings.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metric_value.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/proxy_only_resource.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/response.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/result_type.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/retention_policy.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/time_series_element.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/unit.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/module_definition.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2017-10-01-preview/generated/azure_mgmt_monitor.rb +34 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/application_insights_management_client.rb +146 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/component_current_pricing_plan.rb +377 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/easubscription_list_migration_date.rb +113 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/easubscription_migrate_to_new_pricing_model.rb +102 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/easubscription_rollback_to_legacy_pricing_model.rb +102 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/models/application_insights_component_pricing_plan.rb +143 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/models/easubscription_migration_date.rb +58 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/models/resource.rb +80 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/module_definition.rb +9 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor.rb +0 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/metric_baseline.rb +4 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/baseline.rb +0 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/baseline_metadata_value.rb +0 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/baseline_response.rb +0 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/calculate_baseline_response.rb +0 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/localizable_string.rb +0 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/result_type.rb +0 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/sensitivity.rb +0 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/time_series_information.rb +0 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/module_definition.rb +0 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor.rb +0 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/metric_namespaces.rb +2 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/models/metric_namespace.rb +0 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/models/metric_namespace_collection.rb +0 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/models/metric_namespace_name.rb +0 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/module_definition.rb +0 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2018-01-01/generated/azure_mgmt_monitor.rb +0 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/metric_definitions.rb +2 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/metrics.rb +2 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/aggregation_type.rb +0 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/localizable_string.rb +0 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metadata_value.rb +0 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric.rb +0 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_availability.rb +0 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_definition.rb +0 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_definition_collection.rb +0 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_value.rb +0 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/response.rb +0 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/result_type.rb +0 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/time_series_element.rb +0 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/unit.rb +0 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/module_definition.rb +0 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2018-03-01/generated/azure_mgmt_monitor.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/action_groups.rb +14 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/metric_alerts.rb +12 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/metric_alerts_status.rb +4 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/action_group_list.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/azure_function_receiver.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/email_receiver.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/enable_request.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/logic_app_receiver.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_action.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_criteria.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_resource.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_resource_collection.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_resource_patch.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_single_resource_multiple_metric_criteria.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_status.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_status_collection.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_status_properties.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_criteria.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_dimension.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/receiver_status.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/resource.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/sms_receiver.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/voice_receiver.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/webhook_receiver.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/module_definition.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2018-04-16/generated/azure_mgmt_monitor.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/action.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/alert_severity.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/alerting_action.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/az_ns_action_group.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/conditional_operator.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/enabled.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/log_metric_trigger.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/log_search_rule_resource.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/log_search_rule_resource_collection.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/log_search_rule_resource_patch.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/metric_trigger_type.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/provisioning_state.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/query_type.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/resource.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/schedule.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/source.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/trigger_condition.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/module_definition.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/monitor_client.rb +1 -1
- data/lib/2018-04-16/generated/azure_mgmt_monitor/scheduled_query_rules.rb +12 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/guest_diagnostics_settings.rb +12 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/guest_diagnostics_settings_association.rb +12 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/data_source.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/data_source_configuration.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/etw_event_configuration.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/etw_provider_configuration.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/event_log_configuration.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_association_list.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_association_resource.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_association_resource_patch.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_list.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_patch_resource.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_resource.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/performance_counter_configuration.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/resource.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/sink_configuration.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/module_definition.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor.rb +36 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/application_insights_management_client.rb +131 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/category_type.rb +18 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/error_field_contract.rb +68 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/resource.rb +123 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/shared_type_kind.rb +16 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/workbook.rb +185 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/workbook_error.rb +79 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/workbook_update_parameters.rb +122 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/workbooks_list_result.rb +55 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/module_definition.rb +9 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/workbooks.rb +609 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/action_groups.rb +14 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/metric_baseline.rb +4 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/action_group_list.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/arm_role_receiver.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/azure_function_receiver.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/baseline.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/baseline_metadata_value.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/baseline_response.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/calculate_baseline_response.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/email_receiver.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/enable_request.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/localizable_string.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/logic_app_receiver.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/receiver_status.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/resource.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/result_type.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/sensitivity.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/sms_receiver.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/time_series_information.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/voice_receiver.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/webhook_receiver.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/module_definition.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor.rb +0 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/data_container.rb +0 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/data_status.rb +0 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/error.rb +0 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/onboarding_status.rb +0 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/proxy_resource.rb +0 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/response_with_error.rb +0 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/vminsights_onboarding_status.rb +0 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/workspace_info.rb +0 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/module_definition.rb +0 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/vminsights.rb +2 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/action_groups.rb +14 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/action_group_list.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/arm_role_receiver.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/azure_function_receiver.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/email_receiver.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/enable_request.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/logic_app_receiver.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/receiver_status.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/resource.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/sms_receiver.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/voice_receiver.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/webhook_receiver.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/module_definition.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/azure_mgmt_monitor.rb +10 -7
- data/lib/module_definition.rb +9 -9
- data/lib/profiles/latest/modules/monitor_profile_module.rb +735 -735
- data/lib/profiles/latest/monitor_latest_profile_client.rb +40 -40
- data/lib/profiles/latest/monitor_module_definition.rb +8 -8
- data/lib/profiles/v2019_03_01_hybrid/modules/monitor_profile_module.rb +297 -297
- data/lib/profiles/v2019_03_01_hybrid/monitor_module_definition.rb +8 -8
- data/lib/profiles/v2019_03_01_hybrid/monitor_v2019_03_01_hybrid_profile_client.rb +40 -40
- data/lib/version.rb +1 -1
- metadata +109 -5
@@ -0,0 +1,653 @@
|
|
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 Favorites
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the Favorites 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 favorites defined within 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 favorite_type [FavoriteType] The type of favorite. Value can be either
|
32
|
+
# shared or user. Possible values include: 'shared', 'user'
|
33
|
+
# @param source_type [FavoriteSourceType] Source type of favorite to return.
|
34
|
+
# When left out, the source type defaults to 'other' (not present in this
|
35
|
+
# enum). Possible values include: 'retention', 'notebook', 'sessions',
|
36
|
+
# 'events', 'userflows', 'funnel', 'impact', 'segmentation'
|
37
|
+
# @param can_fetch_content [Boolean] Flag indicating whether or not to return
|
38
|
+
# the full content for each applicable favorite. If false, only return summary
|
39
|
+
# content for favorites.
|
40
|
+
# @param tags [Array<String>] Tags that must be present on each favorite
|
41
|
+
# returned.
|
42
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
43
|
+
# will be added to the HTTP request.
|
44
|
+
#
|
45
|
+
# @return [Array] operation results.
|
46
|
+
#
|
47
|
+
def list(resource_group_name, resource_name, favorite_type:nil, source_type:nil, can_fetch_content:nil, tags:nil, custom_headers:nil)
|
48
|
+
response = list_async(resource_group_name, resource_name, favorite_type:favorite_type, source_type:source_type, can_fetch_content:can_fetch_content, tags:tags, custom_headers:custom_headers).value!
|
49
|
+
response.body unless response.nil?
|
50
|
+
end
|
51
|
+
|
52
|
+
#
|
53
|
+
# Gets a list of favorites defined within an Application Insights component.
|
54
|
+
#
|
55
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
56
|
+
# is case insensitive.
|
57
|
+
# @param resource_name [String] The name of the Application Insights component
|
58
|
+
# resource.
|
59
|
+
# @param favorite_type [FavoriteType] The type of favorite. Value can be either
|
60
|
+
# shared or user. Possible values include: 'shared', 'user'
|
61
|
+
# @param source_type [FavoriteSourceType] Source type of favorite to return.
|
62
|
+
# When left out, the source type defaults to 'other' (not present in this
|
63
|
+
# enum). Possible values include: 'retention', 'notebook', 'sessions',
|
64
|
+
# 'events', 'userflows', 'funnel', 'impact', 'segmentation'
|
65
|
+
# @param can_fetch_content [Boolean] Flag indicating whether or not to return
|
66
|
+
# the full content for each applicable favorite. If false, only return summary
|
67
|
+
# content for favorites.
|
68
|
+
# @param tags [Array<String>] Tags that must be present on each favorite
|
69
|
+
# returned.
|
70
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
71
|
+
# will be added to the HTTP request.
|
72
|
+
#
|
73
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
74
|
+
#
|
75
|
+
def list_with_http_info(resource_group_name, resource_name, favorite_type:nil, source_type:nil, can_fetch_content:nil, tags:nil, custom_headers:nil)
|
76
|
+
list_async(resource_group_name, resource_name, favorite_type:favorite_type, source_type:source_type, can_fetch_content:can_fetch_content, tags:tags, custom_headers:custom_headers).value!
|
77
|
+
end
|
78
|
+
|
79
|
+
#
|
80
|
+
# Gets a list of favorites defined within an Application Insights component.
|
81
|
+
#
|
82
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
83
|
+
# is case insensitive.
|
84
|
+
# @param resource_name [String] The name of the Application Insights component
|
85
|
+
# resource.
|
86
|
+
# @param favorite_type [FavoriteType] The type of favorite. Value can be either
|
87
|
+
# shared or user. Possible values include: 'shared', 'user'
|
88
|
+
# @param source_type [FavoriteSourceType] Source type of favorite to return.
|
89
|
+
# When left out, the source type defaults to 'other' (not present in this
|
90
|
+
# enum). Possible values include: 'retention', 'notebook', 'sessions',
|
91
|
+
# 'events', 'userflows', 'funnel', 'impact', 'segmentation'
|
92
|
+
# @param can_fetch_content [Boolean] Flag indicating whether or not to return
|
93
|
+
# the full content for each applicable favorite. If false, only return summary
|
94
|
+
# content for favorites.
|
95
|
+
# @param tags [Array<String>] Tags that must be present on each favorite
|
96
|
+
# returned.
|
97
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
98
|
+
# to the HTTP request.
|
99
|
+
#
|
100
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
101
|
+
#
|
102
|
+
def list_async(resource_group_name, resource_name, favorite_type:nil, source_type:nil, can_fetch_content:nil, tags:nil, custom_headers:nil)
|
103
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
104
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
105
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
106
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
107
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
108
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
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_name is nil' if resource_name.nil?
|
112
|
+
|
113
|
+
|
114
|
+
request_headers = {}
|
115
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
116
|
+
|
117
|
+
# Set Headers
|
118
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
119
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
120
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites'
|
121
|
+
|
122
|
+
request_url = @base_url || @client.base_url
|
123
|
+
|
124
|
+
options = {
|
125
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
126
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'resourceName' => resource_name},
|
127
|
+
query_params: {'api-version' => @client.api_version,'favoriteType' => favorite_type,'sourceType' => source_type,'canFetchContent' => can_fetch_content,'tags' => tags.nil? ? nil : tags.join(',')},
|
128
|
+
headers: request_headers.merge(custom_headers || {}),
|
129
|
+
base_url: request_url
|
130
|
+
}
|
131
|
+
promise = @client.make_request_async(:get, path_template, options)
|
132
|
+
|
133
|
+
promise = promise.then do |result|
|
134
|
+
http_response = result.response
|
135
|
+
status_code = http_response.status
|
136
|
+
response_content = http_response.body
|
137
|
+
unless status_code == 200
|
138
|
+
error_model = JSON.load(response_content)
|
139
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
140
|
+
end
|
141
|
+
|
142
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
143
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
144
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
145
|
+
# Deserialize Response
|
146
|
+
if status_code == 200
|
147
|
+
begin
|
148
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
149
|
+
result_mapper = {
|
150
|
+
client_side_validation: true,
|
151
|
+
required: false,
|
152
|
+
serialized_name: 'parsed_response',
|
153
|
+
type: {
|
154
|
+
name: 'Sequence',
|
155
|
+
element: {
|
156
|
+
client_side_validation: true,
|
157
|
+
required: false,
|
158
|
+
serialized_name: 'ApplicationInsightsComponentFavoriteElementType',
|
159
|
+
type: {
|
160
|
+
name: 'Composite',
|
161
|
+
class_name: 'ApplicationInsightsComponentFavorite'
|
162
|
+
}
|
163
|
+
}
|
164
|
+
}
|
165
|
+
}
|
166
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
167
|
+
rescue Exception => e
|
168
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
result
|
173
|
+
end
|
174
|
+
|
175
|
+
promise.execute
|
176
|
+
end
|
177
|
+
|
178
|
+
#
|
179
|
+
# Get a single favorite by its FavoriteId, defined within an Application
|
180
|
+
# Insights component.
|
181
|
+
#
|
182
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
183
|
+
# is case insensitive.
|
184
|
+
# @param resource_name [String] The name of the Application Insights component
|
185
|
+
# resource.
|
186
|
+
# @param favorite_id [String] The Id of a specific favorite defined in the
|
187
|
+
# Application Insights component
|
188
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
189
|
+
# will be added to the HTTP request.
|
190
|
+
#
|
191
|
+
# @return [ApplicationInsightsComponentFavorite] operation results.
|
192
|
+
#
|
193
|
+
def get(resource_group_name, resource_name, favorite_id, custom_headers:nil)
|
194
|
+
response = get_async(resource_group_name, resource_name, favorite_id, custom_headers:custom_headers).value!
|
195
|
+
response.body unless response.nil?
|
196
|
+
end
|
197
|
+
|
198
|
+
#
|
199
|
+
# Get a single favorite by its FavoriteId, defined within an Application
|
200
|
+
# Insights component.
|
201
|
+
#
|
202
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
203
|
+
# is case insensitive.
|
204
|
+
# @param resource_name [String] The name of the Application Insights component
|
205
|
+
# resource.
|
206
|
+
# @param favorite_id [String] The Id of a specific favorite defined in the
|
207
|
+
# Application Insights component
|
208
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
209
|
+
# will be added to the HTTP request.
|
210
|
+
#
|
211
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
212
|
+
#
|
213
|
+
def get_with_http_info(resource_group_name, resource_name, favorite_id, custom_headers:nil)
|
214
|
+
get_async(resource_group_name, resource_name, favorite_id, custom_headers:custom_headers).value!
|
215
|
+
end
|
216
|
+
|
217
|
+
#
|
218
|
+
# Get a single favorite by its FavoriteId, defined within an Application
|
219
|
+
# Insights component.
|
220
|
+
#
|
221
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
222
|
+
# is case insensitive.
|
223
|
+
# @param resource_name [String] The name of the Application Insights component
|
224
|
+
# resource.
|
225
|
+
# @param favorite_id [String] The Id of a specific favorite defined in the
|
226
|
+
# Application Insights component
|
227
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
228
|
+
# to the HTTP request.
|
229
|
+
#
|
230
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
231
|
+
#
|
232
|
+
def get_async(resource_group_name, resource_name, favorite_id, custom_headers:nil)
|
233
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
234
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
235
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
236
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
237
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
238
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
239
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
240
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
241
|
+
fail ArgumentError, 'resource_name is nil' if resource_name.nil?
|
242
|
+
fail ArgumentError, 'favorite_id is nil' if favorite_id.nil?
|
243
|
+
|
244
|
+
|
245
|
+
request_headers = {}
|
246
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
247
|
+
|
248
|
+
# Set Headers
|
249
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
250
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
251
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}'
|
252
|
+
|
253
|
+
request_url = @base_url || @client.base_url
|
254
|
+
|
255
|
+
options = {
|
256
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
257
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'resourceName' => resource_name,'favoriteId' => favorite_id},
|
258
|
+
query_params: {'api-version' => @client.api_version},
|
259
|
+
headers: request_headers.merge(custom_headers || {}),
|
260
|
+
base_url: request_url
|
261
|
+
}
|
262
|
+
promise = @client.make_request_async(:get, path_template, options)
|
263
|
+
|
264
|
+
promise = promise.then do |result|
|
265
|
+
http_response = result.response
|
266
|
+
status_code = http_response.status
|
267
|
+
response_content = http_response.body
|
268
|
+
unless status_code == 200
|
269
|
+
error_model = JSON.load(response_content)
|
270
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
271
|
+
end
|
272
|
+
|
273
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
274
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
275
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
276
|
+
# Deserialize Response
|
277
|
+
if status_code == 200
|
278
|
+
begin
|
279
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
280
|
+
result_mapper = Azure::Monitor::Mgmt::V2015_05_01::Models::ApplicationInsightsComponentFavorite.mapper()
|
281
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
282
|
+
rescue Exception => e
|
283
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
284
|
+
end
|
285
|
+
end
|
286
|
+
|
287
|
+
result
|
288
|
+
end
|
289
|
+
|
290
|
+
promise.execute
|
291
|
+
end
|
292
|
+
|
293
|
+
#
|
294
|
+
# Adds a new favorites to an Application Insights component.
|
295
|
+
#
|
296
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
297
|
+
# is case insensitive.
|
298
|
+
# @param resource_name [String] The name of the Application Insights component
|
299
|
+
# resource.
|
300
|
+
# @param favorite_id [String] The Id of a specific favorite defined in the
|
301
|
+
# Application Insights component
|
302
|
+
# @param favorite_properties [ApplicationInsightsComponentFavorite] Properties
|
303
|
+
# that need to be specified to create a new favorite and add it to an
|
304
|
+
# Application Insights component.
|
305
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
306
|
+
# will be added to the HTTP request.
|
307
|
+
#
|
308
|
+
# @return [ApplicationInsightsComponentFavorite] operation results.
|
309
|
+
#
|
310
|
+
def add(resource_group_name, resource_name, favorite_id, favorite_properties, custom_headers:nil)
|
311
|
+
response = add_async(resource_group_name, resource_name, favorite_id, favorite_properties, custom_headers:custom_headers).value!
|
312
|
+
response.body unless response.nil?
|
313
|
+
end
|
314
|
+
|
315
|
+
#
|
316
|
+
# Adds a new favorites to an Application Insights component.
|
317
|
+
#
|
318
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
319
|
+
# is case insensitive.
|
320
|
+
# @param resource_name [String] The name of the Application Insights component
|
321
|
+
# resource.
|
322
|
+
# @param favorite_id [String] The Id of a specific favorite defined in the
|
323
|
+
# Application Insights component
|
324
|
+
# @param favorite_properties [ApplicationInsightsComponentFavorite] Properties
|
325
|
+
# that need to be specified to create a new favorite and add it to an
|
326
|
+
# Application Insights component.
|
327
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
328
|
+
# will be added to the HTTP request.
|
329
|
+
#
|
330
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
331
|
+
#
|
332
|
+
def add_with_http_info(resource_group_name, resource_name, favorite_id, favorite_properties, custom_headers:nil)
|
333
|
+
add_async(resource_group_name, resource_name, favorite_id, favorite_properties, custom_headers:custom_headers).value!
|
334
|
+
end
|
335
|
+
|
336
|
+
#
|
337
|
+
# Adds a new favorites to an Application Insights component.
|
338
|
+
#
|
339
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
340
|
+
# is case insensitive.
|
341
|
+
# @param resource_name [String] The name of the Application Insights component
|
342
|
+
# resource.
|
343
|
+
# @param favorite_id [String] The Id of a specific favorite defined in the
|
344
|
+
# Application Insights component
|
345
|
+
# @param favorite_properties [ApplicationInsightsComponentFavorite] Properties
|
346
|
+
# that need to be specified to create a new favorite and add it to an
|
347
|
+
# Application Insights component.
|
348
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
349
|
+
# to the HTTP request.
|
350
|
+
#
|
351
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
352
|
+
#
|
353
|
+
def add_async(resource_group_name, resource_name, favorite_id, favorite_properties, custom_headers:nil)
|
354
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
355
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
356
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
357
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
358
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
359
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
360
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
361
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
362
|
+
fail ArgumentError, 'resource_name is nil' if resource_name.nil?
|
363
|
+
fail ArgumentError, 'favorite_id is nil' if favorite_id.nil?
|
364
|
+
fail ArgumentError, 'favorite_properties is nil' if favorite_properties.nil?
|
365
|
+
|
366
|
+
|
367
|
+
request_headers = {}
|
368
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
369
|
+
|
370
|
+
# Set Headers
|
371
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
372
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
373
|
+
|
374
|
+
# Serialize Request
|
375
|
+
request_mapper = Azure::Monitor::Mgmt::V2015_05_01::Models::ApplicationInsightsComponentFavorite.mapper()
|
376
|
+
request_content = @client.serialize(request_mapper, favorite_properties)
|
377
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
378
|
+
|
379
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}'
|
380
|
+
|
381
|
+
request_url = @base_url || @client.base_url
|
382
|
+
|
383
|
+
options = {
|
384
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
385
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'resourceName' => resource_name,'favoriteId' => favorite_id},
|
386
|
+
query_params: {'api-version' => @client.api_version},
|
387
|
+
body: request_content,
|
388
|
+
headers: request_headers.merge(custom_headers || {}),
|
389
|
+
base_url: request_url
|
390
|
+
}
|
391
|
+
promise = @client.make_request_async(:put, path_template, options)
|
392
|
+
|
393
|
+
promise = promise.then do |result|
|
394
|
+
http_response = result.response
|
395
|
+
status_code = http_response.status
|
396
|
+
response_content = http_response.body
|
397
|
+
unless status_code == 200
|
398
|
+
error_model = JSON.load(response_content)
|
399
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
400
|
+
end
|
401
|
+
|
402
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
403
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
404
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
405
|
+
# Deserialize Response
|
406
|
+
if status_code == 200
|
407
|
+
begin
|
408
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
409
|
+
result_mapper = Azure::Monitor::Mgmt::V2015_05_01::Models::ApplicationInsightsComponentFavorite.mapper()
|
410
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
411
|
+
rescue Exception => e
|
412
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
413
|
+
end
|
414
|
+
end
|
415
|
+
|
416
|
+
result
|
417
|
+
end
|
418
|
+
|
419
|
+
promise.execute
|
420
|
+
end
|
421
|
+
|
422
|
+
#
|
423
|
+
# Updates a favorite that has already been added to an Application Insights
|
424
|
+
# component.
|
425
|
+
#
|
426
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
427
|
+
# is case insensitive.
|
428
|
+
# @param resource_name [String] The name of the Application Insights component
|
429
|
+
# resource.
|
430
|
+
# @param favorite_id [String] The Id of a specific favorite defined in the
|
431
|
+
# Application Insights component
|
432
|
+
# @param favorite_properties [ApplicationInsightsComponentFavorite] Properties
|
433
|
+
# that need to be specified to update the existing favorite.
|
434
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
435
|
+
# will be added to the HTTP request.
|
436
|
+
#
|
437
|
+
# @return [ApplicationInsightsComponentFavorite] operation results.
|
438
|
+
#
|
439
|
+
def update(resource_group_name, resource_name, favorite_id, favorite_properties, custom_headers:nil)
|
440
|
+
response = update_async(resource_group_name, resource_name, favorite_id, favorite_properties, custom_headers:custom_headers).value!
|
441
|
+
response.body unless response.nil?
|
442
|
+
end
|
443
|
+
|
444
|
+
#
|
445
|
+
# Updates a favorite that has already been added to an Application Insights
|
446
|
+
# component.
|
447
|
+
#
|
448
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
449
|
+
# is case insensitive.
|
450
|
+
# @param resource_name [String] The name of the Application Insights component
|
451
|
+
# resource.
|
452
|
+
# @param favorite_id [String] The Id of a specific favorite defined in the
|
453
|
+
# Application Insights component
|
454
|
+
# @param favorite_properties [ApplicationInsightsComponentFavorite] Properties
|
455
|
+
# that need to be specified to update the existing favorite.
|
456
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
457
|
+
# will be added to the HTTP request.
|
458
|
+
#
|
459
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
460
|
+
#
|
461
|
+
def update_with_http_info(resource_group_name, resource_name, favorite_id, favorite_properties, custom_headers:nil)
|
462
|
+
update_async(resource_group_name, resource_name, favorite_id, favorite_properties, custom_headers:custom_headers).value!
|
463
|
+
end
|
464
|
+
|
465
|
+
#
|
466
|
+
# Updates a favorite that has already been added to an Application Insights
|
467
|
+
# component.
|
468
|
+
#
|
469
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
470
|
+
# is case insensitive.
|
471
|
+
# @param resource_name [String] The name of the Application Insights component
|
472
|
+
# resource.
|
473
|
+
# @param favorite_id [String] The Id of a specific favorite defined in the
|
474
|
+
# Application Insights component
|
475
|
+
# @param favorite_properties [ApplicationInsightsComponentFavorite] Properties
|
476
|
+
# that need to be specified to update the existing favorite.
|
477
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
478
|
+
# to the HTTP request.
|
479
|
+
#
|
480
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
481
|
+
#
|
482
|
+
def update_async(resource_group_name, resource_name, favorite_id, favorite_properties, custom_headers:nil)
|
483
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
484
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
485
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
486
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
487
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
488
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
489
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
490
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
491
|
+
fail ArgumentError, 'resource_name is nil' if resource_name.nil?
|
492
|
+
fail ArgumentError, 'favorite_id is nil' if favorite_id.nil?
|
493
|
+
fail ArgumentError, 'favorite_properties is nil' if favorite_properties.nil?
|
494
|
+
|
495
|
+
|
496
|
+
request_headers = {}
|
497
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
498
|
+
|
499
|
+
# Set Headers
|
500
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
501
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
502
|
+
|
503
|
+
# Serialize Request
|
504
|
+
request_mapper = Azure::Monitor::Mgmt::V2015_05_01::Models::ApplicationInsightsComponentFavorite.mapper()
|
505
|
+
request_content = @client.serialize(request_mapper, favorite_properties)
|
506
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
507
|
+
|
508
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}'
|
509
|
+
|
510
|
+
request_url = @base_url || @client.base_url
|
511
|
+
|
512
|
+
options = {
|
513
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
514
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'resourceName' => resource_name,'favoriteId' => favorite_id},
|
515
|
+
query_params: {'api-version' => @client.api_version},
|
516
|
+
body: request_content,
|
517
|
+
headers: request_headers.merge(custom_headers || {}),
|
518
|
+
base_url: request_url
|
519
|
+
}
|
520
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
521
|
+
|
522
|
+
promise = promise.then do |result|
|
523
|
+
http_response = result.response
|
524
|
+
status_code = http_response.status
|
525
|
+
response_content = http_response.body
|
526
|
+
unless status_code == 200
|
527
|
+
error_model = JSON.load(response_content)
|
528
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
529
|
+
end
|
530
|
+
|
531
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
532
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
533
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
534
|
+
# Deserialize Response
|
535
|
+
if status_code == 200
|
536
|
+
begin
|
537
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
538
|
+
result_mapper = Azure::Monitor::Mgmt::V2015_05_01::Models::ApplicationInsightsComponentFavorite.mapper()
|
539
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
540
|
+
rescue Exception => e
|
541
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
542
|
+
end
|
543
|
+
end
|
544
|
+
|
545
|
+
result
|
546
|
+
end
|
547
|
+
|
548
|
+
promise.execute
|
549
|
+
end
|
550
|
+
|
551
|
+
#
|
552
|
+
# Remove a favorite that is associated to an Application Insights component.
|
553
|
+
#
|
554
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
555
|
+
# is case insensitive.
|
556
|
+
# @param resource_name [String] The name of the Application Insights component
|
557
|
+
# resource.
|
558
|
+
# @param favorite_id [String] The Id of a specific favorite defined in the
|
559
|
+
# Application Insights component
|
560
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
561
|
+
# will be added to the HTTP request.
|
562
|
+
#
|
563
|
+
#
|
564
|
+
def delete(resource_group_name, resource_name, favorite_id, custom_headers:nil)
|
565
|
+
response = delete_async(resource_group_name, resource_name, favorite_id, custom_headers:custom_headers).value!
|
566
|
+
nil
|
567
|
+
end
|
568
|
+
|
569
|
+
#
|
570
|
+
# Remove a favorite that is associated to an Application Insights component.
|
571
|
+
#
|
572
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
573
|
+
# is case insensitive.
|
574
|
+
# @param resource_name [String] The name of the Application Insights component
|
575
|
+
# resource.
|
576
|
+
# @param favorite_id [String] The Id of a specific favorite defined in the
|
577
|
+
# Application Insights component
|
578
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
579
|
+
# will be added to the HTTP request.
|
580
|
+
#
|
581
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
582
|
+
#
|
583
|
+
def delete_with_http_info(resource_group_name, resource_name, favorite_id, custom_headers:nil)
|
584
|
+
delete_async(resource_group_name, resource_name, favorite_id, custom_headers:custom_headers).value!
|
585
|
+
end
|
586
|
+
|
587
|
+
#
|
588
|
+
# Remove a favorite that is associated to an Application Insights component.
|
589
|
+
#
|
590
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
591
|
+
# is case insensitive.
|
592
|
+
# @param resource_name [String] The name of the Application Insights component
|
593
|
+
# resource.
|
594
|
+
# @param favorite_id [String] The Id of a specific favorite defined in the
|
595
|
+
# Application Insights component
|
596
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
597
|
+
# to the HTTP request.
|
598
|
+
#
|
599
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
600
|
+
#
|
601
|
+
def delete_async(resource_group_name, resource_name, favorite_id, custom_headers:nil)
|
602
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
603
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
604
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
605
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
606
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
607
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
608
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
609
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
610
|
+
fail ArgumentError, 'resource_name is nil' if resource_name.nil?
|
611
|
+
fail ArgumentError, 'favorite_id is nil' if favorite_id.nil?
|
612
|
+
|
613
|
+
|
614
|
+
request_headers = {}
|
615
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
616
|
+
|
617
|
+
# Set Headers
|
618
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
619
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
620
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}'
|
621
|
+
|
622
|
+
request_url = @base_url || @client.base_url
|
623
|
+
|
624
|
+
options = {
|
625
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
626
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'resourceName' => resource_name,'favoriteId' => favorite_id},
|
627
|
+
query_params: {'api-version' => @client.api_version},
|
628
|
+
headers: request_headers.merge(custom_headers || {}),
|
629
|
+
base_url: request_url
|
630
|
+
}
|
631
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
632
|
+
|
633
|
+
promise = promise.then do |result|
|
634
|
+
http_response = result.response
|
635
|
+
status_code = http_response.status
|
636
|
+
response_content = http_response.body
|
637
|
+
unless status_code == 200
|
638
|
+
error_model = JSON.load(response_content)
|
639
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
640
|
+
end
|
641
|
+
|
642
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
643
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
644
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
645
|
+
|
646
|
+
result
|
647
|
+
end
|
648
|
+
|
649
|
+
promise.execute
|
650
|
+
end
|
651
|
+
|
652
|
+
end
|
653
|
+
end
|