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
@@ -18,11 +18,12 @@ module Azure::Security::Mgmt::V2017_08_01_preview
|
|
18
18
|
@client = client
|
19
19
|
end
|
20
20
|
|
21
|
-
# @return [
|
21
|
+
# @return [SecurityCenter] reference to the SecurityCenter
|
22
22
|
attr_reader :client
|
23
23
|
|
24
24
|
#
|
25
|
-
# Settings about where we should store your security data and logs
|
25
|
+
# Settings about where we should store your security data and logs. If the
|
26
|
+
# result is empty, it means that no custom-workspace configuration was set
|
26
27
|
#
|
27
28
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
28
29
|
# will be added to the HTTP request.
|
@@ -35,7 +36,8 @@ module Azure::Security::Mgmt::V2017_08_01_preview
|
|
35
36
|
end
|
36
37
|
|
37
38
|
#
|
38
|
-
# Settings about where we should store your security data and logs
|
39
|
+
# Settings about where we should store your security data and logs. If the
|
40
|
+
# result is empty, it means that no custom-workspace configuration was set
|
39
41
|
#
|
40
42
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
41
43
|
# will be added to the HTTP request.
|
@@ -47,7 +49,8 @@ module Azure::Security::Mgmt::V2017_08_01_preview
|
|
47
49
|
end
|
48
50
|
|
49
51
|
#
|
50
|
-
# Settings about where we should store your security data and logs
|
52
|
+
# Settings about where we should store your security data and logs. If the
|
53
|
+
# result is empty, it means that no custom-workspace configuration was set
|
51
54
|
#
|
52
55
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
53
56
|
# to the HTTP request.
|
@@ -55,7 +58,7 @@ module Azure::Security::Mgmt::V2017_08_01_preview
|
|
55
58
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
56
59
|
#
|
57
60
|
def list_async(custom_headers:nil)
|
58
|
-
@client.api_version
|
61
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
59
62
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
60
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?
|
61
64
|
|
@@ -89,6 +92,8 @@ module Azure::Security::Mgmt::V2017_08_01_preview
|
|
89
92
|
end
|
90
93
|
|
91
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?
|
92
97
|
# Deserialize Response
|
93
98
|
if status_code == 200
|
94
99
|
begin
|
@@ -107,7 +112,8 @@ module Azure::Security::Mgmt::V2017_08_01_preview
|
|
107
112
|
end
|
108
113
|
|
109
114
|
#
|
110
|
-
# Settings about where we should store your security data and logs
|
115
|
+
# Settings about where we should store your security data and logs. If the
|
116
|
+
# result is empty, it means that no custom-workspace configuration was set
|
111
117
|
#
|
112
118
|
# @param workspace_setting_name [String] Name of the security setting
|
113
119
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -121,7 +127,8 @@ module Azure::Security::Mgmt::V2017_08_01_preview
|
|
121
127
|
end
|
122
128
|
|
123
129
|
#
|
124
|
-
# Settings about where we should store your security data and logs
|
130
|
+
# Settings about where we should store your security data and logs. If the
|
131
|
+
# result is empty, it means that no custom-workspace configuration was set
|
125
132
|
#
|
126
133
|
# @param workspace_setting_name [String] Name of the security setting
|
127
134
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -134,7 +141,8 @@ module Azure::Security::Mgmt::V2017_08_01_preview
|
|
134
141
|
end
|
135
142
|
|
136
143
|
#
|
137
|
-
# Settings about where we should store your security data and logs
|
144
|
+
# Settings about where we should store your security data and logs. If the
|
145
|
+
# result is empty, it means that no custom-workspace configuration was set
|
138
146
|
#
|
139
147
|
# @param workspace_setting_name [String] Name of the security setting
|
140
148
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -143,7 +151,7 @@ module Azure::Security::Mgmt::V2017_08_01_preview
|
|
143
151
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
144
152
|
#
|
145
153
|
def get_async(workspace_setting_name, custom_headers:nil)
|
146
|
-
@client.api_version
|
154
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
147
155
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
148
156
|
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?
|
149
157
|
fail ArgumentError, 'workspace_setting_name is nil' if workspace_setting_name.nil?
|
@@ -178,6 +186,8 @@ module Azure::Security::Mgmt::V2017_08_01_preview
|
|
178
186
|
end
|
179
187
|
|
180
188
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
189
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
190
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
181
191
|
# Deserialize Response
|
182
192
|
if status_code == 200
|
183
193
|
begin
|
@@ -235,7 +245,7 @@ module Azure::Security::Mgmt::V2017_08_01_preview
|
|
235
245
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
236
246
|
#
|
237
247
|
def create_async(workspace_setting_name, workspace_setting, custom_headers:nil)
|
238
|
-
@client.api_version
|
248
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
239
249
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
240
250
|
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?
|
241
251
|
fail ArgumentError, 'workspace_setting_name is nil' if workspace_setting_name.nil?
|
@@ -278,6 +288,8 @@ module Azure::Security::Mgmt::V2017_08_01_preview
|
|
278
288
|
end
|
279
289
|
|
280
290
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
291
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
292
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
281
293
|
# Deserialize Response
|
282
294
|
if status_code == 200
|
283
295
|
begin
|
@@ -335,7 +347,7 @@ module Azure::Security::Mgmt::V2017_08_01_preview
|
|
335
347
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
336
348
|
#
|
337
349
|
def update_async(workspace_setting_name, workspace_setting, custom_headers:nil)
|
338
|
-
@client.api_version
|
350
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
339
351
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
340
352
|
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?
|
341
353
|
fail ArgumentError, 'workspace_setting_name is nil' if workspace_setting_name.nil?
|
@@ -378,6 +390,8 @@ module Azure::Security::Mgmt::V2017_08_01_preview
|
|
378
390
|
end
|
379
391
|
|
380
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?
|
381
395
|
# Deserialize Response
|
382
396
|
if status_code == 200
|
383
397
|
begin
|
@@ -434,7 +448,7 @@ module Azure::Security::Mgmt::V2017_08_01_preview
|
|
434
448
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
435
449
|
#
|
436
450
|
def delete_async(workspace_setting_name, custom_headers:nil)
|
437
|
-
@client.api_version
|
451
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
438
452
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
439
453
|
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?
|
440
454
|
fail ArgumentError, 'workspace_setting_name is nil' if workspace_setting_name.nil?
|
@@ -469,6 +483,8 @@ module Azure::Security::Mgmt::V2017_08_01_preview
|
|
469
483
|
end
|
470
484
|
|
471
485
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
486
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
487
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
472
488
|
|
473
489
|
result
|
474
490
|
end
|
@@ -477,7 +493,8 @@ module Azure::Security::Mgmt::V2017_08_01_preview
|
|
477
493
|
end
|
478
494
|
|
479
495
|
#
|
480
|
-
# Settings about where we should store your security data and logs
|
496
|
+
# Settings about where we should store your security data and logs. If the
|
497
|
+
# result is empty, it means that no custom-workspace configuration was set
|
481
498
|
#
|
482
499
|
# @param next_page_link [String] The NextLink from the previous successful call
|
483
500
|
# to List operation.
|
@@ -492,7 +509,8 @@ module Azure::Security::Mgmt::V2017_08_01_preview
|
|
492
509
|
end
|
493
510
|
|
494
511
|
#
|
495
|
-
# Settings about where we should store your security data and logs
|
512
|
+
# Settings about where we should store your security data and logs. If the
|
513
|
+
# result is empty, it means that no custom-workspace configuration was set
|
496
514
|
#
|
497
515
|
# @param next_page_link [String] The NextLink from the previous successful call
|
498
516
|
# to List operation.
|
@@ -506,7 +524,8 @@ module Azure::Security::Mgmt::V2017_08_01_preview
|
|
506
524
|
end
|
507
525
|
|
508
526
|
#
|
509
|
-
# Settings about where we should store your security data and logs
|
527
|
+
# Settings about where we should store your security data and logs. If the
|
528
|
+
# result is empty, it means that no custom-workspace configuration was set
|
510
529
|
#
|
511
530
|
# @param next_page_link [String] The NextLink from the previous successful call
|
512
531
|
# to List operation.
|
@@ -547,6 +566,8 @@ module Azure::Security::Mgmt::V2017_08_01_preview
|
|
547
566
|
end
|
548
567
|
|
549
568
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
569
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
570
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
550
571
|
# Deserialize Response
|
551
572
|
if status_code == 200
|
552
573
|
begin
|
@@ -565,7 +586,8 @@ module Azure::Security::Mgmt::V2017_08_01_preview
|
|
565
586
|
end
|
566
587
|
|
567
588
|
#
|
568
|
-
# Settings about where we should store your security data and logs
|
589
|
+
# Settings about where we should store your security data and logs. If the
|
590
|
+
# result is empty, it means that no custom-workspace configuration was set
|
569
591
|
#
|
570
592
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
571
593
|
# will be added to the HTTP request.
|
@@ -0,0 +1,33 @@
|
|
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 '2017-08-01/generated/azure_mgmt_security/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::Security::Mgmt::V2017_08_01
|
23
|
+
autoload :ComplianceResults, '2017-08-01/generated/azure_mgmt_security/compliance_results.rb'
|
24
|
+
autoload :SecurityCenter, '2017-08-01/generated/azure_mgmt_security/security_center.rb'
|
25
|
+
|
26
|
+
module Models
|
27
|
+
autoload :ComplianceResultList, '2017-08-01/generated/azure_mgmt_security/models/compliance_result_list.rb'
|
28
|
+
autoload :Resource, '2017-08-01/generated/azure_mgmt_security/models/resource.rb'
|
29
|
+
autoload :ComplianceResult, '2017-08-01/generated/azure_mgmt_security/models/compliance_result.rb'
|
30
|
+
autoload :AscLocation, '2017-08-01/generated/azure_mgmt_security/models/asc_location.rb'
|
31
|
+
autoload :ResourceStatus, '2017-08-01/generated/azure_mgmt_security/models/resource_status.rb'
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,329 @@
|
|
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::V2017_08_01
|
7
|
+
#
|
8
|
+
# API spec for Microsoft.Security (Azure Security Center) resource provider
|
9
|
+
#
|
10
|
+
class ComplianceResults
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the ComplianceResults 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
|
+
# Security compliance results in the subscription
|
26
|
+
#
|
27
|
+
# @param scope [String] Scope of the query, can be subscription
|
28
|
+
# (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group
|
29
|
+
# (/providers/Microsoft.Management/managementGroups/mgName).
|
30
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
|
+
# will be added to the HTTP request.
|
32
|
+
#
|
33
|
+
# @return [Array<ComplianceResult>] operation results.
|
34
|
+
#
|
35
|
+
def list(scope, custom_headers:nil)
|
36
|
+
first_page = list_as_lazy(scope, custom_headers:custom_headers)
|
37
|
+
first_page.get_all_items
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Security compliance results in the subscription
|
42
|
+
#
|
43
|
+
# @param scope [String] Scope of the query, can be subscription
|
44
|
+
# (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group
|
45
|
+
# (/providers/Microsoft.Management/managementGroups/mgName).
|
46
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
47
|
+
# will be added to the HTTP request.
|
48
|
+
#
|
49
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
50
|
+
#
|
51
|
+
def list_with_http_info(scope, custom_headers:nil)
|
52
|
+
list_async(scope, custom_headers:custom_headers).value!
|
53
|
+
end
|
54
|
+
|
55
|
+
#
|
56
|
+
# Security compliance results in the subscription
|
57
|
+
#
|
58
|
+
# @param scope [String] Scope of the query, can be subscription
|
59
|
+
# (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group
|
60
|
+
# (/providers/Microsoft.Management/managementGroups/mgName).
|
61
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
62
|
+
# to the HTTP request.
|
63
|
+
#
|
64
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
65
|
+
#
|
66
|
+
def list_async(scope, custom_headers:nil)
|
67
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
68
|
+
fail ArgumentError, 'scope is nil' if scope.nil?
|
69
|
+
|
70
|
+
|
71
|
+
request_headers = {}
|
72
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
73
|
+
|
74
|
+
# Set Headers
|
75
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
76
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
77
|
+
path_template = '{scope}/providers/Microsoft.Security/complianceResults'
|
78
|
+
|
79
|
+
request_url = @base_url || @client.base_url
|
80
|
+
|
81
|
+
options = {
|
82
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
83
|
+
path_params: {'scope' => scope},
|
84
|
+
query_params: {'api-version' => @client.api_version},
|
85
|
+
headers: request_headers.merge(custom_headers || {}),
|
86
|
+
base_url: request_url
|
87
|
+
}
|
88
|
+
promise = @client.make_request_async(:get, path_template, options)
|
89
|
+
|
90
|
+
promise = promise.then do |result|
|
91
|
+
http_response = result.response
|
92
|
+
status_code = http_response.status
|
93
|
+
response_content = http_response.body
|
94
|
+
unless status_code == 200
|
95
|
+
error_model = JSON.load(response_content)
|
96
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
97
|
+
end
|
98
|
+
|
99
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
100
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
101
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
102
|
+
# Deserialize Response
|
103
|
+
if status_code == 200
|
104
|
+
begin
|
105
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
106
|
+
result_mapper = Azure::Security::Mgmt::V2017_08_01::Models::ComplianceResultList.mapper()
|
107
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
108
|
+
rescue Exception => e
|
109
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
result
|
114
|
+
end
|
115
|
+
|
116
|
+
promise.execute
|
117
|
+
end
|
118
|
+
|
119
|
+
#
|
120
|
+
# Security Compliance Result
|
121
|
+
#
|
122
|
+
# @param resource_id [String] The identifier of the resource.
|
123
|
+
# @param compliance_result_name [String] name of the desired assessment
|
124
|
+
# compliance result
|
125
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
126
|
+
# will be added to the HTTP request.
|
127
|
+
#
|
128
|
+
# @return [ComplianceResult] operation results.
|
129
|
+
#
|
130
|
+
def get(resource_id, compliance_result_name, custom_headers:nil)
|
131
|
+
response = get_async(resource_id, compliance_result_name, custom_headers:custom_headers).value!
|
132
|
+
response.body unless response.nil?
|
133
|
+
end
|
134
|
+
|
135
|
+
#
|
136
|
+
# Security Compliance Result
|
137
|
+
#
|
138
|
+
# @param resource_id [String] The identifier of the resource.
|
139
|
+
# @param compliance_result_name [String] name of the desired assessment
|
140
|
+
# compliance result
|
141
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
142
|
+
# will be added to the HTTP request.
|
143
|
+
#
|
144
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
145
|
+
#
|
146
|
+
def get_with_http_info(resource_id, compliance_result_name, custom_headers:nil)
|
147
|
+
get_async(resource_id, compliance_result_name, custom_headers:custom_headers).value!
|
148
|
+
end
|
149
|
+
|
150
|
+
#
|
151
|
+
# Security Compliance Result
|
152
|
+
#
|
153
|
+
# @param resource_id [String] The identifier of the resource.
|
154
|
+
# @param compliance_result_name [String] name of the desired assessment
|
155
|
+
# compliance result
|
156
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
157
|
+
# to the HTTP request.
|
158
|
+
#
|
159
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
160
|
+
#
|
161
|
+
def get_async(resource_id, compliance_result_name, custom_headers:nil)
|
162
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
163
|
+
fail ArgumentError, 'resource_id is nil' if resource_id.nil?
|
164
|
+
fail ArgumentError, 'compliance_result_name is nil' if compliance_result_name.nil?
|
165
|
+
|
166
|
+
|
167
|
+
request_headers = {}
|
168
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
169
|
+
|
170
|
+
# Set Headers
|
171
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
172
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
173
|
+
path_template = '{resourceId}/providers/Microsoft.Security/complianceResults/{complianceResultName}'
|
174
|
+
|
175
|
+
request_url = @base_url || @client.base_url
|
176
|
+
|
177
|
+
options = {
|
178
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
179
|
+
path_params: {'resourceId' => resource_id,'complianceResultName' => compliance_result_name},
|
180
|
+
query_params: {'api-version' => @client.api_version},
|
181
|
+
headers: request_headers.merge(custom_headers || {}),
|
182
|
+
base_url: request_url
|
183
|
+
}
|
184
|
+
promise = @client.make_request_async(:get, path_template, options)
|
185
|
+
|
186
|
+
promise = promise.then do |result|
|
187
|
+
http_response = result.response
|
188
|
+
status_code = http_response.status
|
189
|
+
response_content = http_response.body
|
190
|
+
unless status_code == 200
|
191
|
+
error_model = JSON.load(response_content)
|
192
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
193
|
+
end
|
194
|
+
|
195
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
196
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
197
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
198
|
+
# Deserialize Response
|
199
|
+
if status_code == 200
|
200
|
+
begin
|
201
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
202
|
+
result_mapper = Azure::Security::Mgmt::V2017_08_01::Models::ComplianceResult.mapper()
|
203
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
204
|
+
rescue Exception => e
|
205
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
result
|
210
|
+
end
|
211
|
+
|
212
|
+
promise.execute
|
213
|
+
end
|
214
|
+
|
215
|
+
#
|
216
|
+
# Security compliance results in the subscription
|
217
|
+
#
|
218
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
219
|
+
# to List operation.
|
220
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
221
|
+
# will be added to the HTTP request.
|
222
|
+
#
|
223
|
+
# @return [ComplianceResultList] operation results.
|
224
|
+
#
|
225
|
+
def list_next(next_page_link, custom_headers:nil)
|
226
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
227
|
+
response.body unless response.nil?
|
228
|
+
end
|
229
|
+
|
230
|
+
#
|
231
|
+
# Security compliance results in the subscription
|
232
|
+
#
|
233
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
234
|
+
# to List operation.
|
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 list_next_with_http_info(next_page_link, custom_headers:nil)
|
241
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
242
|
+
end
|
243
|
+
|
244
|
+
#
|
245
|
+
# Security compliance results in the subscription
|
246
|
+
#
|
247
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
248
|
+
# to List operation.
|
249
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
250
|
+
# to the HTTP request.
|
251
|
+
#
|
252
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
253
|
+
#
|
254
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
255
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
256
|
+
|
257
|
+
|
258
|
+
request_headers = {}
|
259
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
260
|
+
|
261
|
+
# Set Headers
|
262
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
263
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
264
|
+
path_template = '{nextLink}'
|
265
|
+
|
266
|
+
request_url = @base_url || @client.base_url
|
267
|
+
|
268
|
+
options = {
|
269
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
270
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
271
|
+
headers: request_headers.merge(custom_headers || {}),
|
272
|
+
base_url: request_url
|
273
|
+
}
|
274
|
+
promise = @client.make_request_async(:get, path_template, options)
|
275
|
+
|
276
|
+
promise = promise.then do |result|
|
277
|
+
http_response = result.response
|
278
|
+
status_code = http_response.status
|
279
|
+
response_content = http_response.body
|
280
|
+
unless status_code == 200
|
281
|
+
error_model = JSON.load(response_content)
|
282
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
283
|
+
end
|
284
|
+
|
285
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
286
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
287
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
288
|
+
# Deserialize Response
|
289
|
+
if status_code == 200
|
290
|
+
begin
|
291
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
292
|
+
result_mapper = Azure::Security::Mgmt::V2017_08_01::Models::ComplianceResultList.mapper()
|
293
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
294
|
+
rescue Exception => e
|
295
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
296
|
+
end
|
297
|
+
end
|
298
|
+
|
299
|
+
result
|
300
|
+
end
|
301
|
+
|
302
|
+
promise.execute
|
303
|
+
end
|
304
|
+
|
305
|
+
#
|
306
|
+
# Security compliance results in the subscription
|
307
|
+
#
|
308
|
+
# @param scope [String] Scope of the query, can be subscription
|
309
|
+
# (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group
|
310
|
+
# (/providers/Microsoft.Management/managementGroups/mgName).
|
311
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
312
|
+
# will be added to the HTTP request.
|
313
|
+
#
|
314
|
+
# @return [ComplianceResultList] which provide lazy access to pages of the
|
315
|
+
# response.
|
316
|
+
#
|
317
|
+
def list_as_lazy(scope, custom_headers:nil)
|
318
|
+
response = list_async(scope, custom_headers:custom_headers).value!
|
319
|
+
unless response.nil?
|
320
|
+
page = response.body
|
321
|
+
page.next_method = Proc.new do |next_page_link|
|
322
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
323
|
+
end
|
324
|
+
page
|
325
|
+
end
|
326
|
+
end
|
327
|
+
|
328
|
+
end
|
329
|
+
end
|