azure_mgmt_security 0.18.2 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-06-01-preview/generated/azure_mgmt_security.rb +34 -29
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/adaptive_application_controls.rb +81 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/alerts.rb +186 -28
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/app_whitelisting_group.rb +13 -1
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/app_whitelisting_put_group_data.rb +17 -1
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/etag.rb +48 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_policy_initiate_request.rb +11 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_request.rb +11 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/protection_mode.rb +80 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/tags.rb +55 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/tracked_resource.rb +125 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/models/vm_recommendation.rb +12 -0
- data/lib/2015-06-01-preview/generated/azure_mgmt_security/security_center.rb +1 -1
- data/lib/2017-08-01-preview/generated/azure_mgmt_security.rb +48 -23
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/advanced_threat_protection.rb +4 -2
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/compliances.rb +3 -2
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/device_security_groups.rb +54 -38
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/information_protection_policies.rb +24 -8
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/active_connections_not_in_allowed_range.rb +100 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/allowlist_custom_alert_rule.rb +9 -2
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/amqp_c2dmessages_not_in_allowed_range.rb +101 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/amqp_c2drejected_messages_not_in_allowed_range.rb +101 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/amqp_d2cmessages_not_in_allowed_range.rb +101 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/connection_to_ip_not_allowed.rb +102 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/custom_alert_rule.rb +36 -13
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/denylist_custom_alert_rule.rb +9 -2
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/device_security_group.rb +8 -8
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/direct_method_invokes_not_in_allowed_range.rb +100 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/etag.rb +48 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/failed_local_logins_not_in_allowed_range.rb +100 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/file_uploads_not_in_allowed_range.rb +100 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/http_c2dmessages_not_in_allowed_range.rb +101 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/http_c2drejected_messages_not_in_allowed_range.rb +101 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/http_d2cmessages_not_in_allowed_range.rb +101 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/information_protection_policy.rb +12 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/information_type.rb +13 -2
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/kind.rb +46 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/list_custom_alert_rule.rb +9 -2
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/local_user_not_allowed.rb +102 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/mqtt_c2dmessages_not_in_allowed_range.rb +101 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/mqtt_c2drejected_messages_not_in_allowed_range.rb +101 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/mqtt_d2cmessages_not_in_allowed_range.rb +101 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/process_not_allowed.rb +102 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/queue_purges_not_in_allowed_range.rb +100 -0
- data/lib/{2019-01-01/generated/azure_mgmt_security/models/setting_kind.rb → 2017-08-01-preview/generated/azure_mgmt_security/models/rank.rb} +8 -5
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/sensitivity_label.rb +26 -2
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/tags.rb +55 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/threshold_custom_alert_rule.rb +8 -1
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/time_window_custom_alert_rule.rb +6 -17
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/tracked_resource.rb +125 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/twin_updates_not_in_allowed_range.rb +100 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/models/unauthorized_operations_not_in_allowed_range.rb +100 -0
- data/lib/2017-08-01-preview/generated/azure_mgmt_security/security_center.rb +1 -1
- data/lib/2017-08-01/generated/azure_mgmt_security.rb +5 -0
- data/lib/2017-08-01/generated/azure_mgmt_security/compliance_results.rb +3 -2
- data/lib/2017-08-01/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
- data/lib/2017-08-01/generated/azure_mgmt_security/models/etag.rb +48 -0
- data/lib/2017-08-01/generated/azure_mgmt_security/models/kind.rb +46 -0
- data/lib/2017-08-01/generated/azure_mgmt_security/models/tags.rb +55 -0
- data/lib/2017-08-01/generated/azure_mgmt_security/models/tracked_resource.rb +125 -0
- data/lib/2017-08-01/generated/azure_mgmt_security/security_center.rb +1 -1
- data/lib/2018-06-01/generated/azure_mgmt_security.rb +5 -0
- data/lib/2018-06-01/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
- data/lib/2018-06-01/generated/azure_mgmt_security/models/etag.rb +48 -0
- data/lib/2018-06-01/generated/azure_mgmt_security/models/kind.rb +46 -0
- data/lib/2018-06-01/generated/azure_mgmt_security/models/pricing.rb +4 -1
- data/lib/2018-06-01/generated/azure_mgmt_security/models/pricing_list.rb +1 -1
- data/lib/2018-06-01/generated/azure_mgmt_security/models/tags.rb +55 -0
- data/lib/2018-06-01/generated/azure_mgmt_security/models/tracked_resource.rb +125 -0
- data/lib/2018-06-01/generated/azure_mgmt_security/pricings.rb +9 -36
- data/lib/2018-06-01/generated/azure_mgmt_security/security_center.rb +1 -1
- data/lib/2019-01-01-preview/generated/azure_mgmt_security.rb +34 -5
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/alerts_suppression_rules.rb +514 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/assessments.rb +555 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/assessments_metadata.rb +311 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/assessments_metadata_subscription.rb +513 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/alerts_suppression_rule.rb +146 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/alerts_suppression_rules_list.rb +99 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/assessment_links.rb +47 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/assessment_status.rb +71 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/assessment_status_code.rb +17 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/assessment_type.rb +17 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/azure_resource_details.rb +62 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/category.rb +19 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/etag.rb +48 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/expand_enum.rb +16 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/implementation_effort.rb +17 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/kind.rb +46 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/on_premise_resource_details.rb +95 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/on_premise_sql_resource_details.rb +104 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/resource_details.rb +48 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/rule_state.rb +17 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/scope_element.rb +65 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/security_assessment.rb +132 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/security_assessment_list.rb +101 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/security_assessment_metadata.rb +209 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/security_assessment_metadata_list.rb +100 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/severity.rb +17 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/suppression_alerts_scope.rb +57 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/tags.rb +55 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/threats.rb +22 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/tracked_resource.rb +125 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/models/user_impact.rb +17 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security/security_center.rb +17 -5
- data/lib/2019-01-01/generated/azure_mgmt_security.rb +9 -5
- data/lib/2019-01-01/generated/azure_mgmt_security/alerts.rb +266 -60
- data/lib/2019-01-01/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
- data/lib/2019-01-01/generated/azure_mgmt_security/models/{data_export_setting.rb → data_export_settings.rb} +11 -4
- data/lib/2019-01-01/generated/azure_mgmt_security/models/etag.rb +48 -0
- data/lib/2019-01-01/generated/azure_mgmt_security/models/kind.rb +46 -0
- data/lib/2019-01-01/generated/azure_mgmt_security/models/setting.rb +7 -0
- data/lib/2019-01-01/generated/azure_mgmt_security/models/setting_resource.rb +7 -11
- data/lib/2019-01-01/generated/azure_mgmt_security/models/tags.rb +55 -0
- data/lib/2019-01-01/generated/azure_mgmt_security/models/tracked_resource.rb +125 -0
- data/lib/2019-01-01/generated/azure_mgmt_security/security_center.rb +1 -1
- data/lib/2019-08-01/generated/azure_mgmt_security.rb +36 -21
- data/lib/2019-08-01/generated/azure_mgmt_security/{io_tsecurity_solutions_analytics_aggregated_alert.rb → iot_alert_types.rb} +47 -40
- data/lib/2019-08-01/generated/azure_mgmt_security/iot_alerts.rb +375 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/{io_tsecurity_solutions_analytics_recommendations.rb → iot_recommendation_types.rb} +52 -64
- data/lib/2019-08-01/generated/azure_mgmt_security/iot_recommendations.rb +360 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/iot_security_solution.rb +464 -32
- data/lib/2019-08-01/generated/azure_mgmt_security/{io_tsecurity_solutions_analytics.rb → iot_security_solution_analytics.rb} +24 -24
- data/lib/{2019-01-01-preview/generated/azure_mgmt_security/server_vulnerability_assessment_operations.rb → 2019-08-01/generated/azure_mgmt_security/iot_security_solutions_analytics_aggregated_alert.rb} +133 -143
- data/lib/2019-08-01/generated/azure_mgmt_security/iot_security_solutions_analytics_recommendation.rb +364 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/alert_intent.rb +30 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/alert_severity.rb +18 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/etag.rb +48 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_aggregated_alert.rb +40 -16
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_aggregated_alert_list.rb +4 -3
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_aggregated_alert_properties_top_devices_list_item.rb +74 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_aggregated_recommendation.rb +14 -12
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_aggregated_recommendation_list.rb +4 -3
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_alerted_device.rb +4 -4
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_device_alert.rb +5 -5
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_device_recommendation.rb +6 -6
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_solution_analytics_model.rb +42 -16
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_solution_analytics_model_list.rb +4 -3
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_solution_analytics_model_properties_devices_metrics_item.rb +3 -2
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_solution_model.rb +21 -6
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_solutions_list.rb +3 -2
- data/lib/2019-08-01/generated/azure_mgmt_security/models/io_tseverity_metrics.rb +4 -4
- data/lib/2019-08-01/generated/azure_mgmt_security/models/iot_alert.rb +128 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/iot_alert_list.rb +114 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/iot_alert_type.rb +188 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/{io_tsecurity_alerted_devices_list.rb → iot_alert_type_list.rb} +9 -10
- data/lib/2019-08-01/generated/azure_mgmt_security/models/iot_recommendation.rb +109 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/iot_recommendation_list.rb +114 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/iot_recommendation_type.rb +184 -0
- data/lib/{2019-01-01-preview/generated/azure_mgmt_security/models/server_vulnerability_assessments_list.rb → 2019-08-01/generated/azure_mgmt_security/models/iot_recommendation_type_list.rb} +9 -9
- data/lib/2019-08-01/generated/azure_mgmt_security/models/kind.rb +46 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/recommendation_configuration_properties.rb +9 -7
- data/lib/2019-08-01/generated/azure_mgmt_security/models/recommendation_severity.rb +21 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/tags.rb +55 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/tracked_resource.rb +125 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/unmasked_ip_logging_status.rb +16 -0
- data/lib/2019-08-01/generated/azure_mgmt_security/models/update_iot_security_solution_data.rb +2 -2
- data/lib/2019-08-01/generated/azure_mgmt_security/models/user_defined_resources_properties.rb +1 -1
- data/lib/2019-08-01/generated/azure_mgmt_security/security_center.rb +26 -29
- data/lib/2020-01-01-preview/generated/azure_mgmt_security.rb +21 -7
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/connectors.rb +504 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/authentication_details_properties.rb +83 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/authentication_provisioning_state.rb +18 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/auto_provision.rb +16 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/aw_assume_role_authentication_details_properties.rb +117 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/aws_creds_authentication_details_properties.rb +115 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/{location.rb → azure_tracked_resource_location.rb} +4 -5
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/connector_setting.rb +91 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/connector_setting_list.rb +101 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/gcp_credentials_details_properties.rb +201 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/hybrid_compute_provisioning_state.rb +17 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/hybrid_compute_settings_properties.rb +112 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/permission_property.rb +18 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/proxy_server_properties.rb +58 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_control_details.rb +34 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_control_score.rb +17 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_item.rb +33 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/service_principal_properties.rb +58 -0
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/models/tracked_resource.rb +0 -1
- data/lib/2020-01-01-preview/generated/azure_mgmt_security/security_center.rb +5 -1
- data/lib/2020-01-01/generated/azure_mgmt_security.rb +57 -34
- data/lib/2020-01-01/generated/azure_mgmt_security/adaptive_application_controls.rb +28 -28
- data/lib/2020-01-01/generated/azure_mgmt_security/models/{app_whitelisting_group.rb → adaptive_application_control_group.rb} +7 -7
- data/lib/2020-01-01/generated/azure_mgmt_security/models/adaptive_application_control_groups.rb +56 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/{app_whitelisting_issue_summary.rb → adaptive_application_control_issue_summary.rb} +7 -7
- data/lib/2020-01-01/generated/azure_mgmt_security/models/azure_resource_link.rb +47 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/control_type.rb +16 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/expand_controls_enum.rb +15 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/on_premise_sql_resource_details.rb +104 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/path_recommendation.rb +4 -2
- data/lib/2020-01-01/generated/azure_mgmt_security/models/provisioning_state.rb +17 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/resource_details.rb +1 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/secure_score_control_definition_item.rb +141 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/secure_score_control_definition_list.rb +101 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/secure_score_control_definition_source.rb +47 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/secure_score_control_details.rb +187 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/secure_score_control_list.rb +101 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/secure_score_control_score.rb +86 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/secure_score_item.rb +137 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/secure_scores_list.rb +101 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/security_solution.rb +130 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/security_solution_list.rb +99 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/security_solutions_reference_data.rb +162 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/models/{app_whitelisting_groups.rb → security_solutions_reference_data_list.rb} +9 -9
- data/lib/2020-01-01/generated/azure_mgmt_security/models/tracked_resource.rb +0 -1
- data/lib/2020-01-01/generated/azure_mgmt_security/models/vm_recommendation.rb +1 -1
- data/lib/2020-01-01/generated/azure_mgmt_security/secure_score_control_definitions.rb +423 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/secure_score_controls.rb +444 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/secure_scores.rb +326 -0
- data/lib/2020-01-01/generated/azure_mgmt_security/security_center.rb +22 -1
- data/lib/{2019-08-01/generated/azure_mgmt_security/io_tsecurity_solutions_analytics_aggregated_alerts.rb → 2020-01-01/generated/azure_mgmt_security/security_solutions.rb} +120 -39
- data/lib/2020-01-01/generated/azure_mgmt_security/security_solutions_reference_data_operations.rb +200 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security.rb +59 -0
- data/lib/{2019-01-01-preview/generated/azure_mgmt_security/models/server_vulnerability_assessment.rb → 2020-07-01-preview/generated/azure_mgmt_security/models/asc_location.rb} +11 -14
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/baseline.rb +73 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/baseline_adjusted_result.rb +113 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/benchmark_reference.rb +57 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/etag.rb +48 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/kind.rb +46 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/query_check.rb +92 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/remediation.rb +87 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/resource.rb +80 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/rule_results.rb +74 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/rule_results_input.rb +75 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/rule_results_properties.rb +62 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/rule_severity.rb +19 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/rule_status.rb +17 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/rule_type.rb +18 -0
- data/lib/{2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_device_recommendations_list.rb → 2020-07-01-preview/generated/azure_mgmt_security/models/rules_results.rb} +10 -11
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/rules_results_input.rb +83 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/scan.rb +74 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/scan_properties.rb +192 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/scan_result.rb +74 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/scan_result_properties.rb +133 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/scan_results.rb +56 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/scan_state.rb +18 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/scan_trigger_type.rb +16 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/scans.rb +55 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/tags.rb +55 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/tracked_resource.rb +125 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/models/va_rule.rb +146 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/module_definition.rb +9 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/security_center.rb +135 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/sql_vulnerability_assessment_baseline_rules.rb +535 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/sql_vulnerability_assessment_scan_results.rb +237 -0
- data/lib/2020-07-01-preview/generated/azure_mgmt_security/sql_vulnerability_assessment_scans.rb +225 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security.rb +89 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/device_operations.rb +119 -0
- data/lib/{2019-08-01/generated/azure_mgmt_security/io_tsecurity_solutions_resource_group.rb → 2020-08-06-preview/generated/azure_mgmt_security/devices_for_hub.rb} +50 -48
- data/lib/{2019-08-01/generated/azure_mgmt_security/io_tsecurity_solutions.rb → 2020-08-06-preview/generated/azure_mgmt_security/devices_for_subscription.rb} +44 -33
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/iot_alert_types.rb +203 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/iot_alerts.rb +377 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/iot_defender_settings.rb +473 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/iot_recommendation_types.rb +203 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/iot_recommendations.rb +349 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/iot_sensors.rb +511 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/alert_intent.rb +30 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/alert_severity.rb +18 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/asc_location.rb +73 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/authorization_state.rb +16 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/azure_tracked_resource_location.rb +46 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/device.rb +397 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/device_criticality.rb +16 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/device_list.rb +100 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/device_status.rb +16 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/etag.rb +48 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/firmware.rb +121 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_alert_list_model.rb +101 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_alert_model.rb +128 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_alert_type.rb +188 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_alert_type_list.rb +55 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_defender_settings_list.rb +56 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_defender_settings_model.rb +96 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_recommendation_list_model.rb +101 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_recommendation_model.rb +109 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_recommendation_type.rb +184 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_recommendation_type_list.rb +55 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_sensor.rb +73 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/iot_sensors_list.rb +56 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/ip_address.rb +95 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/kind.rb +46 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/mac_address.rb +87 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/mac_significance.rb +16 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/management_state.rb +16 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/network_interface.rb +79 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/on_premise_iot_sensor.rb +73 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/on_premise_iot_sensors_list.rb +56 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/package_download_info.rb +71 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/package_downloads.rb +76 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/package_downloads_central_manager.rb +71 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/package_downloads_central_manager_full.rb +71 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/package_downloads_central_manager_full_ovf.rb +121 -0
- data/lib/{2019-08-01/generated/azure_mgmt_security/models/io_tsecurity_device_alerts_list.rb → 2020-08-06-preview/generated/azure_mgmt_security/models/package_downloads_sensor.rb} +26 -24
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/package_downloads_sensor_full.rb +70 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/package_downloads_sensor_full_ovf.rb +98 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/package_downloads_threat_intelligence.rb +46 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/programming_state.rb +16 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/protocol.rb +58 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/purdue_level.rb +17 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/recommendation_severity.rb +21 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/relation_to_ip_status.rb +16 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/resource.rb +80 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/scanning_functionality.rb +16 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/sensor.rb +59 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/site.rb +47 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/tags.rb +55 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/tracked_resource.rb +125 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/models/version_kind.rb +17 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/module_definition.rb +9 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/on_premise_iot_sensors.rb +482 -0
- data/lib/2020-08-06-preview/generated/azure_mgmt_security/security_center.rb +167 -0
- data/lib/azure_mgmt_security.rb +7 -5
- data/lib/profiles/latest/modules/security_profile_module.rb +851 -255
- data/lib/version.rb +1 -1
- metadata +247 -22
- data/lib/2019-08-01/generated/azure_mgmt_security/io_tsecurity_solutions_analytics_recommendation.rb +0 -133
@@ -7,11 +7,11 @@ module Azure::Security::Mgmt::V2019_08_01
|
|
7
7
|
#
|
8
8
|
# API spec for Microsoft.Security (Azure Security Center) resource provider
|
9
9
|
#
|
10
|
-
class
|
10
|
+
class IotSecuritySolutionAnalytics
|
11
11
|
include MsRestAzure
|
12
12
|
|
13
13
|
#
|
14
|
-
# Creates and initializes a new instance of the
|
14
|
+
# Creates and initializes a new instance of the IotSecuritySolutionAnalytics class.
|
15
15
|
# @param client service class for accessing basic functionality.
|
16
16
|
#
|
17
17
|
def initialize(client)
|
@@ -22,48 +22,48 @@ module Azure::Security::Mgmt::V2019_08_01
|
|
22
22
|
attr_reader :client
|
23
23
|
|
24
24
|
#
|
25
|
-
#
|
25
|
+
# Use this method to get IoT security Analytics metrics in an array.
|
26
26
|
#
|
27
27
|
# @param resource_group_name [String] The name of the resource group within the
|
28
28
|
# user's subscription. The name is case insensitive.
|
29
|
-
# @param solution_name [String] The
|
29
|
+
# @param solution_name [String] The name of the IoT Security solution.
|
30
30
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
31
|
# will be added to the HTTP request.
|
32
32
|
#
|
33
33
|
# @return [IoTSecuritySolutionAnalyticsModelList] operation results.
|
34
34
|
#
|
35
|
-
def
|
36
|
-
response =
|
35
|
+
def list(resource_group_name, solution_name, custom_headers:nil)
|
36
|
+
response = list_async(resource_group_name, solution_name, custom_headers:custom_headers).value!
|
37
37
|
response.body unless response.nil?
|
38
38
|
end
|
39
39
|
|
40
40
|
#
|
41
|
-
#
|
41
|
+
# Use this method to get IoT security Analytics metrics in an array.
|
42
42
|
#
|
43
43
|
# @param resource_group_name [String] The name of the resource group within the
|
44
44
|
# user's subscription. The name is case insensitive.
|
45
|
-
# @param solution_name [String] The
|
45
|
+
# @param solution_name [String] The name of the IoT Security solution.
|
46
46
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
47
47
|
# will be added to the HTTP request.
|
48
48
|
#
|
49
49
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
50
50
|
#
|
51
|
-
def
|
52
|
-
|
51
|
+
def list_with_http_info(resource_group_name, solution_name, custom_headers:nil)
|
52
|
+
list_async(resource_group_name, solution_name, custom_headers:custom_headers).value!
|
53
53
|
end
|
54
54
|
|
55
55
|
#
|
56
|
-
#
|
56
|
+
# Use this method to get IoT security Analytics metrics in an array.
|
57
57
|
#
|
58
58
|
# @param resource_group_name [String] The name of the resource group within the
|
59
59
|
# user's subscription. The name is case insensitive.
|
60
|
-
# @param solution_name [String] The
|
60
|
+
# @param solution_name [String] The name of the IoT Security solution.
|
61
61
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
62
62
|
# to the HTTP request.
|
63
63
|
#
|
64
64
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
65
65
|
#
|
66
|
-
def
|
66
|
+
def list_async(resource_group_name, solution_name, custom_headers:nil)
|
67
67
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
68
68
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
69
69
|
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?
|
@@ -123,48 +123,48 @@ module Azure::Security::Mgmt::V2019_08_01
|
|
123
123
|
end
|
124
124
|
|
125
125
|
#
|
126
|
-
#
|
126
|
+
# Use this method to get IoT Security Analytics metrics.
|
127
127
|
#
|
128
128
|
# @param resource_group_name [String] The name of the resource group within the
|
129
129
|
# user's subscription. The name is case insensitive.
|
130
|
-
# @param solution_name [String] The
|
130
|
+
# @param solution_name [String] The name of the IoT Security solution.
|
131
131
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
132
132
|
# will be added to the HTTP request.
|
133
133
|
#
|
134
134
|
# @return [IoTSecuritySolutionAnalyticsModel] operation results.
|
135
135
|
#
|
136
|
-
def
|
137
|
-
response =
|
136
|
+
def get(resource_group_name, solution_name, custom_headers:nil)
|
137
|
+
response = get_async(resource_group_name, solution_name, custom_headers:custom_headers).value!
|
138
138
|
response.body unless response.nil?
|
139
139
|
end
|
140
140
|
|
141
141
|
#
|
142
|
-
#
|
142
|
+
# Use this method to get IoT Security Analytics metrics.
|
143
143
|
#
|
144
144
|
# @param resource_group_name [String] The name of the resource group within the
|
145
145
|
# user's subscription. The name is case insensitive.
|
146
|
-
# @param solution_name [String] The
|
146
|
+
# @param solution_name [String] The name of the IoT Security solution.
|
147
147
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
148
148
|
# will be added to the HTTP request.
|
149
149
|
#
|
150
150
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
151
151
|
#
|
152
|
-
def
|
153
|
-
|
152
|
+
def get_with_http_info(resource_group_name, solution_name, custom_headers:nil)
|
153
|
+
get_async(resource_group_name, solution_name, custom_headers:custom_headers).value!
|
154
154
|
end
|
155
155
|
|
156
156
|
#
|
157
|
-
#
|
157
|
+
# Use this method to get IoT Security Analytics metrics.
|
158
158
|
#
|
159
159
|
# @param resource_group_name [String] The name of the resource group within the
|
160
160
|
# user's subscription. The name is case insensitive.
|
161
|
-
# @param solution_name [String] The
|
161
|
+
# @param solution_name [String] The name of the IoT Security solution.
|
162
162
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
163
163
|
# to the HTTP request.
|
164
164
|
#
|
165
165
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
166
166
|
#
|
167
|
-
def
|
167
|
+
def get_async(resource_group_name, solution_name, custom_headers:nil)
|
168
168
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
169
169
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
170
170
|
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?
|
@@ -3,15 +3,15 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::Security::Mgmt::
|
6
|
+
module Azure::Security::Mgmt::V2019_08_01
|
7
7
|
#
|
8
8
|
# API spec for Microsoft.Security (Azure Security Center) resource provider
|
9
9
|
#
|
10
|
-
class
|
10
|
+
class IotSecuritySolutionsAnalyticsAggregatedAlert
|
11
11
|
include MsRestAzure
|
12
12
|
|
13
13
|
#
|
14
|
-
# Creates and initializes a new instance of the
|
14
|
+
# Creates and initializes a new instance of the IotSecuritySolutionsAnalyticsAggregatedAlert class.
|
15
15
|
# @param client service class for accessing basic functionality.
|
16
16
|
#
|
17
17
|
def initialize(client)
|
@@ -22,67 +22,62 @@ module Azure::Security::Mgmt::V2019_01_01_preview
|
|
22
22
|
attr_reader :client
|
23
23
|
|
24
24
|
#
|
25
|
-
#
|
26
|
-
#
|
25
|
+
# Use this method to get the aggregated alert list of yours IoT Security
|
26
|
+
# solution.
|
27
27
|
#
|
28
28
|
# @param resource_group_name [String] The name of the resource group within the
|
29
29
|
# user's subscription. The name is case insensitive.
|
30
|
-
# @param
|
31
|
-
# @param
|
32
|
-
# @param resource_name [String] Name of the resource.
|
30
|
+
# @param solution_name [String] The name of the IoT Security solution.
|
31
|
+
# @param top [Integer] Number of results to retrieve.
|
33
32
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
34
33
|
# will be added to the HTTP request.
|
35
34
|
#
|
36
|
-
# @return [
|
35
|
+
# @return [Array<IoTSecurityAggregatedAlert>] operation results.
|
37
36
|
#
|
38
|
-
def
|
39
|
-
|
40
|
-
|
37
|
+
def list(resource_group_name, solution_name, top:nil, custom_headers:nil)
|
38
|
+
first_page = list_as_lazy(resource_group_name, solution_name, top:top, custom_headers:custom_headers)
|
39
|
+
first_page.get_all_items
|
41
40
|
end
|
42
41
|
|
43
42
|
#
|
44
|
-
#
|
45
|
-
#
|
43
|
+
# Use this method to get the aggregated alert list of yours IoT Security
|
44
|
+
# solution.
|
46
45
|
#
|
47
46
|
# @param resource_group_name [String] The name of the resource group within the
|
48
47
|
# user's subscription. The name is case insensitive.
|
49
|
-
# @param
|
50
|
-
# @param
|
51
|
-
# @param resource_name [String] Name of the resource.
|
48
|
+
# @param solution_name [String] The name of the IoT Security solution.
|
49
|
+
# @param top [Integer] Number of results to retrieve.
|
52
50
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
53
51
|
# will be added to the HTTP request.
|
54
52
|
#
|
55
53
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
56
54
|
#
|
57
|
-
def
|
58
|
-
|
55
|
+
def list_with_http_info(resource_group_name, solution_name, top:nil, custom_headers:nil)
|
56
|
+
list_async(resource_group_name, solution_name, top:top, custom_headers:custom_headers).value!
|
59
57
|
end
|
60
58
|
|
61
59
|
#
|
62
|
-
#
|
63
|
-
#
|
60
|
+
# Use this method to get the aggregated alert list of yours IoT Security
|
61
|
+
# solution.
|
64
62
|
#
|
65
63
|
# @param resource_group_name [String] The name of the resource group within the
|
66
64
|
# user's subscription. The name is case insensitive.
|
67
|
-
# @param
|
68
|
-
# @param
|
69
|
-
# @param resource_name [String] Name of the resource.
|
65
|
+
# @param solution_name [String] The name of the IoT Security solution.
|
66
|
+
# @param top [Integer] Number of results to retrieve.
|
70
67
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
71
68
|
# to the HTTP request.
|
72
69
|
#
|
73
70
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
74
71
|
#
|
75
|
-
def
|
72
|
+
def list_async(resource_group_name, solution_name, top:nil, custom_headers:nil)
|
73
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
76
74
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
77
75
|
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?
|
78
76
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
79
77
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
80
78
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
81
79
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
82
|
-
fail ArgumentError, '
|
83
|
-
fail ArgumentError, 'resource_type is nil' if resource_type.nil?
|
84
|
-
fail ArgumentError, 'resource_name is nil' if resource_name.nil?
|
85
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
80
|
+
fail ArgumentError, 'solution_name is nil' if solution_name.nil?
|
86
81
|
|
87
82
|
|
88
83
|
request_headers = {}
|
@@ -91,14 +86,14 @@ module Azure::Security::Mgmt::V2019_01_01_preview
|
|
91
86
|
# Set Headers
|
92
87
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
93
88
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
94
|
-
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/
|
89
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/analyticsModels/default/aggregatedAlerts'
|
95
90
|
|
96
91
|
request_url = @base_url || @client.base_url
|
97
92
|
|
98
93
|
options = {
|
99
94
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
100
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'
|
101
|
-
query_params: {'api-version' => @client.api_version},
|
95
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'solutionName' => solution_name},
|
96
|
+
query_params: {'api-version' => @client.api_version,'$top' => top},
|
102
97
|
headers: request_headers.merge(custom_headers || {}),
|
103
98
|
base_url: request_url
|
104
99
|
}
|
@@ -120,7 +115,7 @@ module Azure::Security::Mgmt::V2019_01_01_preview
|
|
120
115
|
if status_code == 200
|
121
116
|
begin
|
122
117
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
123
|
-
result_mapper = Azure::Security::Mgmt::
|
118
|
+
result_mapper = Azure::Security::Mgmt::V2019_08_01::Models::IoTSecurityAggregatedAlertList.mapper()
|
124
119
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
125
120
|
rescue Exception => e
|
126
121
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -134,68 +129,63 @@ module Azure::Security::Mgmt::V2019_01_01_preview
|
|
134
129
|
end
|
135
130
|
|
136
131
|
#
|
137
|
-
#
|
138
|
-
#
|
132
|
+
# Use this method to get a single the aggregated alert of yours IoT Security
|
133
|
+
# solution. This aggregation is performed by alert name.
|
139
134
|
#
|
140
135
|
# @param resource_group_name [String] The name of the resource group within the
|
141
136
|
# user's subscription. The name is case insensitive.
|
142
|
-
# @param
|
143
|
-
# @param
|
144
|
-
# @param resource_name [String] Name of the resource.
|
137
|
+
# @param solution_name [String] The name of the IoT Security solution.
|
138
|
+
# @param aggregated_alert_name [String] Identifier of the aggregated alert.
|
145
139
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
146
140
|
# will be added to the HTTP request.
|
147
141
|
#
|
148
|
-
# @return [
|
142
|
+
# @return [IoTSecurityAggregatedAlert] operation results.
|
149
143
|
#
|
150
|
-
def get(resource_group_name,
|
151
|
-
response = get_async(resource_group_name,
|
144
|
+
def get(resource_group_name, solution_name, aggregated_alert_name, custom_headers:nil)
|
145
|
+
response = get_async(resource_group_name, solution_name, aggregated_alert_name, custom_headers:custom_headers).value!
|
152
146
|
response.body unless response.nil?
|
153
147
|
end
|
154
148
|
|
155
149
|
#
|
156
|
-
#
|
157
|
-
#
|
150
|
+
# Use this method to get a single the aggregated alert of yours IoT Security
|
151
|
+
# solution. This aggregation is performed by alert name.
|
158
152
|
#
|
159
153
|
# @param resource_group_name [String] The name of the resource group within the
|
160
154
|
# user's subscription. The name is case insensitive.
|
161
|
-
# @param
|
162
|
-
# @param
|
163
|
-
# @param resource_name [String] Name of the resource.
|
155
|
+
# @param solution_name [String] The name of the IoT Security solution.
|
156
|
+
# @param aggregated_alert_name [String] Identifier of the aggregated alert.
|
164
157
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
165
158
|
# will be added to the HTTP request.
|
166
159
|
#
|
167
160
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
168
161
|
#
|
169
|
-
def get_with_http_info(resource_group_name,
|
170
|
-
get_async(resource_group_name,
|
162
|
+
def get_with_http_info(resource_group_name, solution_name, aggregated_alert_name, custom_headers:nil)
|
163
|
+
get_async(resource_group_name, solution_name, aggregated_alert_name, custom_headers:custom_headers).value!
|
171
164
|
end
|
172
165
|
|
173
166
|
#
|
174
|
-
#
|
175
|
-
#
|
167
|
+
# Use this method to get a single the aggregated alert of yours IoT Security
|
168
|
+
# solution. This aggregation is performed by alert name.
|
176
169
|
#
|
177
170
|
# @param resource_group_name [String] The name of the resource group within the
|
178
171
|
# user's subscription. The name is case insensitive.
|
179
|
-
# @param
|
180
|
-
# @param
|
181
|
-
# @param resource_name [String] Name of the resource.
|
172
|
+
# @param solution_name [String] The name of the IoT Security solution.
|
173
|
+
# @param aggregated_alert_name [String] Identifier of the aggregated alert.
|
182
174
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
183
175
|
# to the HTTP request.
|
184
176
|
#
|
185
177
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
186
178
|
#
|
187
|
-
def get_async(resource_group_name,
|
179
|
+
def get_async(resource_group_name, solution_name, aggregated_alert_name, custom_headers:nil)
|
180
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
188
181
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
189
182
|
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'Pattern': '^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$'" if !@client.subscription_id.nil? && @client.subscription_id.match(Regexp.new('^^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$$')).nil?
|
190
183
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
191
184
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
192
185
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
193
186
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
194
|
-
fail ArgumentError, '
|
195
|
-
fail ArgumentError, '
|
196
|
-
fail ArgumentError, 'resource_name is nil' if resource_name.nil?
|
197
|
-
server_vulnerability_assessment = 'default'
|
198
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
187
|
+
fail ArgumentError, 'solution_name is nil' if solution_name.nil?
|
188
|
+
fail ArgumentError, 'aggregated_alert_name is nil' if aggregated_alert_name.nil?
|
199
189
|
|
200
190
|
|
201
191
|
request_headers = {}
|
@@ -204,13 +194,13 @@ module Azure::Security::Mgmt::V2019_01_01_preview
|
|
204
194
|
# Set Headers
|
205
195
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
206
196
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
207
|
-
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/
|
197
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/analyticsModels/default/aggregatedAlerts/{aggregatedAlertName}'
|
208
198
|
|
209
199
|
request_url = @base_url || @client.base_url
|
210
200
|
|
211
201
|
options = {
|
212
202
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
213
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'
|
203
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'solutionName' => solution_name,'aggregatedAlertName' => aggregated_alert_name},
|
214
204
|
query_params: {'api-version' => @client.api_version},
|
215
205
|
headers: request_headers.merge(custom_headers || {}),
|
216
206
|
base_url: request_url
|
@@ -233,7 +223,7 @@ module Azure::Security::Mgmt::V2019_01_01_preview
|
|
233
223
|
if status_code == 200
|
234
224
|
begin
|
235
225
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
236
|
-
result_mapper = Azure::Security::Mgmt::
|
226
|
+
result_mapper = Azure::Security::Mgmt::V2019_08_01::Models::IoTSecurityAggregatedAlert.mapper()
|
237
227
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
238
228
|
rescue Exception => e
|
239
229
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -247,68 +237,59 @@ module Azure::Security::Mgmt::V2019_01_01_preview
|
|
247
237
|
end
|
248
238
|
|
249
239
|
#
|
250
|
-
#
|
251
|
-
# a resource for having a vulnerability assessment on it
|
240
|
+
# Use this method to dismiss an aggregated IoT Security Solution Alert.
|
252
241
|
#
|
253
242
|
# @param resource_group_name [String] The name of the resource group within the
|
254
243
|
# user's subscription. The name is case insensitive.
|
255
|
-
# @param
|
256
|
-
# @param
|
257
|
-
# @param resource_name [String] Name of the resource.
|
244
|
+
# @param solution_name [String] The name of the IoT Security solution.
|
245
|
+
# @param aggregated_alert_name [String] Identifier of the aggregated alert.
|
258
246
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
259
247
|
# will be added to the HTTP request.
|
260
248
|
#
|
261
|
-
# @return [ServerVulnerabilityAssessment] operation results.
|
262
249
|
#
|
263
|
-
def
|
264
|
-
response =
|
265
|
-
|
250
|
+
def dismiss(resource_group_name, solution_name, aggregated_alert_name, custom_headers:nil)
|
251
|
+
response = dismiss_async(resource_group_name, solution_name, aggregated_alert_name, custom_headers:custom_headers).value!
|
252
|
+
nil
|
266
253
|
end
|
267
254
|
|
268
255
|
#
|
269
|
-
#
|
270
|
-
# a resource for having a vulnerability assessment on it
|
256
|
+
# Use this method to dismiss an aggregated IoT Security Solution Alert.
|
271
257
|
#
|
272
258
|
# @param resource_group_name [String] The name of the resource group within the
|
273
259
|
# user's subscription. The name is case insensitive.
|
274
|
-
# @param
|
275
|
-
# @param
|
276
|
-
# @param resource_name [String] Name of the resource.
|
260
|
+
# @param solution_name [String] The name of the IoT Security solution.
|
261
|
+
# @param aggregated_alert_name [String] Identifier of the aggregated alert.
|
277
262
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
278
263
|
# will be added to the HTTP request.
|
279
264
|
#
|
280
265
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
281
266
|
#
|
282
|
-
def
|
283
|
-
|
267
|
+
def dismiss_with_http_info(resource_group_name, solution_name, aggregated_alert_name, custom_headers:nil)
|
268
|
+
dismiss_async(resource_group_name, solution_name, aggregated_alert_name, custom_headers:custom_headers).value!
|
284
269
|
end
|
285
270
|
|
286
271
|
#
|
287
|
-
#
|
288
|
-
# a resource for having a vulnerability assessment on it
|
272
|
+
# Use this method to dismiss an aggregated IoT Security Solution Alert.
|
289
273
|
#
|
290
274
|
# @param resource_group_name [String] The name of the resource group within the
|
291
275
|
# user's subscription. The name is case insensitive.
|
292
|
-
# @param
|
293
|
-
# @param
|
294
|
-
# @param resource_name [String] Name of the resource.
|
276
|
+
# @param solution_name [String] The name of the IoT Security solution.
|
277
|
+
# @param aggregated_alert_name [String] Identifier of the aggregated alert.
|
295
278
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
296
279
|
# to the HTTP request.
|
297
280
|
#
|
298
281
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
299
282
|
#
|
300
|
-
def
|
283
|
+
def dismiss_async(resource_group_name, solution_name, aggregated_alert_name, custom_headers:nil)
|
284
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
301
285
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
302
286
|
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?
|
303
287
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
304
288
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
305
289
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
306
290
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
307
|
-
fail ArgumentError, '
|
308
|
-
fail ArgumentError, '
|
309
|
-
fail ArgumentError, 'resource_name is nil' if resource_name.nil?
|
310
|
-
server_vulnerability_assessment = 'default'
|
311
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
291
|
+
fail ArgumentError, 'solution_name is nil' if solution_name.nil?
|
292
|
+
fail ArgumentError, 'aggregated_alert_name is nil' if aggregated_alert_name.nil?
|
312
293
|
|
313
294
|
|
314
295
|
request_headers = {}
|
@@ -317,24 +298,24 @@ module Azure::Security::Mgmt::V2019_01_01_preview
|
|
317
298
|
# Set Headers
|
318
299
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
319
300
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
320
|
-
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/
|
301
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/analyticsModels/default/aggregatedAlerts/{aggregatedAlertName}/dismiss'
|
321
302
|
|
322
303
|
request_url = @base_url || @client.base_url
|
323
304
|
|
324
305
|
options = {
|
325
306
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
326
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'
|
307
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'solutionName' => solution_name,'aggregatedAlertName' => aggregated_alert_name},
|
327
308
|
query_params: {'api-version' => @client.api_version},
|
328
309
|
headers: request_headers.merge(custom_headers || {}),
|
329
310
|
base_url: request_url
|
330
311
|
}
|
331
|
-
promise = @client.make_request_async(:
|
312
|
+
promise = @client.make_request_async(:post, path_template, options)
|
332
313
|
|
333
314
|
promise = promise.then do |result|
|
334
315
|
http_response = result.response
|
335
316
|
status_code = http_response.status
|
336
317
|
response_content = http_response.body
|
337
|
-
unless status_code ==
|
318
|
+
unless status_code == 200
|
338
319
|
error_model = JSON.load(response_content)
|
339
320
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
340
321
|
end
|
@@ -342,16 +323,6 @@ module Azure::Security::Mgmt::V2019_01_01_preview
|
|
342
323
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
343
324
|
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
344
325
|
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
345
|
-
# Deserialize Response
|
346
|
-
if status_code == 202
|
347
|
-
begin
|
348
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
349
|
-
result_mapper = Azure::Security::Mgmt::V2019_01_01_preview::Models::ServerVulnerabilityAssessment.mapper()
|
350
|
-
result.body = @client.deserialize(result_mapper, parsed_response)
|
351
|
-
rescue Exception => e
|
352
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
353
|
-
end
|
354
|
-
end
|
355
326
|
|
356
327
|
result
|
357
328
|
end
|
@@ -360,64 +331,49 @@ module Azure::Security::Mgmt::V2019_01_01_preview
|
|
360
331
|
end
|
361
332
|
|
362
333
|
#
|
363
|
-
#
|
334
|
+
# Use this method to get the aggregated alert list of yours IoT Security
|
335
|
+
# solution.
|
364
336
|
#
|
365
|
-
# @param
|
366
|
-
#
|
367
|
-
# @param resource_namespace [String] The Namespace of the resource.
|
368
|
-
# @param resource_type [String] The type of the resource.
|
369
|
-
# @param resource_name [String] Name of the resource.
|
337
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
338
|
+
# to List operation.
|
370
339
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
371
340
|
# will be added to the HTTP request.
|
372
341
|
#
|
342
|
+
# @return [IoTSecurityAggregatedAlertList] operation results.
|
373
343
|
#
|
374
|
-
def
|
375
|
-
response =
|
376
|
-
nil
|
344
|
+
def list_next(next_page_link, custom_headers:nil)
|
345
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
346
|
+
response.body unless response.nil?
|
377
347
|
end
|
378
348
|
|
379
349
|
#
|
380
|
-
#
|
350
|
+
# Use this method to get the aggregated alert list of yours IoT Security
|
351
|
+
# solution.
|
381
352
|
#
|
382
|
-
# @param
|
383
|
-
#
|
384
|
-
# @param resource_namespace [String] The Namespace of the resource.
|
385
|
-
# @param resource_type [String] The type of the resource.
|
386
|
-
# @param resource_name [String] Name of the resource.
|
353
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
354
|
+
# to List operation.
|
387
355
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
388
356
|
# will be added to the HTTP request.
|
389
357
|
#
|
390
358
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
391
359
|
#
|
392
|
-
def
|
393
|
-
|
360
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
361
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
394
362
|
end
|
395
363
|
|
396
364
|
#
|
397
|
-
#
|
365
|
+
# Use this method to get the aggregated alert list of yours IoT Security
|
366
|
+
# solution.
|
398
367
|
#
|
399
|
-
# @param
|
400
|
-
#
|
401
|
-
# @param resource_namespace [String] The Namespace of the resource.
|
402
|
-
# @param resource_type [String] The type of the resource.
|
403
|
-
# @param resource_name [String] Name of the resource.
|
368
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
369
|
+
# to List operation.
|
404
370
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
405
371
|
# to the HTTP request.
|
406
372
|
#
|
407
373
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
408
374
|
#
|
409
|
-
def
|
410
|
-
fail ArgumentError, '
|
411
|
-
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?
|
412
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
413
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
414
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
415
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
416
|
-
fail ArgumentError, 'resource_namespace is nil' if resource_namespace.nil?
|
417
|
-
fail ArgumentError, 'resource_type is nil' if resource_type.nil?
|
418
|
-
fail ArgumentError, 'resource_name is nil' if resource_name.nil?
|
419
|
-
server_vulnerability_assessment = 'default'
|
420
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
375
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
376
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
421
377
|
|
422
378
|
|
423
379
|
request_headers = {}
|
@@ -426,24 +382,23 @@ module Azure::Security::Mgmt::V2019_01_01_preview
|
|
426
382
|
# Set Headers
|
427
383
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
428
384
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
429
|
-
path_template = '
|
385
|
+
path_template = '{nextLink}'
|
430
386
|
|
431
387
|
request_url = @base_url || @client.base_url
|
432
388
|
|
433
389
|
options = {
|
434
390
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
435
|
-
|
436
|
-
query_params: {'api-version' => @client.api_version},
|
391
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
437
392
|
headers: request_headers.merge(custom_headers || {}),
|
438
393
|
base_url: request_url
|
439
394
|
}
|
440
|
-
promise = @client.make_request_async(:
|
395
|
+
promise = @client.make_request_async(:get, path_template, options)
|
441
396
|
|
442
397
|
promise = promise.then do |result|
|
443
398
|
http_response = result.response
|
444
399
|
status_code = http_response.status
|
445
400
|
response_content = http_response.body
|
446
|
-
unless status_code == 200
|
401
|
+
unless status_code == 200
|
447
402
|
error_model = JSON.load(response_content)
|
448
403
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
449
404
|
end
|
@@ -451,6 +406,16 @@ module Azure::Security::Mgmt::V2019_01_01_preview
|
|
451
406
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
452
407
|
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
453
408
|
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
409
|
+
# Deserialize Response
|
410
|
+
if status_code == 200
|
411
|
+
begin
|
412
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
413
|
+
result_mapper = Azure::Security::Mgmt::V2019_08_01::Models::IoTSecurityAggregatedAlertList.mapper()
|
414
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
415
|
+
rescue Exception => e
|
416
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
417
|
+
end
|
418
|
+
end
|
454
419
|
|
455
420
|
result
|
456
421
|
end
|
@@ -458,5 +423,30 @@ module Azure::Security::Mgmt::V2019_01_01_preview
|
|
458
423
|
promise.execute
|
459
424
|
end
|
460
425
|
|
426
|
+
#
|
427
|
+
# Use this method to get the aggregated alert list of yours IoT Security
|
428
|
+
# solution.
|
429
|
+
#
|
430
|
+
# @param resource_group_name [String] The name of the resource group within the
|
431
|
+
# user's subscription. The name is case insensitive.
|
432
|
+
# @param solution_name [String] The name of the IoT Security solution.
|
433
|
+
# @param top [Integer] Number of results to retrieve.
|
434
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
435
|
+
# will be added to the HTTP request.
|
436
|
+
#
|
437
|
+
# @return [IoTSecurityAggregatedAlertList] which provide lazy access to pages
|
438
|
+
# of the response.
|
439
|
+
#
|
440
|
+
def list_as_lazy(resource_group_name, solution_name, top:nil, custom_headers:nil)
|
441
|
+
response = list_async(resource_group_name, solution_name, top:top, custom_headers:custom_headers).value!
|
442
|
+
unless response.nil?
|
443
|
+
page = response.body
|
444
|
+
page.next_method = Proc.new do |next_page_link|
|
445
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
446
|
+
end
|
447
|
+
page
|
448
|
+
end
|
449
|
+
end
|
450
|
+
|
461
451
|
end
|
462
452
|
end
|