azure_mgmt_security 0.17.1 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-06-01-preview/generated/azure_mgmt_security.rb +114 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/adaptive_application_controls.rb +394 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/adaptive_network_hardenings.rb +539 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/alerts.rb +1438 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/allowed_connections.rb +535 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/discovered_security_solutions.rb +532 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/external_security_solutions.rb +525 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/jit_network_access_policies.rb +1295 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/locations.rb +330 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/aad_connectivity_state.rb +17 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/aad_connectivity_state1.rb +48 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/aad_external_security_solution.rb +99 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/aad_solution_properties.rb +83 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/adaptive_network_hardening.rb +116 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/adaptive_network_hardening_enforce_request.rb +77 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/adaptive_network_hardenings_list.rb +99 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/alert.rb +375 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/alert_confidence_reason.rb +59 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/alert_entity.rb +66 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/alert_list.rb +99 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/allowed_connections_list.rb +100 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/allowed_connections_resource.rb +118 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/app_whitelisting_group.rb +203 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/app_whitelisting_groups.rb +56 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/app_whitelisting_issue_summary.rb +61 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/app_whitelisting_put_group_data.rb +102 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/asc_location.rb +73 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/asc_location_list.rb +100 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/ata_external_security_solution.rb +98 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/ata_solution_properties.rb +87 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/cef_external_security_solution.rb +98 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/cef_solution_properties.rb +109 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/connectable_resource.rb +91 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/connected_resource.rb +71 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/connected_workspace.rb +47 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/connection_type.rb +16 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/direction.rb +16 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/discovered_security_solution.rb +129 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/discovered_security_solution_list.rb +99 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/effective_network_security_groups.rb +66 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/etag.rb +48 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/external_security_solution.rb +98 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/external_security_solution_kind.rb +17 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/external_security_solution_kind1.rb +47 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/external_security_solution_list.rb +101 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/external_security_solution_properties.rb +88 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_policies_list.rb +99 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_policy.rb +149 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_policy_initiate_port.rb +70 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_policy_initiate_request.rb +68 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_policy_initiate_virtual_machine.rb +70 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_policy_virtual_machine.rb +81 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_port_rule.rb +103 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_request.rb +89 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_request_port.rb +128 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_request_virtual_machine.rb +69 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/kind.rb +46 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/location.rb +47 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/operation.rb +71 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/operation_display.rb +84 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/operation_list.rb +99 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/path_recommendation.rb +156 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/protection_mode.rb +80 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/protocol.rb +17 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/publisher_info.rb +84 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/reported_severity.rb +18 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/resource.rb +80 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/rule.rb +111 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/security_family.rb +18 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/security_task.rb +123 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/security_task_list.rb +100 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/security_task_parameters.rb +67 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/status.rb +16 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/status_reason.rb +17 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/tags.rb +55 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/topology_list.rb +100 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/topology_resource.rb +118 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/topology_single_resource.rb +154 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/topology_single_resource_child.rb +49 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/topology_single_resource_parent.rb +49 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/tracked_resource.rb +125 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/transport_protocol.rb +16 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/user_recommendation.rb +58 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/vm_recommendation.rb +81 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/module_definition.rb +9 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/operations.rb +218 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/security_center.rb +175 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/tasks.rb +1055 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/topology.rb +530 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security.rb +95 -11
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/advanced_threat_protection.rb +224 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/auto_provisioning_settings.rb +12 -4
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/compliances.rb +12 -5
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/device_security_groups.rb +539 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/information_protection_policies.rb +463 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/io_tsecurity_solutions.rb +230 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/io_tsecurity_solutions_analytics.rb +227 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/io_tsecurity_solutions_analytics_aggregated_alert.rb +224 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/io_tsecurity_solutions_analytics_aggregated_alerts.rb +243 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/io_tsecurity_solutions_analytics_recommendation.rb +133 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/io_tsecurity_solutions_analytics_recommendations.rb +243 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/io_tsecurity_solutions_resource_group.rb +242 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/iot_security_solution.rb +459 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/active_connections_not_in_allowed_range.rb +100 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/advanced_threat_protection_setting.rb +74 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/allowlist_custom_alert_rule.rb +106 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/amqp_c2dmessages_not_in_allowed_range.rb +101 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/amqp_c2drejected_messages_not_in_allowed_range.rb +101 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/amqp_d2cmessages_not_in_allowed_range.rb +101 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/asc_location.rb +73 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/auto_provisioning_setting_list.rb +1 -1
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/compliance_list.rb +1 -1
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/connection_to_ip_not_allowed.rb +102 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/custom_alert_rule.rb +104 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/data_export_setting.rb +81 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/data_source.rb +15 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/denylist_custom_alert_rule.rb +106 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/device_security_group.rb +146 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/device_security_group_list.rb +100 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/direct_method_invokes_not_in_allowed_range.rb +100 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/etag.rb +48 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/export_data.rb +15 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/failed_local_logins_not_in_allowed_range.rb +100 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/file_uploads_not_in_allowed_range.rb +100 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/http_c2dmessages_not_in_allowed_range.rb +101 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/http_c2drejected_messages_not_in_allowed_range.rb +101 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/http_d2cmessages_not_in_allowed_range.rb +101 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/information_protection_keyword.rb +80 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/information_protection_policy.rb +128 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/information_protection_policy_list.rb +100 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/information_type.rb +125 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_aggregated_alert.rb +238 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_aggregated_alert_list.rb +100 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_aggregated_recommendation.rb +212 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_aggregated_recommendation_list.rb +101 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_alerted_device.rb +60 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_alerted_devices_list.rb +68 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_device_alert.rb +73 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_device_alerts_list.rb +67 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_device_recommendation.rb +73 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_device_recommendations_list.rb +68 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_solution_analytics_model.rb +149 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_solution_analytics_model_list.rb +68 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_solution_analytics_model_properties_devices_metrics_item.rb +61 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_solution_model.rb +248 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tsecurity_solutions_list.rb +99 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/io_tseverity_metrics.rb +68 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/kind.rb +46 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/list_custom_alert_rule.rb +89 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/local_user_not_allowed.rb +102 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/mqtt_c2dmessages_not_in_allowed_range.rb +101 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/mqtt_c2drejected_messages_not_in_allowed_range.rb +101 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/mqtt_d2cmessages_not_in_allowed_range.rb +101 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/pricing_list.rb +1 -1
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/process_not_allowed.rb +102 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/queue_purges_not_in_allowed_range.rb +100 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/rank.rb +19 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/recommendation_config_status.rb +16 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/recommendation_configuration_properties.rb +79 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/recommendation_type.rb +30 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/reported_severity.rb +18 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/security_contact.rb +1 -1
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/security_contact_list.rb +1 -1
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/security_solution_status.rb +16 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/sensitivity_label.rb +92 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/setting.rb +70 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/setting_kind.rb +16 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/setting_resource.rb +75 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/settings_list.rb +99 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/tags.rb +55 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/tags_resource.rb +55 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/threshold_custom_alert_rule.rb +99 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/time_window_custom_alert_rule.rb +104 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/tracked_resource.rb +125 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/twin_updates_not_in_allowed_range.rb +100 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/unauthorized_operations_not_in_allowed_range.rb +100 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/update_iot_security_solution_data.rb +84 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/user_defined_resources_properties.rb +68 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/value_type.rb +16 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/workspace_setting_list.rb +1 -1
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/pricings.rb +23 -7
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/security_center.rb +200 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/security_contacts.rb +18 -6
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/settings.rb +420 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/workspace_settings.rb +38 -16
- data/lib/2017-08-01/generated/azure_mgmt_security.rb +38 -0
- data/lib/2017-08-01/generated/azure_mgmt_security/compliance_results.rb +330 -0
- data/lib/2017-08-01/generated/azure_mgmt_security/models/asc_location.rb +73 -0
- data/lib/2017-08-01/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
- data/lib/2017-08-01/generated/azure_mgmt_security/models/compliance_result.rb +76 -0
- data/lib/2017-08-01/generated/azure_mgmt_security/models/compliance_result_list.rb +99 -0
- data/lib/2017-08-01/generated/azure_mgmt_security/models/etag.rb +48 -0
- data/lib/2017-08-01/generated/azure_mgmt_security/models/kind.rb +46 -0
- data/lib/2017-08-01/generated/azure_mgmt_security/models/resource.rb +80 -0
- data/lib/2017-08-01/generated/azure_mgmt_security/models/resource_status.rb +18 -0
- data/lib/2017-08-01/generated/azure_mgmt_security/models/tags.rb +55 -0
- data/lib/2017-08-01/generated/azure_mgmt_security/models/tracked_resource.rb +125 -0
- data/lib/2017-08-01/generated/azure_mgmt_security/module_definition.rb +9 -0
- data/lib/2017-08-01/generated/azure_mgmt_security/security_center.rb +128 -0
- data/lib/2018-06-01/generated/azure_mgmt_security.rb +38 -0
- data/lib/2018-06-01/generated/azure_mgmt_security/models/asc_location.rb +73 -0
- data/lib/2018-06-01/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
- data/lib/2018-06-01/generated/azure_mgmt_security/models/etag.rb +48 -0
- data/lib/2018-06-01/generated/azure_mgmt_security/models/kind.rb +46 -0
- data/lib/2018-06-01/generated/azure_mgmt_security/models/pricing.rb +93 -0
- data/lib/2018-06-01/generated/azure_mgmt_security/models/pricing_list.rb +55 -0
- data/lib/2018-06-01/generated/azure_mgmt_security/models/pricing_tier.rb +16 -0
- data/lib/2018-06-01/generated/azure_mgmt_security/models/resource.rb +80 -0
- data/lib/2018-06-01/generated/azure_mgmt_security/models/tags.rb +55 -0
- data/lib/2018-06-01/generated/azure_mgmt_security/models/tracked_resource.rb +125 -0
- data/lib/2018-06-01/generated/azure_mgmt_security/module_definition.rb +9 -0
- data/lib/2018-06-01/generated/azure_mgmt_security/pricings.rb +305 -0
- data/lib/{2017-08-01-preview/generated/azure_mgmt_security/security_management_client.rb → 2018-06-01/generated/azure_mgmt_security/security_center.rb} +5 -21
- data/lib/2019-01-01-preview/generated/azure_mgmt_security.rb +71 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/alerts_suppression_rules.rb +514 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/assessments.rb +555 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/assessments_metadata.rb +311 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/assessments_metadata_subscription.rb +513 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/alerts_suppression_rule.rb +146 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/alerts_suppression_rules_list.rb +99 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/asc_location.rb +73 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/assessment_links.rb +47 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/assessment_status.rb +71 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/assessment_status_code.rb +17 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/assessment_type.rb +17 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/azure_resource_details.rb +62 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/category.rb +19 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/etag.rb +48 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/expand_enum.rb +16 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/implementation_effort.rb +17 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/kind.rb +46 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/on_premise_resource_details.rb +95 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/on_premise_sql_resource_details.rb +104 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/regulatory_compliance_assessment.rb +166 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/regulatory_compliance_assessment_list.rb +99 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/regulatory_compliance_control.rb +126 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/regulatory_compliance_control_list.rb +100 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/regulatory_compliance_standard.rb +127 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/regulatory_compliance_standard_list.rb +99 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/resource.rb +80 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/resource_details.rb +48 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/rule_state.rb +17 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/scope_element.rb +65 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/security_assessment.rb +132 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/security_assessment_list.rb +101 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/security_assessment_metadata.rb +209 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/security_assessment_metadata_list.rb +100 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/severity.rb +17 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/state.rb +18 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/suppression_alerts_scope.rb +57 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/tags.rb +55 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/threats.rb +22 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/tracked_resource.rb +125 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/user_impact.rb +17 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/module_definition.rb +9 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/regulatory_compliance_assessments.rb +359 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/regulatory_compliance_controls.rb +343 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/regulatory_compliance_standards.rb +320 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/security_center.rb +157 -0
- data/lib/2019-01-01/generated/azure_mgmt_security.rb +45 -0
- data/lib/2019-01-01/generated/azure_mgmt_security/alerts.rb +1486 -0
- data/lib/2019-01-01/generated/azure_mgmt_security/models/alert.rb +375 -0
- data/lib/2019-01-01/generated/azure_mgmt_security/models/alert_confidence_reason.rb +59 -0
- data/lib/2019-01-01/generated/azure_mgmt_security/models/alert_entity.rb +66 -0
- data/lib/2019-01-01/generated/azure_mgmt_security/models/alert_list.rb +99 -0
- data/lib/2019-01-01/generated/azure_mgmt_security/models/asc_location.rb +73 -0
- data/lib/2019-01-01/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
- data/lib/2019-01-01/generated/azure_mgmt_security/models/data_export_settings.rb +88 -0
- data/lib/2019-01-01/generated/azure_mgmt_security/models/etag.rb +48 -0
- data/lib/2019-01-01/generated/azure_mgmt_security/models/kind.rb +46 -0
- data/lib/2019-01-01/generated/azure_mgmt_security/models/reported_severity.rb +18 -0
- data/lib/2019-01-01/generated/azure_mgmt_security/models/resource.rb +80 -0
- data/lib/2019-01-01/generated/azure_mgmt_security/models/setting.rb +77 -0
- data/lib/2019-01-01/generated/azure_mgmt_security/models/setting_resource.rb +71 -0
- data/lib/2019-01-01/generated/azure_mgmt_security/models/settings_list.rb +99 -0
- data/lib/2019-01-01/generated/azure_mgmt_security/models/tags.rb +55 -0
- data/lib/2019-01-01/generated/azure_mgmt_security/models/tracked_resource.rb +125 -0
- data/lib/2019-01-01/generated/azure_mgmt_security/module_definition.rb +9 -0
- data/lib/2019-01-01/generated/azure_mgmt_security/security_center.rb +139 -0
- data/lib/2019-01-01/generated/azure_mgmt_security/settings.rb +420 -0
- data/lib/2019-08-01/generated/azure_mgmt_security.rb +78 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/iot_alert_types.rb +231 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/iot_alerts.rb +375 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/iot_recommendation_types.rb +231 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/iot_recommendations.rb +360 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/iot_security_solution.rb +891 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/iot_security_solution_analytics.rb +227 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/iot_security_solutions_analytics_aggregated_alert.rb +452 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/iot_security_solutions_analytics_recommendation.rb +364 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/alert_intent.rb +30 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/alert_severity.rb +18 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/asc_location.rb +73 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/data_source.rb +15 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/etag.rb +48 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/export_data.rb +15 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_aggregated_alert.rb +262 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_aggregated_alert_list.rb +101 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_aggregated_alert_properties_top_devices_list_item.rb +74 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_aggregated_recommendation.rb +214 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_aggregated_recommendation_list.rb +102 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_alerted_device.rb +60 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_device_alert.rb +73 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_device_recommendation.rb +73 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_solution_analytics_model.rb +175 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_solution_analytics_model_list.rb +69 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_solution_analytics_model_properties_devices_metrics_item.rb +62 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_solution_model.rb +263 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_solutions_list.rb +100 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tseverity_metrics.rb +68 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/iot_alert.rb +128 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/iot_alert_list.rb +114 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/iot_alert_type.rb +188 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/iot_alert_type_list.rb +55 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/iot_recommendation.rb +109 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/iot_recommendation_list.rb +114 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/iot_recommendation_type.rb +184 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/iot_recommendation_type_list.rb +55 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/kind.rb +46 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/recommendation_config_status.rb +16 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/recommendation_configuration_properties.rb +81 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/recommendation_severity.rb +21 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/recommendation_type.rb +30 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/reported_severity.rb +18 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/resource.rb +80 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/security_solution_status.rb +16 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/tags.rb +55 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/tags_resource.rb +55 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/tracked_resource.rb +125 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/unmasked_ip_logging_status.rb +16 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/update_iot_security_solution_data.rb +84 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/user_defined_resources_properties.rb +68 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/module_definition.rb +9 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/security_center.rb +161 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security.rb +62 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/connectors.rb +504 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/asc_location.rb +73 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/authentication_details_properties.rb +83 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/authentication_provisioning_state.rb +18 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/auto_provision.rb +16 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/aw_assume_role_authentication_details_properties.rb +117 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/aws_creds_authentication_details_properties.rb +115 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/azure_resource_link.rb +47 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/connector_setting.rb +91 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/connector_setting_list.rb +101 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/control_type.rb +16 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/etag.rb +48 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/expand_controls_enum.rb +15 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/gcp_credentials_details_properties.rb +201 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/hybrid_compute_provisioning_state.rb +17 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/hybrid_compute_settings_properties.rb +112 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/kind.rb +46 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/permission_property.rb +18 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/proxy_server_properties.rb +58 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/resource.rb +80 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_control_definition_item.rb +141 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_control_definition_list.rb +101 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_control_definition_source.rb +47 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_control_details.rb +187 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_control_list.rb +101 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_control_score.rb +86 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_item.rb +137 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_scores_list.rb +101 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/service_principal_properties.rb +58 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/tags.rb +55 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/tracked_resource.rb +125 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/module_definition.rb +9 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/secure_score_control_definitions.rb +423 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/secure_score_controls.rb +444 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/secure_scores.rb +326 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/security_center.rb +143 -0
- data/lib/2020-01-01/generated/azure_mgmt_security.rb +144 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/adaptive_application_controls.rb +394 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/adaptive_network_hardenings.rb +539 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/allowed_connections.rb +535 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/assessments.rb +555 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/assessments_metadata.rb +799 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/discovered_security_solutions.rb +532 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/external_security_solutions.rb +525 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/jit_network_access_policies.rb +1295 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/aad_connectivity_state.rb +17 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/aad_connectivity_state1.rb +48 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/aad_external_security_solution.rb +99 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/aad_solution_properties.rb +83 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/adaptive_application_control_group.rb +207 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/adaptive_application_control_groups.rb +56 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/adaptive_application_control_issue_summary.rb +61 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/adaptive_network_hardening.rb +116 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/adaptive_network_hardening_enforce_request.rb +77 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/adaptive_network_hardenings_list.rb +99 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/allowed_connections_list.rb +100 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/allowed_connections_resource.rb +118 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/asc_location.rb +73 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/assessment_links.rb +47 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/assessment_status.rb +71 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/assessment_status_code.rb +17 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/assessment_type.rb +18 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/ata_external_security_solution.rb +98 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/ata_solution_properties.rb +87 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/azure_resource_details.rb +62 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/azure_resource_link.rb +47 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/category.rb +19 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/cef_external_security_solution.rb +98 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/cef_solution_properties.rb +109 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/connectable_resource.rb +91 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/connected_resource.rb +71 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/connected_workspace.rb +47 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/connection_type.rb +16 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/control_type.rb +16 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/direction.rb +16 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/discovered_security_solution.rb +129 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/discovered_security_solution_list.rb +99 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/effective_network_security_groups.rb +66 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/etag.rb +48 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/expand_controls_enum.rb +15 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/expand_enum.rb +16 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/external_security_solution.rb +98 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/external_security_solution_kind.rb +17 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/external_security_solution_kind1.rb +47 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/external_security_solution_list.rb +101 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/external_security_solution_properties.rb +88 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/implementation_effort.rb +17 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_policies_list.rb +99 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_policy.rb +149 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_policy_initiate_port.rb +70 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_policy_initiate_request.rb +68 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_policy_initiate_virtual_machine.rb +70 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_policy_virtual_machine.rb +81 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_port_rule.rb +103 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_request.rb +89 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_request_port.rb +128 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_request_virtual_machine.rb +69 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/kind.rb +46 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/location.rb +47 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/on_premise_resource_details.rb +95 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/on_premise_sql_resource_details.rb +104 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/path_recommendation.rb +158 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/protection_mode.rb +80 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/protocol.rb +17 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/provisioning_state.rb +17 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/publisher_info.rb +84 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/resource.rb +80 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/resource_details.rb +48 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/rule.rb +111 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/secure_score_control_definition_item.rb +141 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/secure_score_control_definition_list.rb +101 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/secure_score_control_definition_source.rb +47 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/secure_score_control_details.rb +187 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/secure_score_control_list.rb +101 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/secure_score_control_score.rb +86 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/secure_score_item.rb +137 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/secure_scores_list.rb +101 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/security_assessment.rb +156 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/security_assessment_list.rb +101 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/security_assessment_metadata.rb +221 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/security_assessment_metadata_list.rb +100 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/security_assessment_metadata_partner_data.rb +70 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/security_assessment_metadata_properties.rb +194 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/security_assessment_partner_data.rb +57 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/security_family.rb +18 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/security_solution.rb +130 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/security_solution_list.rb +99 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/security_solutions_reference_data.rb +162 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/security_solutions_reference_data_list.rb +56 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/server_vulnerability_assessment.rb +76 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/server_vulnerability_assessments_list.rb +55 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/severity.rb +17 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/status.rb +16 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/status_reason.rb +17 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/tags.rb +55 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/threats.rb +22 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/topology_list.rb +100 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/topology_resource.rb +118 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/topology_single_resource.rb +154 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/topology_single_resource_child.rb +49 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/topology_single_resource_parent.rb +49 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/tracked_resource.rb +125 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/transport_protocol.rb +16 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/user_impact.rb +17 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/user_recommendation.rb +58 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/vm_recommendation.rb +81 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/module_definition.rb +9 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/secure_score_control_definitions.rb +423 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/secure_score_controls.rb +444 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/secure_scores.rb +326 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/security_center.rb +193 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/security_solutions.rb +324 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/security_solutions_reference_data_operations.rb +200 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/server_vulnerability_assessment_operations.rb +462 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/topology.rb +530 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security.rb +59 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/asc_location.rb +73 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/baseline.rb +73 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/baseline_adjusted_result.rb +113 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/benchmark_reference.rb +57 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/etag.rb +48 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/kind.rb +46 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/query_check.rb +92 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/remediation.rb +87 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/resource.rb +80 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/rule_results.rb +74 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/rule_results_input.rb +75 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/rule_results_properties.rb +62 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/rule_severity.rb +19 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/rule_status.rb +17 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/rule_type.rb +18 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/rules_results.rb +55 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/rules_results_input.rb +83 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/scan.rb +74 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/scan_properties.rb +192 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/scan_result.rb +74 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/scan_result_properties.rb +133 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/scan_results.rb +56 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/scan_state.rb +18 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/scan_trigger_type.rb +16 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/scans.rb +55 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/tags.rb +55 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/tracked_resource.rb +125 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/va_rule.rb +146 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/module_definition.rb +9 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/security_center.rb +135 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/sql_vulnerability_assessment_baseline_rules.rb +535 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/sql_vulnerability_assessment_scan_results.rb +237 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/sql_vulnerability_assessment_scans.rb +225 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security.rb +89 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/device_operations.rb +119 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/devices_for_hub.rb +244 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/devices_for_subscription.rb +241 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/iot_alert_types.rb +203 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/iot_alerts.rb +377 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/iot_defender_settings.rb +473 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/iot_recommendation_types.rb +203 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/iot_recommendations.rb +349 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/iot_sensors.rb +511 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/alert_intent.rb +30 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/alert_severity.rb +18 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/asc_location.rb +73 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/authorization_state.rb +16 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/device.rb +397 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/device_criticality.rb +16 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/device_list.rb +100 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/device_status.rb +16 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/etag.rb +48 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/firmware.rb +121 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_alert_list_model.rb +101 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_alert_model.rb +128 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_alert_type.rb +188 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_alert_type_list.rb +55 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_defender_settings_list.rb +56 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_defender_settings_model.rb +96 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_recommendation_list_model.rb +101 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_recommendation_model.rb +109 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_recommendation_type.rb +184 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_recommendation_type_list.rb +55 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_sensor.rb +73 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_sensors_list.rb +56 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/ip_address.rb +95 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/kind.rb +46 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/mac_address.rb +87 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/mac_significance.rb +16 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/management_state.rb +16 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/network_interface.rb +79 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/on_premise_iot_sensor.rb +73 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/on_premise_iot_sensors_list.rb +56 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/package_download_info.rb +71 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/package_downloads.rb +76 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/package_downloads_central_manager.rb +71 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/package_downloads_central_manager_full.rb +71 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/package_downloads_central_manager_full_ovf.rb +121 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/package_downloads_sensor.rb +69 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/package_downloads_sensor_full.rb +70 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/package_downloads_sensor_full_ovf.rb +98 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/package_downloads_threat_intelligence.rb +46 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/programming_state.rb +16 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/protocol.rb +58 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/purdue_level.rb +17 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/recommendation_severity.rb +21 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/relation_to_ip_status.rb +16 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/resource.rb +80 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/scanning_functionality.rb +16 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/sensor.rb +59 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/site.rb +47 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/tags.rb +55 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/tracked_resource.rb +125 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/version_kind.rb +17 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/module_definition.rb +9 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/on_premise_iot_sensors.rb +482 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/security_center.rb +167 -0
- data/lib/azure_mgmt_security.rb +10 -0
- data/lib/profiles/latest/modules/security_profile_module.rb +1352 -36
- data/lib/version.rb +1 -1
- metadata +588 -6
@@ -0,0 +1,157 @@
|
|
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::Security::Mgmt::V2019_01_01_preview
|
7
|
+
#
|
8
|
+
# A service client - single point of access to the REST API.
|
9
|
+
#
|
10
|
+
class SecurityCenter < MsRestAzure::AzureServiceClient
|
11
|
+
include MsRestAzure
|
12
|
+
include MsRestAzure::Serialization
|
13
|
+
|
14
|
+
# @return [String] the base URI of the service.
|
15
|
+
attr_accessor :base_url
|
16
|
+
|
17
|
+
# @return Credentials needed for the client to connect to Azure.
|
18
|
+
attr_reader :credentials
|
19
|
+
|
20
|
+
# @return [String] Azure subscription ID
|
21
|
+
attr_accessor :subscription_id
|
22
|
+
|
23
|
+
# @return [String] API version for the operation
|
24
|
+
attr_reader :api_version
|
25
|
+
|
26
|
+
# @return [String] The preferred language for the response.
|
27
|
+
attr_accessor :accept_language
|
28
|
+
|
29
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
30
|
+
# Operations. Default value is 30.
|
31
|
+
attr_accessor :long_running_operation_retry_timeout
|
32
|
+
|
33
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
34
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
35
|
+
# generated and included in each request. Default is true.
|
36
|
+
attr_accessor :generate_client_request_id
|
37
|
+
|
38
|
+
# @return [RegulatoryComplianceStandards] regulatory_compliance_standards
|
39
|
+
attr_reader :regulatory_compliance_standards
|
40
|
+
|
41
|
+
# @return [RegulatoryComplianceControls] regulatory_compliance_controls
|
42
|
+
attr_reader :regulatory_compliance_controls
|
43
|
+
|
44
|
+
# @return [RegulatoryComplianceAssessments]
|
45
|
+
# regulatory_compliance_assessments
|
46
|
+
attr_reader :regulatory_compliance_assessments
|
47
|
+
|
48
|
+
# @return [AlertsSuppressionRules] alerts_suppression_rules
|
49
|
+
attr_reader :alerts_suppression_rules
|
50
|
+
|
51
|
+
# @return [AssessmentsMetadata] assessments_metadata
|
52
|
+
attr_reader :assessments_metadata
|
53
|
+
|
54
|
+
# @return [AssessmentsMetadataSubscription]
|
55
|
+
# assessments_metadata_subscription
|
56
|
+
attr_reader :assessments_metadata_subscription
|
57
|
+
|
58
|
+
# @return [Assessments] assessments
|
59
|
+
attr_reader :assessments
|
60
|
+
|
61
|
+
#
|
62
|
+
# Creates initializes a new instance of the SecurityCenter class.
|
63
|
+
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
64
|
+
# @param base_url [String] the base URI of the service.
|
65
|
+
# @param options [Array] filters to be applied to the HTTP requests.
|
66
|
+
#
|
67
|
+
def initialize(credentials = nil, base_url = nil, options = nil)
|
68
|
+
super(credentials, options)
|
69
|
+
@base_url = base_url || 'https://management.azure.com'
|
70
|
+
|
71
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
72
|
+
@credentials = credentials
|
73
|
+
|
74
|
+
@regulatory_compliance_standards = RegulatoryComplianceStandards.new(self)
|
75
|
+
@regulatory_compliance_controls = RegulatoryComplianceControls.new(self)
|
76
|
+
@regulatory_compliance_assessments = RegulatoryComplianceAssessments.new(self)
|
77
|
+
@alerts_suppression_rules = AlertsSuppressionRules.new(self)
|
78
|
+
@assessments_metadata = AssessmentsMetadata.new(self)
|
79
|
+
@assessments_metadata_subscription = AssessmentsMetadataSubscription.new(self)
|
80
|
+
@assessments = Assessments.new(self)
|
81
|
+
@api_version = '2019-01-01-preview'
|
82
|
+
@accept_language = 'en-US'
|
83
|
+
@long_running_operation_retry_timeout = 30
|
84
|
+
@generate_client_request_id = true
|
85
|
+
add_telemetry
|
86
|
+
end
|
87
|
+
|
88
|
+
#
|
89
|
+
# Makes a request and returns the body of the response.
|
90
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
91
|
+
# @param path [String] the path, relative to {base_url}.
|
92
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
93
|
+
# @return [Hash{String=>String}] containing the body of the response.
|
94
|
+
# Example:
|
95
|
+
#
|
96
|
+
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
97
|
+
# path = "/path"
|
98
|
+
# options = {
|
99
|
+
# body: request_content,
|
100
|
+
# query_params: {'api-version' => '2016-02-01'}
|
101
|
+
# }
|
102
|
+
# result = @client.make_request(:put, path, options)
|
103
|
+
#
|
104
|
+
def make_request(method, path, options = {})
|
105
|
+
result = make_request_with_http_info(method, path, options)
|
106
|
+
result.body unless result.nil?
|
107
|
+
end
|
108
|
+
|
109
|
+
#
|
110
|
+
# Makes a request and returns the operation response.
|
111
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
112
|
+
# @param path [String] the path, relative to {base_url}.
|
113
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
114
|
+
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
115
|
+
#
|
116
|
+
def make_request_with_http_info(method, path, options = {})
|
117
|
+
result = make_request_async(method, path, options).value!
|
118
|
+
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
119
|
+
result
|
120
|
+
end
|
121
|
+
|
122
|
+
#
|
123
|
+
# Makes a request asynchronously.
|
124
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
125
|
+
# @param path [String] the path, relative to {base_url}.
|
126
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
127
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
128
|
+
#
|
129
|
+
def make_request_async(method, path, options = {})
|
130
|
+
fail ArgumentError, 'method is nil' if method.nil?
|
131
|
+
fail ArgumentError, 'path is nil' if path.nil?
|
132
|
+
|
133
|
+
request_url = options[:base_url] || @base_url
|
134
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
135
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
136
|
+
end
|
137
|
+
|
138
|
+
request_headers = @request_headers
|
139
|
+
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
140
|
+
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
141
|
+
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
142
|
+
|
143
|
+
super(request_url, method, path, options)
|
144
|
+
end
|
145
|
+
|
146
|
+
|
147
|
+
private
|
148
|
+
#
|
149
|
+
# Adds telemetry information.
|
150
|
+
#
|
151
|
+
def add_telemetry
|
152
|
+
sdk_information = 'azure_mgmt_security'
|
153
|
+
sdk_information = "#{sdk_information}/0.19.0"
|
154
|
+
add_user_agent_information(sdk_information)
|
155
|
+
end
|
156
|
+
end
|
157
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
require 'uri'
|
7
|
+
require 'cgi'
|
8
|
+
require 'date'
|
9
|
+
require 'json'
|
10
|
+
require 'base64'
|
11
|
+
require 'erb'
|
12
|
+
require 'securerandom'
|
13
|
+
require 'time'
|
14
|
+
require 'timeliness'
|
15
|
+
require 'faraday'
|
16
|
+
require 'faraday-cookie_jar'
|
17
|
+
require 'concurrent'
|
18
|
+
require 'ms_rest'
|
19
|
+
require '2019-01-01/generated/azure_mgmt_security/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::Security::Mgmt::V2019_01_01
|
23
|
+
autoload :Alerts, '2019-01-01/generated/azure_mgmt_security/alerts.rb'
|
24
|
+
autoload :Settings, '2019-01-01/generated/azure_mgmt_security/settings.rb'
|
25
|
+
autoload :SecurityCenter, '2019-01-01/generated/azure_mgmt_security/security_center.rb'
|
26
|
+
|
27
|
+
module Models
|
28
|
+
autoload :Kind, '2019-01-01/generated/azure_mgmt_security/models/kind.rb'
|
29
|
+
autoload :ETag, '2019-01-01/generated/azure_mgmt_security/models/etag.rb'
|
30
|
+
autoload :AlertConfidenceReason, '2019-01-01/generated/azure_mgmt_security/models/alert_confidence_reason.rb'
|
31
|
+
autoload :Tags, '2019-01-01/generated/azure_mgmt_security/models/tags.rb'
|
32
|
+
autoload :AlertList, '2019-01-01/generated/azure_mgmt_security/models/alert_list.rb'
|
33
|
+
autoload :Resource, '2019-01-01/generated/azure_mgmt_security/models/resource.rb'
|
34
|
+
autoload :TrackedResource, '2019-01-01/generated/azure_mgmt_security/models/tracked_resource.rb'
|
35
|
+
autoload :AlertEntity, '2019-01-01/generated/azure_mgmt_security/models/alert_entity.rb'
|
36
|
+
autoload :SettingsList, '2019-01-01/generated/azure_mgmt_security/models/settings_list.rb'
|
37
|
+
autoload :AzureTrackedResourceLocation, '2019-01-01/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb'
|
38
|
+
autoload :Alert, '2019-01-01/generated/azure_mgmt_security/models/alert.rb'
|
39
|
+
autoload :AscLocation, '2019-01-01/generated/azure_mgmt_security/models/asc_location.rb'
|
40
|
+
autoload :SettingResource, '2019-01-01/generated/azure_mgmt_security/models/setting_resource.rb'
|
41
|
+
autoload :Setting, '2019-01-01/generated/azure_mgmt_security/models/setting.rb'
|
42
|
+
autoload :DataExportSettings, '2019-01-01/generated/azure_mgmt_security/models/data_export_settings.rb'
|
43
|
+
autoload :ReportedSeverity, '2019-01-01/generated/azure_mgmt_security/models/reported_severity.rb'
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,1486 @@
|
|
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::Security::Mgmt::V2019_01_01
|
7
|
+
#
|
8
|
+
# API spec for Microsoft.Security (Azure Security Center) resource provider
|
9
|
+
#
|
10
|
+
class Alerts
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the Alerts class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [SecurityCenter] reference to the SecurityCenter
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# List all the alerts that are associated with the subscription
|
26
|
+
#
|
27
|
+
# @param filter [String] OData filter. Optional.
|
28
|
+
# @param select [String] OData select. Optional.
|
29
|
+
# @param expand [String] OData expand. Optional.
|
30
|
+
# @param auto_dismiss_rule_name [String] The name of an existing auto dismiss
|
31
|
+
# rule. Use it to simulate the rule on existing alerts and get the alerts that
|
32
|
+
# would have been dismissed if the rule was enabled when the alert was created
|
33
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
34
|
+
# will be added to the HTTP request.
|
35
|
+
#
|
36
|
+
# @return [Array<Alert>] operation results.
|
37
|
+
#
|
38
|
+
def list(filter:nil, select:nil, expand:nil, auto_dismiss_rule_name:nil, custom_headers:nil)
|
39
|
+
first_page = list_as_lazy(filter:filter, select:select, expand:expand, auto_dismiss_rule_name:auto_dismiss_rule_name, custom_headers:custom_headers)
|
40
|
+
first_page.get_all_items
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
# List all the alerts that are associated with the subscription
|
45
|
+
#
|
46
|
+
# @param filter [String] OData filter. Optional.
|
47
|
+
# @param select [String] OData select. Optional.
|
48
|
+
# @param expand [String] OData expand. Optional.
|
49
|
+
# @param auto_dismiss_rule_name [String] The name of an existing auto dismiss
|
50
|
+
# rule. Use it to simulate the rule on existing alerts and get the alerts that
|
51
|
+
# would have been dismissed if the rule was enabled when the alert was created
|
52
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
53
|
+
# will be added to the HTTP request.
|
54
|
+
#
|
55
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
56
|
+
#
|
57
|
+
def list_with_http_info(filter:nil, select:nil, expand:nil, auto_dismiss_rule_name:nil, custom_headers:nil)
|
58
|
+
list_async(filter:filter, select:select, expand:expand, auto_dismiss_rule_name:auto_dismiss_rule_name, custom_headers:custom_headers).value!
|
59
|
+
end
|
60
|
+
|
61
|
+
#
|
62
|
+
# List all the alerts that are associated with the subscription
|
63
|
+
#
|
64
|
+
# @param filter [String] OData filter. Optional.
|
65
|
+
# @param select [String] OData select. Optional.
|
66
|
+
# @param expand [String] OData expand. Optional.
|
67
|
+
# @param auto_dismiss_rule_name [String] The name of an existing auto dismiss
|
68
|
+
# rule. Use it to simulate the rule on existing alerts and get the alerts that
|
69
|
+
# would have been dismissed if the rule was enabled when the alert was created
|
70
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
71
|
+
# to the HTTP request.
|
72
|
+
#
|
73
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
74
|
+
#
|
75
|
+
def list_async(filter:nil, select:nil, expand:nil, auto_dismiss_rule_name:nil, custom_headers:nil)
|
76
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
77
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
78
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'Pattern': '^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$'" if !@client.subscription_id.nil? && @client.subscription_id.match(Regexp.new('^^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$$')).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}/providers/Microsoft.Security/alerts'
|
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: {'subscriptionId' => @client.subscription_id},
|
94
|
+
query_params: {'api-version' => @client.api_version,'$filter' => filter,'$select' => select,'$expand' => expand,'autoDismissRuleName' => auto_dismiss_rule_name},
|
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 MsRestAzure::AzureOperationError.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::Security::Mgmt::V2019_01_01::Models::AlertList.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
|
+
# List all the alerts that are associated with the resource group
|
131
|
+
#
|
132
|
+
# @param resource_group_name [String] The name of the resource group within the
|
133
|
+
# user's subscription. The name is case insensitive.
|
134
|
+
# @param filter [String] OData filter. Optional.
|
135
|
+
# @param select [String] OData select. Optional.
|
136
|
+
# @param expand [String] OData expand. Optional.
|
137
|
+
# @param auto_dismiss_rule_name [String] The name of an existing auto dismiss
|
138
|
+
# rule. Use it to simulate the rule on existing alerts and get the alerts that
|
139
|
+
# would have been dismissed if the rule was enabled when the alert was created
|
140
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
141
|
+
# will be added to the HTTP request.
|
142
|
+
#
|
143
|
+
# @return [Array<Alert>] operation results.
|
144
|
+
#
|
145
|
+
def list_by_resource_group(resource_group_name, filter:nil, select:nil, expand:nil, auto_dismiss_rule_name:nil, custom_headers:nil)
|
146
|
+
first_page = list_by_resource_group_as_lazy(resource_group_name, filter:filter, select:select, expand:expand, auto_dismiss_rule_name:auto_dismiss_rule_name, custom_headers:custom_headers)
|
147
|
+
first_page.get_all_items
|
148
|
+
end
|
149
|
+
|
150
|
+
#
|
151
|
+
# List all the alerts that are associated with the resource group
|
152
|
+
#
|
153
|
+
# @param resource_group_name [String] The name of the resource group within the
|
154
|
+
# user's subscription. The name is case insensitive.
|
155
|
+
# @param filter [String] OData filter. Optional.
|
156
|
+
# @param select [String] OData select. Optional.
|
157
|
+
# @param expand [String] OData expand. Optional.
|
158
|
+
# @param auto_dismiss_rule_name [String] The name of an existing auto dismiss
|
159
|
+
# rule. Use it to simulate the rule on existing alerts and get the alerts that
|
160
|
+
# would have been dismissed if the rule was enabled when the alert was created
|
161
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
162
|
+
# will be added to the HTTP request.
|
163
|
+
#
|
164
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
165
|
+
#
|
166
|
+
def list_by_resource_group_with_http_info(resource_group_name, filter:nil, select:nil, expand:nil, auto_dismiss_rule_name:nil, custom_headers:nil)
|
167
|
+
list_by_resource_group_async(resource_group_name, filter:filter, select:select, expand:expand, auto_dismiss_rule_name:auto_dismiss_rule_name, custom_headers:custom_headers).value!
|
168
|
+
end
|
169
|
+
|
170
|
+
#
|
171
|
+
# List all the alerts that are associated with the resource group
|
172
|
+
#
|
173
|
+
# @param resource_group_name [String] The name of the resource group within the
|
174
|
+
# user's subscription. The name is case insensitive.
|
175
|
+
# @param filter [String] OData filter. Optional.
|
176
|
+
# @param select [String] OData select. Optional.
|
177
|
+
# @param expand [String] OData expand. Optional.
|
178
|
+
# @param auto_dismiss_rule_name [String] The name of an existing auto dismiss
|
179
|
+
# rule. Use it to simulate the rule on existing alerts and get the alerts that
|
180
|
+
# would have been dismissed if the rule was enabled when the alert was created
|
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 list_by_resource_group_async(resource_group_name, filter:nil, select:nil, expand:nil, auto_dismiss_rule_name:nil, custom_headers:nil)
|
187
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
188
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
189
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'Pattern': '^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$'" if !@client.subscription_id.nil? && @client.subscription_id.match(Regexp.new('^^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$$')).nil?
|
190
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
191
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
192
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
193
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).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
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/alerts'
|
203
|
+
|
204
|
+
request_url = @base_url || @client.base_url
|
205
|
+
|
206
|
+
options = {
|
207
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
208
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
|
209
|
+
query_params: {'api-version' => @client.api_version,'$filter' => filter,'$select' => select,'$expand' => expand,'autoDismissRuleName' => auto_dismiss_rule_name},
|
210
|
+
headers: request_headers.merge(custom_headers || {}),
|
211
|
+
base_url: request_url
|
212
|
+
}
|
213
|
+
promise = @client.make_request_async(:get, path_template, options)
|
214
|
+
|
215
|
+
promise = promise.then do |result|
|
216
|
+
http_response = result.response
|
217
|
+
status_code = http_response.status
|
218
|
+
response_content = http_response.body
|
219
|
+
unless status_code == 200
|
220
|
+
error_model = JSON.load(response_content)
|
221
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
222
|
+
end
|
223
|
+
|
224
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
225
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
226
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
227
|
+
# Deserialize Response
|
228
|
+
if status_code == 200
|
229
|
+
begin
|
230
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
231
|
+
result_mapper = Azure::Security::Mgmt::V2019_01_01::Models::AlertList.mapper()
|
232
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
233
|
+
rescue Exception => e
|
234
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
235
|
+
end
|
236
|
+
end
|
237
|
+
|
238
|
+
result
|
239
|
+
end
|
240
|
+
|
241
|
+
promise.execute
|
242
|
+
end
|
243
|
+
|
244
|
+
#
|
245
|
+
# List all the alerts that are associated with the subscription that are stored
|
246
|
+
# in a specific location
|
247
|
+
#
|
248
|
+
# @param filter [String] OData filter. Optional.
|
249
|
+
# @param select [String] OData select. Optional.
|
250
|
+
# @param expand [String] OData expand. Optional.
|
251
|
+
# @param auto_dismiss_rule_name [String] The name of an existing auto dismiss
|
252
|
+
# rule. Use it to simulate the rule on existing alerts and get the alerts that
|
253
|
+
# would have been dismissed if the rule was enabled when the alert was created
|
254
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
255
|
+
# will be added to the HTTP request.
|
256
|
+
#
|
257
|
+
# @return [Array<Alert>] operation results.
|
258
|
+
#
|
259
|
+
def list_subscription_level_alerts_by_region(filter:nil, select:nil, expand:nil, auto_dismiss_rule_name:nil, custom_headers:nil)
|
260
|
+
first_page = list_subscription_level_alerts_by_region_as_lazy(filter:filter, select:select, expand:expand, auto_dismiss_rule_name:auto_dismiss_rule_name, custom_headers:custom_headers)
|
261
|
+
first_page.get_all_items
|
262
|
+
end
|
263
|
+
|
264
|
+
#
|
265
|
+
# List all the alerts that are associated with the subscription that are stored
|
266
|
+
# in a specific location
|
267
|
+
#
|
268
|
+
# @param filter [String] OData filter. Optional.
|
269
|
+
# @param select [String] OData select. Optional.
|
270
|
+
# @param expand [String] OData expand. Optional.
|
271
|
+
# @param auto_dismiss_rule_name [String] The name of an existing auto dismiss
|
272
|
+
# rule. Use it to simulate the rule on existing alerts and get the alerts that
|
273
|
+
# would have been dismissed if the rule was enabled when the alert was created
|
274
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
275
|
+
# will be added to the HTTP request.
|
276
|
+
#
|
277
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
278
|
+
#
|
279
|
+
def list_subscription_level_alerts_by_region_with_http_info(filter:nil, select:nil, expand:nil, auto_dismiss_rule_name:nil, custom_headers:nil)
|
280
|
+
list_subscription_level_alerts_by_region_async(filter:filter, select:select, expand:expand, auto_dismiss_rule_name:auto_dismiss_rule_name, custom_headers:custom_headers).value!
|
281
|
+
end
|
282
|
+
|
283
|
+
#
|
284
|
+
# List all the alerts that are associated with the subscription that are stored
|
285
|
+
# in a specific location
|
286
|
+
#
|
287
|
+
# @param filter [String] OData filter. Optional.
|
288
|
+
# @param select [String] OData select. Optional.
|
289
|
+
# @param expand [String] OData expand. Optional.
|
290
|
+
# @param auto_dismiss_rule_name [String] The name of an existing auto dismiss
|
291
|
+
# rule. Use it to simulate the rule on existing alerts and get the alerts that
|
292
|
+
# would have been dismissed if the rule was enabled when the alert was created
|
293
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
294
|
+
# to the HTTP request.
|
295
|
+
#
|
296
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
297
|
+
#
|
298
|
+
def list_subscription_level_alerts_by_region_async(filter:nil, select:nil, expand:nil, auto_dismiss_rule_name:nil, custom_headers:nil)
|
299
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
300
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
301
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'Pattern': '^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$'" if !@client.subscription_id.nil? && @client.subscription_id.match(Regexp.new('^^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$$')).nil?
|
302
|
+
fail ArgumentError, '@client.asc_location is nil' if @client.asc_location.nil?
|
303
|
+
|
304
|
+
|
305
|
+
request_headers = {}
|
306
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
307
|
+
|
308
|
+
# Set Headers
|
309
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
310
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
311
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts'
|
312
|
+
|
313
|
+
request_url = @base_url || @client.base_url
|
314
|
+
|
315
|
+
options = {
|
316
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
317
|
+
path_params: {'subscriptionId' => @client.subscription_id,'ascLocation' => @client.asc_location},
|
318
|
+
query_params: {'api-version' => @client.api_version,'$filter' => filter,'$select' => select,'$expand' => expand,'autoDismissRuleName' => auto_dismiss_rule_name},
|
319
|
+
headers: request_headers.merge(custom_headers || {}),
|
320
|
+
base_url: request_url
|
321
|
+
}
|
322
|
+
promise = @client.make_request_async(:get, path_template, options)
|
323
|
+
|
324
|
+
promise = promise.then do |result|
|
325
|
+
http_response = result.response
|
326
|
+
status_code = http_response.status
|
327
|
+
response_content = http_response.body
|
328
|
+
unless status_code == 200
|
329
|
+
error_model = JSON.load(response_content)
|
330
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
331
|
+
end
|
332
|
+
|
333
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
334
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
335
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
336
|
+
# Deserialize Response
|
337
|
+
if status_code == 200
|
338
|
+
begin
|
339
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
340
|
+
result_mapper = Azure::Security::Mgmt::V2019_01_01::Models::AlertList.mapper()
|
341
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
342
|
+
rescue Exception => e
|
343
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
344
|
+
end
|
345
|
+
end
|
346
|
+
|
347
|
+
result
|
348
|
+
end
|
349
|
+
|
350
|
+
promise.execute
|
351
|
+
end
|
352
|
+
|
353
|
+
#
|
354
|
+
# List all the alerts that are associated with the resource group that are
|
355
|
+
# stored in a specific location
|
356
|
+
#
|
357
|
+
# @param resource_group_name [String] The name of the resource group within the
|
358
|
+
# user's subscription. The name is case insensitive.
|
359
|
+
# @param filter [String] OData filter. Optional.
|
360
|
+
# @param select [String] OData select. Optional.
|
361
|
+
# @param expand [String] OData expand. Optional.
|
362
|
+
# @param auto_dismiss_rule_name [String] The name of an existing auto dismiss
|
363
|
+
# rule. Use it to simulate the rule on existing alerts and get the alerts that
|
364
|
+
# would have been dismissed if the rule was enabled when the alert was created
|
365
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
366
|
+
# will be added to the HTTP request.
|
367
|
+
#
|
368
|
+
# @return [Array<Alert>] operation results.
|
369
|
+
#
|
370
|
+
def list_resource_group_level_alerts_by_region(resource_group_name, filter:nil, select:nil, expand:nil, auto_dismiss_rule_name:nil, custom_headers:nil)
|
371
|
+
first_page = list_resource_group_level_alerts_by_region_as_lazy(resource_group_name, filter:filter, select:select, expand:expand, auto_dismiss_rule_name:auto_dismiss_rule_name, custom_headers:custom_headers)
|
372
|
+
first_page.get_all_items
|
373
|
+
end
|
374
|
+
|
375
|
+
#
|
376
|
+
# List all the alerts that are associated with the resource group that are
|
377
|
+
# stored in a specific location
|
378
|
+
#
|
379
|
+
# @param resource_group_name [String] The name of the resource group within the
|
380
|
+
# user's subscription. The name is case insensitive.
|
381
|
+
# @param filter [String] OData filter. Optional.
|
382
|
+
# @param select [String] OData select. Optional.
|
383
|
+
# @param expand [String] OData expand. Optional.
|
384
|
+
# @param auto_dismiss_rule_name [String] The name of an existing auto dismiss
|
385
|
+
# rule. Use it to simulate the rule on existing alerts and get the alerts that
|
386
|
+
# would have been dismissed if the rule was enabled when the alert was created
|
387
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
388
|
+
# will be added to the HTTP request.
|
389
|
+
#
|
390
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
391
|
+
#
|
392
|
+
def list_resource_group_level_alerts_by_region_with_http_info(resource_group_name, filter:nil, select:nil, expand:nil, auto_dismiss_rule_name:nil, custom_headers:nil)
|
393
|
+
list_resource_group_level_alerts_by_region_async(resource_group_name, filter:filter, select:select, expand:expand, auto_dismiss_rule_name:auto_dismiss_rule_name, custom_headers:custom_headers).value!
|
394
|
+
end
|
395
|
+
|
396
|
+
#
|
397
|
+
# List all the alerts that are associated with the resource group that are
|
398
|
+
# stored in a specific location
|
399
|
+
#
|
400
|
+
# @param resource_group_name [String] The name of the resource group within the
|
401
|
+
# user's subscription. The name is case insensitive.
|
402
|
+
# @param filter [String] OData filter. Optional.
|
403
|
+
# @param select [String] OData select. Optional.
|
404
|
+
# @param expand [String] OData expand. Optional.
|
405
|
+
# @param auto_dismiss_rule_name [String] The name of an existing auto dismiss
|
406
|
+
# rule. Use it to simulate the rule on existing alerts and get the alerts that
|
407
|
+
# would have been dismissed if the rule was enabled when the alert was created
|
408
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
409
|
+
# to the HTTP request.
|
410
|
+
#
|
411
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
412
|
+
#
|
413
|
+
def list_resource_group_level_alerts_by_region_async(resource_group_name, filter:nil, select:nil, expand:nil, auto_dismiss_rule_name:nil, custom_headers:nil)
|
414
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
415
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
416
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'Pattern': '^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$'" if !@client.subscription_id.nil? && @client.subscription_id.match(Regexp.new('^^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$$')).nil?
|
417
|
+
fail ArgumentError, '@client.asc_location is nil' if @client.asc_location.nil?
|
418
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
419
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
420
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
421
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
422
|
+
|
423
|
+
|
424
|
+
request_headers = {}
|
425
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
426
|
+
|
427
|
+
# Set Headers
|
428
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
429
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
430
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts'
|
431
|
+
|
432
|
+
request_url = @base_url || @client.base_url
|
433
|
+
|
434
|
+
options = {
|
435
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
436
|
+
path_params: {'subscriptionId' => @client.subscription_id,'ascLocation' => @client.asc_location,'resourceGroupName' => resource_group_name},
|
437
|
+
query_params: {'api-version' => @client.api_version,'$filter' => filter,'$select' => select,'$expand' => expand,'autoDismissRuleName' => auto_dismiss_rule_name},
|
438
|
+
headers: request_headers.merge(custom_headers || {}),
|
439
|
+
base_url: request_url
|
440
|
+
}
|
441
|
+
promise = @client.make_request_async(:get, path_template, options)
|
442
|
+
|
443
|
+
promise = promise.then do |result|
|
444
|
+
http_response = result.response
|
445
|
+
status_code = http_response.status
|
446
|
+
response_content = http_response.body
|
447
|
+
unless status_code == 200
|
448
|
+
error_model = JSON.load(response_content)
|
449
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
450
|
+
end
|
451
|
+
|
452
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
453
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
454
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
455
|
+
# Deserialize Response
|
456
|
+
if status_code == 200
|
457
|
+
begin
|
458
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
459
|
+
result_mapper = Azure::Security::Mgmt::V2019_01_01::Models::AlertList.mapper()
|
460
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
461
|
+
rescue Exception => e
|
462
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
463
|
+
end
|
464
|
+
end
|
465
|
+
|
466
|
+
result
|
467
|
+
end
|
468
|
+
|
469
|
+
promise.execute
|
470
|
+
end
|
471
|
+
|
472
|
+
#
|
473
|
+
# Get an alert that is associated with a subscription
|
474
|
+
#
|
475
|
+
# @param alert_name [String] Name of the alert object
|
476
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
477
|
+
# will be added to the HTTP request.
|
478
|
+
#
|
479
|
+
# @return [Alert] operation results.
|
480
|
+
#
|
481
|
+
def get_subscription_level_alert(alert_name, custom_headers:nil)
|
482
|
+
response = get_subscription_level_alert_async(alert_name, custom_headers:custom_headers).value!
|
483
|
+
response.body unless response.nil?
|
484
|
+
end
|
485
|
+
|
486
|
+
#
|
487
|
+
# Get an alert that is associated with a subscription
|
488
|
+
#
|
489
|
+
# @param alert_name [String] Name of the alert object
|
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_subscription_level_alert_with_http_info(alert_name, custom_headers:nil)
|
496
|
+
get_subscription_level_alert_async(alert_name, custom_headers:custom_headers).value!
|
497
|
+
end
|
498
|
+
|
499
|
+
#
|
500
|
+
# Get an alert that is associated with a subscription
|
501
|
+
#
|
502
|
+
# @param alert_name [String] Name of the alert object
|
503
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
504
|
+
# to the HTTP request.
|
505
|
+
#
|
506
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
507
|
+
#
|
508
|
+
def get_subscription_level_alert_async(alert_name, custom_headers:nil)
|
509
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
510
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
511
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'Pattern': '^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$'" if !@client.subscription_id.nil? && @client.subscription_id.match(Regexp.new('^^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$$')).nil?
|
512
|
+
fail ArgumentError, '@client.asc_location is nil' if @client.asc_location.nil?
|
513
|
+
fail ArgumentError, 'alert_name is nil' if alert_name.nil?
|
514
|
+
|
515
|
+
|
516
|
+
request_headers = {}
|
517
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
518
|
+
|
519
|
+
# Set Headers
|
520
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
521
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
522
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}'
|
523
|
+
|
524
|
+
request_url = @base_url || @client.base_url
|
525
|
+
|
526
|
+
options = {
|
527
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
528
|
+
path_params: {'subscriptionId' => @client.subscription_id,'ascLocation' => @client.asc_location,'alertName' => alert_name},
|
529
|
+
query_params: {'api-version' => @client.api_version},
|
530
|
+
headers: request_headers.merge(custom_headers || {}),
|
531
|
+
base_url: request_url
|
532
|
+
}
|
533
|
+
promise = @client.make_request_async(:get, path_template, options)
|
534
|
+
|
535
|
+
promise = promise.then do |result|
|
536
|
+
http_response = result.response
|
537
|
+
status_code = http_response.status
|
538
|
+
response_content = http_response.body
|
539
|
+
unless status_code == 200
|
540
|
+
error_model = JSON.load(response_content)
|
541
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
542
|
+
end
|
543
|
+
|
544
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
545
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
546
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
547
|
+
# Deserialize Response
|
548
|
+
if status_code == 200
|
549
|
+
begin
|
550
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
551
|
+
result_mapper = Azure::Security::Mgmt::V2019_01_01::Models::Alert.mapper()
|
552
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
553
|
+
rescue Exception => e
|
554
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
555
|
+
end
|
556
|
+
end
|
557
|
+
|
558
|
+
result
|
559
|
+
end
|
560
|
+
|
561
|
+
promise.execute
|
562
|
+
end
|
563
|
+
|
564
|
+
#
|
565
|
+
# Get an alert that is associated a resource group or a resource in a resource
|
566
|
+
# group
|
567
|
+
#
|
568
|
+
# @param alert_name [String] Name of the alert object
|
569
|
+
# @param resource_group_name [String] The name of the resource group within the
|
570
|
+
# user's subscription. The name is case insensitive.
|
571
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
572
|
+
# will be added to the HTTP request.
|
573
|
+
#
|
574
|
+
# @return [Alert] operation results.
|
575
|
+
#
|
576
|
+
def get_resource_group_level_alerts(alert_name, resource_group_name, custom_headers:nil)
|
577
|
+
response = get_resource_group_level_alerts_async(alert_name, resource_group_name, custom_headers:custom_headers).value!
|
578
|
+
response.body unless response.nil?
|
579
|
+
end
|
580
|
+
|
581
|
+
#
|
582
|
+
# Get an alert that is associated a resource group or a resource in a resource
|
583
|
+
# group
|
584
|
+
#
|
585
|
+
# @param alert_name [String] Name of the alert object
|
586
|
+
# @param resource_group_name [String] The name of the resource group within the
|
587
|
+
# user's subscription. The name is case insensitive.
|
588
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
589
|
+
# will be added to the HTTP request.
|
590
|
+
#
|
591
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
592
|
+
#
|
593
|
+
def get_resource_group_level_alerts_with_http_info(alert_name, resource_group_name, custom_headers:nil)
|
594
|
+
get_resource_group_level_alerts_async(alert_name, resource_group_name, custom_headers:custom_headers).value!
|
595
|
+
end
|
596
|
+
|
597
|
+
#
|
598
|
+
# Get an alert that is associated a resource group or a resource in a resource
|
599
|
+
# group
|
600
|
+
#
|
601
|
+
# @param alert_name [String] Name of the alert object
|
602
|
+
# @param resource_group_name [String] The name of the resource group within the
|
603
|
+
# user's subscription. The name is case insensitive.
|
604
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
605
|
+
# to the HTTP request.
|
606
|
+
#
|
607
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
608
|
+
#
|
609
|
+
def get_resource_group_level_alerts_async(alert_name, resource_group_name, custom_headers:nil)
|
610
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
611
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
612
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'Pattern': '^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$'" if !@client.subscription_id.nil? && @client.subscription_id.match(Regexp.new('^^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$$')).nil?
|
613
|
+
fail ArgumentError, '@client.asc_location is nil' if @client.asc_location.nil?
|
614
|
+
fail ArgumentError, 'alert_name is nil' if alert_name.nil?
|
615
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
616
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
617
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
618
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
619
|
+
|
620
|
+
|
621
|
+
request_headers = {}
|
622
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
623
|
+
|
624
|
+
# Set Headers
|
625
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
626
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
627
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}'
|
628
|
+
|
629
|
+
request_url = @base_url || @client.base_url
|
630
|
+
|
631
|
+
options = {
|
632
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
633
|
+
path_params: {'subscriptionId' => @client.subscription_id,'ascLocation' => @client.asc_location,'alertName' => alert_name,'resourceGroupName' => resource_group_name},
|
634
|
+
query_params: {'api-version' => @client.api_version},
|
635
|
+
headers: request_headers.merge(custom_headers || {}),
|
636
|
+
base_url: request_url
|
637
|
+
}
|
638
|
+
promise = @client.make_request_async(:get, path_template, options)
|
639
|
+
|
640
|
+
promise = promise.then do |result|
|
641
|
+
http_response = result.response
|
642
|
+
status_code = http_response.status
|
643
|
+
response_content = http_response.body
|
644
|
+
unless status_code == 200
|
645
|
+
error_model = JSON.load(response_content)
|
646
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
647
|
+
end
|
648
|
+
|
649
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
650
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
651
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
652
|
+
# Deserialize Response
|
653
|
+
if status_code == 200
|
654
|
+
begin
|
655
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
656
|
+
result_mapper = Azure::Security::Mgmt::V2019_01_01::Models::Alert.mapper()
|
657
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
658
|
+
rescue Exception => e
|
659
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
660
|
+
end
|
661
|
+
end
|
662
|
+
|
663
|
+
result
|
664
|
+
end
|
665
|
+
|
666
|
+
promise.execute
|
667
|
+
end
|
668
|
+
|
669
|
+
#
|
670
|
+
# Update the alert's state
|
671
|
+
#
|
672
|
+
# @param alert_name [String] Name of the alert object
|
673
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
674
|
+
# will be added to the HTTP request.
|
675
|
+
#
|
676
|
+
#
|
677
|
+
def update_subscription_level_alert_state_to_dismiss(alert_name, custom_headers:nil)
|
678
|
+
response = update_subscription_level_alert_state_to_dismiss_async(alert_name, custom_headers:custom_headers).value!
|
679
|
+
nil
|
680
|
+
end
|
681
|
+
|
682
|
+
#
|
683
|
+
# Update the alert's state
|
684
|
+
#
|
685
|
+
# @param alert_name [String] Name of the alert object
|
686
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
687
|
+
# will be added to the HTTP request.
|
688
|
+
#
|
689
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
690
|
+
#
|
691
|
+
def update_subscription_level_alert_state_to_dismiss_with_http_info(alert_name, custom_headers:nil)
|
692
|
+
update_subscription_level_alert_state_to_dismiss_async(alert_name, custom_headers:custom_headers).value!
|
693
|
+
end
|
694
|
+
|
695
|
+
#
|
696
|
+
# Update the alert's state
|
697
|
+
#
|
698
|
+
# @param alert_name [String] Name of the alert object
|
699
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
700
|
+
# to the HTTP request.
|
701
|
+
#
|
702
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
703
|
+
#
|
704
|
+
def update_subscription_level_alert_state_to_dismiss_async(alert_name, custom_headers:nil)
|
705
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
706
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
707
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'Pattern': '^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$'" if !@client.subscription_id.nil? && @client.subscription_id.match(Regexp.new('^^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$$')).nil?
|
708
|
+
fail ArgumentError, '@client.asc_location is nil' if @client.asc_location.nil?
|
709
|
+
fail ArgumentError, 'alert_name is nil' if alert_name.nil?
|
710
|
+
|
711
|
+
|
712
|
+
request_headers = {}
|
713
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
714
|
+
|
715
|
+
# Set Headers
|
716
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
717
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
718
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/dismiss'
|
719
|
+
|
720
|
+
request_url = @base_url || @client.base_url
|
721
|
+
|
722
|
+
options = {
|
723
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
724
|
+
path_params: {'subscriptionId' => @client.subscription_id,'ascLocation' => @client.asc_location,'alertName' => alert_name},
|
725
|
+
query_params: {'api-version' => @client.api_version},
|
726
|
+
headers: request_headers.merge(custom_headers || {}),
|
727
|
+
base_url: request_url
|
728
|
+
}
|
729
|
+
promise = @client.make_request_async(:post, path_template, options)
|
730
|
+
|
731
|
+
promise = promise.then do |result|
|
732
|
+
http_response = result.response
|
733
|
+
status_code = http_response.status
|
734
|
+
response_content = http_response.body
|
735
|
+
unless status_code == 204
|
736
|
+
error_model = JSON.load(response_content)
|
737
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
738
|
+
end
|
739
|
+
|
740
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
741
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
742
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
743
|
+
|
744
|
+
result
|
745
|
+
end
|
746
|
+
|
747
|
+
promise.execute
|
748
|
+
end
|
749
|
+
|
750
|
+
#
|
751
|
+
# Update the alert's state
|
752
|
+
#
|
753
|
+
# @param alert_name [String] Name of the alert object
|
754
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
755
|
+
# will be added to the HTTP request.
|
756
|
+
#
|
757
|
+
#
|
758
|
+
def update_subscription_level_alert_state_to_reactivate(alert_name, custom_headers:nil)
|
759
|
+
response = update_subscription_level_alert_state_to_reactivate_async(alert_name, custom_headers:custom_headers).value!
|
760
|
+
nil
|
761
|
+
end
|
762
|
+
|
763
|
+
#
|
764
|
+
# Update the alert's state
|
765
|
+
#
|
766
|
+
# @param alert_name [String] Name of the alert object
|
767
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
768
|
+
# will be added to the HTTP request.
|
769
|
+
#
|
770
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
771
|
+
#
|
772
|
+
def update_subscription_level_alert_state_to_reactivate_with_http_info(alert_name, custom_headers:nil)
|
773
|
+
update_subscription_level_alert_state_to_reactivate_async(alert_name, custom_headers:custom_headers).value!
|
774
|
+
end
|
775
|
+
|
776
|
+
#
|
777
|
+
# Update the alert's state
|
778
|
+
#
|
779
|
+
# @param alert_name [String] Name of the alert object
|
780
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
781
|
+
# to the HTTP request.
|
782
|
+
#
|
783
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
784
|
+
#
|
785
|
+
def update_subscription_level_alert_state_to_reactivate_async(alert_name, custom_headers:nil)
|
786
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
787
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
788
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'Pattern': '^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$'" if !@client.subscription_id.nil? && @client.subscription_id.match(Regexp.new('^^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$$')).nil?
|
789
|
+
fail ArgumentError, '@client.asc_location is nil' if @client.asc_location.nil?
|
790
|
+
fail ArgumentError, 'alert_name is nil' if alert_name.nil?
|
791
|
+
|
792
|
+
|
793
|
+
request_headers = {}
|
794
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
795
|
+
|
796
|
+
# Set Headers
|
797
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
798
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
799
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/reactivate'
|
800
|
+
|
801
|
+
request_url = @base_url || @client.base_url
|
802
|
+
|
803
|
+
options = {
|
804
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
805
|
+
path_params: {'subscriptionId' => @client.subscription_id,'ascLocation' => @client.asc_location,'alertName' => alert_name},
|
806
|
+
query_params: {'api-version' => @client.api_version},
|
807
|
+
headers: request_headers.merge(custom_headers || {}),
|
808
|
+
base_url: request_url
|
809
|
+
}
|
810
|
+
promise = @client.make_request_async(:post, path_template, options)
|
811
|
+
|
812
|
+
promise = promise.then do |result|
|
813
|
+
http_response = result.response
|
814
|
+
status_code = http_response.status
|
815
|
+
response_content = http_response.body
|
816
|
+
unless status_code == 204
|
817
|
+
error_model = JSON.load(response_content)
|
818
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
819
|
+
end
|
820
|
+
|
821
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
822
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
823
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
824
|
+
|
825
|
+
result
|
826
|
+
end
|
827
|
+
|
828
|
+
promise.execute
|
829
|
+
end
|
830
|
+
|
831
|
+
#
|
832
|
+
# Update the alert's state
|
833
|
+
#
|
834
|
+
# @param alert_name [String] Name of the alert object
|
835
|
+
# @param resource_group_name [String] The name of the resource group within the
|
836
|
+
# user's subscription. The name is case insensitive.
|
837
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
838
|
+
# will be added to the HTTP request.
|
839
|
+
#
|
840
|
+
#
|
841
|
+
def update_resource_group_level_alert_state_to_dismiss(alert_name, resource_group_name, custom_headers:nil)
|
842
|
+
response = update_resource_group_level_alert_state_to_dismiss_async(alert_name, resource_group_name, custom_headers:custom_headers).value!
|
843
|
+
nil
|
844
|
+
end
|
845
|
+
|
846
|
+
#
|
847
|
+
# Update the alert's state
|
848
|
+
#
|
849
|
+
# @param alert_name [String] Name of the alert object
|
850
|
+
# @param resource_group_name [String] The name of the resource group within the
|
851
|
+
# user's subscription. The name is case insensitive.
|
852
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
853
|
+
# will be added to the HTTP request.
|
854
|
+
#
|
855
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
856
|
+
#
|
857
|
+
def update_resource_group_level_alert_state_to_dismiss_with_http_info(alert_name, resource_group_name, custom_headers:nil)
|
858
|
+
update_resource_group_level_alert_state_to_dismiss_async(alert_name, resource_group_name, custom_headers:custom_headers).value!
|
859
|
+
end
|
860
|
+
|
861
|
+
#
|
862
|
+
# Update the alert's state
|
863
|
+
#
|
864
|
+
# @param alert_name [String] Name of the alert object
|
865
|
+
# @param resource_group_name [String] The name of the resource group within the
|
866
|
+
# user's subscription. The name is case insensitive.
|
867
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
868
|
+
# to the HTTP request.
|
869
|
+
#
|
870
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
871
|
+
#
|
872
|
+
def update_resource_group_level_alert_state_to_dismiss_async(alert_name, resource_group_name, custom_headers:nil)
|
873
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
874
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
875
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'Pattern': '^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$'" if !@client.subscription_id.nil? && @client.subscription_id.match(Regexp.new('^^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$$')).nil?
|
876
|
+
fail ArgumentError, '@client.asc_location is nil' if @client.asc_location.nil?
|
877
|
+
fail ArgumentError, 'alert_name is nil' if alert_name.nil?
|
878
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
879
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
880
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
881
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
882
|
+
|
883
|
+
|
884
|
+
request_headers = {}
|
885
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
886
|
+
|
887
|
+
# Set Headers
|
888
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
889
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
890
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/dismiss'
|
891
|
+
|
892
|
+
request_url = @base_url || @client.base_url
|
893
|
+
|
894
|
+
options = {
|
895
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
896
|
+
path_params: {'subscriptionId' => @client.subscription_id,'ascLocation' => @client.asc_location,'alertName' => alert_name,'resourceGroupName' => resource_group_name},
|
897
|
+
query_params: {'api-version' => @client.api_version},
|
898
|
+
headers: request_headers.merge(custom_headers || {}),
|
899
|
+
base_url: request_url
|
900
|
+
}
|
901
|
+
promise = @client.make_request_async(:post, path_template, options)
|
902
|
+
|
903
|
+
promise = promise.then do |result|
|
904
|
+
http_response = result.response
|
905
|
+
status_code = http_response.status
|
906
|
+
response_content = http_response.body
|
907
|
+
unless status_code == 204
|
908
|
+
error_model = JSON.load(response_content)
|
909
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
910
|
+
end
|
911
|
+
|
912
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
913
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
914
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
915
|
+
|
916
|
+
result
|
917
|
+
end
|
918
|
+
|
919
|
+
promise.execute
|
920
|
+
end
|
921
|
+
|
922
|
+
#
|
923
|
+
# Update the alert's state
|
924
|
+
#
|
925
|
+
# @param alert_name [String] Name of the alert object
|
926
|
+
# @param resource_group_name [String] The name of the resource group within the
|
927
|
+
# user's subscription. The name is case insensitive.
|
928
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
929
|
+
# will be added to the HTTP request.
|
930
|
+
#
|
931
|
+
#
|
932
|
+
def update_resource_group_level_alert_state_to_reactivate(alert_name, resource_group_name, custom_headers:nil)
|
933
|
+
response = update_resource_group_level_alert_state_to_reactivate_async(alert_name, resource_group_name, custom_headers:custom_headers).value!
|
934
|
+
nil
|
935
|
+
end
|
936
|
+
|
937
|
+
#
|
938
|
+
# Update the alert's state
|
939
|
+
#
|
940
|
+
# @param alert_name [String] Name of the alert object
|
941
|
+
# @param resource_group_name [String] The name of the resource group within the
|
942
|
+
# user's subscription. The name is case insensitive.
|
943
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
944
|
+
# will be added to the HTTP request.
|
945
|
+
#
|
946
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
947
|
+
#
|
948
|
+
def update_resource_group_level_alert_state_to_reactivate_with_http_info(alert_name, resource_group_name, custom_headers:nil)
|
949
|
+
update_resource_group_level_alert_state_to_reactivate_async(alert_name, resource_group_name, custom_headers:custom_headers).value!
|
950
|
+
end
|
951
|
+
|
952
|
+
#
|
953
|
+
# Update the alert's state
|
954
|
+
#
|
955
|
+
# @param alert_name [String] Name of the alert object
|
956
|
+
# @param resource_group_name [String] The name of the resource group within the
|
957
|
+
# user's subscription. The name is case insensitive.
|
958
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
959
|
+
# to the HTTP request.
|
960
|
+
#
|
961
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
962
|
+
#
|
963
|
+
def update_resource_group_level_alert_state_to_reactivate_async(alert_name, resource_group_name, custom_headers:nil)
|
964
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
965
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
966
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'Pattern': '^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$'" if !@client.subscription_id.nil? && @client.subscription_id.match(Regexp.new('^^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$$')).nil?
|
967
|
+
fail ArgumentError, '@client.asc_location is nil' if @client.asc_location.nil?
|
968
|
+
fail ArgumentError, 'alert_name is nil' if alert_name.nil?
|
969
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
970
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
971
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
972
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
973
|
+
|
974
|
+
|
975
|
+
request_headers = {}
|
976
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
977
|
+
|
978
|
+
# Set Headers
|
979
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
980
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
981
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/reactivate'
|
982
|
+
|
983
|
+
request_url = @base_url || @client.base_url
|
984
|
+
|
985
|
+
options = {
|
986
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
987
|
+
path_params: {'subscriptionId' => @client.subscription_id,'ascLocation' => @client.asc_location,'alertName' => alert_name,'resourceGroupName' => resource_group_name},
|
988
|
+
query_params: {'api-version' => @client.api_version},
|
989
|
+
headers: request_headers.merge(custom_headers || {}),
|
990
|
+
base_url: request_url
|
991
|
+
}
|
992
|
+
promise = @client.make_request_async(:post, path_template, options)
|
993
|
+
|
994
|
+
promise = promise.then do |result|
|
995
|
+
http_response = result.response
|
996
|
+
status_code = http_response.status
|
997
|
+
response_content = http_response.body
|
998
|
+
unless status_code == 204
|
999
|
+
error_model = JSON.load(response_content)
|
1000
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1001
|
+
end
|
1002
|
+
|
1003
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1004
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1005
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1006
|
+
|
1007
|
+
result
|
1008
|
+
end
|
1009
|
+
|
1010
|
+
promise.execute
|
1011
|
+
end
|
1012
|
+
|
1013
|
+
#
|
1014
|
+
# List all the alerts that are associated with the subscription
|
1015
|
+
#
|
1016
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1017
|
+
# to List operation.
|
1018
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1019
|
+
# will be added to the HTTP request.
|
1020
|
+
#
|
1021
|
+
# @return [AlertList] operation results.
|
1022
|
+
#
|
1023
|
+
def list_next(next_page_link, custom_headers:nil)
|
1024
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
1025
|
+
response.body unless response.nil?
|
1026
|
+
end
|
1027
|
+
|
1028
|
+
#
|
1029
|
+
# List all the alerts that are associated with the subscription
|
1030
|
+
#
|
1031
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1032
|
+
# to List operation.
|
1033
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1034
|
+
# will be added to the HTTP request.
|
1035
|
+
#
|
1036
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1037
|
+
#
|
1038
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
1039
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
1040
|
+
end
|
1041
|
+
|
1042
|
+
#
|
1043
|
+
# List all the alerts that are associated with the subscription
|
1044
|
+
#
|
1045
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1046
|
+
# to List operation.
|
1047
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1048
|
+
# to the HTTP request.
|
1049
|
+
#
|
1050
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1051
|
+
#
|
1052
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
1053
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1054
|
+
|
1055
|
+
|
1056
|
+
request_headers = {}
|
1057
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1058
|
+
|
1059
|
+
# Set Headers
|
1060
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1061
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1062
|
+
path_template = '{nextLink}'
|
1063
|
+
|
1064
|
+
request_url = @base_url || @client.base_url
|
1065
|
+
|
1066
|
+
options = {
|
1067
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1068
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1069
|
+
headers: request_headers.merge(custom_headers || {}),
|
1070
|
+
base_url: request_url
|
1071
|
+
}
|
1072
|
+
promise = @client.make_request_async(:get, path_template, options)
|
1073
|
+
|
1074
|
+
promise = promise.then do |result|
|
1075
|
+
http_response = result.response
|
1076
|
+
status_code = http_response.status
|
1077
|
+
response_content = http_response.body
|
1078
|
+
unless status_code == 200
|
1079
|
+
error_model = JSON.load(response_content)
|
1080
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1081
|
+
end
|
1082
|
+
|
1083
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1084
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1085
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1086
|
+
# Deserialize Response
|
1087
|
+
if status_code == 200
|
1088
|
+
begin
|
1089
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1090
|
+
result_mapper = Azure::Security::Mgmt::V2019_01_01::Models::AlertList.mapper()
|
1091
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1092
|
+
rescue Exception => e
|
1093
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1094
|
+
end
|
1095
|
+
end
|
1096
|
+
|
1097
|
+
result
|
1098
|
+
end
|
1099
|
+
|
1100
|
+
promise.execute
|
1101
|
+
end
|
1102
|
+
|
1103
|
+
#
|
1104
|
+
# List all the alerts that are associated with the resource group
|
1105
|
+
#
|
1106
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1107
|
+
# to List operation.
|
1108
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1109
|
+
# will be added to the HTTP request.
|
1110
|
+
#
|
1111
|
+
# @return [AlertList] operation results.
|
1112
|
+
#
|
1113
|
+
def list_by_resource_group_next(next_page_link, custom_headers:nil)
|
1114
|
+
response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
1115
|
+
response.body unless response.nil?
|
1116
|
+
end
|
1117
|
+
|
1118
|
+
#
|
1119
|
+
# List all the alerts that are associated with the resource group
|
1120
|
+
#
|
1121
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1122
|
+
# to List operation.
|
1123
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1124
|
+
# will be added to the HTTP request.
|
1125
|
+
#
|
1126
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1127
|
+
#
|
1128
|
+
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
|
1129
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
1130
|
+
end
|
1131
|
+
|
1132
|
+
#
|
1133
|
+
# List all the alerts that are associated with the resource group
|
1134
|
+
#
|
1135
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1136
|
+
# to List operation.
|
1137
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1138
|
+
# to the HTTP request.
|
1139
|
+
#
|
1140
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1141
|
+
#
|
1142
|
+
def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
|
1143
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1144
|
+
|
1145
|
+
|
1146
|
+
request_headers = {}
|
1147
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1148
|
+
|
1149
|
+
# Set Headers
|
1150
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1151
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1152
|
+
path_template = '{nextLink}'
|
1153
|
+
|
1154
|
+
request_url = @base_url || @client.base_url
|
1155
|
+
|
1156
|
+
options = {
|
1157
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1158
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1159
|
+
headers: request_headers.merge(custom_headers || {}),
|
1160
|
+
base_url: request_url
|
1161
|
+
}
|
1162
|
+
promise = @client.make_request_async(:get, path_template, options)
|
1163
|
+
|
1164
|
+
promise = promise.then do |result|
|
1165
|
+
http_response = result.response
|
1166
|
+
status_code = http_response.status
|
1167
|
+
response_content = http_response.body
|
1168
|
+
unless status_code == 200
|
1169
|
+
error_model = JSON.load(response_content)
|
1170
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1171
|
+
end
|
1172
|
+
|
1173
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1174
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1175
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1176
|
+
# Deserialize Response
|
1177
|
+
if status_code == 200
|
1178
|
+
begin
|
1179
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1180
|
+
result_mapper = Azure::Security::Mgmt::V2019_01_01::Models::AlertList.mapper()
|
1181
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1182
|
+
rescue Exception => e
|
1183
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1184
|
+
end
|
1185
|
+
end
|
1186
|
+
|
1187
|
+
result
|
1188
|
+
end
|
1189
|
+
|
1190
|
+
promise.execute
|
1191
|
+
end
|
1192
|
+
|
1193
|
+
#
|
1194
|
+
# List all the alerts that are associated with the subscription that are stored
|
1195
|
+
# in a specific location
|
1196
|
+
#
|
1197
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1198
|
+
# to List operation.
|
1199
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1200
|
+
# will be added to the HTTP request.
|
1201
|
+
#
|
1202
|
+
# @return [AlertList] operation results.
|
1203
|
+
#
|
1204
|
+
def list_subscription_level_alerts_by_region_next(next_page_link, custom_headers:nil)
|
1205
|
+
response = list_subscription_level_alerts_by_region_next_async(next_page_link, custom_headers:custom_headers).value!
|
1206
|
+
response.body unless response.nil?
|
1207
|
+
end
|
1208
|
+
|
1209
|
+
#
|
1210
|
+
# List all the alerts that are associated with the subscription that are stored
|
1211
|
+
# in a specific location
|
1212
|
+
#
|
1213
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1214
|
+
# to List operation.
|
1215
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1216
|
+
# will be added to the HTTP request.
|
1217
|
+
#
|
1218
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1219
|
+
#
|
1220
|
+
def list_subscription_level_alerts_by_region_next_with_http_info(next_page_link, custom_headers:nil)
|
1221
|
+
list_subscription_level_alerts_by_region_next_async(next_page_link, custom_headers:custom_headers).value!
|
1222
|
+
end
|
1223
|
+
|
1224
|
+
#
|
1225
|
+
# List all the alerts that are associated with the subscription that are stored
|
1226
|
+
# in a specific location
|
1227
|
+
#
|
1228
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1229
|
+
# to List operation.
|
1230
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1231
|
+
# to the HTTP request.
|
1232
|
+
#
|
1233
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1234
|
+
#
|
1235
|
+
def list_subscription_level_alerts_by_region_next_async(next_page_link, custom_headers:nil)
|
1236
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1237
|
+
|
1238
|
+
|
1239
|
+
request_headers = {}
|
1240
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1241
|
+
|
1242
|
+
# Set Headers
|
1243
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1244
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1245
|
+
path_template = '{nextLink}'
|
1246
|
+
|
1247
|
+
request_url = @base_url || @client.base_url
|
1248
|
+
|
1249
|
+
options = {
|
1250
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1251
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1252
|
+
headers: request_headers.merge(custom_headers || {}),
|
1253
|
+
base_url: request_url
|
1254
|
+
}
|
1255
|
+
promise = @client.make_request_async(:get, path_template, options)
|
1256
|
+
|
1257
|
+
promise = promise.then do |result|
|
1258
|
+
http_response = result.response
|
1259
|
+
status_code = http_response.status
|
1260
|
+
response_content = http_response.body
|
1261
|
+
unless status_code == 200
|
1262
|
+
error_model = JSON.load(response_content)
|
1263
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1264
|
+
end
|
1265
|
+
|
1266
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1267
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1268
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1269
|
+
# Deserialize Response
|
1270
|
+
if status_code == 200
|
1271
|
+
begin
|
1272
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1273
|
+
result_mapper = Azure::Security::Mgmt::V2019_01_01::Models::AlertList.mapper()
|
1274
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1275
|
+
rescue Exception => e
|
1276
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1277
|
+
end
|
1278
|
+
end
|
1279
|
+
|
1280
|
+
result
|
1281
|
+
end
|
1282
|
+
|
1283
|
+
promise.execute
|
1284
|
+
end
|
1285
|
+
|
1286
|
+
#
|
1287
|
+
# List all the alerts that are associated with the resource group that are
|
1288
|
+
# stored in a specific location
|
1289
|
+
#
|
1290
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1291
|
+
# to List operation.
|
1292
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1293
|
+
# will be added to the HTTP request.
|
1294
|
+
#
|
1295
|
+
# @return [AlertList] operation results.
|
1296
|
+
#
|
1297
|
+
def list_resource_group_level_alerts_by_region_next(next_page_link, custom_headers:nil)
|
1298
|
+
response = list_resource_group_level_alerts_by_region_next_async(next_page_link, custom_headers:custom_headers).value!
|
1299
|
+
response.body unless response.nil?
|
1300
|
+
end
|
1301
|
+
|
1302
|
+
#
|
1303
|
+
# List all the alerts that are associated with the resource group that are
|
1304
|
+
# stored in a specific location
|
1305
|
+
#
|
1306
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1307
|
+
# to List operation.
|
1308
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1309
|
+
# will be added to the HTTP request.
|
1310
|
+
#
|
1311
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1312
|
+
#
|
1313
|
+
def list_resource_group_level_alerts_by_region_next_with_http_info(next_page_link, custom_headers:nil)
|
1314
|
+
list_resource_group_level_alerts_by_region_next_async(next_page_link, custom_headers:custom_headers).value!
|
1315
|
+
end
|
1316
|
+
|
1317
|
+
#
|
1318
|
+
# List all the alerts that are associated with the resource group that are
|
1319
|
+
# stored in a specific location
|
1320
|
+
#
|
1321
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1322
|
+
# to List operation.
|
1323
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1324
|
+
# to the HTTP request.
|
1325
|
+
#
|
1326
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1327
|
+
#
|
1328
|
+
def list_resource_group_level_alerts_by_region_next_async(next_page_link, custom_headers:nil)
|
1329
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1330
|
+
|
1331
|
+
|
1332
|
+
request_headers = {}
|
1333
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1334
|
+
|
1335
|
+
# Set Headers
|
1336
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1337
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1338
|
+
path_template = '{nextLink}'
|
1339
|
+
|
1340
|
+
request_url = @base_url || @client.base_url
|
1341
|
+
|
1342
|
+
options = {
|
1343
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1344
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1345
|
+
headers: request_headers.merge(custom_headers || {}),
|
1346
|
+
base_url: request_url
|
1347
|
+
}
|
1348
|
+
promise = @client.make_request_async(:get, path_template, options)
|
1349
|
+
|
1350
|
+
promise = promise.then do |result|
|
1351
|
+
http_response = result.response
|
1352
|
+
status_code = http_response.status
|
1353
|
+
response_content = http_response.body
|
1354
|
+
unless status_code == 200
|
1355
|
+
error_model = JSON.load(response_content)
|
1356
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1357
|
+
end
|
1358
|
+
|
1359
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1360
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1361
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1362
|
+
# Deserialize Response
|
1363
|
+
if status_code == 200
|
1364
|
+
begin
|
1365
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1366
|
+
result_mapper = Azure::Security::Mgmt::V2019_01_01::Models::AlertList.mapper()
|
1367
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1368
|
+
rescue Exception => e
|
1369
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1370
|
+
end
|
1371
|
+
end
|
1372
|
+
|
1373
|
+
result
|
1374
|
+
end
|
1375
|
+
|
1376
|
+
promise.execute
|
1377
|
+
end
|
1378
|
+
|
1379
|
+
#
|
1380
|
+
# List all the alerts that are associated with the subscription
|
1381
|
+
#
|
1382
|
+
# @param filter [String] OData filter. Optional.
|
1383
|
+
# @param select [String] OData select. Optional.
|
1384
|
+
# @param expand [String] OData expand. Optional.
|
1385
|
+
# @param auto_dismiss_rule_name [String] The name of an existing auto dismiss
|
1386
|
+
# rule. Use it to simulate the rule on existing alerts and get the alerts that
|
1387
|
+
# would have been dismissed if the rule was enabled when the alert was created
|
1388
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1389
|
+
# will be added to the HTTP request.
|
1390
|
+
#
|
1391
|
+
# @return [AlertList] which provide lazy access to pages of the response.
|
1392
|
+
#
|
1393
|
+
def list_as_lazy(filter:nil, select:nil, expand:nil, auto_dismiss_rule_name:nil, custom_headers:nil)
|
1394
|
+
response = list_async(filter:filter, select:select, expand:expand, auto_dismiss_rule_name:auto_dismiss_rule_name, custom_headers:custom_headers).value!
|
1395
|
+
unless response.nil?
|
1396
|
+
page = response.body
|
1397
|
+
page.next_method = Proc.new do |next_page_link|
|
1398
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
1399
|
+
end
|
1400
|
+
page
|
1401
|
+
end
|
1402
|
+
end
|
1403
|
+
|
1404
|
+
#
|
1405
|
+
# List all the alerts that are associated with the resource group
|
1406
|
+
#
|
1407
|
+
# @param resource_group_name [String] The name of the resource group within the
|
1408
|
+
# user's subscription. The name is case insensitive.
|
1409
|
+
# @param filter [String] OData filter. Optional.
|
1410
|
+
# @param select [String] OData select. Optional.
|
1411
|
+
# @param expand [String] OData expand. Optional.
|
1412
|
+
# @param auto_dismiss_rule_name [String] The name of an existing auto dismiss
|
1413
|
+
# rule. Use it to simulate the rule on existing alerts and get the alerts that
|
1414
|
+
# would have been dismissed if the rule was enabled when the alert was created
|
1415
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1416
|
+
# will be added to the HTTP request.
|
1417
|
+
#
|
1418
|
+
# @return [AlertList] which provide lazy access to pages of the response.
|
1419
|
+
#
|
1420
|
+
def list_by_resource_group_as_lazy(resource_group_name, filter:nil, select:nil, expand:nil, auto_dismiss_rule_name:nil, custom_headers:nil)
|
1421
|
+
response = list_by_resource_group_async(resource_group_name, filter:filter, select:select, expand:expand, auto_dismiss_rule_name:auto_dismiss_rule_name, custom_headers:custom_headers).value!
|
1422
|
+
unless response.nil?
|
1423
|
+
page = response.body
|
1424
|
+
page.next_method = Proc.new do |next_page_link|
|
1425
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
|
1426
|
+
end
|
1427
|
+
page
|
1428
|
+
end
|
1429
|
+
end
|
1430
|
+
|
1431
|
+
#
|
1432
|
+
# List all the alerts that are associated with the subscription that are stored
|
1433
|
+
# in a specific location
|
1434
|
+
#
|
1435
|
+
# @param filter [String] OData filter. Optional.
|
1436
|
+
# @param select [String] OData select. Optional.
|
1437
|
+
# @param expand [String] OData expand. Optional.
|
1438
|
+
# @param auto_dismiss_rule_name [String] The name of an existing auto dismiss
|
1439
|
+
# rule. Use it to simulate the rule on existing alerts and get the alerts that
|
1440
|
+
# would have been dismissed if the rule was enabled when the alert was created
|
1441
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1442
|
+
# will be added to the HTTP request.
|
1443
|
+
#
|
1444
|
+
# @return [AlertList] which provide lazy access to pages of the response.
|
1445
|
+
#
|
1446
|
+
def list_subscription_level_alerts_by_region_as_lazy(filter:nil, select:nil, expand:nil, auto_dismiss_rule_name:nil, custom_headers:nil)
|
1447
|
+
response = list_subscription_level_alerts_by_region_async(filter:filter, select:select, expand:expand, auto_dismiss_rule_name:auto_dismiss_rule_name, custom_headers:custom_headers).value!
|
1448
|
+
unless response.nil?
|
1449
|
+
page = response.body
|
1450
|
+
page.next_method = Proc.new do |next_page_link|
|
1451
|
+
list_subscription_level_alerts_by_region_next_async(next_page_link, custom_headers:custom_headers)
|
1452
|
+
end
|
1453
|
+
page
|
1454
|
+
end
|
1455
|
+
end
|
1456
|
+
|
1457
|
+
#
|
1458
|
+
# List all the alerts that are associated with the resource group that are
|
1459
|
+
# stored in a specific location
|
1460
|
+
#
|
1461
|
+
# @param resource_group_name [String] The name of the resource group within the
|
1462
|
+
# user's subscription. The name is case insensitive.
|
1463
|
+
# @param filter [String] OData filter. Optional.
|
1464
|
+
# @param select [String] OData select. Optional.
|
1465
|
+
# @param expand [String] OData expand. Optional.
|
1466
|
+
# @param auto_dismiss_rule_name [String] The name of an existing auto dismiss
|
1467
|
+
# rule. Use it to simulate the rule on existing alerts and get the alerts that
|
1468
|
+
# would have been dismissed if the rule was enabled when the alert was created
|
1469
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1470
|
+
# will be added to the HTTP request.
|
1471
|
+
#
|
1472
|
+
# @return [AlertList] which provide lazy access to pages of the response.
|
1473
|
+
#
|
1474
|
+
def list_resource_group_level_alerts_by_region_as_lazy(resource_group_name, filter:nil, select:nil, expand:nil, auto_dismiss_rule_name:nil, custom_headers:nil)
|
1475
|
+
response = list_resource_group_level_alerts_by_region_async(resource_group_name, filter:filter, select:select, expand:expand, auto_dismiss_rule_name:auto_dismiss_rule_name, custom_headers:custom_headers).value!
|
1476
|
+
unless response.nil?
|
1477
|
+
page = response.body
|
1478
|
+
page.next_method = Proc.new do |next_page_link|
|
1479
|
+
list_resource_group_level_alerts_by_region_next_async(next_page_link, custom_headers:custom_headers)
|
1480
|
+
end
|
1481
|
+
page
|
1482
|
+
end
|
1483
|
+
end
|
1484
|
+
|
1485
|
+
end
|
1486
|
+
end
|