azure_mgmt_security 0.17.2 → 0.18.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 +109 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/adaptive_application_controls.rb +313 -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 +1280 -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 +191 -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 +86 -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/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/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 +57 -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 +78 -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/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/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/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 +69 -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 +72 -13
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/advanced_threat_protection.rb +222 -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 +9 -3
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/device_security_groups.rb +523 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/information_protection_policies.rb +447 -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/advanced_threat_protection_setting.rb +74 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/allowlist_custom_alert_rule.rb +99 -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/custom_alert_rule.rb +81 -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 +99 -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/export_data.rb +15 -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 +116 -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 +114 -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/list_custom_alert_rule.rb +82 -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_solution_status.rb +16 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/sensitivity_label.rb +68 -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_resource.rb +55 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/threshold_custom_alert_rule.rb +92 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/time_window_custom_alert_rule.rb +115 -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/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 +33 -0
- data/lib/2017-08-01/generated/azure_mgmt_security/compliance_results.rb +329 -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/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/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/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 +33 -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/pricing.rb +90 -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/module_definition.rb +9 -0
- data/lib/2018-06-01/generated/azure_mgmt_security/pricings.rb +332 -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 +42 -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/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/server_vulnerability_assessment.rb +76 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/server_vulnerability_assessments_list.rb +55 -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/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 +145 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/server_vulnerability_assessment_operations.rb +462 -0
- data/lib/2019-01-01/generated/azure_mgmt_security.rb +41 -0
- data/lib/2019-01-01/generated/azure_mgmt_security/alerts.rb +1280 -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/data_export_setting.rb +81 -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 +70 -0
- data/lib/2019-01-01/generated/azure_mgmt_security/models/setting_kind.rb +16 -0
- data/lib/2019-01-01/generated/azure_mgmt_security/models/setting_resource.rb +75 -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/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 +63 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/io_tsecurity_solutions.rb +230 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/io_tsecurity_solutions_analytics.rb +227 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/io_tsecurity_solutions_analytics_aggregated_alert.rb +224 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/io_tsecurity_solutions_analytics_aggregated_alerts.rb +243 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/io_tsecurity_solutions_analytics_recommendation.rb +133 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/io_tsecurity_solutions_analytics_recommendations.rb +243 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/io_tsecurity_solutions_resource_group.rb +242 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/iot_security_solution.rb +459 -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/data_source.rb +15 -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 +238 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_aggregated_alert_list.rb +100 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_aggregated_recommendation.rb +212 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_aggregated_recommendation_list.rb +101 -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_alerted_devices_list.rb +56 -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_alerts_list.rb +67 -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_device_recommendations_list.rb +56 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_solution_analytics_model.rb +149 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_solution_analytics_model_list.rb +68 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_solution_analytics_model_properties_devices_metrics_item.rb +61 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_solution_model.rb +248 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_solutions_list.rb +99 -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/recommendation_config_status.rb +16 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/recommendation_configuration_properties.rb +79 -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_resource.rb +55 -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 +164 -0
- data/lib/azure_mgmt_security.rb +6 -0
- data/lib/profiles/latest/modules/security_profile_module.rb +652 -40
- data/lib/version.rb +1 -1
- metadata +242 -6
@@ -0,0 +1,532 @@
|
|
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::V2015_06_01_preview
|
7
|
+
#
|
8
|
+
# API spec for Microsoft.Security (Azure Security Center) resource provider
|
9
|
+
#
|
10
|
+
class DiscoveredSecuritySolutions
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the DiscoveredSecuritySolutions 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
|
+
# Gets a list of discovered Security Solutions for the subscription.
|
26
|
+
#
|
27
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
28
|
+
# will be added to the HTTP request.
|
29
|
+
#
|
30
|
+
# @return [Array<DiscoveredSecuritySolution>] operation results.
|
31
|
+
#
|
32
|
+
def list(custom_headers:nil)
|
33
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
34
|
+
first_page.get_all_items
|
35
|
+
end
|
36
|
+
|
37
|
+
#
|
38
|
+
# Gets a list of discovered Security Solutions for the subscription.
|
39
|
+
#
|
40
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
41
|
+
# will be added to the HTTP request.
|
42
|
+
#
|
43
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
44
|
+
#
|
45
|
+
def list_with_http_info(custom_headers:nil)
|
46
|
+
list_async(custom_headers:custom_headers).value!
|
47
|
+
end
|
48
|
+
|
49
|
+
#
|
50
|
+
# Gets a list of discovered Security Solutions for the subscription.
|
51
|
+
#
|
52
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
53
|
+
# to the HTTP request.
|
54
|
+
#
|
55
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
56
|
+
#
|
57
|
+
def list_async(custom_headers:nil)
|
58
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
59
|
+
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?
|
60
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
61
|
+
|
62
|
+
|
63
|
+
request_headers = {}
|
64
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
65
|
+
|
66
|
+
# Set Headers
|
67
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
68
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
69
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Security/discoveredSecuritySolutions'
|
70
|
+
|
71
|
+
request_url = @base_url || @client.base_url
|
72
|
+
|
73
|
+
options = {
|
74
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
75
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
76
|
+
query_params: {'api-version' => @client.api_version},
|
77
|
+
headers: request_headers.merge(custom_headers || {}),
|
78
|
+
base_url: request_url
|
79
|
+
}
|
80
|
+
promise = @client.make_request_async(:get, path_template, options)
|
81
|
+
|
82
|
+
promise = promise.then do |result|
|
83
|
+
http_response = result.response
|
84
|
+
status_code = http_response.status
|
85
|
+
response_content = http_response.body
|
86
|
+
unless status_code == 200
|
87
|
+
error_model = JSON.load(response_content)
|
88
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
89
|
+
end
|
90
|
+
|
91
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
92
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
93
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
94
|
+
# Deserialize Response
|
95
|
+
if status_code == 200
|
96
|
+
begin
|
97
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
98
|
+
result_mapper = Azure::Security::Mgmt::V2015_06_01_preview::Models::DiscoveredSecuritySolutionList.mapper()
|
99
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
100
|
+
rescue Exception => e
|
101
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
result
|
106
|
+
end
|
107
|
+
|
108
|
+
promise.execute
|
109
|
+
end
|
110
|
+
|
111
|
+
#
|
112
|
+
# Gets a list of discovered Security Solutions for the subscription and
|
113
|
+
# location.
|
114
|
+
#
|
115
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
116
|
+
# will be added to the HTTP request.
|
117
|
+
#
|
118
|
+
# @return [Array<DiscoveredSecuritySolution>] operation results.
|
119
|
+
#
|
120
|
+
def list_by_home_region(custom_headers:nil)
|
121
|
+
first_page = list_by_home_region_as_lazy(custom_headers:custom_headers)
|
122
|
+
first_page.get_all_items
|
123
|
+
end
|
124
|
+
|
125
|
+
#
|
126
|
+
# Gets a list of discovered Security Solutions for the subscription and
|
127
|
+
# location.
|
128
|
+
#
|
129
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
130
|
+
# will be added to the HTTP request.
|
131
|
+
#
|
132
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
133
|
+
#
|
134
|
+
def list_by_home_region_with_http_info(custom_headers:nil)
|
135
|
+
list_by_home_region_async(custom_headers:custom_headers).value!
|
136
|
+
end
|
137
|
+
|
138
|
+
#
|
139
|
+
# Gets a list of discovered Security Solutions for the subscription and
|
140
|
+
# location.
|
141
|
+
#
|
142
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
143
|
+
# to the HTTP request.
|
144
|
+
#
|
145
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
146
|
+
#
|
147
|
+
def list_by_home_region_async(custom_headers:nil)
|
148
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
149
|
+
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?
|
150
|
+
fail ArgumentError, '@client.asc_location is nil' if @client.asc_location.nil?
|
151
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
152
|
+
|
153
|
+
|
154
|
+
request_headers = {}
|
155
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
156
|
+
|
157
|
+
# Set Headers
|
158
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
159
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
160
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/discoveredSecuritySolutions'
|
161
|
+
|
162
|
+
request_url = @base_url || @client.base_url
|
163
|
+
|
164
|
+
options = {
|
165
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
166
|
+
path_params: {'subscriptionId' => @client.subscription_id,'ascLocation' => @client.asc_location},
|
167
|
+
query_params: {'api-version' => @client.api_version},
|
168
|
+
headers: request_headers.merge(custom_headers || {}),
|
169
|
+
base_url: request_url
|
170
|
+
}
|
171
|
+
promise = @client.make_request_async(:get, path_template, options)
|
172
|
+
|
173
|
+
promise = promise.then do |result|
|
174
|
+
http_response = result.response
|
175
|
+
status_code = http_response.status
|
176
|
+
response_content = http_response.body
|
177
|
+
unless status_code == 200
|
178
|
+
error_model = JSON.load(response_content)
|
179
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
180
|
+
end
|
181
|
+
|
182
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
183
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
184
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
185
|
+
# Deserialize Response
|
186
|
+
if status_code == 200
|
187
|
+
begin
|
188
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
189
|
+
result_mapper = Azure::Security::Mgmt::V2015_06_01_preview::Models::DiscoveredSecuritySolutionList.mapper()
|
190
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
191
|
+
rescue Exception => e
|
192
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
result
|
197
|
+
end
|
198
|
+
|
199
|
+
promise.execute
|
200
|
+
end
|
201
|
+
|
202
|
+
#
|
203
|
+
# Gets a specific discovered Security Solution.
|
204
|
+
#
|
205
|
+
# @param resource_group_name [String] The name of the resource group within the
|
206
|
+
# user's subscription. The name is case insensitive.
|
207
|
+
# @param discovered_security_solution_name [String] Name of a discovered
|
208
|
+
# security solution.
|
209
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
210
|
+
# will be added to the HTTP request.
|
211
|
+
#
|
212
|
+
# @return [DiscoveredSecuritySolution] operation results.
|
213
|
+
#
|
214
|
+
def get(resource_group_name, discovered_security_solution_name, custom_headers:nil)
|
215
|
+
response = get_async(resource_group_name, discovered_security_solution_name, custom_headers:custom_headers).value!
|
216
|
+
response.body unless response.nil?
|
217
|
+
end
|
218
|
+
|
219
|
+
#
|
220
|
+
# Gets a specific discovered Security Solution.
|
221
|
+
#
|
222
|
+
# @param resource_group_name [String] The name of the resource group within the
|
223
|
+
# user's subscription. The name is case insensitive.
|
224
|
+
# @param discovered_security_solution_name [String] Name of a discovered
|
225
|
+
# security solution.
|
226
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
227
|
+
# will be added to the HTTP request.
|
228
|
+
#
|
229
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
230
|
+
#
|
231
|
+
def get_with_http_info(resource_group_name, discovered_security_solution_name, custom_headers:nil)
|
232
|
+
get_async(resource_group_name, discovered_security_solution_name, custom_headers:custom_headers).value!
|
233
|
+
end
|
234
|
+
|
235
|
+
#
|
236
|
+
# Gets a specific discovered Security Solution.
|
237
|
+
#
|
238
|
+
# @param resource_group_name [String] The name of the resource group within the
|
239
|
+
# user's subscription. The name is case insensitive.
|
240
|
+
# @param discovered_security_solution_name [String] Name of a discovered
|
241
|
+
# security solution.
|
242
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
243
|
+
# to the HTTP request.
|
244
|
+
#
|
245
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
246
|
+
#
|
247
|
+
def get_async(resource_group_name, discovered_security_solution_name, custom_headers:nil)
|
248
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
249
|
+
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?
|
250
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
251
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
252
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
253
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
254
|
+
fail ArgumentError, '@client.asc_location is nil' if @client.asc_location.nil?
|
255
|
+
fail ArgumentError, 'discovered_security_solution_name is nil' if discovered_security_solution_name.nil?
|
256
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
257
|
+
|
258
|
+
|
259
|
+
request_headers = {}
|
260
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
261
|
+
|
262
|
+
# Set Headers
|
263
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
264
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
265
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/discoveredSecuritySolutions/{discoveredSecuritySolutionName}'
|
266
|
+
|
267
|
+
request_url = @base_url || @client.base_url
|
268
|
+
|
269
|
+
options = {
|
270
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
271
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'ascLocation' => @client.asc_location,'discoveredSecuritySolutionName' => discovered_security_solution_name},
|
272
|
+
query_params: {'api-version' => @client.api_version},
|
273
|
+
headers: request_headers.merge(custom_headers || {}),
|
274
|
+
base_url: request_url
|
275
|
+
}
|
276
|
+
promise = @client.make_request_async(:get, path_template, options)
|
277
|
+
|
278
|
+
promise = promise.then do |result|
|
279
|
+
http_response = result.response
|
280
|
+
status_code = http_response.status
|
281
|
+
response_content = http_response.body
|
282
|
+
unless status_code == 200
|
283
|
+
error_model = JSON.load(response_content)
|
284
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
285
|
+
end
|
286
|
+
|
287
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
288
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
289
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
290
|
+
# Deserialize Response
|
291
|
+
if status_code == 200
|
292
|
+
begin
|
293
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
294
|
+
result_mapper = Azure::Security::Mgmt::V2015_06_01_preview::Models::DiscoveredSecuritySolution.mapper()
|
295
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
296
|
+
rescue Exception => e
|
297
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
298
|
+
end
|
299
|
+
end
|
300
|
+
|
301
|
+
result
|
302
|
+
end
|
303
|
+
|
304
|
+
promise.execute
|
305
|
+
end
|
306
|
+
|
307
|
+
#
|
308
|
+
# Gets a list of discovered Security Solutions for the subscription.
|
309
|
+
#
|
310
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
311
|
+
# to List operation.
|
312
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
313
|
+
# will be added to the HTTP request.
|
314
|
+
#
|
315
|
+
# @return [DiscoveredSecuritySolutionList] operation results.
|
316
|
+
#
|
317
|
+
def list_next(next_page_link, custom_headers:nil)
|
318
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
319
|
+
response.body unless response.nil?
|
320
|
+
end
|
321
|
+
|
322
|
+
#
|
323
|
+
# Gets a list of discovered Security Solutions for the subscription.
|
324
|
+
#
|
325
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
326
|
+
# to List operation.
|
327
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
328
|
+
# will be added to the HTTP request.
|
329
|
+
#
|
330
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
331
|
+
#
|
332
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
333
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
334
|
+
end
|
335
|
+
|
336
|
+
#
|
337
|
+
# Gets a list of discovered Security Solutions for the subscription.
|
338
|
+
#
|
339
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
340
|
+
# to List operation.
|
341
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
342
|
+
# to the HTTP request.
|
343
|
+
#
|
344
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
345
|
+
#
|
346
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
347
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
348
|
+
|
349
|
+
|
350
|
+
request_headers = {}
|
351
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
352
|
+
|
353
|
+
# Set Headers
|
354
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
355
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
356
|
+
path_template = '{nextLink}'
|
357
|
+
|
358
|
+
request_url = @base_url || @client.base_url
|
359
|
+
|
360
|
+
options = {
|
361
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
362
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
363
|
+
headers: request_headers.merge(custom_headers || {}),
|
364
|
+
base_url: request_url
|
365
|
+
}
|
366
|
+
promise = @client.make_request_async(:get, path_template, options)
|
367
|
+
|
368
|
+
promise = promise.then do |result|
|
369
|
+
http_response = result.response
|
370
|
+
status_code = http_response.status
|
371
|
+
response_content = http_response.body
|
372
|
+
unless status_code == 200
|
373
|
+
error_model = JSON.load(response_content)
|
374
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
375
|
+
end
|
376
|
+
|
377
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
378
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
379
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
380
|
+
# Deserialize Response
|
381
|
+
if status_code == 200
|
382
|
+
begin
|
383
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
384
|
+
result_mapper = Azure::Security::Mgmt::V2015_06_01_preview::Models::DiscoveredSecuritySolutionList.mapper()
|
385
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
386
|
+
rescue Exception => e
|
387
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
388
|
+
end
|
389
|
+
end
|
390
|
+
|
391
|
+
result
|
392
|
+
end
|
393
|
+
|
394
|
+
promise.execute
|
395
|
+
end
|
396
|
+
|
397
|
+
#
|
398
|
+
# Gets a list of discovered Security Solutions for the subscription and
|
399
|
+
# location.
|
400
|
+
#
|
401
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
402
|
+
# to List operation.
|
403
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
404
|
+
# will be added to the HTTP request.
|
405
|
+
#
|
406
|
+
# @return [DiscoveredSecuritySolutionList] operation results.
|
407
|
+
#
|
408
|
+
def list_by_home_region_next(next_page_link, custom_headers:nil)
|
409
|
+
response = list_by_home_region_next_async(next_page_link, custom_headers:custom_headers).value!
|
410
|
+
response.body unless response.nil?
|
411
|
+
end
|
412
|
+
|
413
|
+
#
|
414
|
+
# Gets a list of discovered Security Solutions for the subscription and
|
415
|
+
# location.
|
416
|
+
#
|
417
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
418
|
+
# to List operation.
|
419
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
420
|
+
# will be added to the HTTP request.
|
421
|
+
#
|
422
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
423
|
+
#
|
424
|
+
def list_by_home_region_next_with_http_info(next_page_link, custom_headers:nil)
|
425
|
+
list_by_home_region_next_async(next_page_link, custom_headers:custom_headers).value!
|
426
|
+
end
|
427
|
+
|
428
|
+
#
|
429
|
+
# Gets a list of discovered Security Solutions for the subscription and
|
430
|
+
# location.
|
431
|
+
#
|
432
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
433
|
+
# to List operation.
|
434
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
435
|
+
# to the HTTP request.
|
436
|
+
#
|
437
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
438
|
+
#
|
439
|
+
def list_by_home_region_next_async(next_page_link, custom_headers:nil)
|
440
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
441
|
+
|
442
|
+
|
443
|
+
request_headers = {}
|
444
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
445
|
+
|
446
|
+
# Set Headers
|
447
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
448
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
449
|
+
path_template = '{nextLink}'
|
450
|
+
|
451
|
+
request_url = @base_url || @client.base_url
|
452
|
+
|
453
|
+
options = {
|
454
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
455
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
456
|
+
headers: request_headers.merge(custom_headers || {}),
|
457
|
+
base_url: request_url
|
458
|
+
}
|
459
|
+
promise = @client.make_request_async(:get, path_template, options)
|
460
|
+
|
461
|
+
promise = promise.then do |result|
|
462
|
+
http_response = result.response
|
463
|
+
status_code = http_response.status
|
464
|
+
response_content = http_response.body
|
465
|
+
unless status_code == 200
|
466
|
+
error_model = JSON.load(response_content)
|
467
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
468
|
+
end
|
469
|
+
|
470
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
471
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
472
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
473
|
+
# Deserialize Response
|
474
|
+
if status_code == 200
|
475
|
+
begin
|
476
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
477
|
+
result_mapper = Azure::Security::Mgmt::V2015_06_01_preview::Models::DiscoveredSecuritySolutionList.mapper()
|
478
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
479
|
+
rescue Exception => e
|
480
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
481
|
+
end
|
482
|
+
end
|
483
|
+
|
484
|
+
result
|
485
|
+
end
|
486
|
+
|
487
|
+
promise.execute
|
488
|
+
end
|
489
|
+
|
490
|
+
#
|
491
|
+
# Gets a list of discovered Security Solutions for the subscription.
|
492
|
+
#
|
493
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
494
|
+
# will be added to the HTTP request.
|
495
|
+
#
|
496
|
+
# @return [DiscoveredSecuritySolutionList] which provide lazy access to pages
|
497
|
+
# of the response.
|
498
|
+
#
|
499
|
+
def list_as_lazy(custom_headers:nil)
|
500
|
+
response = list_async(custom_headers:custom_headers).value!
|
501
|
+
unless response.nil?
|
502
|
+
page = response.body
|
503
|
+
page.next_method = Proc.new do |next_page_link|
|
504
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
505
|
+
end
|
506
|
+
page
|
507
|
+
end
|
508
|
+
end
|
509
|
+
|
510
|
+
#
|
511
|
+
# Gets a list of discovered Security Solutions for the subscription and
|
512
|
+
# location.
|
513
|
+
#
|
514
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
515
|
+
# will be added to the HTTP request.
|
516
|
+
#
|
517
|
+
# @return [DiscoveredSecuritySolutionList] which provide lazy access to pages
|
518
|
+
# of the response.
|
519
|
+
#
|
520
|
+
def list_by_home_region_as_lazy(custom_headers:nil)
|
521
|
+
response = list_by_home_region_async(custom_headers:custom_headers).value!
|
522
|
+
unless response.nil?
|
523
|
+
page = response.body
|
524
|
+
page.next_method = Proc.new do |next_page_link|
|
525
|
+
list_by_home_region_next_async(next_page_link, custom_headers:custom_headers)
|
526
|
+
end
|
527
|
+
page
|
528
|
+
end
|
529
|
+
end
|
530
|
+
|
531
|
+
end
|
532
|
+
end
|