azure_mgmt_monitor 0.17.4 → 0.17.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/LICENSE.txt +20 -20
- data/lib/2015-04-01/generated/azure_mgmt_monitor.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/activity_logs.rb +4 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/autoscale_settings.rb +16 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/event_categories.rb +2 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/autoscale_notification.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/autoscale_profile.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/autoscale_setting_resource.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/autoscale_setting_resource_collection.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/autoscale_setting_resource_patch.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/comparison_operation_type.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/email_notification.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/event_category_collection.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/event_data.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/event_data_collection.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/event_level.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/http_request_info.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/localizable_string.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/metric_statistic_type.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/metric_trigger.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/operation.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/operation_display.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/operation_list_result.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/recurrence.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/recurrent_schedule.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/resource.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/scale_action.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/scale_capacity.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/scale_direction.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/scale_rule.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/scale_type.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/sender_authorization.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/time_aggregation_type.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/time_window.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/webhook_notification.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/module_definition.rb +0 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2015-04-01/generated/azure_mgmt_monitor/operations.rb +2 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/tenant_activity_logs.rb +4 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor.rb +106 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/analytics_items.rb +585 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/annotations.rb +505 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/apikeys.rb +473 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/application_insights_management_client.rb +193 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/component_available_features.rb +130 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/component_current_billing_features.rb +252 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/component_feature_capabilities.rb +130 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/component_quota_status.rb +133 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/components.rb +1134 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/export_configurations.rb +646 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/favorites.rb +653 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/annotation.rb +103 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/annotation_error.rb +70 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/annotations_list_result.rb +56 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/apikey_request.rb +84 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component.rb +261 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_analytics_item.rb +146 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_analytics_item_properties.rb +49 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_apikey.rb +121 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_apikey_list_result.rb +57 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_available_features.rb +58 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_billing_features.rb +70 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_data_volume_cap.rb +106 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_export_configuration.rb +277 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_export_request.rb +143 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_favorite.rb +182 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_feature.rb +153 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_feature_capabilities.rb +228 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_feature_capability.rb +108 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_list_result.rb +102 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_proactive_detection_configuration.rb +117 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_proactive_detection_configuration_rule_definitions.rb +130 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_quota_status.rb +74 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_web_test_location.rb +61 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_web_test_locations_list_result.rb +58 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_type.rb +16 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/category_type.rb +18 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/component_purge_body.rb +67 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/component_purge_body_filters.rb +85 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/component_purge_response.rb +47 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/component_purge_status_response.rb +47 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/components_resource.rb +101 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/error_field_contract.rb +68 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/error_response.rb +58 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/favorite_source_type.rb +22 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/favorite_type.rb +16 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/flow_type.rb +15 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/inner_error.rb +57 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/item_scope.rb +16 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/item_scope_path.rb +16 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/item_type.rb +18 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/item_type_parameter.rb +19 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/link_properties.rb +68 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/operation.rb +58 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/operation_display.rb +69 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/operation_list_result.rb +101 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/purge_state.rb +16 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/request_source.rb +15 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/shared_type_kind.rb +16 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/tags_resource.rb +55 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/web_test.rb +249 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/web_test_geolocation.rb +47 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/web_test_kind.rb +16 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/web_test_list_result.rb +101 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/web_test_properties_configuration.rb +47 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/webtests_resource.rb +101 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/work_item_configuration.rb +91 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/work_item_configuration_error.rb +70 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/work_item_configurations_list_result.rb +57 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/work_item_create_configuration.rb +87 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/workbook.rb +228 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/workbook_error.rb +79 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/workbook_resource.rb +101 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/workbooks_list_result.rb +56 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/module_definition.rb +9 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/operations.rb +220 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/proactive_detection_configurations.rb +392 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/web_test_locations.rb +133 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/web_tests.rb +1103 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/work_item_configurations.rb +708 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/workbooks.rb +589 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rule_incidents.rb +4 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rules.rb +12 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/log_profiles.rb +10 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/metric_definitions.rb +2 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/aggregation_type.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/alert_rule_resource.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/alert_rule_resource_collection.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/condition_operator.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/incident.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/incident_list_result.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/localizable_string.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/location_threshold_rule_condition.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/log_profile_collection.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/log_profile_resource.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/log_profile_resource_patch.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/management_event_aggregation_condition.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/management_event_rule_condition.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/metric_availability.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/metric_definition.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/metric_definition_collection.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/resource.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/retention_policy.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/rule_action.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/rule_condition.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/rule_data_source.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/rule_email_action.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/rule_management_event_claims_data_source.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/rule_management_event_data_source.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/rule_metric_data_source.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/rule_webhook_action.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/threshold_rule_condition.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/time_aggregation_operator.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/models/unit.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/module_definition.rb +0 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_monitor.rb +0 -0
- data/lib/2016-09-01/generated/azure_mgmt_monitor/metrics.rb +2 -0
- data/lib/2016-09-01/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
- data/lib/2016-09-01/generated/azure_mgmt_monitor/models/localizable_string.rb +0 -0
- data/lib/2016-09-01/generated/azure_mgmt_monitor/models/log_settings.rb +0 -0
- data/lib/2016-09-01/generated/azure_mgmt_monitor/models/metric.rb +0 -0
- data/lib/2016-09-01/generated/azure_mgmt_monitor/models/metric_collection.rb +0 -0
- data/lib/2016-09-01/generated/azure_mgmt_monitor/models/metric_settings.rb +0 -0
- data/lib/2016-09-01/generated/azure_mgmt_monitor/models/metric_value.rb +0 -0
- data/lib/2016-09-01/generated/azure_mgmt_monitor/models/resource.rb +0 -0
- data/lib/2016-09-01/generated/azure_mgmt_monitor/models/retention_policy.rb +0 -0
- data/lib/2016-09-01/generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource.rb +0 -0
- data/lib/2016-09-01/generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource_patch.rb +0 -0
- data/lib/2016-09-01/generated/azure_mgmt_monitor/models/unit.rb +0 -0
- data/lib/2016-09-01/generated/azure_mgmt_monitor/module_definition.rb +0 -0
- data/lib/2016-09-01/generated/azure_mgmt_monitor/monitor_client.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_monitor/service_diagnostic_settings_operations.rb +6 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/action_groups.rb +14 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/activity_log_alerts.rb +12 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/action_group_list.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/activity_log_alert_action_group.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/activity_log_alert_action_list.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/activity_log_alert_all_of_condition.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/activity_log_alert_leaf_condition.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/activity_log_alert_list.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/activity_log_alert_patch_body.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/activity_log_alert_resource.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/email_receiver.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/enable_request.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/receiver_status.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/resource.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/sms_receiver.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/models/webhook_receiver.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/module_definition.rb +0 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_category_operations.rb +4 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_operations.rb +8 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/metric_definitions.rb +2 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/metrics.rb +2 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/aggregation_type.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/category_type.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/diagnostic_settings_category_resource.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/diagnostic_settings_category_resource_collection.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/diagnostic_settings_resource.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/diagnostic_settings_resource_collection.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/localizable_string.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/log_settings.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metadata_value.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metric.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metric_availability.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metric_definition.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metric_definition_collection.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metric_settings.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metric_value.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/proxy_only_resource.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/response.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/result_type.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/retention_policy.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/time_series_element.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/unit.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/module_definition.rb +0 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2017-10-01-preview/generated/azure_mgmt_monitor.rb +34 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/application_insights_management_client.rb +146 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/component_current_pricing_plan.rb +377 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/easubscription_list_migration_date.rb +113 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/easubscription_migrate_to_new_pricing_model.rb +102 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/easubscription_rollback_to_legacy_pricing_model.rb +102 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/models/application_insights_component_pricing_plan.rb +143 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/models/easubscription_migration_date.rb +58 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/models/resource.rb +80 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/module_definition.rb +9 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor.rb +0 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/metric_baseline.rb +4 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/baseline.rb +0 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/baseline_metadata_value.rb +0 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/baseline_response.rb +0 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/calculate_baseline_response.rb +0 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/localizable_string.rb +0 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/result_type.rb +0 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/sensitivity.rb +0 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/time_series_information.rb +0 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/module_definition.rb +0 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor.rb +0 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/metric_namespaces.rb +2 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/models/metric_namespace.rb +0 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/models/metric_namespace_collection.rb +0 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/models/metric_namespace_name.rb +0 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/module_definition.rb +0 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2018-01-01/generated/azure_mgmt_monitor.rb +0 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/metric_definitions.rb +2 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/metrics.rb +2 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/aggregation_type.rb +0 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/localizable_string.rb +0 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metadata_value.rb +0 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric.rb +0 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_availability.rb +0 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_definition.rb +0 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_definition_collection.rb +0 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_value.rb +0 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/response.rb +0 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/result_type.rb +0 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/time_series_element.rb +0 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/unit.rb +0 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/module_definition.rb +0 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2018-03-01/generated/azure_mgmt_monitor.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/action_groups.rb +14 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/metric_alerts.rb +12 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/metric_alerts_status.rb +4 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/action_group_list.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/azure_function_receiver.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/email_receiver.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/enable_request.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/logic_app_receiver.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_action.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_criteria.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_resource.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_resource_collection.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_resource_patch.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_single_resource_multiple_metric_criteria.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_status.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_status_collection.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_status_properties.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_criteria.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_dimension.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/receiver_status.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/resource.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/sms_receiver.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/voice_receiver.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/webhook_receiver.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/module_definition.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2018-04-16/generated/azure_mgmt_monitor.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/action.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/alert_severity.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/alerting_action.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/az_ns_action_group.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/conditional_operator.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/enabled.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/log_metric_trigger.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/log_search_rule_resource.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/log_search_rule_resource_collection.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/log_search_rule_resource_patch.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/metric_trigger_type.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/provisioning_state.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/query_type.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/resource.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/schedule.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/source.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/trigger_condition.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/module_definition.rb +0 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/monitor_client.rb +1 -1
- data/lib/2018-04-16/generated/azure_mgmt_monitor/scheduled_query_rules.rb +12 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/guest_diagnostics_settings.rb +12 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/guest_diagnostics_settings_association.rb +12 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/data_source.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/data_source_configuration.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/etw_event_configuration.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/etw_provider_configuration.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/event_log_configuration.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_association_list.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_association_resource.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_association_resource_patch.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_list.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_patch_resource.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_resource.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/performance_counter_configuration.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/resource.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/sink_configuration.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/module_definition.rb +0 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor.rb +36 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/application_insights_management_client.rb +131 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/category_type.rb +18 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/error_field_contract.rb +68 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/resource.rb +123 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/shared_type_kind.rb +16 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/workbook.rb +185 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/workbook_error.rb +79 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/workbook_update_parameters.rb +122 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/workbooks_list_result.rb +55 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/module_definition.rb +9 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/workbooks.rb +609 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/action_groups.rb +14 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/metric_baseline.rb +4 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/action_group_list.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/arm_role_receiver.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/azure_function_receiver.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/baseline.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/baseline_metadata_value.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/baseline_response.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/calculate_baseline_response.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/email_receiver.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/enable_request.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/localizable_string.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/logic_app_receiver.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/receiver_status.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/resource.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/result_type.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/sensitivity.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/sms_receiver.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/time_series_information.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/voice_receiver.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/webhook_receiver.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/module_definition.rb +0 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor.rb +0 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/data_container.rb +0 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/data_status.rb +0 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/error.rb +0 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/onboarding_status.rb +0 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/proxy_resource.rb +0 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/response_with_error.rb +0 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/vminsights_onboarding_status.rb +0 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/workspace_info.rb +0 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/module_definition.rb +0 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/vminsights.rb +2 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/action_groups.rb +14 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/action_group_list.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/arm_role_receiver.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/azure_function_receiver.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/email_receiver.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/enable_request.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/error_response.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/logic_app_receiver.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/receiver_status.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/resource.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/sms_receiver.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/voice_receiver.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/webhook_receiver.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/module_definition.rb +0 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/azure_mgmt_monitor.rb +10 -7
- data/lib/module_definition.rb +9 -9
- data/lib/profiles/latest/modules/monitor_profile_module.rb +735 -735
- data/lib/profiles/latest/monitor_latest_profile_client.rb +40 -40
- data/lib/profiles/latest/monitor_module_definition.rb +8 -8
- data/lib/profiles/v2019_03_01_hybrid/modules/monitor_profile_module.rb +297 -297
- data/lib/profiles/v2019_03_01_hybrid/monitor_module_definition.rb +8 -8
- data/lib/profiles/v2019_03_01_hybrid/monitor_v2019_03_01_hybrid_profile_client.rb +40 -40
- data/lib/version.rb +1 -1
- metadata +109 -5
File without changes
|
data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_category_operations.rb
CHANGED
@@ -96,6 +96,8 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
|
|
96
96
|
end
|
97
97
|
|
98
98
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
99
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
100
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
99
101
|
# Deserialize Response
|
100
102
|
if status_code == 200
|
101
103
|
begin
|
@@ -183,6 +185,8 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
|
|
183
185
|
end
|
184
186
|
|
185
187
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
188
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
189
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
186
190
|
# Deserialize Response
|
187
191
|
if status_code == 200
|
188
192
|
begin
|
@@ -96,6 +96,8 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
|
|
96
96
|
end
|
97
97
|
|
98
98
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
99
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
100
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
99
101
|
# Deserialize Response
|
100
102
|
if status_code == 200
|
101
103
|
begin
|
@@ -202,6 +204,8 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
|
|
202
204
|
end
|
203
205
|
|
204
206
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
207
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
208
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
205
209
|
# Deserialize Response
|
206
210
|
if status_code == 200
|
207
211
|
begin
|
@@ -293,6 +297,8 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
|
|
293
297
|
end
|
294
298
|
|
295
299
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
300
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
301
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
296
302
|
|
297
303
|
result
|
298
304
|
end
|
@@ -370,6 +376,8 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
|
|
370
376
|
end
|
371
377
|
|
372
378
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
379
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
380
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
373
381
|
# Deserialize Response
|
374
382
|
if status_code == 200
|
375
383
|
begin
|
@@ -91,6 +91,8 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
|
|
91
91
|
end
|
92
92
|
|
93
93
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
94
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
95
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
94
96
|
# Deserialize Response
|
95
97
|
if status_code == 200
|
96
98
|
begin
|
@@ -169,6 +169,8 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
|
|
169
169
|
end
|
170
170
|
|
171
171
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
172
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
173
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
172
174
|
# Deserialize Response
|
173
175
|
if status_code == 200
|
174
176
|
begin
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/diagnostic_settings_resource.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metric_definition_collection.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -134,7 +134,7 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
|
|
134
134
|
#
|
135
135
|
def add_telemetry
|
136
136
|
sdk_information = 'azure_mgmt_monitor'
|
137
|
-
sdk_information = "#{sdk_information}/0.17.
|
137
|
+
sdk_information = "#{sdk_information}/0.17.5"
|
138
138
|
add_user_agent_information(sdk_information)
|
139
139
|
end
|
140
140
|
end
|
@@ -0,0 +1,34 @@
|
|
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 '2017-10-01-preview/generated/azure_mgmt_monitor/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::Monitor::Mgmt::V2017_10_01_preview
|
23
|
+
autoload :EASubscriptionMigrateToNewPricingModel, '2017-10-01-preview/generated/azure_mgmt_monitor/easubscription_migrate_to_new_pricing_model.rb'
|
24
|
+
autoload :EASubscriptionRollbackToLegacyPricingModel, '2017-10-01-preview/generated/azure_mgmt_monitor/easubscription_rollback_to_legacy_pricing_model.rb'
|
25
|
+
autoload :EASubscriptionListMigrationDate, '2017-10-01-preview/generated/azure_mgmt_monitor/easubscription_list_migration_date.rb'
|
26
|
+
autoload :ComponentCurrentPricingPlan, '2017-10-01-preview/generated/azure_mgmt_monitor/component_current_pricing_plan.rb'
|
27
|
+
autoload :ApplicationInsightsManagementClient, '2017-10-01-preview/generated/azure_mgmt_monitor/application_insights_management_client.rb'
|
28
|
+
|
29
|
+
module Models
|
30
|
+
autoload :EASubscriptionMigrationDate, '2017-10-01-preview/generated/azure_mgmt_monitor/models/easubscription_migration_date.rb'
|
31
|
+
autoload :Resource, '2017-10-01-preview/generated/azure_mgmt_monitor/models/resource.rb'
|
32
|
+
autoload :ApplicationInsightsComponentPricingPlan, '2017-10-01-preview/generated/azure_mgmt_monitor/models/application_insights_component_pricing_plan.rb'
|
33
|
+
end
|
34
|
+
end
|
data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/application_insights_management_client.rb
ADDED
@@ -0,0 +1,146 @@
|
|
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::V2017_10_01_preview
|
7
|
+
#
|
8
|
+
# A service client - single point of access to the REST API.
|
9
|
+
#
|
10
|
+
class ApplicationInsightsManagementClient < MsRestAzure::AzureServiceClient
|
11
|
+
include MsRestAzure
|
12
|
+
include MsRestAzure::Serialization
|
13
|
+
|
14
|
+
# @return [String] the base URI of the service.
|
15
|
+
attr_accessor :base_url
|
16
|
+
|
17
|
+
# @return Credentials needed for the client to connect to Azure.
|
18
|
+
attr_reader :credentials
|
19
|
+
|
20
|
+
# @return [String] The ID of the target subscription.
|
21
|
+
attr_accessor :subscription_id
|
22
|
+
|
23
|
+
# @return [String] The API version to use for this operation.
|
24
|
+
attr_reader :api_version
|
25
|
+
|
26
|
+
# @return [String] The preferred language for the response.
|
27
|
+
attr_accessor :accept_language
|
28
|
+
|
29
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
30
|
+
# Operations. Default value is 30.
|
31
|
+
attr_accessor :long_running_operation_retry_timeout
|
32
|
+
|
33
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
34
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
35
|
+
# generated and included in each request. Default is true.
|
36
|
+
attr_accessor :generate_client_request_id
|
37
|
+
|
38
|
+
# @return [EASubscriptionMigrateToNewPricingModel]
|
39
|
+
# easubscription_migrate_to_new_pricing_model
|
40
|
+
attr_reader :easubscription_migrate_to_new_pricing_model
|
41
|
+
|
42
|
+
# @return [EASubscriptionRollbackToLegacyPricingModel]
|
43
|
+
# easubscription_rollback_to_legacy_pricing_model
|
44
|
+
attr_reader :easubscription_rollback_to_legacy_pricing_model
|
45
|
+
|
46
|
+
# @return [EASubscriptionListMigrationDate]
|
47
|
+
# easubscription_list_migration_date
|
48
|
+
attr_reader :easubscription_list_migration_date
|
49
|
+
|
50
|
+
# @return [ComponentCurrentPricingPlan] component_current_pricing_plan
|
51
|
+
attr_reader :component_current_pricing_plan
|
52
|
+
|
53
|
+
#
|
54
|
+
# Creates initializes a new instance of the ApplicationInsightsManagementClient class.
|
55
|
+
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
56
|
+
# @param base_url [String] the base URI of the service.
|
57
|
+
# @param options [Array] filters to be applied to the HTTP requests.
|
58
|
+
#
|
59
|
+
def initialize(credentials = nil, base_url = nil, options = nil)
|
60
|
+
super(credentials, options)
|
61
|
+
@base_url = base_url || 'https://management.azure.com'
|
62
|
+
|
63
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
64
|
+
@credentials = credentials
|
65
|
+
|
66
|
+
@easubscription_migrate_to_new_pricing_model = EASubscriptionMigrateToNewPricingModel.new(self)
|
67
|
+
@easubscription_rollback_to_legacy_pricing_model = EASubscriptionRollbackToLegacyPricingModel.new(self)
|
68
|
+
@easubscription_list_migration_date = EASubscriptionListMigrationDate.new(self)
|
69
|
+
@component_current_pricing_plan = ComponentCurrentPricingPlan.new(self)
|
70
|
+
@api_version = '2017-10-01'
|
71
|
+
@accept_language = 'en-US'
|
72
|
+
@long_running_operation_retry_timeout = 30
|
73
|
+
@generate_client_request_id = true
|
74
|
+
add_telemetry
|
75
|
+
end
|
76
|
+
|
77
|
+
#
|
78
|
+
# Makes a request and returns the body of the response.
|
79
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
80
|
+
# @param path [String] the path, relative to {base_url}.
|
81
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
82
|
+
# @return [Hash{String=>String}] containing the body of the response.
|
83
|
+
# Example:
|
84
|
+
#
|
85
|
+
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
86
|
+
# path = "/path"
|
87
|
+
# options = {
|
88
|
+
# body: request_content,
|
89
|
+
# query_params: {'api-version' => '2016-02-01'}
|
90
|
+
# }
|
91
|
+
# result = @client.make_request(:put, path, options)
|
92
|
+
#
|
93
|
+
def make_request(method, path, options = {})
|
94
|
+
result = make_request_with_http_info(method, path, options)
|
95
|
+
result.body unless result.nil?
|
96
|
+
end
|
97
|
+
|
98
|
+
#
|
99
|
+
# Makes a request and returns the operation response.
|
100
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
101
|
+
# @param path [String] the path, relative to {base_url}.
|
102
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
103
|
+
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
104
|
+
#
|
105
|
+
def make_request_with_http_info(method, path, options = {})
|
106
|
+
result = make_request_async(method, path, options).value!
|
107
|
+
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
108
|
+
result
|
109
|
+
end
|
110
|
+
|
111
|
+
#
|
112
|
+
# Makes a request asynchronously.
|
113
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
114
|
+
# @param path [String] the path, relative to {base_url}.
|
115
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
116
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
117
|
+
#
|
118
|
+
def make_request_async(method, path, options = {})
|
119
|
+
fail ArgumentError, 'method is nil' if method.nil?
|
120
|
+
fail ArgumentError, 'path is nil' if path.nil?
|
121
|
+
|
122
|
+
request_url = options[:base_url] || @base_url
|
123
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
124
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
125
|
+
end
|
126
|
+
|
127
|
+
request_headers = @request_headers
|
128
|
+
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
129
|
+
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
130
|
+
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
131
|
+
|
132
|
+
super(request_url, method, path, options)
|
133
|
+
end
|
134
|
+
|
135
|
+
|
136
|
+
private
|
137
|
+
#
|
138
|
+
# Adds telemetry information.
|
139
|
+
#
|
140
|
+
def add_telemetry
|
141
|
+
sdk_information = 'azure_mgmt_monitor'
|
142
|
+
sdk_information = "#{sdk_information}/0.17.5"
|
143
|
+
add_user_agent_information(sdk_information)
|
144
|
+
end
|
145
|
+
end
|
146
|
+
end
|
@@ -0,0 +1,377 @@
|
|
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::V2017_10_01_preview
|
7
|
+
#
|
8
|
+
# Composite Swagger for Application Insights Management Client
|
9
|
+
#
|
10
|
+
class ComponentCurrentPricingPlan
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the ComponentCurrentPricingPlan 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
|
+
# Returns the current pricing plan setting for an Application Insights
|
26
|
+
# component.
|
27
|
+
#
|
28
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
29
|
+
# is case insensitive.
|
30
|
+
# @param resource_name [String] The name of the Application Insights component
|
31
|
+
# resource.
|
32
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
33
|
+
# will be added to the HTTP request.
|
34
|
+
#
|
35
|
+
# @return [ApplicationInsightsComponentPricingPlan] operation results.
|
36
|
+
#
|
37
|
+
def get(resource_group_name, resource_name, custom_headers:nil)
|
38
|
+
response = get_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
|
39
|
+
response.body unless response.nil?
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# Returns the current pricing plan setting for an Application Insights
|
44
|
+
# component.
|
45
|
+
#
|
46
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
47
|
+
# is case insensitive.
|
48
|
+
# @param resource_name [String] The name of the Application Insights component
|
49
|
+
# resource.
|
50
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
51
|
+
# will be added to the HTTP request.
|
52
|
+
#
|
53
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
54
|
+
#
|
55
|
+
def get_with_http_info(resource_group_name, resource_name, custom_headers:nil)
|
56
|
+
get_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
|
57
|
+
end
|
58
|
+
|
59
|
+
#
|
60
|
+
# Returns the current pricing plan setting for an Application Insights
|
61
|
+
# component.
|
62
|
+
#
|
63
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
64
|
+
# is case insensitive.
|
65
|
+
# @param resource_name [String] The name of the Application Insights component
|
66
|
+
# resource.
|
67
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
68
|
+
# to the HTTP request.
|
69
|
+
#
|
70
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
71
|
+
#
|
72
|
+
def get_async(resource_group_name, resource_name, custom_headers:nil)
|
73
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
74
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
75
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
76
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
77
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
78
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
79
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
80
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
81
|
+
fail ArgumentError, 'resource_name is nil' if resource_name.nil?
|
82
|
+
|
83
|
+
|
84
|
+
request_headers = {}
|
85
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
86
|
+
|
87
|
+
# Set Headers
|
88
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
89
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
90
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/pricingPlans/current'
|
91
|
+
|
92
|
+
request_url = @base_url || @client.base_url
|
93
|
+
|
94
|
+
options = {
|
95
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
96
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'resourceName' => resource_name},
|
97
|
+
query_params: {'api-version' => @client.api_version},
|
98
|
+
headers: request_headers.merge(custom_headers || {}),
|
99
|
+
base_url: request_url
|
100
|
+
}
|
101
|
+
promise = @client.make_request_async(:get, 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
|
108
|
+
error_model = JSON.load(response_content)
|
109
|
+
fail MsRestAzure::AzureOperationError.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::V2017_10_01_preview::Models::ApplicationInsightsComponentPricingPlan.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
|
+
|
126
|
+
result
|
127
|
+
end
|
128
|
+
|
129
|
+
promise.execute
|
130
|
+
end
|
131
|
+
|
132
|
+
#
|
133
|
+
# Replace current pricing plan for an Application Insights component.
|
134
|
+
#
|
135
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
136
|
+
# is case insensitive.
|
137
|
+
# @param resource_name [String] The name of the Application Insights component
|
138
|
+
# resource.
|
139
|
+
# @param pricing_plan_properties [ApplicationInsightsComponentPricingPlan]
|
140
|
+
# Properties that need to be specified to update current pricing plan for an
|
141
|
+
# Application Insights component.
|
142
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
143
|
+
# will be added to the HTTP request.
|
144
|
+
#
|
145
|
+
# @return [ApplicationInsightsComponentPricingPlan] operation results.
|
146
|
+
#
|
147
|
+
def create_and_update(resource_group_name, resource_name, pricing_plan_properties, custom_headers:nil)
|
148
|
+
response = create_and_update_async(resource_group_name, resource_name, pricing_plan_properties, custom_headers:custom_headers).value!
|
149
|
+
response.body unless response.nil?
|
150
|
+
end
|
151
|
+
|
152
|
+
#
|
153
|
+
# Replace current pricing plan for an Application Insights component.
|
154
|
+
#
|
155
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
156
|
+
# is case insensitive.
|
157
|
+
# @param resource_name [String] The name of the Application Insights component
|
158
|
+
# resource.
|
159
|
+
# @param pricing_plan_properties [ApplicationInsightsComponentPricingPlan]
|
160
|
+
# Properties that need to be specified to update current pricing plan for an
|
161
|
+
# Application Insights component.
|
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 create_and_update_with_http_info(resource_group_name, resource_name, pricing_plan_properties, custom_headers:nil)
|
168
|
+
create_and_update_async(resource_group_name, resource_name, pricing_plan_properties, custom_headers:custom_headers).value!
|
169
|
+
end
|
170
|
+
|
171
|
+
#
|
172
|
+
# Replace current pricing plan for an Application Insights component.
|
173
|
+
#
|
174
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
175
|
+
# is case insensitive.
|
176
|
+
# @param resource_name [String] The name of the Application Insights component
|
177
|
+
# resource.
|
178
|
+
# @param pricing_plan_properties [ApplicationInsightsComponentPricingPlan]
|
179
|
+
# Properties that need to be specified to update current pricing plan for an
|
180
|
+
# Application Insights component.
|
181
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
182
|
+
# to the HTTP request.
|
183
|
+
#
|
184
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
185
|
+
#
|
186
|
+
def create_and_update_async(resource_group_name, resource_name, pricing_plan_properties, custom_headers:nil)
|
187
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
188
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
189
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
190
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
191
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
192
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
193
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
194
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
195
|
+
fail ArgumentError, 'resource_name is nil' if resource_name.nil?
|
196
|
+
fail ArgumentError, 'pricing_plan_properties is nil' if pricing_plan_properties.nil?
|
197
|
+
|
198
|
+
|
199
|
+
request_headers = {}
|
200
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
201
|
+
|
202
|
+
# Set Headers
|
203
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
204
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
205
|
+
|
206
|
+
# Serialize Request
|
207
|
+
request_mapper = Azure::Monitor::Mgmt::V2017_10_01_preview::Models::ApplicationInsightsComponentPricingPlan.mapper()
|
208
|
+
request_content = @client.serialize(request_mapper, pricing_plan_properties)
|
209
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
210
|
+
|
211
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/pricingPlans/current'
|
212
|
+
|
213
|
+
request_url = @base_url || @client.base_url
|
214
|
+
|
215
|
+
options = {
|
216
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
217
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'resourceName' => resource_name},
|
218
|
+
query_params: {'api-version' => @client.api_version},
|
219
|
+
body: request_content,
|
220
|
+
headers: request_headers.merge(custom_headers || {}),
|
221
|
+
base_url: request_url
|
222
|
+
}
|
223
|
+
promise = @client.make_request_async(:put, path_template, options)
|
224
|
+
|
225
|
+
promise = promise.then do |result|
|
226
|
+
http_response = result.response
|
227
|
+
status_code = http_response.status
|
228
|
+
response_content = http_response.body
|
229
|
+
unless status_code == 200
|
230
|
+
error_model = JSON.load(response_content)
|
231
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
232
|
+
end
|
233
|
+
|
234
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
235
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
236
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
237
|
+
# Deserialize Response
|
238
|
+
if status_code == 200
|
239
|
+
begin
|
240
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
241
|
+
result_mapper = Azure::Monitor::Mgmt::V2017_10_01_preview::Models::ApplicationInsightsComponentPricingPlan.mapper()
|
242
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
243
|
+
rescue Exception => e
|
244
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
245
|
+
end
|
246
|
+
end
|
247
|
+
|
248
|
+
result
|
249
|
+
end
|
250
|
+
|
251
|
+
promise.execute
|
252
|
+
end
|
253
|
+
|
254
|
+
#
|
255
|
+
# Update current pricing plan for an Application Insights component.
|
256
|
+
#
|
257
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
258
|
+
# is case insensitive.
|
259
|
+
# @param resource_name [String] The name of the Application Insights component
|
260
|
+
# resource.
|
261
|
+
# @param pricing_plan_properties [ApplicationInsightsComponentPricingPlan]
|
262
|
+
# Properties that need to be specified to update current pricing plan for an
|
263
|
+
# Application Insights component.
|
264
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
265
|
+
# will be added to the HTTP request.
|
266
|
+
#
|
267
|
+
# @return [ApplicationInsightsComponentPricingPlan] operation results.
|
268
|
+
#
|
269
|
+
def update(resource_group_name, resource_name, pricing_plan_properties, custom_headers:nil)
|
270
|
+
response = update_async(resource_group_name, resource_name, pricing_plan_properties, custom_headers:custom_headers).value!
|
271
|
+
response.body unless response.nil?
|
272
|
+
end
|
273
|
+
|
274
|
+
#
|
275
|
+
# Update current pricing plan for an Application Insights component.
|
276
|
+
#
|
277
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
278
|
+
# is case insensitive.
|
279
|
+
# @param resource_name [String] The name of the Application Insights component
|
280
|
+
# resource.
|
281
|
+
# @param pricing_plan_properties [ApplicationInsightsComponentPricingPlan]
|
282
|
+
# Properties that need to be specified to update current pricing plan for an
|
283
|
+
# 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
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
288
|
+
#
|
289
|
+
def update_with_http_info(resource_group_name, resource_name, pricing_plan_properties, custom_headers:nil)
|
290
|
+
update_async(resource_group_name, resource_name, pricing_plan_properties, custom_headers:custom_headers).value!
|
291
|
+
end
|
292
|
+
|
293
|
+
#
|
294
|
+
# Update current pricing plan for 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 pricing_plan_properties [ApplicationInsightsComponentPricingPlan]
|
301
|
+
# Properties that need to be specified to update current pricing plan for an
|
302
|
+
# Application Insights component.
|
303
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
304
|
+
# to the HTTP request.
|
305
|
+
#
|
306
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
307
|
+
#
|
308
|
+
def update_async(resource_group_name, resource_name, pricing_plan_properties, custom_headers:nil)
|
309
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
310
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
311
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
312
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
313
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
314
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
315
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
316
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
317
|
+
fail ArgumentError, 'resource_name is nil' if resource_name.nil?
|
318
|
+
fail ArgumentError, 'pricing_plan_properties is nil' if pricing_plan_properties.nil?
|
319
|
+
|
320
|
+
|
321
|
+
request_headers = {}
|
322
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
323
|
+
|
324
|
+
# Set Headers
|
325
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
326
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
327
|
+
|
328
|
+
# Serialize Request
|
329
|
+
request_mapper = Azure::Monitor::Mgmt::V2017_10_01_preview::Models::ApplicationInsightsComponentPricingPlan.mapper()
|
330
|
+
request_content = @client.serialize(request_mapper, pricing_plan_properties)
|
331
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
332
|
+
|
333
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/pricingPlans/current'
|
334
|
+
|
335
|
+
request_url = @base_url || @client.base_url
|
336
|
+
|
337
|
+
options = {
|
338
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
339
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'resourceName' => resource_name},
|
340
|
+
query_params: {'api-version' => @client.api_version},
|
341
|
+
body: request_content,
|
342
|
+
headers: request_headers.merge(custom_headers || {}),
|
343
|
+
base_url: request_url
|
344
|
+
}
|
345
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
346
|
+
|
347
|
+
promise = promise.then do |result|
|
348
|
+
http_response = result.response
|
349
|
+
status_code = http_response.status
|
350
|
+
response_content = http_response.body
|
351
|
+
unless status_code == 200
|
352
|
+
error_model = JSON.load(response_content)
|
353
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
354
|
+
end
|
355
|
+
|
356
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
357
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
358
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
359
|
+
# Deserialize Response
|
360
|
+
if status_code == 200
|
361
|
+
begin
|
362
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
363
|
+
result_mapper = Azure::Monitor::Mgmt::V2017_10_01_preview::Models::ApplicationInsightsComponentPricingPlan.mapper()
|
364
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
365
|
+
rescue Exception => e
|
366
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
367
|
+
end
|
368
|
+
end
|
369
|
+
|
370
|
+
result
|
371
|
+
end
|
372
|
+
|
373
|
+
promise.execute
|
374
|
+
end
|
375
|
+
|
376
|
+
end
|
377
|
+
end
|