azure_mgmt_monitor 0.17.1 → 0.17.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-04-01/generated/azure_mgmt_monitor/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_setting_resource_collection.rb +1 -1
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/event_data_collection.rb +1 -1
- data/lib/2015-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2015-04-01/generated/azure_mgmt_monitor/operations.rb +2 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/tenant_activity_logs.rb +4 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor.rb +106 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/analytics_items.rb +585 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/annotations.rb +505 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/apikeys.rb +473 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/application_insights_management_client.rb +193 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/component_available_features.rb +130 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/component_current_billing_features.rb +252 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/component_feature_capabilities.rb +130 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/component_quota_status.rb +133 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/components.rb +1134 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/export_configurations.rb +646 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/favorites.rb +653 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/annotation.rb +103 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/annotation_error.rb +70 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/annotations_list_result.rb +56 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/apikey_request.rb +84 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component.rb +261 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_analytics_item.rb +146 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_analytics_item_properties.rb +49 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_apikey.rb +121 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_apikey_list_result.rb +57 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_available_features.rb +58 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_billing_features.rb +70 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_data_volume_cap.rb +106 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_export_configuration.rb +277 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_export_request.rb +143 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_favorite.rb +182 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_feature.rb +153 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_feature_capabilities.rb +228 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_feature_capability.rb +108 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_list_result.rb +102 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_proactive_detection_configuration.rb +117 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_proactive_detection_configuration_rule_definitions.rb +130 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_quota_status.rb +74 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_component_web_test_location.rb +61 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_insights_web_test_locations_list_result.rb +58 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/application_type.rb +16 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/category_type.rb +18 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/component_purge_body.rb +67 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/component_purge_body_filters.rb +85 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/component_purge_response.rb +47 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/component_purge_status_response.rb +47 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/components_resource.rb +101 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/error_field_contract.rb +68 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/error_response.rb +58 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/favorite_source_type.rb +22 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/favorite_type.rb +16 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/flow_type.rb +15 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/inner_error.rb +57 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/item_scope.rb +16 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/item_scope_path.rb +16 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/item_type.rb +18 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/item_type_parameter.rb +19 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/link_properties.rb +68 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/operation.rb +58 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/operation_display.rb +69 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/operation_list_result.rb +101 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/purge_state.rb +16 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/request_source.rb +15 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/shared_type_kind.rb +16 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/tags_resource.rb +55 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/web_test.rb +249 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/web_test_geolocation.rb +47 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/web_test_kind.rb +16 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/web_test_list_result.rb +101 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/web_test_properties_configuration.rb +47 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/webtests_resource.rb +101 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/work_item_configuration.rb +91 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/work_item_configuration_error.rb +70 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/work_item_configurations_list_result.rb +57 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/work_item_create_configuration.rb +87 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/workbook.rb +228 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/workbook_error.rb +79 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/workbook_resource.rb +101 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/models/workbooks_list_result.rb +56 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/module_definition.rb +9 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/operations.rb +220 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/proactive_detection_configurations.rb +392 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/web_test_locations.rb +133 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/web_tests.rb +1103 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/work_item_configurations.rb +708 -0
- data/lib/2015-05-01/generated/azure_mgmt_monitor/workbooks.rb +589 -0
- data/lib/2016-03-01/generated/azure_mgmt_monitor/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/monitor_management_client.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_monitor/metrics.rb +2 -0
- data/lib/2016-09-01/generated/azure_mgmt_monitor/monitor_client.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_monitor/service_diagnostic_settings_operations.rb +6 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/action_groups.rb +14 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/activity_log_alerts.rb +12 -0
- data/lib/2017-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/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/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/metric_baseline.rb +4 -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 +32 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/metric_namespaces.rb +120 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/models/metric_namespace.rb +81 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/models/metric_namespace_collection.rb +55 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/models/metric_namespace_name.rb +46 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/module_definition.rb +9 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +128 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/metric_definitions.rb +2 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/metrics.rb +2 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- 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/monitor_management_client.rb +1 -1
- data/lib/2018-04-16/generated/azure_mgmt_monitor/monitor_client.rb +1 -1
- data/lib/2018-04-16/generated/azure_mgmt_monitor/scheduled_query_rules.rb +12 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor.rb +44 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/guest_diagnostics_settings.rb +614 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/guest_diagnostics_settings_association.rb +634 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/data_source.rb +80 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/data_source_configuration.rb +98 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/etw_event_configuration.rb +69 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/etw_provider_configuration.rb +67 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/event_log_configuration.rb +58 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_association_list.rb +68 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_association_resource.rb +98 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_association_resource_patch.rb +66 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_list.rb +68 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_patch_resource.rb +98 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/guest_diagnostic_settings_resource.rb +130 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/performance_counter_configuration.rb +69 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/resource.rb +110 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/models/sink_configuration.rb +48 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/module_definition.rb +9 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +136 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor.rb +36 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/application_insights_management_client.rb +131 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/category_type.rb +18 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/error_field_contract.rb +68 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/resource.rb +123 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/shared_type_kind.rb +16 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/workbook.rb +185 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/workbook_error.rb +79 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/workbook_update_parameters.rb +122 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/models/workbooks_list_result.rb +55 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/module_definition.rb +9 -0
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/workbooks.rb +609 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor.rb +54 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/action_groups.rb +707 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/metric_baseline.rb +294 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/action_group_list.rb +67 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb +68 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +326 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/arm_role_receiver.rb +58 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb +102 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb +58 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/azure_function_receiver.rb +80 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/baseline.rb +86 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/baseline_metadata_value.rb +58 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/baseline_response.rb +171 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/calculate_baseline_response.rb +85 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/email_receiver.rb +72 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/enable_request.rb +46 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb +94 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/localizable_string.rb +57 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/logic_app_receiver.rb +69 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/receiver_status.rb +17 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/resource.rb +110 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/result_type.rb +16 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/sensitivity.rb +17 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/sms_receiver.rb +83 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/time_series_information.rb +93 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/voice_receiver.rb +69 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/models/webhook_receiver.rb +58 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/module_definition.rb +9 -0
- data/lib/2018-09-01/generated/azure_mgmt_monitor/monitor_management_client.rb +135 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor.rb +36 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/data_container.rb +47 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/data_status.rb +16 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/error.rb +57 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/onboarding_status.rb +17 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/proxy_resource.rb +71 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/response_with_error.rb +47 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/vminsights_onboarding_status.rb +123 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/models/workspace_info.rb +69 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/module_definition.rb +9 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +128 -0
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/vminsights.rb +120 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor.rb +45 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/action_groups.rb +707 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/action_group_list.rb +67 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb +68 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +326 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/arm_role_receiver.rb +69 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb +113 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb +58 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/azure_function_receiver.rb +91 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/email_receiver.rb +83 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/enable_request.rb +46 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb +94 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/logic_app_receiver.rb +80 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/receiver_status.rb +17 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/resource.rb +110 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/sms_receiver.rb +83 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/voice_receiver.rb +69 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/webhook_receiver.rb +69 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/module_definition.rb +9 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +131 -0
- data/lib/azure_mgmt_monitor.rb +12 -3
- data/lib/profiles/latest/modules/monitor_profile_module.rb +332 -106
- data/lib/profiles/v2019_03_01_hybrid/modules/monitor_profile_module.rb +297 -0
- data/lib/profiles/v2019_03_01_hybrid/monitor_module_definition.rb +8 -0
- data/lib/profiles/v2019_03_01_hybrid/monitor_v2019_03_01_hybrid_profile_client.rb +40 -0
- data/lib/version.rb +1 -1
- metadata +203 -5
@@ -0,0 +1,708 @@
|
|
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 WorkItemConfigurations
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the WorkItemConfigurations class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [ApplicationInsightsManagementClient] reference to the ApplicationInsightsManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Gets the list work item configurations that exist for the application
|
26
|
+
#
|
27
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
28
|
+
# is case insensitive.
|
29
|
+
# @param resource_name [String] The name of the Application Insights component
|
30
|
+
# resource.
|
31
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
32
|
+
# will be added to the HTTP request.
|
33
|
+
#
|
34
|
+
# @return [WorkItemConfigurationsListResult] operation results.
|
35
|
+
#
|
36
|
+
def list(resource_group_name, resource_name, custom_headers:nil)
|
37
|
+
response = list_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
|
38
|
+
response.body unless response.nil?
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Gets the list work item configurations that exist for the application
|
43
|
+
#
|
44
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
45
|
+
# is case insensitive.
|
46
|
+
# @param resource_name [String] The name of the Application Insights component
|
47
|
+
# resource.
|
48
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
49
|
+
# will be added to the HTTP request.
|
50
|
+
#
|
51
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
52
|
+
#
|
53
|
+
def list_with_http_info(resource_group_name, resource_name, custom_headers:nil)
|
54
|
+
list_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
|
55
|
+
end
|
56
|
+
|
57
|
+
#
|
58
|
+
# Gets the list work item configurations that exist for the application
|
59
|
+
#
|
60
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
61
|
+
# is case insensitive.
|
62
|
+
# @param resource_name [String] The name of the Application Insights component
|
63
|
+
# resource.
|
64
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
65
|
+
# to the HTTP request.
|
66
|
+
#
|
67
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
68
|
+
#
|
69
|
+
def list_async(resource_group_name, resource_name, custom_headers:nil)
|
70
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
71
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
72
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
73
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
74
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
75
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
76
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
77
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
78
|
+
fail ArgumentError, 'resource_name is nil' if resource_name.nil?
|
79
|
+
|
80
|
+
|
81
|
+
request_headers = {}
|
82
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
83
|
+
|
84
|
+
# Set Headers
|
85
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
86
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
87
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs'
|
88
|
+
|
89
|
+
request_url = @base_url || @client.base_url
|
90
|
+
|
91
|
+
options = {
|
92
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
93
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'resourceName' => resource_name},
|
94
|
+
query_params: {'api-version' => @client.api_version},
|
95
|
+
headers: request_headers.merge(custom_headers || {}),
|
96
|
+
base_url: request_url
|
97
|
+
}
|
98
|
+
promise = @client.make_request_async(:get, path_template, options)
|
99
|
+
|
100
|
+
promise = promise.then do |result|
|
101
|
+
http_response = result.response
|
102
|
+
status_code = http_response.status
|
103
|
+
response_content = http_response.body
|
104
|
+
unless status_code == 200
|
105
|
+
error_model = JSON.load(response_content)
|
106
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
107
|
+
end
|
108
|
+
|
109
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
110
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
111
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
112
|
+
# Deserialize Response
|
113
|
+
if status_code == 200
|
114
|
+
begin
|
115
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
116
|
+
result_mapper = Azure::Monitor::Mgmt::V2015_05_01::Models::WorkItemConfigurationsListResult.mapper()
|
117
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
118
|
+
rescue Exception => e
|
119
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
result
|
124
|
+
end
|
125
|
+
|
126
|
+
promise.execute
|
127
|
+
end
|
128
|
+
|
129
|
+
#
|
130
|
+
# Create a work item configuration for an Application Insights component.
|
131
|
+
#
|
132
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
133
|
+
# is case insensitive.
|
134
|
+
# @param resource_name [String] The name of the Application Insights component
|
135
|
+
# resource.
|
136
|
+
# @param work_item_configuration_properties [WorkItemCreateConfiguration]
|
137
|
+
# Properties that need to be specified to create a work item configuration of a
|
138
|
+
# Application Insights component.
|
139
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
140
|
+
# will be added to the HTTP request.
|
141
|
+
#
|
142
|
+
# @return [WorkItemConfiguration] operation results.
|
143
|
+
#
|
144
|
+
def create(resource_group_name, resource_name, work_item_configuration_properties, custom_headers:nil)
|
145
|
+
response = create_async(resource_group_name, resource_name, work_item_configuration_properties, custom_headers:custom_headers).value!
|
146
|
+
response.body unless response.nil?
|
147
|
+
end
|
148
|
+
|
149
|
+
#
|
150
|
+
# Create a work item configuration for an Application Insights component.
|
151
|
+
#
|
152
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
153
|
+
# is case insensitive.
|
154
|
+
# @param resource_name [String] The name of the Application Insights component
|
155
|
+
# resource.
|
156
|
+
# @param work_item_configuration_properties [WorkItemCreateConfiguration]
|
157
|
+
# Properties that need to be specified to create a work item configuration of a
|
158
|
+
# Application Insights component.
|
159
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
160
|
+
# will be added to the HTTP request.
|
161
|
+
#
|
162
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
163
|
+
#
|
164
|
+
def create_with_http_info(resource_group_name, resource_name, work_item_configuration_properties, custom_headers:nil)
|
165
|
+
create_async(resource_group_name, resource_name, work_item_configuration_properties, custom_headers:custom_headers).value!
|
166
|
+
end
|
167
|
+
|
168
|
+
#
|
169
|
+
# Create a work item configuration for an Application Insights component.
|
170
|
+
#
|
171
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
172
|
+
# is case insensitive.
|
173
|
+
# @param resource_name [String] The name of the Application Insights component
|
174
|
+
# resource.
|
175
|
+
# @param work_item_configuration_properties [WorkItemCreateConfiguration]
|
176
|
+
# Properties that need to be specified to create a work item configuration of a
|
177
|
+
# Application Insights component.
|
178
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
179
|
+
# to the HTTP request.
|
180
|
+
#
|
181
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
182
|
+
#
|
183
|
+
def create_async(resource_group_name, resource_name, work_item_configuration_properties, custom_headers:nil)
|
184
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
185
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
186
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
187
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
188
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
189
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
190
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
191
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
192
|
+
fail ArgumentError, 'resource_name is nil' if resource_name.nil?
|
193
|
+
fail ArgumentError, 'work_item_configuration_properties is nil' if work_item_configuration_properties.nil?
|
194
|
+
|
195
|
+
|
196
|
+
request_headers = {}
|
197
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
198
|
+
|
199
|
+
# Set Headers
|
200
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
201
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
202
|
+
|
203
|
+
# Serialize Request
|
204
|
+
request_mapper = Azure::Monitor::Mgmt::V2015_05_01::Models::WorkItemCreateConfiguration.mapper()
|
205
|
+
request_content = @client.serialize(request_mapper, work_item_configuration_properties)
|
206
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
207
|
+
|
208
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs'
|
209
|
+
|
210
|
+
request_url = @base_url || @client.base_url
|
211
|
+
|
212
|
+
options = {
|
213
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
214
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'resourceName' => resource_name},
|
215
|
+
query_params: {'api-version' => @client.api_version},
|
216
|
+
body: request_content,
|
217
|
+
headers: request_headers.merge(custom_headers || {}),
|
218
|
+
base_url: request_url
|
219
|
+
}
|
220
|
+
promise = @client.make_request_async(:post, path_template, options)
|
221
|
+
|
222
|
+
promise = promise.then do |result|
|
223
|
+
http_response = result.response
|
224
|
+
status_code = http_response.status
|
225
|
+
response_content = http_response.body
|
226
|
+
unless status_code == 200
|
227
|
+
error_model = JSON.load(response_content)
|
228
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
229
|
+
end
|
230
|
+
|
231
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
232
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
233
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
234
|
+
# Deserialize Response
|
235
|
+
if status_code == 200
|
236
|
+
begin
|
237
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
238
|
+
result_mapper = Azure::Monitor::Mgmt::V2015_05_01::Models::WorkItemConfiguration.mapper()
|
239
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
240
|
+
rescue Exception => e
|
241
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
242
|
+
end
|
243
|
+
end
|
244
|
+
|
245
|
+
result
|
246
|
+
end
|
247
|
+
|
248
|
+
promise.execute
|
249
|
+
end
|
250
|
+
|
251
|
+
#
|
252
|
+
# Gets default work item configurations that exist for the application
|
253
|
+
#
|
254
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
255
|
+
# is case insensitive.
|
256
|
+
# @param resource_name [String] The name of the Application Insights component
|
257
|
+
# resource.
|
258
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
259
|
+
# will be added to the HTTP request.
|
260
|
+
#
|
261
|
+
# @return [WorkItemConfiguration] operation results.
|
262
|
+
#
|
263
|
+
def get_default(resource_group_name, resource_name, custom_headers:nil)
|
264
|
+
response = get_default_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
|
265
|
+
response.body unless response.nil?
|
266
|
+
end
|
267
|
+
|
268
|
+
#
|
269
|
+
# Gets default work item configurations that exist for the application
|
270
|
+
#
|
271
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
272
|
+
# is case insensitive.
|
273
|
+
# @param resource_name [String] The name of the Application Insights component
|
274
|
+
# resource.
|
275
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
276
|
+
# will be added to the HTTP request.
|
277
|
+
#
|
278
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
279
|
+
#
|
280
|
+
def get_default_with_http_info(resource_group_name, resource_name, custom_headers:nil)
|
281
|
+
get_default_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
|
282
|
+
end
|
283
|
+
|
284
|
+
#
|
285
|
+
# Gets default work item configurations that exist for the application
|
286
|
+
#
|
287
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
288
|
+
# is case insensitive.
|
289
|
+
# @param resource_name [String] The name of the Application Insights component
|
290
|
+
# resource.
|
291
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
292
|
+
# to the HTTP request.
|
293
|
+
#
|
294
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
295
|
+
#
|
296
|
+
def get_default_async(resource_group_name, resource_name, custom_headers:nil)
|
297
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
298
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
299
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
300
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
301
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
302
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
303
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
304
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
305
|
+
fail ArgumentError, 'resource_name is nil' if resource_name.nil?
|
306
|
+
|
307
|
+
|
308
|
+
request_headers = {}
|
309
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
310
|
+
|
311
|
+
# Set Headers
|
312
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
313
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
314
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/DefaultWorkItemConfig'
|
315
|
+
|
316
|
+
request_url = @base_url || @client.base_url
|
317
|
+
|
318
|
+
options = {
|
319
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
320
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'resourceName' => resource_name},
|
321
|
+
query_params: {'api-version' => @client.api_version},
|
322
|
+
headers: request_headers.merge(custom_headers || {}),
|
323
|
+
base_url: request_url
|
324
|
+
}
|
325
|
+
promise = @client.make_request_async(:get, path_template, options)
|
326
|
+
|
327
|
+
promise = promise.then do |result|
|
328
|
+
http_response = result.response
|
329
|
+
status_code = http_response.status
|
330
|
+
response_content = http_response.body
|
331
|
+
unless status_code == 200
|
332
|
+
error_model = JSON.load(response_content)
|
333
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
334
|
+
end
|
335
|
+
|
336
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
337
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
338
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
339
|
+
# Deserialize Response
|
340
|
+
if status_code == 200
|
341
|
+
begin
|
342
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
343
|
+
result_mapper = Azure::Monitor::Mgmt::V2015_05_01::Models::WorkItemConfiguration.mapper()
|
344
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
345
|
+
rescue Exception => e
|
346
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
347
|
+
end
|
348
|
+
end
|
349
|
+
|
350
|
+
result
|
351
|
+
end
|
352
|
+
|
353
|
+
promise.execute
|
354
|
+
end
|
355
|
+
|
356
|
+
#
|
357
|
+
# Delete a work item configuration of an Application Insights component.
|
358
|
+
#
|
359
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
360
|
+
# is case insensitive.
|
361
|
+
# @param resource_name [String] The name of the Application Insights component
|
362
|
+
# resource.
|
363
|
+
# @param work_item_config_id [String] The unique work item configuration Id.
|
364
|
+
# This can be either friendly name of connector as defined in connector
|
365
|
+
# configuration
|
366
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
367
|
+
# will be added to the HTTP request.
|
368
|
+
#
|
369
|
+
#
|
370
|
+
def delete(resource_group_name, resource_name, work_item_config_id, custom_headers:nil)
|
371
|
+
response = delete_async(resource_group_name, resource_name, work_item_config_id, custom_headers:custom_headers).value!
|
372
|
+
nil
|
373
|
+
end
|
374
|
+
|
375
|
+
#
|
376
|
+
# Delete a work item configuration of an Application Insights component.
|
377
|
+
#
|
378
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
379
|
+
# is case insensitive.
|
380
|
+
# @param resource_name [String] The name of the Application Insights component
|
381
|
+
# resource.
|
382
|
+
# @param work_item_config_id [String] The unique work item configuration Id.
|
383
|
+
# This can be either friendly name of connector as defined in connector
|
384
|
+
# configuration
|
385
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
386
|
+
# will be added to the HTTP request.
|
387
|
+
#
|
388
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
389
|
+
#
|
390
|
+
def delete_with_http_info(resource_group_name, resource_name, work_item_config_id, custom_headers:nil)
|
391
|
+
delete_async(resource_group_name, resource_name, work_item_config_id, custom_headers:custom_headers).value!
|
392
|
+
end
|
393
|
+
|
394
|
+
#
|
395
|
+
# Delete a work item configuration of an Application Insights component.
|
396
|
+
#
|
397
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
398
|
+
# is case insensitive.
|
399
|
+
# @param resource_name [String] The name of the Application Insights component
|
400
|
+
# resource.
|
401
|
+
# @param work_item_config_id [String] The unique work item configuration Id.
|
402
|
+
# This can be either friendly name of connector as defined in connector
|
403
|
+
# configuration
|
404
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
405
|
+
# to the HTTP request.
|
406
|
+
#
|
407
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
408
|
+
#
|
409
|
+
def delete_async(resource_group_name, resource_name, work_item_config_id, custom_headers:nil)
|
410
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
411
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
412
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
413
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
414
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
415
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
416
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
417
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
418
|
+
fail ArgumentError, 'resource_name is nil' if resource_name.nil?
|
419
|
+
fail ArgumentError, 'work_item_config_id is nil' if work_item_config_id.nil?
|
420
|
+
|
421
|
+
|
422
|
+
request_headers = {}
|
423
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
424
|
+
|
425
|
+
# Set Headers
|
426
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
427
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
428
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs/{workItemConfigId}'
|
429
|
+
|
430
|
+
request_url = @base_url || @client.base_url
|
431
|
+
|
432
|
+
options = {
|
433
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
434
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'resourceName' => resource_name,'workItemConfigId' => work_item_config_id},
|
435
|
+
query_params: {'api-version' => @client.api_version},
|
436
|
+
headers: request_headers.merge(custom_headers || {}),
|
437
|
+
base_url: request_url
|
438
|
+
}
|
439
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
440
|
+
|
441
|
+
promise = promise.then do |result|
|
442
|
+
http_response = result.response
|
443
|
+
status_code = http_response.status
|
444
|
+
response_content = http_response.body
|
445
|
+
unless status_code == 200
|
446
|
+
error_model = JSON.load(response_content)
|
447
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
448
|
+
end
|
449
|
+
|
450
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
451
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
452
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
453
|
+
|
454
|
+
result
|
455
|
+
end
|
456
|
+
|
457
|
+
promise.execute
|
458
|
+
end
|
459
|
+
|
460
|
+
#
|
461
|
+
# Gets specified work item configuration for an Application Insights component.
|
462
|
+
#
|
463
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
464
|
+
# is case insensitive.
|
465
|
+
# @param resource_name [String] The name of the Application Insights component
|
466
|
+
# resource.
|
467
|
+
# @param work_item_config_id [String] The unique work item configuration Id.
|
468
|
+
# This can be either friendly name of connector as defined in connector
|
469
|
+
# configuration
|
470
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
471
|
+
# will be added to the HTTP request.
|
472
|
+
#
|
473
|
+
# @return [WorkItemConfiguration] operation results.
|
474
|
+
#
|
475
|
+
def get_item(resource_group_name, resource_name, work_item_config_id, custom_headers:nil)
|
476
|
+
response = get_item_async(resource_group_name, resource_name, work_item_config_id, custom_headers:custom_headers).value!
|
477
|
+
response.body unless response.nil?
|
478
|
+
end
|
479
|
+
|
480
|
+
#
|
481
|
+
# Gets specified work item configuration for an Application Insights component.
|
482
|
+
#
|
483
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
484
|
+
# is case insensitive.
|
485
|
+
# @param resource_name [String] The name of the Application Insights component
|
486
|
+
# resource.
|
487
|
+
# @param work_item_config_id [String] The unique work item configuration Id.
|
488
|
+
# This can be either friendly name of connector as defined in connector
|
489
|
+
# configuration
|
490
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
491
|
+
# will be added to the HTTP request.
|
492
|
+
#
|
493
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
494
|
+
#
|
495
|
+
def get_item_with_http_info(resource_group_name, resource_name, work_item_config_id, custom_headers:nil)
|
496
|
+
get_item_async(resource_group_name, resource_name, work_item_config_id, custom_headers:custom_headers).value!
|
497
|
+
end
|
498
|
+
|
499
|
+
#
|
500
|
+
# Gets specified work item configuration for an Application Insights component.
|
501
|
+
#
|
502
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
503
|
+
# is case insensitive.
|
504
|
+
# @param resource_name [String] The name of the Application Insights component
|
505
|
+
# resource.
|
506
|
+
# @param work_item_config_id [String] The unique work item configuration Id.
|
507
|
+
# This can be either friendly name of connector as defined in connector
|
508
|
+
# configuration
|
509
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
510
|
+
# to the HTTP request.
|
511
|
+
#
|
512
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
513
|
+
#
|
514
|
+
def get_item_async(resource_group_name, resource_name, work_item_config_id, custom_headers:nil)
|
515
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
516
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
517
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
518
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
519
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
520
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
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_name is nil' if resource_name.nil?
|
524
|
+
fail ArgumentError, 'work_item_config_id is nil' if work_item_config_id.nil?
|
525
|
+
|
526
|
+
|
527
|
+
request_headers = {}
|
528
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
529
|
+
|
530
|
+
# Set Headers
|
531
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
532
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
533
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs/{workItemConfigId}'
|
534
|
+
|
535
|
+
request_url = @base_url || @client.base_url
|
536
|
+
|
537
|
+
options = {
|
538
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
539
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'resourceName' => resource_name,'workItemConfigId' => work_item_config_id},
|
540
|
+
query_params: {'api-version' => @client.api_version},
|
541
|
+
headers: request_headers.merge(custom_headers || {}),
|
542
|
+
base_url: request_url
|
543
|
+
}
|
544
|
+
promise = @client.make_request_async(:get, path_template, options)
|
545
|
+
|
546
|
+
promise = promise.then do |result|
|
547
|
+
http_response = result.response
|
548
|
+
status_code = http_response.status
|
549
|
+
response_content = http_response.body
|
550
|
+
unless status_code == 200
|
551
|
+
error_model = JSON.load(response_content)
|
552
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
553
|
+
end
|
554
|
+
|
555
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
556
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
557
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
558
|
+
# Deserialize Response
|
559
|
+
if status_code == 200
|
560
|
+
begin
|
561
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
562
|
+
result_mapper = Azure::Monitor::Mgmt::V2015_05_01::Models::WorkItemConfiguration.mapper()
|
563
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
564
|
+
rescue Exception => e
|
565
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
566
|
+
end
|
567
|
+
end
|
568
|
+
|
569
|
+
result
|
570
|
+
end
|
571
|
+
|
572
|
+
promise.execute
|
573
|
+
end
|
574
|
+
|
575
|
+
#
|
576
|
+
# Update a work item configuration for an Application Insights component.
|
577
|
+
#
|
578
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
579
|
+
# is case insensitive.
|
580
|
+
# @param resource_name [String] The name of the Application Insights component
|
581
|
+
# resource.
|
582
|
+
# @param work_item_config_id [String] The unique work item configuration Id.
|
583
|
+
# This can be either friendly name of connector as defined in connector
|
584
|
+
# configuration
|
585
|
+
# @param work_item_configuration_properties [WorkItemCreateConfiguration]
|
586
|
+
# Properties that need to be specified to update a work item configuration for
|
587
|
+
# this Application Insights component.
|
588
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
589
|
+
# will be added to the HTTP request.
|
590
|
+
#
|
591
|
+
# @return [WorkItemConfiguration] operation results.
|
592
|
+
#
|
593
|
+
def update_item(resource_group_name, resource_name, work_item_config_id, work_item_configuration_properties, custom_headers:nil)
|
594
|
+
response = update_item_async(resource_group_name, resource_name, work_item_config_id, work_item_configuration_properties, custom_headers:custom_headers).value!
|
595
|
+
response.body unless response.nil?
|
596
|
+
end
|
597
|
+
|
598
|
+
#
|
599
|
+
# Update a work item configuration for an Application Insights component.
|
600
|
+
#
|
601
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
602
|
+
# is case insensitive.
|
603
|
+
# @param resource_name [String] The name of the Application Insights component
|
604
|
+
# resource.
|
605
|
+
# @param work_item_config_id [String] The unique work item configuration Id.
|
606
|
+
# This can be either friendly name of connector as defined in connector
|
607
|
+
# configuration
|
608
|
+
# @param work_item_configuration_properties [WorkItemCreateConfiguration]
|
609
|
+
# Properties that need to be specified to update a work item configuration for
|
610
|
+
# this Application Insights component.
|
611
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
612
|
+
# will be added to the HTTP request.
|
613
|
+
#
|
614
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
615
|
+
#
|
616
|
+
def update_item_with_http_info(resource_group_name, resource_name, work_item_config_id, work_item_configuration_properties, custom_headers:nil)
|
617
|
+
update_item_async(resource_group_name, resource_name, work_item_config_id, work_item_configuration_properties, custom_headers:custom_headers).value!
|
618
|
+
end
|
619
|
+
|
620
|
+
#
|
621
|
+
# Update a work item configuration for an Application Insights component.
|
622
|
+
#
|
623
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
624
|
+
# is case insensitive.
|
625
|
+
# @param resource_name [String] The name of the Application Insights component
|
626
|
+
# resource.
|
627
|
+
# @param work_item_config_id [String] The unique work item configuration Id.
|
628
|
+
# This can be either friendly name of connector as defined in connector
|
629
|
+
# configuration
|
630
|
+
# @param work_item_configuration_properties [WorkItemCreateConfiguration]
|
631
|
+
# Properties that need to be specified to update a work item configuration for
|
632
|
+
# this Application Insights component.
|
633
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
634
|
+
# to the HTTP request.
|
635
|
+
#
|
636
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
637
|
+
#
|
638
|
+
def update_item_async(resource_group_name, resource_name, work_item_config_id, work_item_configuration_properties, custom_headers:nil)
|
639
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
640
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
641
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
642
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
643
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
644
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
645
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
646
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
647
|
+
fail ArgumentError, 'resource_name is nil' if resource_name.nil?
|
648
|
+
fail ArgumentError, 'work_item_config_id is nil' if work_item_config_id.nil?
|
649
|
+
fail ArgumentError, 'work_item_configuration_properties is nil' if work_item_configuration_properties.nil?
|
650
|
+
|
651
|
+
|
652
|
+
request_headers = {}
|
653
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
654
|
+
|
655
|
+
# Set Headers
|
656
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
657
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
658
|
+
|
659
|
+
# Serialize Request
|
660
|
+
request_mapper = Azure::Monitor::Mgmt::V2015_05_01::Models::WorkItemCreateConfiguration.mapper()
|
661
|
+
request_content = @client.serialize(request_mapper, work_item_configuration_properties)
|
662
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
663
|
+
|
664
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs/{workItemConfigId}'
|
665
|
+
|
666
|
+
request_url = @base_url || @client.base_url
|
667
|
+
|
668
|
+
options = {
|
669
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
670
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id,'resourceName' => resource_name,'workItemConfigId' => work_item_config_id},
|
671
|
+
query_params: {'api-version' => @client.api_version},
|
672
|
+
body: request_content,
|
673
|
+
headers: request_headers.merge(custom_headers || {}),
|
674
|
+
base_url: request_url
|
675
|
+
}
|
676
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
677
|
+
|
678
|
+
promise = promise.then do |result|
|
679
|
+
http_response = result.response
|
680
|
+
status_code = http_response.status
|
681
|
+
response_content = http_response.body
|
682
|
+
unless status_code == 200
|
683
|
+
error_model = JSON.load(response_content)
|
684
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
685
|
+
end
|
686
|
+
|
687
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
688
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
689
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
690
|
+
# Deserialize Response
|
691
|
+
if status_code == 200
|
692
|
+
begin
|
693
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
694
|
+
result_mapper = Azure::Monitor::Mgmt::V2015_05_01::Models::WorkItemConfiguration.mapper()
|
695
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
696
|
+
rescue Exception => e
|
697
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
698
|
+
end
|
699
|
+
end
|
700
|
+
|
701
|
+
result
|
702
|
+
end
|
703
|
+
|
704
|
+
promise.execute
|
705
|
+
end
|
706
|
+
|
707
|
+
end
|
708
|
+
end
|