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