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
@@ -3,11 +3,11 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::Security::Mgmt::
|
6
|
+
module Azure::Security::Mgmt::V2018_06_01
|
7
7
|
#
|
8
8
|
# A service client - single point of access to the REST API.
|
9
9
|
#
|
10
|
-
class
|
10
|
+
class SecurityCenter < MsRestAzure::AzureServiceClient
|
11
11
|
include MsRestAzure
|
12
12
|
include MsRestAzure::Serialization
|
13
13
|
|
@@ -38,20 +38,8 @@ module Azure::Security::Mgmt::V2017_08_01_preview
|
|
38
38
|
# @return [Pricings] pricings
|
39
39
|
attr_reader :pricings
|
40
40
|
|
41
|
-
# @return [SecurityContacts] security_contacts
|
42
|
-
attr_reader :security_contacts
|
43
|
-
|
44
|
-
# @return [WorkspaceSettings] workspace_settings
|
45
|
-
attr_reader :workspace_settings
|
46
|
-
|
47
|
-
# @return [AutoProvisioningSettings] auto_provisioning_settings
|
48
|
-
attr_reader :auto_provisioning_settings
|
49
|
-
|
50
|
-
# @return [Compliances] compliances
|
51
|
-
attr_reader :compliances
|
52
|
-
|
53
41
|
#
|
54
|
-
# Creates initializes a new instance of the
|
42
|
+
# Creates initializes a new instance of the SecurityCenter class.
|
55
43
|
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
56
44
|
# @param base_url [String] the base URI of the service.
|
57
45
|
# @param options [Array] filters to be applied to the HTTP requests.
|
@@ -64,11 +52,7 @@ module Azure::Security::Mgmt::V2017_08_01_preview
|
|
64
52
|
@credentials = credentials
|
65
53
|
|
66
54
|
@pricings = Pricings.new(self)
|
67
|
-
@
|
68
|
-
@workspace_settings = WorkspaceSettings.new(self)
|
69
|
-
@auto_provisioning_settings = AutoProvisioningSettings.new(self)
|
70
|
-
@compliances = Compliances.new(self)
|
71
|
-
@api_version = '2017-08-01-preview'
|
55
|
+
@api_version = '2018-06-01'
|
72
56
|
@accept_language = 'en-US'
|
73
57
|
@long_running_operation_retry_timeout = 30
|
74
58
|
@generate_client_request_id = true
|
@@ -140,7 +124,7 @@ module Azure::Security::Mgmt::V2017_08_01_preview
|
|
140
124
|
#
|
141
125
|
def add_telemetry
|
142
126
|
sdk_information = 'azure_mgmt_security'
|
143
|
-
sdk_information = "#{sdk_information}/0.
|
127
|
+
sdk_information = "#{sdk_information}/0.19.0"
|
144
128
|
add_user_agent_information(sdk_information)
|
145
129
|
end
|
146
130
|
end
|
@@ -0,0 +1,71 @@
|
|
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-preview/generated/azure_mgmt_security/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::Security::Mgmt::V2019_01_01_preview
|
23
|
+
autoload :RegulatoryComplianceStandards, '2019-01-01-preview/generated/azure_mgmt_security/regulatory_compliance_standards.rb'
|
24
|
+
autoload :RegulatoryComplianceControls, '2019-01-01-preview/generated/azure_mgmt_security/regulatory_compliance_controls.rb'
|
25
|
+
autoload :RegulatoryComplianceAssessments, '2019-01-01-preview/generated/azure_mgmt_security/regulatory_compliance_assessments.rb'
|
26
|
+
autoload :AlertsSuppressionRules, '2019-01-01-preview/generated/azure_mgmt_security/alerts_suppression_rules.rb'
|
27
|
+
autoload :AssessmentsMetadata, '2019-01-01-preview/generated/azure_mgmt_security/assessments_metadata.rb'
|
28
|
+
autoload :AssessmentsMetadataSubscription, '2019-01-01-preview/generated/azure_mgmt_security/assessments_metadata_subscription.rb'
|
29
|
+
autoload :Assessments, '2019-01-01-preview/generated/azure_mgmt_security/assessments.rb'
|
30
|
+
autoload :SecurityCenter, '2019-01-01-preview/generated/azure_mgmt_security/security_center.rb'
|
31
|
+
|
32
|
+
module Models
|
33
|
+
autoload :ScopeElement, '2019-01-01-preview/generated/azure_mgmt_security/models/scope_element.rb'
|
34
|
+
autoload :RegulatoryComplianceStandardList, '2019-01-01-preview/generated/azure_mgmt_security/models/regulatory_compliance_standard_list.rb'
|
35
|
+
autoload :SuppressionAlertsScope, '2019-01-01-preview/generated/azure_mgmt_security/models/suppression_alerts_scope.rb'
|
36
|
+
autoload :RegulatoryComplianceControlList, '2019-01-01-preview/generated/azure_mgmt_security/models/regulatory_compliance_control_list.rb'
|
37
|
+
autoload :Tags, '2019-01-01-preview/generated/azure_mgmt_security/models/tags.rb'
|
38
|
+
autoload :RegulatoryComplianceAssessmentList, '2019-01-01-preview/generated/azure_mgmt_security/models/regulatory_compliance_assessment_list.rb'
|
39
|
+
autoload :Resource, '2019-01-01-preview/generated/azure_mgmt_security/models/resource.rb'
|
40
|
+
autoload :TrackedResource, '2019-01-01-preview/generated/azure_mgmt_security/models/tracked_resource.rb'
|
41
|
+
autoload :ResourceDetails, '2019-01-01-preview/generated/azure_mgmt_security/models/resource_details.rb'
|
42
|
+
autoload :Kind, '2019-01-01-preview/generated/azure_mgmt_security/models/kind.rb'
|
43
|
+
autoload :SecurityAssessmentMetadataList, '2019-01-01-preview/generated/azure_mgmt_security/models/security_assessment_metadata_list.rb'
|
44
|
+
autoload :AssessmentStatus, '2019-01-01-preview/generated/azure_mgmt_security/models/assessment_status.rb'
|
45
|
+
autoload :AssessmentLinks, '2019-01-01-preview/generated/azure_mgmt_security/models/assessment_links.rb'
|
46
|
+
autoload :ETag, '2019-01-01-preview/generated/azure_mgmt_security/models/etag.rb'
|
47
|
+
autoload :SecurityAssessmentList, '2019-01-01-preview/generated/azure_mgmt_security/models/security_assessment_list.rb'
|
48
|
+
autoload :AzureTrackedResourceLocation, '2019-01-01-preview/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb'
|
49
|
+
autoload :AlertsSuppressionRulesList, '2019-01-01-preview/generated/azure_mgmt_security/models/alerts_suppression_rules_list.rb'
|
50
|
+
autoload :RegulatoryComplianceStandard, '2019-01-01-preview/generated/azure_mgmt_security/models/regulatory_compliance_standard.rb'
|
51
|
+
autoload :RegulatoryComplianceControl, '2019-01-01-preview/generated/azure_mgmt_security/models/regulatory_compliance_control.rb'
|
52
|
+
autoload :RegulatoryComplianceAssessment, '2019-01-01-preview/generated/azure_mgmt_security/models/regulatory_compliance_assessment.rb'
|
53
|
+
autoload :AscLocation, '2019-01-01-preview/generated/azure_mgmt_security/models/asc_location.rb'
|
54
|
+
autoload :AlertsSuppressionRule, '2019-01-01-preview/generated/azure_mgmt_security/models/alerts_suppression_rule.rb'
|
55
|
+
autoload :SecurityAssessmentMetadata, '2019-01-01-preview/generated/azure_mgmt_security/models/security_assessment_metadata.rb'
|
56
|
+
autoload :SecurityAssessment, '2019-01-01-preview/generated/azure_mgmt_security/models/security_assessment.rb'
|
57
|
+
autoload :OnPremiseResourceDetails, '2019-01-01-preview/generated/azure_mgmt_security/models/on_premise_resource_details.rb'
|
58
|
+
autoload :OnPremiseSqlResourceDetails, '2019-01-01-preview/generated/azure_mgmt_security/models/on_premise_sql_resource_details.rb'
|
59
|
+
autoload :AzureResourceDetails, '2019-01-01-preview/generated/azure_mgmt_security/models/azure_resource_details.rb'
|
60
|
+
autoload :State, '2019-01-01-preview/generated/azure_mgmt_security/models/state.rb'
|
61
|
+
autoload :RuleState, '2019-01-01-preview/generated/azure_mgmt_security/models/rule_state.rb'
|
62
|
+
autoload :Category, '2019-01-01-preview/generated/azure_mgmt_security/models/category.rb'
|
63
|
+
autoload :Severity, '2019-01-01-preview/generated/azure_mgmt_security/models/severity.rb'
|
64
|
+
autoload :UserImpact, '2019-01-01-preview/generated/azure_mgmt_security/models/user_impact.rb'
|
65
|
+
autoload :ImplementationEffort, '2019-01-01-preview/generated/azure_mgmt_security/models/implementation_effort.rb'
|
66
|
+
autoload :Threats, '2019-01-01-preview/generated/azure_mgmt_security/models/threats.rb'
|
67
|
+
autoload :AssessmentType, '2019-01-01-preview/generated/azure_mgmt_security/models/assessment_type.rb'
|
68
|
+
autoload :AssessmentStatusCode, '2019-01-01-preview/generated/azure_mgmt_security/models/assessment_status_code.rb'
|
69
|
+
autoload :ExpandEnum, '2019-01-01-preview/generated/azure_mgmt_security/models/expand_enum.rb'
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,514 @@
|
|
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
|
+
# API spec for Microsoft.Security (Azure Security Center) resource provider
|
9
|
+
#
|
10
|
+
class AlertsSuppressionRules
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the AlertsSuppressionRules 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 of all the dismiss rules for the given subscription
|
26
|
+
#
|
27
|
+
# @param alert_type [String] Type of the alert to get rules for
|
28
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
29
|
+
# will be added to the HTTP request.
|
30
|
+
#
|
31
|
+
# @return [Array<AlertsSuppressionRule>] operation results.
|
32
|
+
#
|
33
|
+
def list(alert_type:nil, custom_headers:nil)
|
34
|
+
first_page = list_as_lazy(alert_type:alert_type, custom_headers:custom_headers)
|
35
|
+
first_page.get_all_items
|
36
|
+
end
|
37
|
+
|
38
|
+
#
|
39
|
+
# List of all the dismiss rules for the given subscription
|
40
|
+
#
|
41
|
+
# @param alert_type [String] Type of the alert to get rules for
|
42
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
43
|
+
# will be added to the HTTP request.
|
44
|
+
#
|
45
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
46
|
+
#
|
47
|
+
def list_with_http_info(alert_type:nil, custom_headers:nil)
|
48
|
+
list_async(alert_type:alert_type, custom_headers:custom_headers).value!
|
49
|
+
end
|
50
|
+
|
51
|
+
#
|
52
|
+
# List of all the dismiss rules for the given subscription
|
53
|
+
#
|
54
|
+
# @param alert_type [String] Type of the alert to get rules for
|
55
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
56
|
+
# to the HTTP request.
|
57
|
+
#
|
58
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
59
|
+
#
|
60
|
+
def list_async(alert_type:nil, custom_headers:nil)
|
61
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
62
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
63
|
+
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?
|
64
|
+
|
65
|
+
|
66
|
+
request_headers = {}
|
67
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
68
|
+
|
69
|
+
# Set Headers
|
70
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
71
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
72
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Security/alertsSuppressionRules'
|
73
|
+
|
74
|
+
request_url = @base_url || @client.base_url
|
75
|
+
|
76
|
+
options = {
|
77
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
78
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
79
|
+
query_params: {'api-version' => @client.api_version,'AlertType' => alert_type},
|
80
|
+
headers: request_headers.merge(custom_headers || {}),
|
81
|
+
base_url: request_url
|
82
|
+
}
|
83
|
+
promise = @client.make_request_async(:get, path_template, options)
|
84
|
+
|
85
|
+
promise = promise.then do |result|
|
86
|
+
http_response = result.response
|
87
|
+
status_code = http_response.status
|
88
|
+
response_content = http_response.body
|
89
|
+
unless status_code == 200
|
90
|
+
error_model = JSON.load(response_content)
|
91
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
92
|
+
end
|
93
|
+
|
94
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
95
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
96
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
97
|
+
# Deserialize Response
|
98
|
+
if status_code == 200
|
99
|
+
begin
|
100
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
101
|
+
result_mapper = Azure::Security::Mgmt::V2019_01_01_preview::Models::AlertsSuppressionRulesList.mapper()
|
102
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
103
|
+
rescue Exception => e
|
104
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
result
|
109
|
+
end
|
110
|
+
|
111
|
+
promise.execute
|
112
|
+
end
|
113
|
+
|
114
|
+
#
|
115
|
+
# Get dismiss rule, with name: {alertsSuppressionRuleName}, for the given
|
116
|
+
# subscription
|
117
|
+
#
|
118
|
+
# @param alerts_suppression_rule_name [String] The unique name of the
|
119
|
+
# suppression alert rule
|
120
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
121
|
+
# will be added to the HTTP request.
|
122
|
+
#
|
123
|
+
# @return [AlertsSuppressionRule] operation results.
|
124
|
+
#
|
125
|
+
def get(alerts_suppression_rule_name, custom_headers:nil)
|
126
|
+
response = get_async(alerts_suppression_rule_name, custom_headers:custom_headers).value!
|
127
|
+
response.body unless response.nil?
|
128
|
+
end
|
129
|
+
|
130
|
+
#
|
131
|
+
# Get dismiss rule, with name: {alertsSuppressionRuleName}, for the given
|
132
|
+
# subscription
|
133
|
+
#
|
134
|
+
# @param alerts_suppression_rule_name [String] The unique name of the
|
135
|
+
# suppression alert rule
|
136
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
137
|
+
# will be added to the HTTP request.
|
138
|
+
#
|
139
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
140
|
+
#
|
141
|
+
def get_with_http_info(alerts_suppression_rule_name, custom_headers:nil)
|
142
|
+
get_async(alerts_suppression_rule_name, custom_headers:custom_headers).value!
|
143
|
+
end
|
144
|
+
|
145
|
+
#
|
146
|
+
# Get dismiss rule, with name: {alertsSuppressionRuleName}, for the given
|
147
|
+
# subscription
|
148
|
+
#
|
149
|
+
# @param alerts_suppression_rule_name [String] The unique name of the
|
150
|
+
# suppression alert rule
|
151
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
152
|
+
# to the HTTP request.
|
153
|
+
#
|
154
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
155
|
+
#
|
156
|
+
def get_async(alerts_suppression_rule_name, custom_headers:nil)
|
157
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
158
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
159
|
+
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?
|
160
|
+
fail ArgumentError, 'alerts_suppression_rule_name is nil' if alerts_suppression_rule_name.nil?
|
161
|
+
|
162
|
+
|
163
|
+
request_headers = {}
|
164
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
165
|
+
|
166
|
+
# Set Headers
|
167
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
168
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
169
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Security/alertsSuppressionRules/{alertsSuppressionRuleName}'
|
170
|
+
|
171
|
+
request_url = @base_url || @client.base_url
|
172
|
+
|
173
|
+
options = {
|
174
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
175
|
+
path_params: {'subscriptionId' => @client.subscription_id,'alertsSuppressionRuleName' => alerts_suppression_rule_name},
|
176
|
+
query_params: {'api-version' => @client.api_version},
|
177
|
+
headers: request_headers.merge(custom_headers || {}),
|
178
|
+
base_url: request_url
|
179
|
+
}
|
180
|
+
promise = @client.make_request_async(:get, path_template, options)
|
181
|
+
|
182
|
+
promise = promise.then do |result|
|
183
|
+
http_response = result.response
|
184
|
+
status_code = http_response.status
|
185
|
+
response_content = http_response.body
|
186
|
+
unless status_code == 200
|
187
|
+
error_model = JSON.load(response_content)
|
188
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
189
|
+
end
|
190
|
+
|
191
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
192
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
193
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
194
|
+
# Deserialize Response
|
195
|
+
if status_code == 200
|
196
|
+
begin
|
197
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
198
|
+
result_mapper = Azure::Security::Mgmt::V2019_01_01_preview::Models::AlertsSuppressionRule.mapper()
|
199
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
200
|
+
rescue Exception => e
|
201
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
205
|
+
result
|
206
|
+
end
|
207
|
+
|
208
|
+
promise.execute
|
209
|
+
end
|
210
|
+
|
211
|
+
#
|
212
|
+
# Update existing rule or create new rule if it doesn't exist
|
213
|
+
#
|
214
|
+
# @param alerts_suppression_rule_name [String] The unique name of the
|
215
|
+
# suppression alert rule
|
216
|
+
# @param alerts_suppression_rule [AlertsSuppressionRule] Suppression rule
|
217
|
+
# object
|
218
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
219
|
+
# will be added to the HTTP request.
|
220
|
+
#
|
221
|
+
# @return [AlertsSuppressionRule] operation results.
|
222
|
+
#
|
223
|
+
def update(alerts_suppression_rule_name, alerts_suppression_rule, custom_headers:nil)
|
224
|
+
response = update_async(alerts_suppression_rule_name, alerts_suppression_rule, custom_headers:custom_headers).value!
|
225
|
+
response.body unless response.nil?
|
226
|
+
end
|
227
|
+
|
228
|
+
#
|
229
|
+
# Update existing rule or create new rule if it doesn't exist
|
230
|
+
#
|
231
|
+
# @param alerts_suppression_rule_name [String] The unique name of the
|
232
|
+
# suppression alert rule
|
233
|
+
# @param alerts_suppression_rule [AlertsSuppressionRule] Suppression rule
|
234
|
+
# object
|
235
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
236
|
+
# will be added to the HTTP request.
|
237
|
+
#
|
238
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
239
|
+
#
|
240
|
+
def update_with_http_info(alerts_suppression_rule_name, alerts_suppression_rule, custom_headers:nil)
|
241
|
+
update_async(alerts_suppression_rule_name, alerts_suppression_rule, custom_headers:custom_headers).value!
|
242
|
+
end
|
243
|
+
|
244
|
+
#
|
245
|
+
# Update existing rule or create new rule if it doesn't exist
|
246
|
+
#
|
247
|
+
# @param alerts_suppression_rule_name [String] The unique name of the
|
248
|
+
# suppression alert rule
|
249
|
+
# @param alerts_suppression_rule [AlertsSuppressionRule] Suppression rule
|
250
|
+
# object
|
251
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
252
|
+
# to the HTTP request.
|
253
|
+
#
|
254
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
255
|
+
#
|
256
|
+
def update_async(alerts_suppression_rule_name, alerts_suppression_rule, custom_headers:nil)
|
257
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
258
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
259
|
+
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?
|
260
|
+
fail ArgumentError, 'alerts_suppression_rule_name is nil' if alerts_suppression_rule_name.nil?
|
261
|
+
fail ArgumentError, 'alerts_suppression_rule is nil' if alerts_suppression_rule.nil?
|
262
|
+
|
263
|
+
|
264
|
+
request_headers = {}
|
265
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
266
|
+
|
267
|
+
# Set Headers
|
268
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
269
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
270
|
+
|
271
|
+
# Serialize Request
|
272
|
+
request_mapper = Azure::Security::Mgmt::V2019_01_01_preview::Models::AlertsSuppressionRule.mapper()
|
273
|
+
request_content = @client.serialize(request_mapper, alerts_suppression_rule)
|
274
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
275
|
+
|
276
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Security/alertsSuppressionRules/{alertsSuppressionRuleName}'
|
277
|
+
|
278
|
+
request_url = @base_url || @client.base_url
|
279
|
+
|
280
|
+
options = {
|
281
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
282
|
+
path_params: {'subscriptionId' => @client.subscription_id,'alertsSuppressionRuleName' => alerts_suppression_rule_name},
|
283
|
+
query_params: {'api-version' => @client.api_version},
|
284
|
+
body: request_content,
|
285
|
+
headers: request_headers.merge(custom_headers || {}),
|
286
|
+
base_url: request_url
|
287
|
+
}
|
288
|
+
promise = @client.make_request_async(:put, path_template, options)
|
289
|
+
|
290
|
+
promise = promise.then do |result|
|
291
|
+
http_response = result.response
|
292
|
+
status_code = http_response.status
|
293
|
+
response_content = http_response.body
|
294
|
+
unless status_code == 200
|
295
|
+
error_model = JSON.load(response_content)
|
296
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
297
|
+
end
|
298
|
+
|
299
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
300
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
301
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
302
|
+
# Deserialize Response
|
303
|
+
if status_code == 200
|
304
|
+
begin
|
305
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
306
|
+
result_mapper = Azure::Security::Mgmt::V2019_01_01_preview::Models::AlertsSuppressionRule.mapper()
|
307
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
308
|
+
rescue Exception => e
|
309
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
310
|
+
end
|
311
|
+
end
|
312
|
+
|
313
|
+
result
|
314
|
+
end
|
315
|
+
|
316
|
+
promise.execute
|
317
|
+
end
|
318
|
+
|
319
|
+
#
|
320
|
+
# Delete dismiss alert rule for this subscription.
|
321
|
+
#
|
322
|
+
# @param alerts_suppression_rule_name [String] The unique name of the
|
323
|
+
# suppression alert rule
|
324
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
325
|
+
# will be added to the HTTP request.
|
326
|
+
#
|
327
|
+
#
|
328
|
+
def delete(alerts_suppression_rule_name, custom_headers:nil)
|
329
|
+
response = delete_async(alerts_suppression_rule_name, custom_headers:custom_headers).value!
|
330
|
+
nil
|
331
|
+
end
|
332
|
+
|
333
|
+
#
|
334
|
+
# Delete dismiss alert rule for this subscription.
|
335
|
+
#
|
336
|
+
# @param alerts_suppression_rule_name [String] The unique name of the
|
337
|
+
# suppression alert rule
|
338
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
339
|
+
# will be added to the HTTP request.
|
340
|
+
#
|
341
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
342
|
+
#
|
343
|
+
def delete_with_http_info(alerts_suppression_rule_name, custom_headers:nil)
|
344
|
+
delete_async(alerts_suppression_rule_name, custom_headers:custom_headers).value!
|
345
|
+
end
|
346
|
+
|
347
|
+
#
|
348
|
+
# Delete dismiss alert rule for this subscription.
|
349
|
+
#
|
350
|
+
# @param alerts_suppression_rule_name [String] The unique name of the
|
351
|
+
# suppression alert rule
|
352
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
353
|
+
# to the HTTP request.
|
354
|
+
#
|
355
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
356
|
+
#
|
357
|
+
def delete_async(alerts_suppression_rule_name, custom_headers:nil)
|
358
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
359
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
360
|
+
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?
|
361
|
+
fail ArgumentError, 'alerts_suppression_rule_name is nil' if alerts_suppression_rule_name.nil?
|
362
|
+
|
363
|
+
|
364
|
+
request_headers = {}
|
365
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
366
|
+
|
367
|
+
# Set Headers
|
368
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
369
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
370
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Security/alertsSuppressionRules/{alertsSuppressionRuleName}'
|
371
|
+
|
372
|
+
request_url = @base_url || @client.base_url
|
373
|
+
|
374
|
+
options = {
|
375
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
376
|
+
path_params: {'subscriptionId' => @client.subscription_id,'alertsSuppressionRuleName' => alerts_suppression_rule_name},
|
377
|
+
query_params: {'api-version' => @client.api_version},
|
378
|
+
headers: request_headers.merge(custom_headers || {}),
|
379
|
+
base_url: request_url
|
380
|
+
}
|
381
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
382
|
+
|
383
|
+
promise = promise.then do |result|
|
384
|
+
http_response = result.response
|
385
|
+
status_code = http_response.status
|
386
|
+
response_content = http_response.body
|
387
|
+
unless status_code == 204
|
388
|
+
error_model = JSON.load(response_content)
|
389
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
390
|
+
end
|
391
|
+
|
392
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
393
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
394
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
395
|
+
|
396
|
+
result
|
397
|
+
end
|
398
|
+
|
399
|
+
promise.execute
|
400
|
+
end
|
401
|
+
|
402
|
+
#
|
403
|
+
# List of all the dismiss rules for the given subscription
|
404
|
+
#
|
405
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
406
|
+
# to List operation.
|
407
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
408
|
+
# will be added to the HTTP request.
|
409
|
+
#
|
410
|
+
# @return [AlertsSuppressionRulesList] operation results.
|
411
|
+
#
|
412
|
+
def list_next(next_page_link, custom_headers:nil)
|
413
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
414
|
+
response.body unless response.nil?
|
415
|
+
end
|
416
|
+
|
417
|
+
#
|
418
|
+
# List of all the dismiss rules for the given subscription
|
419
|
+
#
|
420
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
421
|
+
# to List operation.
|
422
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
423
|
+
# will be added to the HTTP request.
|
424
|
+
#
|
425
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
426
|
+
#
|
427
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
428
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
429
|
+
end
|
430
|
+
|
431
|
+
#
|
432
|
+
# List of all the dismiss rules for the given subscription
|
433
|
+
#
|
434
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
435
|
+
# to List operation.
|
436
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
437
|
+
# to the HTTP request.
|
438
|
+
#
|
439
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
440
|
+
#
|
441
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
442
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
443
|
+
|
444
|
+
|
445
|
+
request_headers = {}
|
446
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
447
|
+
|
448
|
+
# Set Headers
|
449
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
450
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
451
|
+
path_template = '{nextLink}'
|
452
|
+
|
453
|
+
request_url = @base_url || @client.base_url
|
454
|
+
|
455
|
+
options = {
|
456
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
457
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
458
|
+
headers: request_headers.merge(custom_headers || {}),
|
459
|
+
base_url: request_url
|
460
|
+
}
|
461
|
+
promise = @client.make_request_async(:get, path_template, options)
|
462
|
+
|
463
|
+
promise = promise.then do |result|
|
464
|
+
http_response = result.response
|
465
|
+
status_code = http_response.status
|
466
|
+
response_content = http_response.body
|
467
|
+
unless status_code == 200
|
468
|
+
error_model = JSON.load(response_content)
|
469
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
470
|
+
end
|
471
|
+
|
472
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
473
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
474
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
475
|
+
# Deserialize Response
|
476
|
+
if status_code == 200
|
477
|
+
begin
|
478
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
479
|
+
result_mapper = Azure::Security::Mgmt::V2019_01_01_preview::Models::AlertsSuppressionRulesList.mapper()
|
480
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
481
|
+
rescue Exception => e
|
482
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
483
|
+
end
|
484
|
+
end
|
485
|
+
|
486
|
+
result
|
487
|
+
end
|
488
|
+
|
489
|
+
promise.execute
|
490
|
+
end
|
491
|
+
|
492
|
+
#
|
493
|
+
# List of all the dismiss rules for the given subscription
|
494
|
+
#
|
495
|
+
# @param alert_type [String] Type of the alert to get rules for
|
496
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
497
|
+
# will be added to the HTTP request.
|
498
|
+
#
|
499
|
+
# @return [AlertsSuppressionRulesList] which provide lazy access to pages of
|
500
|
+
# the response.
|
501
|
+
#
|
502
|
+
def list_as_lazy(alert_type:nil, custom_headers:nil)
|
503
|
+
response = list_async(alert_type:alert_type, custom_headers:custom_headers).value!
|
504
|
+
unless response.nil?
|
505
|
+
page = response.body
|
506
|
+
page.next_method = Proc.new do |next_page_link|
|
507
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
508
|
+
end
|
509
|
+
page
|
510
|
+
end
|
511
|
+
end
|
512
|
+
|
513
|
+
end
|
514
|
+
end
|