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
@@ -12,7 +12,8 @@ module Azure::Monitor::Mgmt::V2018_04_16
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String] Log search query.
|
15
|
+
# @return [String] Log search query. Required for action type -
|
16
|
+
# AlertingAction
|
16
17
|
attr_accessor :query
|
17
18
|
|
18
19
|
# @return [Array<String>] List of Resource referred into query
|
@@ -42,7 +43,7 @@ module Azure::Monitor::Mgmt::V2018_04_16
|
|
42
43
|
model_properties: {
|
43
44
|
query: {
|
44
45
|
client_side_validation: true,
|
45
|
-
required:
|
46
|
+
required: false,
|
46
47
|
serialized_name: 'query',
|
47
48
|
type: {
|
48
49
|
name: 'String'
|
@@ -124,7 +124,7 @@ module Azure::Monitor::Mgmt::V2018_04_16
|
|
124
124
|
#
|
125
125
|
def add_telemetry
|
126
126
|
sdk_information = 'azure_mgmt_monitor'
|
127
|
-
sdk_information = "#{sdk_information}/0.
|
127
|
+
sdk_information = "#{sdk_information}/0.18.0"
|
128
128
|
add_user_agent_information(sdk_information)
|
129
129
|
end
|
130
130
|
end
|
@@ -110,6 +110,8 @@ module Azure::Monitor::Mgmt::V2018_04_16
|
|
110
110
|
end
|
111
111
|
|
112
112
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
113
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
114
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
113
115
|
# Deserialize Response
|
114
116
|
if status_code == 200
|
115
117
|
begin
|
@@ -212,6 +214,8 @@ module Azure::Monitor::Mgmt::V2018_04_16
|
|
212
214
|
end
|
213
215
|
|
214
216
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
217
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
218
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
215
219
|
# Deserialize Response
|
216
220
|
if status_code == 200
|
217
221
|
begin
|
@@ -318,6 +322,8 @@ module Azure::Monitor::Mgmt::V2018_04_16
|
|
318
322
|
end
|
319
323
|
|
320
324
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
325
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
326
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
321
327
|
# Deserialize Response
|
322
328
|
if status_code == 200
|
323
329
|
begin
|
@@ -409,6 +415,8 @@ module Azure::Monitor::Mgmt::V2018_04_16
|
|
409
415
|
end
|
410
416
|
|
411
417
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
418
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
419
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
412
420
|
|
413
421
|
result
|
414
422
|
end
|
@@ -492,6 +500,8 @@ module Azure::Monitor::Mgmt::V2018_04_16
|
|
492
500
|
end
|
493
501
|
|
494
502
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
503
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
504
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
495
505
|
# Deserialize Response
|
496
506
|
if status_code == 200
|
497
507
|
begin
|
@@ -589,6 +599,8 @@ module Azure::Monitor::Mgmt::V2018_04_16
|
|
589
599
|
end
|
590
600
|
|
591
601
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
602
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
603
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
592
604
|
# Deserialize Response
|
593
605
|
if status_code == 200
|
594
606
|
begin
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
require 'uri'
|
7
|
+
require 'cgi'
|
8
|
+
require 'date'
|
9
|
+
require 'json'
|
10
|
+
require 'base64'
|
11
|
+
require 'erb'
|
12
|
+
require 'securerandom'
|
13
|
+
require 'time'
|
14
|
+
require 'timeliness'
|
15
|
+
require 'faraday'
|
16
|
+
require 'faraday-cookie_jar'
|
17
|
+
require 'concurrent'
|
18
|
+
require 'ms_rest'
|
19
|
+
require '2018-06-01-preview/generated/azure_mgmt_monitor/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::Monitor::Mgmt::V2018_06_01_preview
|
23
|
+
autoload :GuestDiagnosticsSettingsAssociation, '2018-06-01-preview/generated/azure_mgmt_monitor/guest_diagnostics_settings_association.rb'
|
24
|
+
autoload :GuestDiagnosticsSettings, '2018-06-01-preview/generated/azure_mgmt_monitor/guest_diagnostics_settings.rb'
|
25
|
+
autoload :MonitorManagementClient, '2018-06-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb'
|
26
|
+
|
27
|
+
module Models
|
28
|
+
autoload :PerformanceCounterConfiguration, '2018-06-01-preview/generated/azure_mgmt_monitor/models/performance_counter_configuration.rb'
|
29
|
+
autoload :EventLogConfiguration, '2018-06-01-preview/generated/azure_mgmt_monitor/models/event_log_configuration.rb'
|
30
|
+
autoload :ErrorResponse, '2018-06-01-preview/generated/azure_mgmt_monitor/models/error_response.rb'
|
31
|
+
autoload :GuestDiagnosticSettingsAssociationResourcePatch, '2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_association_resource_patch.rb'
|
32
|
+
autoload :DataSourceConfiguration, '2018-06-01-preview/generated/azure_mgmt_monitor/models/data_source_configuration.rb'
|
33
|
+
autoload :EtwEventConfiguration, '2018-06-01-preview/generated/azure_mgmt_monitor/models/etw_event_configuration.rb'
|
34
|
+
autoload :SinkConfiguration, '2018-06-01-preview/generated/azure_mgmt_monitor/models/sink_configuration.rb'
|
35
|
+
autoload :GuestDiagnosticSettingsAssociationList, '2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_association_list.rb'
|
36
|
+
autoload :DataSource, '2018-06-01-preview/generated/azure_mgmt_monitor/models/data_source.rb'
|
37
|
+
autoload :EtwProviderConfiguration, '2018-06-01-preview/generated/azure_mgmt_monitor/models/etw_provider_configuration.rb'
|
38
|
+
autoload :GuestDiagnosticSettingsPatchResource, '2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_patch_resource.rb'
|
39
|
+
autoload :Resource, '2018-06-01-preview/generated/azure_mgmt_monitor/models/resource.rb'
|
40
|
+
autoload :GuestDiagnosticSettingsList, '2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_list.rb'
|
41
|
+
autoload :GuestDiagnosticSettingsAssociationResource, '2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_association_resource.rb'
|
42
|
+
autoload :GuestDiagnosticSettingsResource, '2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_resource.rb'
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,614 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Monitor::Mgmt::V2018_06_01_preview
|
7
|
+
#
|
8
|
+
# GuestDiagnosticsSettings
|
9
|
+
#
|
10
|
+
class GuestDiagnosticsSettings
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the GuestDiagnosticsSettings class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [MonitorManagementClient] reference to the MonitorManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Creates or updates guest diagnostics settings.
|
26
|
+
#
|
27
|
+
# @param resource_group_name [String] The name of the resource group.
|
28
|
+
# @param diagnostic_settings_name [String] The name of the diagnostic setting.
|
29
|
+
# @param diagnostic_settings [GuestDiagnosticSettingsResource] The
|
30
|
+
# configuration to create or update.
|
31
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
32
|
+
# will be added to the HTTP request.
|
33
|
+
#
|
34
|
+
# @return [GuestDiagnosticSettingsResource] operation results.
|
35
|
+
#
|
36
|
+
def create_or_update(resource_group_name, diagnostic_settings_name, diagnostic_settings, custom_headers:nil)
|
37
|
+
response = create_or_update_async(resource_group_name, diagnostic_settings_name, diagnostic_settings, custom_headers:custom_headers).value!
|
38
|
+
response.body unless response.nil?
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Creates or updates guest diagnostics settings.
|
43
|
+
#
|
44
|
+
# @param resource_group_name [String] The name of the resource group.
|
45
|
+
# @param diagnostic_settings_name [String] The name of the diagnostic setting.
|
46
|
+
# @param diagnostic_settings [GuestDiagnosticSettingsResource] The
|
47
|
+
# configuration to create or update.
|
48
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
49
|
+
# will be added to the HTTP request.
|
50
|
+
#
|
51
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
52
|
+
#
|
53
|
+
def create_or_update_with_http_info(resource_group_name, diagnostic_settings_name, diagnostic_settings, custom_headers:nil)
|
54
|
+
create_or_update_async(resource_group_name, diagnostic_settings_name, diagnostic_settings, custom_headers:custom_headers).value!
|
55
|
+
end
|
56
|
+
|
57
|
+
#
|
58
|
+
# Creates or updates guest diagnostics settings.
|
59
|
+
#
|
60
|
+
# @param resource_group_name [String] The name of the resource group.
|
61
|
+
# @param diagnostic_settings_name [String] The name of the diagnostic setting.
|
62
|
+
# @param diagnostic_settings [GuestDiagnosticSettingsResource] The
|
63
|
+
# configuration to create or update.
|
64
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
65
|
+
# to the HTTP request.
|
66
|
+
#
|
67
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
68
|
+
#
|
69
|
+
def create_or_update_async(resource_group_name, diagnostic_settings_name, diagnostic_settings, custom_headers:nil)
|
70
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
71
|
+
fail ArgumentError, 'diagnostic_settings_name is nil' if diagnostic_settings_name.nil?
|
72
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
73
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
74
|
+
fail ArgumentError, 'diagnostic_settings is nil' if diagnostic_settings.nil?
|
75
|
+
|
76
|
+
|
77
|
+
request_headers = {}
|
78
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
79
|
+
|
80
|
+
# Set Headers
|
81
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
82
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
83
|
+
|
84
|
+
# Serialize Request
|
85
|
+
request_mapper = Azure::Monitor::Mgmt::V2018_06_01_preview::Models::GuestDiagnosticSettingsResource.mapper()
|
86
|
+
request_content = @client.serialize(request_mapper, diagnostic_settings)
|
87
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
88
|
+
|
89
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/guestDiagnosticSettings/{diagnosticSettingsName}'
|
90
|
+
|
91
|
+
request_url = @base_url || @client.base_url
|
92
|
+
|
93
|
+
options = {
|
94
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
95
|
+
path_params: {'resourceGroupName' => resource_group_name,'diagnosticSettingsName' => diagnostic_settings_name,'subscriptionId' => @client.subscription_id},
|
96
|
+
query_params: {'api-version' => @client.api_version},
|
97
|
+
body: request_content,
|
98
|
+
headers: request_headers.merge(custom_headers || {}),
|
99
|
+
base_url: request_url
|
100
|
+
}
|
101
|
+
promise = @client.make_request_async(:put, path_template, options)
|
102
|
+
|
103
|
+
promise = promise.then do |result|
|
104
|
+
http_response = result.response
|
105
|
+
status_code = http_response.status
|
106
|
+
response_content = http_response.body
|
107
|
+
unless status_code == 200 || status_code == 201
|
108
|
+
error_model = JSON.load(response_content)
|
109
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
110
|
+
end
|
111
|
+
|
112
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
113
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
114
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
115
|
+
# Deserialize Response
|
116
|
+
if status_code == 200
|
117
|
+
begin
|
118
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
119
|
+
result_mapper = Azure::Monitor::Mgmt::V2018_06_01_preview::Models::GuestDiagnosticSettingsResource.mapper()
|
120
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
121
|
+
rescue Exception => e
|
122
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
123
|
+
end
|
124
|
+
end
|
125
|
+
# Deserialize Response
|
126
|
+
if status_code == 201
|
127
|
+
begin
|
128
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
129
|
+
result_mapper = Azure::Monitor::Mgmt::V2018_06_01_preview::Models::GuestDiagnosticSettingsResource.mapper()
|
130
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
131
|
+
rescue Exception => e
|
132
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
result
|
137
|
+
end
|
138
|
+
|
139
|
+
promise.execute
|
140
|
+
end
|
141
|
+
|
142
|
+
#
|
143
|
+
# Gets guest diagnostics settings.
|
144
|
+
#
|
145
|
+
# @param resource_group_name [String] The name of the resource group.
|
146
|
+
# @param diagnostic_settings_name [String] The name of the diagnostic setting.
|
147
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
148
|
+
# will be added to the HTTP request.
|
149
|
+
#
|
150
|
+
# @return [GuestDiagnosticSettingsResource] operation results.
|
151
|
+
#
|
152
|
+
def get(resource_group_name, diagnostic_settings_name, custom_headers:nil)
|
153
|
+
response = get_async(resource_group_name, diagnostic_settings_name, custom_headers:custom_headers).value!
|
154
|
+
response.body unless response.nil?
|
155
|
+
end
|
156
|
+
|
157
|
+
#
|
158
|
+
# Gets guest diagnostics settings.
|
159
|
+
#
|
160
|
+
# @param resource_group_name [String] The name of the resource group.
|
161
|
+
# @param diagnostic_settings_name [String] The name of the diagnostic setting.
|
162
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
163
|
+
# will be added to the HTTP request.
|
164
|
+
#
|
165
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
166
|
+
#
|
167
|
+
def get_with_http_info(resource_group_name, diagnostic_settings_name, custom_headers:nil)
|
168
|
+
get_async(resource_group_name, diagnostic_settings_name, custom_headers:custom_headers).value!
|
169
|
+
end
|
170
|
+
|
171
|
+
#
|
172
|
+
# Gets guest diagnostics settings.
|
173
|
+
#
|
174
|
+
# @param resource_group_name [String] The name of the resource group.
|
175
|
+
# @param diagnostic_settings_name [String] The name of the diagnostic setting.
|
176
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
177
|
+
# to the HTTP request.
|
178
|
+
#
|
179
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
180
|
+
#
|
181
|
+
def get_async(resource_group_name, diagnostic_settings_name, custom_headers:nil)
|
182
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
183
|
+
fail ArgumentError, 'diagnostic_settings_name is nil' if diagnostic_settings_name.nil?
|
184
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
185
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
186
|
+
|
187
|
+
|
188
|
+
request_headers = {}
|
189
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
190
|
+
|
191
|
+
# Set Headers
|
192
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
193
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
194
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/guestDiagnosticSettings/{diagnosticSettingsName}'
|
195
|
+
|
196
|
+
request_url = @base_url || @client.base_url
|
197
|
+
|
198
|
+
options = {
|
199
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
200
|
+
path_params: {'resourceGroupName' => resource_group_name,'diagnosticSettingsName' => diagnostic_settings_name,'subscriptionId' => @client.subscription_id},
|
201
|
+
query_params: {'api-version' => @client.api_version},
|
202
|
+
headers: request_headers.merge(custom_headers || {}),
|
203
|
+
base_url: request_url
|
204
|
+
}
|
205
|
+
promise = @client.make_request_async(:get, path_template, options)
|
206
|
+
|
207
|
+
promise = promise.then do |result|
|
208
|
+
http_response = result.response
|
209
|
+
status_code = http_response.status
|
210
|
+
response_content = http_response.body
|
211
|
+
unless status_code == 200
|
212
|
+
error_model = JSON.load(response_content)
|
213
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
214
|
+
end
|
215
|
+
|
216
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
217
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
218
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
219
|
+
# Deserialize Response
|
220
|
+
if status_code == 200
|
221
|
+
begin
|
222
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
223
|
+
result_mapper = Azure::Monitor::Mgmt::V2018_06_01_preview::Models::GuestDiagnosticSettingsResource.mapper()
|
224
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
225
|
+
rescue Exception => e
|
226
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
227
|
+
end
|
228
|
+
end
|
229
|
+
|
230
|
+
result
|
231
|
+
end
|
232
|
+
|
233
|
+
promise.execute
|
234
|
+
end
|
235
|
+
|
236
|
+
#
|
237
|
+
# Updates guest diagnostics settings.
|
238
|
+
#
|
239
|
+
# @param resource_group_name [String] The name of the resource group.
|
240
|
+
# @param diagnostic_settings_name [String] The name of the diagnostic setting.
|
241
|
+
# @param parameters [GuestDiagnosticSettingsPatchResource] The configuration to
|
242
|
+
# patch.
|
243
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
244
|
+
# will be added to the HTTP request.
|
245
|
+
#
|
246
|
+
# @return [GuestDiagnosticSettingsResource] operation results.
|
247
|
+
#
|
248
|
+
def update(resource_group_name, diagnostic_settings_name, parameters, custom_headers:nil)
|
249
|
+
response = update_async(resource_group_name, diagnostic_settings_name, parameters, custom_headers:custom_headers).value!
|
250
|
+
response.body unless response.nil?
|
251
|
+
end
|
252
|
+
|
253
|
+
#
|
254
|
+
# Updates guest diagnostics settings.
|
255
|
+
#
|
256
|
+
# @param resource_group_name [String] The name of the resource group.
|
257
|
+
# @param diagnostic_settings_name [String] The name of the diagnostic setting.
|
258
|
+
# @param parameters [GuestDiagnosticSettingsPatchResource] The configuration to
|
259
|
+
# patch.
|
260
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
261
|
+
# will be added to the HTTP request.
|
262
|
+
#
|
263
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
264
|
+
#
|
265
|
+
def update_with_http_info(resource_group_name, diagnostic_settings_name, parameters, custom_headers:nil)
|
266
|
+
update_async(resource_group_name, diagnostic_settings_name, parameters, custom_headers:custom_headers).value!
|
267
|
+
end
|
268
|
+
|
269
|
+
#
|
270
|
+
# Updates guest diagnostics settings.
|
271
|
+
#
|
272
|
+
# @param resource_group_name [String] The name of the resource group.
|
273
|
+
# @param diagnostic_settings_name [String] The name of the diagnostic setting.
|
274
|
+
# @param parameters [GuestDiagnosticSettingsPatchResource] The configuration to
|
275
|
+
# patch.
|
276
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
277
|
+
# to the HTTP request.
|
278
|
+
#
|
279
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
280
|
+
#
|
281
|
+
def update_async(resource_group_name, diagnostic_settings_name, parameters, custom_headers:nil)
|
282
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
283
|
+
fail ArgumentError, 'diagnostic_settings_name is nil' if diagnostic_settings_name.nil?
|
284
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
285
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
286
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
287
|
+
|
288
|
+
|
289
|
+
request_headers = {}
|
290
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
291
|
+
|
292
|
+
# Set Headers
|
293
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
294
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
295
|
+
|
296
|
+
# Serialize Request
|
297
|
+
request_mapper = Azure::Monitor::Mgmt::V2018_06_01_preview::Models::GuestDiagnosticSettingsPatchResource.mapper()
|
298
|
+
request_content = @client.serialize(request_mapper, parameters)
|
299
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
300
|
+
|
301
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/guestDiagnosticSettings/{diagnosticSettingsName}'
|
302
|
+
|
303
|
+
request_url = @base_url || @client.base_url
|
304
|
+
|
305
|
+
options = {
|
306
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
307
|
+
path_params: {'resourceGroupName' => resource_group_name,'diagnosticSettingsName' => diagnostic_settings_name,'subscriptionId' => @client.subscription_id},
|
308
|
+
query_params: {'api-version' => @client.api_version},
|
309
|
+
body: request_content,
|
310
|
+
headers: request_headers.merge(custom_headers || {}),
|
311
|
+
base_url: request_url
|
312
|
+
}
|
313
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
314
|
+
|
315
|
+
promise = promise.then do |result|
|
316
|
+
http_response = result.response
|
317
|
+
status_code = http_response.status
|
318
|
+
response_content = http_response.body
|
319
|
+
unless status_code == 200 || status_code == 201
|
320
|
+
error_model = JSON.load(response_content)
|
321
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
322
|
+
end
|
323
|
+
|
324
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
325
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
326
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
327
|
+
# Deserialize Response
|
328
|
+
if status_code == 200
|
329
|
+
begin
|
330
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
331
|
+
result_mapper = Azure::Monitor::Mgmt::V2018_06_01_preview::Models::GuestDiagnosticSettingsResource.mapper()
|
332
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
333
|
+
rescue Exception => e
|
334
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
335
|
+
end
|
336
|
+
end
|
337
|
+
# Deserialize Response
|
338
|
+
if status_code == 201
|
339
|
+
begin
|
340
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
341
|
+
result_mapper = Azure::Monitor::Mgmt::V2018_06_01_preview::Models::GuestDiagnosticSettingsResource.mapper()
|
342
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
343
|
+
rescue Exception => e
|
344
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
345
|
+
end
|
346
|
+
end
|
347
|
+
|
348
|
+
result
|
349
|
+
end
|
350
|
+
|
351
|
+
promise.execute
|
352
|
+
end
|
353
|
+
|
354
|
+
#
|
355
|
+
# Delete guest diagnostics settings.
|
356
|
+
#
|
357
|
+
# @param resource_group_name [String] The name of the resource group.
|
358
|
+
# @param diagnostic_settings_name [String] The name of the diagnostic setting.
|
359
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
360
|
+
# will be added to the HTTP request.
|
361
|
+
#
|
362
|
+
#
|
363
|
+
def delete(resource_group_name, diagnostic_settings_name, custom_headers:nil)
|
364
|
+
response = delete_async(resource_group_name, diagnostic_settings_name, custom_headers:custom_headers).value!
|
365
|
+
nil
|
366
|
+
end
|
367
|
+
|
368
|
+
#
|
369
|
+
# Delete guest diagnostics settings.
|
370
|
+
#
|
371
|
+
# @param resource_group_name [String] The name of the resource group.
|
372
|
+
# @param diagnostic_settings_name [String] The name of the diagnostic setting.
|
373
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
374
|
+
# will be added to the HTTP request.
|
375
|
+
#
|
376
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
377
|
+
#
|
378
|
+
def delete_with_http_info(resource_group_name, diagnostic_settings_name, custom_headers:nil)
|
379
|
+
delete_async(resource_group_name, diagnostic_settings_name, custom_headers:custom_headers).value!
|
380
|
+
end
|
381
|
+
|
382
|
+
#
|
383
|
+
# Delete guest diagnostics settings.
|
384
|
+
#
|
385
|
+
# @param resource_group_name [String] The name of the resource group.
|
386
|
+
# @param diagnostic_settings_name [String] The name of the diagnostic setting.
|
387
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
388
|
+
# to the HTTP request.
|
389
|
+
#
|
390
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
391
|
+
#
|
392
|
+
def delete_async(resource_group_name, diagnostic_settings_name, custom_headers:nil)
|
393
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
394
|
+
fail ArgumentError, 'diagnostic_settings_name is nil' if diagnostic_settings_name.nil?
|
395
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
396
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
397
|
+
|
398
|
+
|
399
|
+
request_headers = {}
|
400
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
401
|
+
|
402
|
+
# Set Headers
|
403
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
404
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
405
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/guestDiagnosticSettings/{diagnosticSettingsName}'
|
406
|
+
|
407
|
+
request_url = @base_url || @client.base_url
|
408
|
+
|
409
|
+
options = {
|
410
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
411
|
+
path_params: {'resourceGroupName' => resource_group_name,'diagnosticSettingsName' => diagnostic_settings_name,'subscriptionId' => @client.subscription_id},
|
412
|
+
query_params: {'api-version' => @client.api_version},
|
413
|
+
headers: request_headers.merge(custom_headers || {}),
|
414
|
+
base_url: request_url
|
415
|
+
}
|
416
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
417
|
+
|
418
|
+
promise = promise.then do |result|
|
419
|
+
http_response = result.response
|
420
|
+
status_code = http_response.status
|
421
|
+
response_content = http_response.body
|
422
|
+
unless status_code == 200 || status_code == 204
|
423
|
+
error_model = JSON.load(response_content)
|
424
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
425
|
+
end
|
426
|
+
|
427
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
428
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
429
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
430
|
+
|
431
|
+
result
|
432
|
+
end
|
433
|
+
|
434
|
+
promise.execute
|
435
|
+
end
|
436
|
+
|
437
|
+
#
|
438
|
+
# Get a list of all guest diagnostic settings in a subscription.
|
439
|
+
#
|
440
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
441
|
+
# will be added to the HTTP request.
|
442
|
+
#
|
443
|
+
# @return [GuestDiagnosticSettingsList] operation results.
|
444
|
+
#
|
445
|
+
def list(custom_headers:nil)
|
446
|
+
response = list_async(custom_headers:custom_headers).value!
|
447
|
+
response.body unless response.nil?
|
448
|
+
end
|
449
|
+
|
450
|
+
#
|
451
|
+
# Get a list of all guest diagnostic settings in a subscription.
|
452
|
+
#
|
453
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
454
|
+
# will be added to the HTTP request.
|
455
|
+
#
|
456
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
457
|
+
#
|
458
|
+
def list_with_http_info(custom_headers:nil)
|
459
|
+
list_async(custom_headers:custom_headers).value!
|
460
|
+
end
|
461
|
+
|
462
|
+
#
|
463
|
+
# Get a list of all guest diagnostic settings in a subscription.
|
464
|
+
#
|
465
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
466
|
+
# to the HTTP request.
|
467
|
+
#
|
468
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
469
|
+
#
|
470
|
+
def list_async(custom_headers:nil)
|
471
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
472
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
473
|
+
|
474
|
+
|
475
|
+
request_headers = {}
|
476
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
477
|
+
|
478
|
+
# Set Headers
|
479
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
480
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
481
|
+
path_template = 'subscriptions/{subscriptionId}/providers/microsoft.insights/guestDiagnosticSettings'
|
482
|
+
|
483
|
+
request_url = @base_url || @client.base_url
|
484
|
+
|
485
|
+
options = {
|
486
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
487
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
488
|
+
query_params: {'api-version' => @client.api_version},
|
489
|
+
headers: request_headers.merge(custom_headers || {}),
|
490
|
+
base_url: request_url
|
491
|
+
}
|
492
|
+
promise = @client.make_request_async(:get, path_template, options)
|
493
|
+
|
494
|
+
promise = promise.then do |result|
|
495
|
+
http_response = result.response
|
496
|
+
status_code = http_response.status
|
497
|
+
response_content = http_response.body
|
498
|
+
unless status_code == 200
|
499
|
+
error_model = JSON.load(response_content)
|
500
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
501
|
+
end
|
502
|
+
|
503
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
504
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
505
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
506
|
+
# Deserialize Response
|
507
|
+
if status_code == 200
|
508
|
+
begin
|
509
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
510
|
+
result_mapper = Azure::Monitor::Mgmt::V2018_06_01_preview::Models::GuestDiagnosticSettingsList.mapper()
|
511
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
512
|
+
rescue Exception => e
|
513
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
514
|
+
end
|
515
|
+
end
|
516
|
+
|
517
|
+
result
|
518
|
+
end
|
519
|
+
|
520
|
+
promise.execute
|
521
|
+
end
|
522
|
+
|
523
|
+
#
|
524
|
+
# Get a list of all guest diagnostic settings in a resource group.
|
525
|
+
#
|
526
|
+
# @param resource_group_name [String] The name of the resource group.
|
527
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
528
|
+
# will be added to the HTTP request.
|
529
|
+
#
|
530
|
+
# @return [GuestDiagnosticSettingsList] operation results.
|
531
|
+
#
|
532
|
+
def list_by_resource_group(resource_group_name, custom_headers:nil)
|
533
|
+
response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
534
|
+
response.body unless response.nil?
|
535
|
+
end
|
536
|
+
|
537
|
+
#
|
538
|
+
# Get a list of all guest diagnostic settings in a resource group.
|
539
|
+
#
|
540
|
+
# @param resource_group_name [String] The name of the resource group.
|
541
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
542
|
+
# will be added to the HTTP request.
|
543
|
+
#
|
544
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
545
|
+
#
|
546
|
+
def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
|
547
|
+
list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
548
|
+
end
|
549
|
+
|
550
|
+
#
|
551
|
+
# Get a list of all guest diagnostic settings in a resource group.
|
552
|
+
#
|
553
|
+
# @param resource_group_name [String] The name of the resource group.
|
554
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
555
|
+
# to the HTTP request.
|
556
|
+
#
|
557
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
558
|
+
#
|
559
|
+
def list_by_resource_group_async(resource_group_name, custom_headers:nil)
|
560
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
561
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
562
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
563
|
+
|
564
|
+
|
565
|
+
request_headers = {}
|
566
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
567
|
+
|
568
|
+
# Set Headers
|
569
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
570
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
571
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/guestDiagnosticSettings'
|
572
|
+
|
573
|
+
request_url = @base_url || @client.base_url
|
574
|
+
|
575
|
+
options = {
|
576
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
577
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
578
|
+
query_params: {'api-version' => @client.api_version},
|
579
|
+
headers: request_headers.merge(custom_headers || {}),
|
580
|
+
base_url: request_url
|
581
|
+
}
|
582
|
+
promise = @client.make_request_async(:get, path_template, options)
|
583
|
+
|
584
|
+
promise = promise.then do |result|
|
585
|
+
http_response = result.response
|
586
|
+
status_code = http_response.status
|
587
|
+
response_content = http_response.body
|
588
|
+
unless status_code == 200
|
589
|
+
error_model = JSON.load(response_content)
|
590
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
591
|
+
end
|
592
|
+
|
593
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
594
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
595
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
596
|
+
# Deserialize Response
|
597
|
+
if status_code == 200
|
598
|
+
begin
|
599
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
600
|
+
result_mapper = Azure::Monitor::Mgmt::V2018_06_01_preview::Models::GuestDiagnosticSettingsList.mapper()
|
601
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
602
|
+
rescue Exception => e
|
603
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
604
|
+
end
|
605
|
+
end
|
606
|
+
|
607
|
+
result
|
608
|
+
end
|
609
|
+
|
610
|
+
promise.execute
|
611
|
+
end
|
612
|
+
|
613
|
+
end
|
614
|
+
end
|