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
@@ -0,0 +1,473 @@
|
|
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::V2020_08_06_preview
|
7
|
+
#
|
8
|
+
# API spec for Microsoft.Security (Azure Security Center) resource provider
|
9
|
+
#
|
10
|
+
class IotDefenderSettings
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the IotDefenderSettings class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [SecurityCenter] reference to the SecurityCenter
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# List IoT Defender Settings
|
26
|
+
#
|
27
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
28
|
+
# will be added to the HTTP request.
|
29
|
+
#
|
30
|
+
# @return [IotDefenderSettingsList] operation results.
|
31
|
+
#
|
32
|
+
def list(custom_headers:nil)
|
33
|
+
response = list_async(custom_headers:custom_headers).value!
|
34
|
+
response.body unless response.nil?
|
35
|
+
end
|
36
|
+
|
37
|
+
#
|
38
|
+
# List IoT Defender Settings
|
39
|
+
#
|
40
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
41
|
+
# will be added to the HTTP request.
|
42
|
+
#
|
43
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
44
|
+
#
|
45
|
+
def list_with_http_info(custom_headers:nil)
|
46
|
+
list_async(custom_headers:custom_headers).value!
|
47
|
+
end
|
48
|
+
|
49
|
+
#
|
50
|
+
# List IoT Defender Settings
|
51
|
+
#
|
52
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
53
|
+
# to the HTTP request.
|
54
|
+
#
|
55
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
56
|
+
#
|
57
|
+
def list_async(custom_headers:nil)
|
58
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
59
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
60
|
+
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
|
+
|
62
|
+
|
63
|
+
request_headers = {}
|
64
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
65
|
+
|
66
|
+
# Set Headers
|
67
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
68
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
69
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings'
|
70
|
+
|
71
|
+
request_url = @base_url || @client.base_url
|
72
|
+
|
73
|
+
options = {
|
74
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
75
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
76
|
+
query_params: {'api-version' => @client.api_version},
|
77
|
+
headers: request_headers.merge(custom_headers || {}),
|
78
|
+
base_url: request_url
|
79
|
+
}
|
80
|
+
promise = @client.make_request_async(:get, path_template, options)
|
81
|
+
|
82
|
+
promise = promise.then do |result|
|
83
|
+
http_response = result.response
|
84
|
+
status_code = http_response.status
|
85
|
+
response_content = http_response.body
|
86
|
+
unless status_code == 200
|
87
|
+
error_model = JSON.load(response_content)
|
88
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
89
|
+
end
|
90
|
+
|
91
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
92
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
93
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
94
|
+
# Deserialize Response
|
95
|
+
if status_code == 200
|
96
|
+
begin
|
97
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
98
|
+
result_mapper = Azure::Security::Mgmt::V2020_08_06_preview::Models::IotDefenderSettingsList.mapper()
|
99
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
100
|
+
rescue Exception => e
|
101
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
result
|
106
|
+
end
|
107
|
+
|
108
|
+
promise.execute
|
109
|
+
end
|
110
|
+
|
111
|
+
#
|
112
|
+
# Get IoT Defender Settings
|
113
|
+
#
|
114
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
115
|
+
# will be added to the HTTP request.
|
116
|
+
#
|
117
|
+
# @return [IotDefenderSettingsModel] operation results.
|
118
|
+
#
|
119
|
+
def get(custom_headers:nil)
|
120
|
+
response = get_async(custom_headers:custom_headers).value!
|
121
|
+
response.body unless response.nil?
|
122
|
+
end
|
123
|
+
|
124
|
+
#
|
125
|
+
# Get IoT Defender Settings
|
126
|
+
#
|
127
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
128
|
+
# will be added to the HTTP request.
|
129
|
+
#
|
130
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
131
|
+
#
|
132
|
+
def get_with_http_info(custom_headers:nil)
|
133
|
+
get_async(custom_headers:custom_headers).value!
|
134
|
+
end
|
135
|
+
|
136
|
+
#
|
137
|
+
# Get IoT Defender Settings
|
138
|
+
#
|
139
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
140
|
+
# to the HTTP request.
|
141
|
+
#
|
142
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
143
|
+
#
|
144
|
+
def get_async(custom_headers:nil)
|
145
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
146
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
147
|
+
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?
|
148
|
+
|
149
|
+
|
150
|
+
request_headers = {}
|
151
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
152
|
+
|
153
|
+
# Set Headers
|
154
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
155
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
156
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default'
|
157
|
+
|
158
|
+
request_url = @base_url || @client.base_url
|
159
|
+
|
160
|
+
options = {
|
161
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
162
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
163
|
+
query_params: {'api-version' => @client.api_version},
|
164
|
+
headers: request_headers.merge(custom_headers || {}),
|
165
|
+
base_url: request_url
|
166
|
+
}
|
167
|
+
promise = @client.make_request_async(:get, path_template, options)
|
168
|
+
|
169
|
+
promise = promise.then do |result|
|
170
|
+
http_response = result.response
|
171
|
+
status_code = http_response.status
|
172
|
+
response_content = http_response.body
|
173
|
+
unless status_code == 200
|
174
|
+
error_model = JSON.load(response_content)
|
175
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
176
|
+
end
|
177
|
+
|
178
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
179
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
180
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
181
|
+
# Deserialize Response
|
182
|
+
if status_code == 200
|
183
|
+
begin
|
184
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
185
|
+
result_mapper = Azure::Security::Mgmt::V2020_08_06_preview::Models::IotDefenderSettingsModel.mapper()
|
186
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
187
|
+
rescue Exception => e
|
188
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
result
|
193
|
+
end
|
194
|
+
|
195
|
+
promise.execute
|
196
|
+
end
|
197
|
+
|
198
|
+
#
|
199
|
+
# Create or update IoT Defender settings
|
200
|
+
#
|
201
|
+
# @param iot_defender_settings_model [IotDefenderSettingsModel] The IoT
|
202
|
+
# defender settings model
|
203
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
204
|
+
# will be added to the HTTP request.
|
205
|
+
#
|
206
|
+
# @return [IotDefenderSettingsModel] operation results.
|
207
|
+
#
|
208
|
+
def create_or_update(iot_defender_settings_model, custom_headers:nil)
|
209
|
+
response = create_or_update_async(iot_defender_settings_model, custom_headers:custom_headers).value!
|
210
|
+
response.body unless response.nil?
|
211
|
+
end
|
212
|
+
|
213
|
+
#
|
214
|
+
# Create or update IoT Defender settings
|
215
|
+
#
|
216
|
+
# @param iot_defender_settings_model [IotDefenderSettingsModel] The IoT
|
217
|
+
# defender settings model
|
218
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
219
|
+
# will be added to the HTTP request.
|
220
|
+
#
|
221
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
222
|
+
#
|
223
|
+
def create_or_update_with_http_info(iot_defender_settings_model, custom_headers:nil)
|
224
|
+
create_or_update_async(iot_defender_settings_model, custom_headers:custom_headers).value!
|
225
|
+
end
|
226
|
+
|
227
|
+
#
|
228
|
+
# Create or update IoT Defender settings
|
229
|
+
#
|
230
|
+
# @param iot_defender_settings_model [IotDefenderSettingsModel] The IoT
|
231
|
+
# defender settings model
|
232
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
233
|
+
# to the HTTP request.
|
234
|
+
#
|
235
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
236
|
+
#
|
237
|
+
def create_or_update_async(iot_defender_settings_model, custom_headers:nil)
|
238
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
239
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
240
|
+
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
|
+
fail ArgumentError, 'iot_defender_settings_model is nil' if iot_defender_settings_model.nil?
|
242
|
+
|
243
|
+
|
244
|
+
request_headers = {}
|
245
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
246
|
+
|
247
|
+
# Set Headers
|
248
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
249
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
250
|
+
|
251
|
+
# Serialize Request
|
252
|
+
request_mapper = Azure::Security::Mgmt::V2020_08_06_preview::Models::IotDefenderSettingsModel.mapper()
|
253
|
+
request_content = @client.serialize(request_mapper, iot_defender_settings_model)
|
254
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
255
|
+
|
256
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default'
|
257
|
+
|
258
|
+
request_url = @base_url || @client.base_url
|
259
|
+
|
260
|
+
options = {
|
261
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
262
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
263
|
+
query_params: {'api-version' => @client.api_version},
|
264
|
+
body: request_content,
|
265
|
+
headers: request_headers.merge(custom_headers || {}),
|
266
|
+
base_url: request_url
|
267
|
+
}
|
268
|
+
promise = @client.make_request_async(:put, path_template, options)
|
269
|
+
|
270
|
+
promise = promise.then do |result|
|
271
|
+
http_response = result.response
|
272
|
+
status_code = http_response.status
|
273
|
+
response_content = http_response.body
|
274
|
+
unless status_code == 200 || status_code == 201
|
275
|
+
error_model = JSON.load(response_content)
|
276
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
277
|
+
end
|
278
|
+
|
279
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
280
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
281
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
282
|
+
# Deserialize Response
|
283
|
+
if status_code == 200
|
284
|
+
begin
|
285
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
286
|
+
result_mapper = Azure::Security::Mgmt::V2020_08_06_preview::Models::IotDefenderSettingsModel.mapper()
|
287
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
288
|
+
rescue Exception => e
|
289
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
290
|
+
end
|
291
|
+
end
|
292
|
+
# Deserialize Response
|
293
|
+
if status_code == 201
|
294
|
+
begin
|
295
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
296
|
+
result_mapper = Azure::Security::Mgmt::V2020_08_06_preview::Models::IotDefenderSettingsModel.mapper()
|
297
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
298
|
+
rescue Exception => e
|
299
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
300
|
+
end
|
301
|
+
end
|
302
|
+
|
303
|
+
result
|
304
|
+
end
|
305
|
+
|
306
|
+
promise.execute
|
307
|
+
end
|
308
|
+
|
309
|
+
#
|
310
|
+
# Delete IoT Defender settings
|
311
|
+
#
|
312
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
313
|
+
# will be added to the HTTP request.
|
314
|
+
#
|
315
|
+
#
|
316
|
+
def delete(custom_headers:nil)
|
317
|
+
response = delete_async(custom_headers:custom_headers).value!
|
318
|
+
nil
|
319
|
+
end
|
320
|
+
|
321
|
+
#
|
322
|
+
# Delete IoT Defender settings
|
323
|
+
#
|
324
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
325
|
+
# will be added to the HTTP request.
|
326
|
+
#
|
327
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
328
|
+
#
|
329
|
+
def delete_with_http_info(custom_headers:nil)
|
330
|
+
delete_async(custom_headers:custom_headers).value!
|
331
|
+
end
|
332
|
+
|
333
|
+
#
|
334
|
+
# Delete IoT Defender settings
|
335
|
+
#
|
336
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
337
|
+
# to the HTTP request.
|
338
|
+
#
|
339
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
340
|
+
#
|
341
|
+
def delete_async(custom_headers:nil)
|
342
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
343
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
344
|
+
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?
|
345
|
+
|
346
|
+
|
347
|
+
request_headers = {}
|
348
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
349
|
+
|
350
|
+
# Set Headers
|
351
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
352
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
353
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default'
|
354
|
+
|
355
|
+
request_url = @base_url || @client.base_url
|
356
|
+
|
357
|
+
options = {
|
358
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
359
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
360
|
+
query_params: {'api-version' => @client.api_version},
|
361
|
+
headers: request_headers.merge(custom_headers || {}),
|
362
|
+
base_url: request_url
|
363
|
+
}
|
364
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
365
|
+
|
366
|
+
promise = promise.then do |result|
|
367
|
+
http_response = result.response
|
368
|
+
status_code = http_response.status
|
369
|
+
response_content = http_response.body
|
370
|
+
unless status_code == 200 || status_code == 204
|
371
|
+
error_model = JSON.load(response_content)
|
372
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
373
|
+
end
|
374
|
+
|
375
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
376
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
377
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
378
|
+
|
379
|
+
result
|
380
|
+
end
|
381
|
+
|
382
|
+
promise.execute
|
383
|
+
end
|
384
|
+
|
385
|
+
#
|
386
|
+
# Information about downloadable packages
|
387
|
+
#
|
388
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
389
|
+
# will be added to the HTTP request.
|
390
|
+
#
|
391
|
+
# @return [PackageDownloads] operation results.
|
392
|
+
#
|
393
|
+
def package_downloads_method(custom_headers:nil)
|
394
|
+
response = package_downloads_method_async(custom_headers:custom_headers).value!
|
395
|
+
response.body unless response.nil?
|
396
|
+
end
|
397
|
+
|
398
|
+
#
|
399
|
+
# Information about downloadable packages
|
400
|
+
#
|
401
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
402
|
+
# will be added to the HTTP request.
|
403
|
+
#
|
404
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
405
|
+
#
|
406
|
+
def package_downloads_method_with_http_info(custom_headers:nil)
|
407
|
+
package_downloads_method_async(custom_headers:custom_headers).value!
|
408
|
+
end
|
409
|
+
|
410
|
+
#
|
411
|
+
# Information about downloadable packages
|
412
|
+
#
|
413
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
414
|
+
# to the HTTP request.
|
415
|
+
#
|
416
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
417
|
+
#
|
418
|
+
def package_downloads_method_async(custom_headers:nil)
|
419
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
420
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
421
|
+
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?
|
422
|
+
|
423
|
+
|
424
|
+
request_headers = {}
|
425
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
426
|
+
|
427
|
+
# Set Headers
|
428
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
429
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
430
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default/packageDownloads'
|
431
|
+
|
432
|
+
request_url = @base_url || @client.base_url
|
433
|
+
|
434
|
+
options = {
|
435
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
436
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
437
|
+
query_params: {'api-version' => @client.api_version},
|
438
|
+
headers: request_headers.merge(custom_headers || {}),
|
439
|
+
base_url: request_url
|
440
|
+
}
|
441
|
+
promise = @client.make_request_async(:post, path_template, options)
|
442
|
+
|
443
|
+
promise = promise.then do |result|
|
444
|
+
http_response = result.response
|
445
|
+
status_code = http_response.status
|
446
|
+
response_content = http_response.body
|
447
|
+
unless status_code == 200
|
448
|
+
error_model = JSON.load(response_content)
|
449
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
450
|
+
end
|
451
|
+
|
452
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
453
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
454
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
455
|
+
# Deserialize Response
|
456
|
+
if status_code == 200
|
457
|
+
begin
|
458
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
459
|
+
result_mapper = Azure::Security::Mgmt::V2020_08_06_preview::Models::PackageDownloads.mapper()
|
460
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
461
|
+
rescue Exception => e
|
462
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
463
|
+
end
|
464
|
+
end
|
465
|
+
|
466
|
+
result
|
467
|
+
end
|
468
|
+
|
469
|
+
promise.execute
|
470
|
+
end
|
471
|
+
|
472
|
+
end
|
473
|
+
end
|