azure_mgmt_monitor 0.17.2 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-04-01/generated/azure_mgmt_monitor.rb +11 -8
- data/lib/2015-04-01/generated/azure_mgmt_monitor/activity_logs.rb +28 -19
- 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/metric_trigger.rb +35 -1
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/recurrence.rb +9 -9
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/recurrence_frequency.rb +22 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/recurrent_schedule.rb +1 -1
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/scale_rule_metric_dimension.rb +80 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/scale_rule_metric_dimension_operation_type.rb +16 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/time_aggregation_type.rb +1 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/time_window.rb +1 -1
- 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 +14 -14
- 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 +33 -21
- 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/monitor_management_client.rb +5 -5
- data/lib/2016-09-01/generated/azure_mgmt_monitor/metrics.rb +2 -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/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/monitor_management_client.rb +1 -1
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor.rb +16 -11
- 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/diagnostic_settings_resource.rb +19 -5
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/response.rb +1 -1
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/subscription_diagnostic_settings_resource.rb +150 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/subscription_diagnostic_settings_resource_collection.rb +57 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/subscription_log_settings.rb +59 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/subscription_proxy_only_resource.rb +82 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +10 -5
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/subscription_diagnostic_settings_operations.rb +405 -0
- 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/metric_baseline.rb +4 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/baseline_response.rb +1 -1
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/calculate_baseline_response.rb +1 -1
- 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 +32 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/metric_namespaces.rb +120 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/models/metric_namespace.rb +81 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/models/metric_namespace_collection.rb +55 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/models/metric_namespace_name.rb +46 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/module_definition.rb +9 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +128 -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/metric.rb +2 -1
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_definition.rb +3 -2
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_value.rb +3 -4
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/response.rb +1 -1
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/unit.rb +4 -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 +25 -17
- 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 +22 -10
- 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/dynamic_metric_criteria.rb +175 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/dynamic_threshold_failing_periods.rb +61 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/dynamic_threshold_operator.rb +17 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/dynamic_threshold_sensitivity.rb +17 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_action.rb +3 -3
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_criteria.rb +2 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_multiple_resource_multiple_metric_criteria.rb +90 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_resource.rb +27 -1
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_resource_patch.rb +27 -1
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_criteria.rb +56 -31
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_dimension.rb +2 -1
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/multi_metric_criteria.rb +142 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/operator.rb +20 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/webtest_location_availability_criteria.rb +98 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +5 -5
- data/lib/2018-04-16/generated/azure_mgmt_monitor.rb +8 -5
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/action.rb +1 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/alerting_action.rb +2 -2
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/az_ns_action_group.rb +1 -1
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/criteria.rb +66 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/dimension.rb +79 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/log_search_rule_resource.rb +4 -3
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/log_to_metric_action.rb +71 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/source.rb +3 -2
- 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 +44 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/guest_diagnostics_settings.rb +614 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/guest_diagnostics_settings_association.rb +634 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/data_source.rb +80 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/data_source_configuration.rb +98 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/etw_event_configuration.rb +69 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/etw_provider_configuration.rb +67 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/event_log_configuration.rb +58 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_association_list.rb +68 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_association_resource.rb +98 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_association_resource_patch.rb +66 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_list.rb +68 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_patch_resource.rb +98 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_resource.rb +130 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/performance_counter_configuration.rb +69 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/resource.rb +110 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/sink_configuration.rb +48 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/module_definition.rb +9 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +136 -0
- 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 +54 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/action_groups.rb +707 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/metric_baseline.rb +294 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/action_group_list.rb +67 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb +68 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +326 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/arm_role_receiver.rb +58 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb +102 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb +58 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/azure_function_receiver.rb +80 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/baseline.rb +86 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/baseline_metadata_value.rb +58 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/baseline_response.rb +171 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/calculate_baseline_response.rb +85 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/email_receiver.rb +72 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/enable_request.rb +46 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb +94 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/localizable_string.rb +57 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/logic_app_receiver.rb +69 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/receiver_status.rb +17 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/resource.rb +110 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/result_type.rb +16 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/sensitivity.rb +17 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/sms_receiver.rb +83 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/time_series_information.rb +93 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/voice_receiver.rb +69 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/webhook_receiver.rb +58 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/module_definition.rb +9 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/monitor_management_client.rb +135 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor.rb +36 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/data_container.rb +47 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/data_status.rb +16 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/error.rb +57 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/onboarding_status.rb +17 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/proxy_resource.rb +71 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/response_with_error.rb +47 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/vminsights_onboarding_status.rb +123 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/workspace_info.rb +69 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/module_definition.rb +9 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +128 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/vminsights.rb +120 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor.rb +54 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/action_groups.rb +707 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/baselines.rb +186 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/action_group_list.rb +67 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb +68 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +326 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/arm_role_receiver.rb +69 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb +113 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb +58 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/azure_function_receiver.rb +91 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/baseline_metadata.rb +57 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/baseline_sensitivity.rb +17 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/email_receiver.rb +83 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/enable_request.rb +46 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb +94 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/logic_app_receiver.rb +80 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/metric_baselines_response.rb +55 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/metric_single_dimension.rb +57 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/receiver_status.rb +17 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/resource.rb +110 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/result_type.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/single_baseline.rb +85 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/single_metric_baseline.rb +129 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/sms_receiver.rb +83 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/time_series_baseline.rb +127 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/voice_receiver.rb +69 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/webhook_receiver.rb +69 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/module_definition.rb +9 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +135 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor.rb +45 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/action_groups.rb +707 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/action_group_list.rb +67 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb +68 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +326 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/arm_role_receiver.rb +69 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb +113 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb +58 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/azure_function_receiver.rb +91 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/email_receiver.rb +83 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/enable_request.rb +46 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb +94 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/logic_app_receiver.rb +80 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/receiver_status.rb +17 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/resource.rb +110 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/sms_receiver.rb +83 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/voice_receiver.rb +69 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/webhook_receiver.rb +115 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/module_definition.rb +9 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/monitor_management_client.rb +131 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor.rb +49 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/azure_monitor_private_link_scope.rb +123 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/azure_monitor_private_link_scope_list_result.rb +102 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/error_additional_info.rb +59 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/error_response_common.rb +93 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/operation_status.rb +102 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_endpoint_connection.rb +100 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_endpoint_connection_list_result.rb +100 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_endpoint_property.rb +46 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_link_resource.rb +95 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_link_resource_list_result.rb +100 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_link_scopes_resource.rb +101 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_link_service_connection_state_property.rb +71 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/proxy_resource.rb +71 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/scoped_resource.rb +85 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/scoped_resource_list_result.rb +100 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/tags_resource.rb +55 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/module_definition.rb +9 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +148 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/private_endpoint_connections.rb +641 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/private_link_resources.rb +346 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/private_link_scope_operation_status.rb +122 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/private_link_scoped_resources.rb +638 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/private_link_scopes.rb +889 -0
- data/lib/azure_mgmt_monitor.rb +16 -5
- data/lib/profiles/latest/modules/monitor_profile_module.rb +575 -159
- data/lib/profiles/v2019_03_01_hybrid/modules/monitor_profile_module.rb +327 -0
- data/lib/profiles/v2019_03_01_hybrid/monitor_module_definition.rb +8 -0
- data/lib/profiles/v2019_03_01_hybrid/monitor_v2019_03_01_hybrid_profile_client.rb +40 -0
- data/lib/version.rb +1 -1
- metadata +277 -5
@@ -0,0 +1,505 @@
|
|
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 Annotations
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the Annotations 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 the list of annotations for a component for given time range
|
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 start [String] The start time to query from for annotations, cannot be
|
32
|
+
# older than 90 days from current date.
|
33
|
+
# @param end_parameter [String] The end time to query for annotations.
|
34
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
35
|
+
# will be added to the HTTP request.
|
36
|
+
#
|
37
|
+
# @return [AnnotationsListResult] operation results.
|
38
|
+
#
|
39
|
+
def list(resource_group_name, resource_name, start, end_parameter, custom_headers:nil)
|
40
|
+
response = list_async(resource_group_name, resource_name, start, end_parameter, custom_headers:custom_headers).value!
|
41
|
+
response.body unless response.nil?
|
42
|
+
end
|
43
|
+
|
44
|
+
#
|
45
|
+
# Gets the list of annotations for a component for given time range
|
46
|
+
#
|
47
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
48
|
+
# is case insensitive.
|
49
|
+
# @param resource_name [String] The name of the Application Insights component
|
50
|
+
# resource.
|
51
|
+
# @param start [String] The start time to query from for annotations, cannot be
|
52
|
+
# older than 90 days from current date.
|
53
|
+
# @param end_parameter [String] The end time to query for annotations.
|
54
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
55
|
+
# will be added to the HTTP request.
|
56
|
+
#
|
57
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
58
|
+
#
|
59
|
+
def list_with_http_info(resource_group_name, resource_name, start, end_parameter, custom_headers:nil)
|
60
|
+
list_async(resource_group_name, resource_name, start, end_parameter, custom_headers:custom_headers).value!
|
61
|
+
end
|
62
|
+
|
63
|
+
#
|
64
|
+
# Gets the list of annotations for a component for given time range
|
65
|
+
#
|
66
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
67
|
+
# is case insensitive.
|
68
|
+
# @param resource_name [String] The name of the Application Insights component
|
69
|
+
# resource.
|
70
|
+
# @param start [String] The start time to query from for annotations, cannot be
|
71
|
+
# older than 90 days from current date.
|
72
|
+
# @param end_parameter [String] The end time to query for annotations.
|
73
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
74
|
+
# to the HTTP request.
|
75
|
+
#
|
76
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
77
|
+
#
|
78
|
+
def list_async(resource_group_name, resource_name, start, end_parameter, custom_headers:nil)
|
79
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
80
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
81
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
82
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
83
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
84
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
85
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
86
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
87
|
+
fail ArgumentError, 'resource_name is nil' if resource_name.nil?
|
88
|
+
fail ArgumentError, 'start is nil' if start.nil?
|
89
|
+
fail ArgumentError, 'end_parameter is nil' if end_parameter.nil?
|
90
|
+
|
91
|
+
|
92
|
+
request_headers = {}
|
93
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
94
|
+
|
95
|
+
# Set Headers
|
96
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
97
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
98
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations'
|
99
|
+
|
100
|
+
request_url = @base_url || @client.base_url
|
101
|
+
|
102
|
+
options = {
|
103
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
104
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'resourceName' => resource_name},
|
105
|
+
query_params: {'api-version' => @client.api_version,'start' => start,'end' => end_parameter},
|
106
|
+
headers: request_headers.merge(custom_headers || {}),
|
107
|
+
base_url: request_url
|
108
|
+
}
|
109
|
+
promise = @client.make_request_async(:get, path_template, options)
|
110
|
+
|
111
|
+
promise = promise.then do |result|
|
112
|
+
http_response = result.response
|
113
|
+
status_code = http_response.status
|
114
|
+
response_content = http_response.body
|
115
|
+
unless status_code == 200
|
116
|
+
error_model = JSON.load(response_content)
|
117
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
118
|
+
end
|
119
|
+
|
120
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
121
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
122
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
123
|
+
# Deserialize Response
|
124
|
+
if status_code == 200
|
125
|
+
begin
|
126
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
127
|
+
result_mapper = Azure::Monitor::Mgmt::V2015_05_01::Models::AnnotationsListResult.mapper()
|
128
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
129
|
+
rescue Exception => e
|
130
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
result
|
135
|
+
end
|
136
|
+
|
137
|
+
promise.execute
|
138
|
+
end
|
139
|
+
|
140
|
+
#
|
141
|
+
# Create an Annotation of an Application Insights component.
|
142
|
+
#
|
143
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
144
|
+
# is case insensitive.
|
145
|
+
# @param resource_name [String] The name of the Application Insights component
|
146
|
+
# resource.
|
147
|
+
# @param annotation_properties [Annotation] Properties that need to be
|
148
|
+
# specified to create an annotation of a Application Insights component.
|
149
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
150
|
+
# will be added to the HTTP request.
|
151
|
+
#
|
152
|
+
# @return [Array] operation results.
|
153
|
+
#
|
154
|
+
def create(resource_group_name, resource_name, annotation_properties, custom_headers:nil)
|
155
|
+
response = create_async(resource_group_name, resource_name, annotation_properties, custom_headers:custom_headers).value!
|
156
|
+
response.body unless response.nil?
|
157
|
+
end
|
158
|
+
|
159
|
+
#
|
160
|
+
# Create an Annotation of an Application Insights component.
|
161
|
+
#
|
162
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
163
|
+
# is case insensitive.
|
164
|
+
# @param resource_name [String] The name of the Application Insights component
|
165
|
+
# resource.
|
166
|
+
# @param annotation_properties [Annotation] Properties that need to be
|
167
|
+
# specified to create an annotation of a Application Insights component.
|
168
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
169
|
+
# will be added to the HTTP request.
|
170
|
+
#
|
171
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
172
|
+
#
|
173
|
+
def create_with_http_info(resource_group_name, resource_name, annotation_properties, custom_headers:nil)
|
174
|
+
create_async(resource_group_name, resource_name, annotation_properties, custom_headers:custom_headers).value!
|
175
|
+
end
|
176
|
+
|
177
|
+
#
|
178
|
+
# Create an Annotation of an Application Insights component.
|
179
|
+
#
|
180
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
181
|
+
# is case insensitive.
|
182
|
+
# @param resource_name [String] The name of the Application Insights component
|
183
|
+
# resource.
|
184
|
+
# @param annotation_properties [Annotation] Properties that need to be
|
185
|
+
# specified to create an annotation of a Application Insights component.
|
186
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
187
|
+
# to the HTTP request.
|
188
|
+
#
|
189
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
190
|
+
#
|
191
|
+
def create_async(resource_group_name, resource_name, annotation_properties, custom_headers:nil)
|
192
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
193
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
194
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
195
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
196
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
197
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
198
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
199
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
200
|
+
fail ArgumentError, 'resource_name is nil' if resource_name.nil?
|
201
|
+
fail ArgumentError, 'annotation_properties is nil' if annotation_properties.nil?
|
202
|
+
|
203
|
+
|
204
|
+
request_headers = {}
|
205
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
206
|
+
|
207
|
+
# Set Headers
|
208
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
209
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
210
|
+
|
211
|
+
# Serialize Request
|
212
|
+
request_mapper = Azure::Monitor::Mgmt::V2015_05_01::Models::Annotation.mapper()
|
213
|
+
request_content = @client.serialize(request_mapper, annotation_properties)
|
214
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
215
|
+
|
216
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations'
|
217
|
+
|
218
|
+
request_url = @base_url || @client.base_url
|
219
|
+
|
220
|
+
options = {
|
221
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
222
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'resourceName' => resource_name},
|
223
|
+
query_params: {'api-version' => @client.api_version},
|
224
|
+
body: request_content,
|
225
|
+
headers: request_headers.merge(custom_headers || {}),
|
226
|
+
base_url: request_url
|
227
|
+
}
|
228
|
+
promise = @client.make_request_async(:put, path_template, options)
|
229
|
+
|
230
|
+
promise = promise.then do |result|
|
231
|
+
http_response = result.response
|
232
|
+
status_code = http_response.status
|
233
|
+
response_content = http_response.body
|
234
|
+
unless status_code == 200
|
235
|
+
error_model = JSON.load(response_content)
|
236
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
237
|
+
end
|
238
|
+
|
239
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
240
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
241
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
242
|
+
# Deserialize Response
|
243
|
+
if status_code == 200
|
244
|
+
begin
|
245
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
246
|
+
result_mapper = {
|
247
|
+
client_side_validation: true,
|
248
|
+
required: false,
|
249
|
+
serialized_name: 'parsed_response',
|
250
|
+
type: {
|
251
|
+
name: 'Sequence',
|
252
|
+
element: {
|
253
|
+
client_side_validation: true,
|
254
|
+
required: false,
|
255
|
+
serialized_name: 'AnnotationElementType',
|
256
|
+
type: {
|
257
|
+
name: 'Composite',
|
258
|
+
class_name: 'Annotation'
|
259
|
+
}
|
260
|
+
}
|
261
|
+
}
|
262
|
+
}
|
263
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
264
|
+
rescue Exception => e
|
265
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
266
|
+
end
|
267
|
+
end
|
268
|
+
|
269
|
+
result
|
270
|
+
end
|
271
|
+
|
272
|
+
promise.execute
|
273
|
+
end
|
274
|
+
|
275
|
+
#
|
276
|
+
# Delete an Annotation of an Application Insights component.
|
277
|
+
#
|
278
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
279
|
+
# is case insensitive.
|
280
|
+
# @param resource_name [String] The name of the Application Insights component
|
281
|
+
# resource.
|
282
|
+
# @param annotation_id [String] The unique annotation ID. This is unique within
|
283
|
+
# a Application Insights component.
|
284
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
285
|
+
# will be added to the HTTP request.
|
286
|
+
#
|
287
|
+
#
|
288
|
+
def delete(resource_group_name, resource_name, annotation_id, custom_headers:nil)
|
289
|
+
response = delete_async(resource_group_name, resource_name, annotation_id, custom_headers:custom_headers).value!
|
290
|
+
nil
|
291
|
+
end
|
292
|
+
|
293
|
+
#
|
294
|
+
# Delete an Annotation of 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 annotation_id [String] The unique annotation ID. This is unique within
|
301
|
+
# a Application Insights component.
|
302
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
303
|
+
# will be added to the HTTP request.
|
304
|
+
#
|
305
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
306
|
+
#
|
307
|
+
def delete_with_http_info(resource_group_name, resource_name, annotation_id, custom_headers:nil)
|
308
|
+
delete_async(resource_group_name, resource_name, annotation_id, custom_headers:custom_headers).value!
|
309
|
+
end
|
310
|
+
|
311
|
+
#
|
312
|
+
# Delete an Annotation of an Application Insights component.
|
313
|
+
#
|
314
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
315
|
+
# is case insensitive.
|
316
|
+
# @param resource_name [String] The name of the Application Insights component
|
317
|
+
# resource.
|
318
|
+
# @param annotation_id [String] The unique annotation ID. This is unique within
|
319
|
+
# a Application Insights component.
|
320
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
321
|
+
# to the HTTP request.
|
322
|
+
#
|
323
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
324
|
+
#
|
325
|
+
def delete_async(resource_group_name, resource_name, annotation_id, custom_headers:nil)
|
326
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
327
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
328
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
329
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
330
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
331
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
332
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
333
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
334
|
+
fail ArgumentError, 'resource_name is nil' if resource_name.nil?
|
335
|
+
fail ArgumentError, 'annotation_id is nil' if annotation_id.nil?
|
336
|
+
|
337
|
+
|
338
|
+
request_headers = {}
|
339
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
340
|
+
|
341
|
+
# Set Headers
|
342
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
343
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
344
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations/{annotationId}'
|
345
|
+
|
346
|
+
request_url = @base_url || @client.base_url
|
347
|
+
|
348
|
+
options = {
|
349
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
350
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'resourceName' => resource_name,'annotationId' => annotation_id},
|
351
|
+
query_params: {'api-version' => @client.api_version},
|
352
|
+
headers: request_headers.merge(custom_headers || {}),
|
353
|
+
base_url: request_url
|
354
|
+
}
|
355
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
356
|
+
|
357
|
+
promise = promise.then do |result|
|
358
|
+
http_response = result.response
|
359
|
+
status_code = http_response.status
|
360
|
+
response_content = http_response.body
|
361
|
+
unless status_code == 200
|
362
|
+
error_model = JSON.load(response_content)
|
363
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
364
|
+
end
|
365
|
+
|
366
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
367
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
368
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
369
|
+
|
370
|
+
result
|
371
|
+
end
|
372
|
+
|
373
|
+
promise.execute
|
374
|
+
end
|
375
|
+
|
376
|
+
#
|
377
|
+
# Get the annotation for given id.
|
378
|
+
#
|
379
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
380
|
+
# is case insensitive.
|
381
|
+
# @param resource_name [String] The name of the Application Insights component
|
382
|
+
# resource.
|
383
|
+
# @param annotation_id [String] The unique annotation ID. This is unique within
|
384
|
+
# a Application Insights component.
|
385
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
386
|
+
# will be added to the HTTP request.
|
387
|
+
#
|
388
|
+
# @return [Array] operation results.
|
389
|
+
#
|
390
|
+
def get(resource_group_name, resource_name, annotation_id, custom_headers:nil)
|
391
|
+
response = get_async(resource_group_name, resource_name, annotation_id, custom_headers:custom_headers).value!
|
392
|
+
response.body unless response.nil?
|
393
|
+
end
|
394
|
+
|
395
|
+
#
|
396
|
+
# Get the annotation for given id.
|
397
|
+
#
|
398
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
399
|
+
# is case insensitive.
|
400
|
+
# @param resource_name [String] The name of the Application Insights component
|
401
|
+
# resource.
|
402
|
+
# @param annotation_id [String] The unique annotation ID. This is unique within
|
403
|
+
# a Application Insights component.
|
404
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
405
|
+
# will be added to the HTTP request.
|
406
|
+
#
|
407
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
408
|
+
#
|
409
|
+
def get_with_http_info(resource_group_name, resource_name, annotation_id, custom_headers:nil)
|
410
|
+
get_async(resource_group_name, resource_name, annotation_id, custom_headers:custom_headers).value!
|
411
|
+
end
|
412
|
+
|
413
|
+
#
|
414
|
+
# Get the annotation for given id.
|
415
|
+
#
|
416
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
417
|
+
# is case insensitive.
|
418
|
+
# @param resource_name [String] The name of the Application Insights component
|
419
|
+
# resource.
|
420
|
+
# @param annotation_id [String] The unique annotation ID. This is unique within
|
421
|
+
# a Application Insights component.
|
422
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
423
|
+
# to the HTTP request.
|
424
|
+
#
|
425
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
426
|
+
#
|
427
|
+
def get_async(resource_group_name, resource_name, annotation_id, custom_headers:nil)
|
428
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
429
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
430
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
431
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
432
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
433
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
434
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
435
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
436
|
+
fail ArgumentError, 'resource_name is nil' if resource_name.nil?
|
437
|
+
fail ArgumentError, 'annotation_id is nil' if annotation_id.nil?
|
438
|
+
|
439
|
+
|
440
|
+
request_headers = {}
|
441
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
442
|
+
|
443
|
+
# Set Headers
|
444
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
445
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
446
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations/{annotationId}'
|
447
|
+
|
448
|
+
request_url = @base_url || @client.base_url
|
449
|
+
|
450
|
+
options = {
|
451
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
452
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'resourceName' => resource_name,'annotationId' => annotation_id},
|
453
|
+
query_params: {'api-version' => @client.api_version},
|
454
|
+
headers: request_headers.merge(custom_headers || {}),
|
455
|
+
base_url: request_url
|
456
|
+
}
|
457
|
+
promise = @client.make_request_async(:get, path_template, options)
|
458
|
+
|
459
|
+
promise = promise.then do |result|
|
460
|
+
http_response = result.response
|
461
|
+
status_code = http_response.status
|
462
|
+
response_content = http_response.body
|
463
|
+
unless status_code == 200
|
464
|
+
error_model = JSON.load(response_content)
|
465
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
466
|
+
end
|
467
|
+
|
468
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
469
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
470
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
471
|
+
# Deserialize Response
|
472
|
+
if status_code == 200
|
473
|
+
begin
|
474
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
475
|
+
result_mapper = {
|
476
|
+
client_side_validation: true,
|
477
|
+
required: false,
|
478
|
+
serialized_name: 'parsed_response',
|
479
|
+
type: {
|
480
|
+
name: 'Sequence',
|
481
|
+
element: {
|
482
|
+
client_side_validation: true,
|
483
|
+
required: false,
|
484
|
+
serialized_name: 'AnnotationElementType',
|
485
|
+
type: {
|
486
|
+
name: 'Composite',
|
487
|
+
class_name: 'Annotation'
|
488
|
+
}
|
489
|
+
}
|
490
|
+
}
|
491
|
+
}
|
492
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
493
|
+
rescue Exception => e
|
494
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
495
|
+
end
|
496
|
+
end
|
497
|
+
|
498
|
+
result
|
499
|
+
end
|
500
|
+
|
501
|
+
promise.execute
|
502
|
+
end
|
503
|
+
|
504
|
+
end
|
505
|
+
end
|