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
@@ -22,11 +22,211 @@ module Azure::Security::Mgmt::V2019_08_01
|
|
22
22
|
attr_reader :client
|
23
23
|
|
24
24
|
#
|
25
|
-
#
|
25
|
+
# Use this method to get the list of IoT Security solutions by subscription.
|
26
|
+
#
|
27
|
+
# @param filter [String] Filter the IoT Security solution with OData syntax.
|
28
|
+
# Supports filtering by iotHubs.
|
29
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
30
|
+
# will be added to the HTTP request.
|
31
|
+
#
|
32
|
+
# @return [Array<IoTSecuritySolutionModel>] operation results.
|
33
|
+
#
|
34
|
+
def list_by_subscription(filter:nil, custom_headers:nil)
|
35
|
+
first_page = list_by_subscription_as_lazy(filter:filter, custom_headers:custom_headers)
|
36
|
+
first_page.get_all_items
|
37
|
+
end
|
38
|
+
|
39
|
+
#
|
40
|
+
# Use this method to get the list of IoT Security solutions by subscription.
|
41
|
+
#
|
42
|
+
# @param filter [String] Filter the IoT Security solution with OData syntax.
|
43
|
+
# Supports filtering by iotHubs.
|
44
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
45
|
+
# will be added to the HTTP request.
|
46
|
+
#
|
47
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
48
|
+
#
|
49
|
+
def list_by_subscription_with_http_info(filter:nil, custom_headers:nil)
|
50
|
+
list_by_subscription_async(filter:filter, custom_headers:custom_headers).value!
|
51
|
+
end
|
52
|
+
|
53
|
+
#
|
54
|
+
# Use this method to get the list of IoT Security solutions by subscription.
|
55
|
+
#
|
56
|
+
# @param filter [String] Filter the IoT Security solution with OData syntax.
|
57
|
+
# Supports filtering by iotHubs.
|
58
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
59
|
+
# to the HTTP request.
|
60
|
+
#
|
61
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
62
|
+
#
|
63
|
+
def list_by_subscription_async(filter:nil, custom_headers:nil)
|
64
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
65
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
66
|
+
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?
|
67
|
+
|
68
|
+
|
69
|
+
request_headers = {}
|
70
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
71
|
+
|
72
|
+
# Set Headers
|
73
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
74
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
75
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Security/iotSecuritySolutions'
|
76
|
+
|
77
|
+
request_url = @base_url || @client.base_url
|
78
|
+
|
79
|
+
options = {
|
80
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
81
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
82
|
+
query_params: {'api-version' => @client.api_version,'$filter' => filter},
|
83
|
+
headers: request_headers.merge(custom_headers || {}),
|
84
|
+
base_url: request_url
|
85
|
+
}
|
86
|
+
promise = @client.make_request_async(:get, path_template, options)
|
87
|
+
|
88
|
+
promise = promise.then do |result|
|
89
|
+
http_response = result.response
|
90
|
+
status_code = http_response.status
|
91
|
+
response_content = http_response.body
|
92
|
+
unless status_code == 200
|
93
|
+
error_model = JSON.load(response_content)
|
94
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
95
|
+
end
|
96
|
+
|
97
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
98
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
99
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
100
|
+
# Deserialize Response
|
101
|
+
if status_code == 200
|
102
|
+
begin
|
103
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
104
|
+
result_mapper = Azure::Security::Mgmt::V2019_08_01::Models::IoTSecuritySolutionsList.mapper()
|
105
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
106
|
+
rescue Exception => e
|
107
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
result
|
112
|
+
end
|
113
|
+
|
114
|
+
promise.execute
|
115
|
+
end
|
116
|
+
|
117
|
+
#
|
118
|
+
# Use this method to get the list IoT Security solutions organized by resource
|
119
|
+
# group.
|
120
|
+
#
|
121
|
+
# @param resource_group_name [String] The name of the resource group within the
|
122
|
+
# user's subscription. The name is case insensitive.
|
123
|
+
# @param filter [String] Filter the IoT Security solution with OData syntax.
|
124
|
+
# Supports filtering by iotHubs.
|
125
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
126
|
+
# will be added to the HTTP request.
|
127
|
+
#
|
128
|
+
# @return [Array<IoTSecuritySolutionModel>] operation results.
|
129
|
+
#
|
130
|
+
def list_by_resource_group(resource_group_name, filter:nil, custom_headers:nil)
|
131
|
+
first_page = list_by_resource_group_as_lazy(resource_group_name, filter:filter, custom_headers:custom_headers)
|
132
|
+
first_page.get_all_items
|
133
|
+
end
|
134
|
+
|
135
|
+
#
|
136
|
+
# Use this method to get the list IoT Security solutions organized by resource
|
137
|
+
# group.
|
138
|
+
#
|
139
|
+
# @param resource_group_name [String] The name of the resource group within the
|
140
|
+
# user's subscription. The name is case insensitive.
|
141
|
+
# @param filter [String] Filter the IoT Security solution with OData syntax.
|
142
|
+
# Supports filtering by iotHubs.
|
143
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
144
|
+
# will be added to the HTTP request.
|
145
|
+
#
|
146
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
147
|
+
#
|
148
|
+
def list_by_resource_group_with_http_info(resource_group_name, filter:nil, custom_headers:nil)
|
149
|
+
list_by_resource_group_async(resource_group_name, filter:filter, custom_headers:custom_headers).value!
|
150
|
+
end
|
151
|
+
|
152
|
+
#
|
153
|
+
# Use this method to get the list IoT Security solutions organized by resource
|
154
|
+
# group.
|
155
|
+
#
|
156
|
+
# @param resource_group_name [String] The name of the resource group within the
|
157
|
+
# user's subscription. The name is case insensitive.
|
158
|
+
# @param filter [String] Filter the IoT Security solution with OData syntax.
|
159
|
+
# Supports filtering by iotHubs.
|
160
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
161
|
+
# to the HTTP request.
|
162
|
+
#
|
163
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
164
|
+
#
|
165
|
+
def list_by_resource_group_async(resource_group_name, filter:nil, custom_headers:nil)
|
166
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
167
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
168
|
+
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?
|
169
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
170
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
171
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
172
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
173
|
+
|
174
|
+
|
175
|
+
request_headers = {}
|
176
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
177
|
+
|
178
|
+
# Set Headers
|
179
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
180
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
181
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions'
|
182
|
+
|
183
|
+
request_url = @base_url || @client.base_url
|
184
|
+
|
185
|
+
options = {
|
186
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
187
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
|
188
|
+
query_params: {'api-version' => @client.api_version,'$filter' => filter},
|
189
|
+
headers: request_headers.merge(custom_headers || {}),
|
190
|
+
base_url: request_url
|
191
|
+
}
|
192
|
+
promise = @client.make_request_async(:get, path_template, options)
|
193
|
+
|
194
|
+
promise = promise.then do |result|
|
195
|
+
http_response = result.response
|
196
|
+
status_code = http_response.status
|
197
|
+
response_content = http_response.body
|
198
|
+
unless status_code == 200
|
199
|
+
error_model = JSON.load(response_content)
|
200
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
201
|
+
end
|
202
|
+
|
203
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
204
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
205
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
206
|
+
# Deserialize Response
|
207
|
+
if status_code == 200
|
208
|
+
begin
|
209
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
210
|
+
result_mapper = Azure::Security::Mgmt::V2019_08_01::Models::IoTSecuritySolutionsList.mapper()
|
211
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
212
|
+
rescue Exception => e
|
213
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
214
|
+
end
|
215
|
+
end
|
216
|
+
|
217
|
+
result
|
218
|
+
end
|
219
|
+
|
220
|
+
promise.execute
|
221
|
+
end
|
222
|
+
|
223
|
+
#
|
224
|
+
# User this method to get details of a specific IoT Security solution based on
|
225
|
+
# solution name
|
26
226
|
#
|
27
227
|
# @param resource_group_name [String] The name of the resource group within the
|
28
228
|
# user's subscription. The name is case insensitive.
|
29
|
-
# @param solution_name [String] The
|
229
|
+
# @param solution_name [String] The name of the IoT Security solution.
|
30
230
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
231
|
# will be added to the HTTP request.
|
32
232
|
#
|
@@ -38,11 +238,12 @@ module Azure::Security::Mgmt::V2019_08_01
|
|
38
238
|
end
|
39
239
|
|
40
240
|
#
|
41
|
-
#
|
241
|
+
# User this method to get details of a specific IoT Security solution based on
|
242
|
+
# solution name
|
42
243
|
#
|
43
244
|
# @param resource_group_name [String] The name of the resource group within the
|
44
245
|
# user's subscription. The name is case insensitive.
|
45
|
-
# @param solution_name [String] The
|
246
|
+
# @param solution_name [String] The name of the IoT Security solution.
|
46
247
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
47
248
|
# will be added to the HTTP request.
|
48
249
|
#
|
@@ -53,11 +254,12 @@ module Azure::Security::Mgmt::V2019_08_01
|
|
53
254
|
end
|
54
255
|
|
55
256
|
#
|
56
|
-
#
|
257
|
+
# User this method to get details of a specific IoT Security solution based on
|
258
|
+
# solution name
|
57
259
|
#
|
58
260
|
# @param resource_group_name [String] The name of the resource group within the
|
59
261
|
# user's subscription. The name is case insensitive.
|
60
|
-
# @param solution_name [String] The
|
262
|
+
# @param solution_name [String] The name of the IoT Security solution.
|
61
263
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
62
264
|
# to the HTTP request.
|
63
265
|
#
|
@@ -123,11 +325,11 @@ module Azure::Security::Mgmt::V2019_08_01
|
|
123
325
|
end
|
124
326
|
|
125
327
|
#
|
126
|
-
#
|
328
|
+
# Use this method to create or update yours IoT Security solution
|
127
329
|
#
|
128
330
|
# @param resource_group_name [String] The name of the resource group within the
|
129
331
|
# user's subscription. The name is case insensitive.
|
130
|
-
# @param solution_name [String] The
|
332
|
+
# @param solution_name [String] The name of the IoT Security solution.
|
131
333
|
# @param iot_security_solution_data [IoTSecuritySolutionModel] The security
|
132
334
|
# solution data
|
133
335
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -135,17 +337,17 @@ module Azure::Security::Mgmt::V2019_08_01
|
|
135
337
|
#
|
136
338
|
# @return [IoTSecuritySolutionModel] operation results.
|
137
339
|
#
|
138
|
-
def
|
139
|
-
response =
|
340
|
+
def create_or_update(resource_group_name, solution_name, iot_security_solution_data, custom_headers:nil)
|
341
|
+
response = create_or_update_async(resource_group_name, solution_name, iot_security_solution_data, custom_headers:custom_headers).value!
|
140
342
|
response.body unless response.nil?
|
141
343
|
end
|
142
344
|
|
143
345
|
#
|
144
|
-
#
|
346
|
+
# Use this method to create or update yours IoT Security solution
|
145
347
|
#
|
146
348
|
# @param resource_group_name [String] The name of the resource group within the
|
147
349
|
# user's subscription. The name is case insensitive.
|
148
|
-
# @param solution_name [String] The
|
350
|
+
# @param solution_name [String] The name of the IoT Security solution.
|
149
351
|
# @param iot_security_solution_data [IoTSecuritySolutionModel] The security
|
150
352
|
# solution data
|
151
353
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -153,16 +355,16 @@ module Azure::Security::Mgmt::V2019_08_01
|
|
153
355
|
#
|
154
356
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
155
357
|
#
|
156
|
-
def
|
157
|
-
|
358
|
+
def create_or_update_with_http_info(resource_group_name, solution_name, iot_security_solution_data, custom_headers:nil)
|
359
|
+
create_or_update_async(resource_group_name, solution_name, iot_security_solution_data, custom_headers:custom_headers).value!
|
158
360
|
end
|
159
361
|
|
160
362
|
#
|
161
|
-
#
|
363
|
+
# Use this method to create or update yours IoT Security solution
|
162
364
|
#
|
163
365
|
# @param resource_group_name [String] The name of the resource group within the
|
164
366
|
# user's subscription. The name is case insensitive.
|
165
|
-
# @param solution_name [String] The
|
367
|
+
# @param solution_name [String] The name of the IoT Security solution.
|
166
368
|
# @param iot_security_solution_data [IoTSecuritySolutionModel] The security
|
167
369
|
# solution data
|
168
370
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -170,7 +372,7 @@ module Azure::Security::Mgmt::V2019_08_01
|
|
170
372
|
#
|
171
373
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
172
374
|
#
|
173
|
-
def
|
375
|
+
def create_or_update_async(resource_group_name, solution_name, iot_security_solution_data, custom_headers:nil)
|
174
376
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
175
377
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
176
378
|
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?
|
@@ -248,12 +450,12 @@ module Azure::Security::Mgmt::V2019_08_01
|
|
248
450
|
end
|
249
451
|
|
250
452
|
#
|
251
|
-
# update existing Security
|
252
|
-
# other fields use the CreateOrUpdate method
|
453
|
+
# Use this method to update existing IoT Security solution tags or user defined
|
454
|
+
# resources. To update other fields use the CreateOrUpdate method.
|
253
455
|
#
|
254
456
|
# @param resource_group_name [String] The name of the resource group within the
|
255
457
|
# user's subscription. The name is case insensitive.
|
256
|
-
# @param solution_name [String] The
|
458
|
+
# @param solution_name [String] The name of the IoT Security solution.
|
257
459
|
# @param update_iot_security_solution_data [UpdateIotSecuritySolutionData] The
|
258
460
|
# security solution data
|
259
461
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -267,12 +469,12 @@ module Azure::Security::Mgmt::V2019_08_01
|
|
267
469
|
end
|
268
470
|
|
269
471
|
#
|
270
|
-
# update existing Security
|
271
|
-
# other fields use the CreateOrUpdate method
|
472
|
+
# Use this method to update existing IoT Security solution tags or user defined
|
473
|
+
# resources. To update other fields use the CreateOrUpdate method.
|
272
474
|
#
|
273
475
|
# @param resource_group_name [String] The name of the resource group within the
|
274
476
|
# user's subscription. The name is case insensitive.
|
275
|
-
# @param solution_name [String] The
|
477
|
+
# @param solution_name [String] The name of the IoT Security solution.
|
276
478
|
# @param update_iot_security_solution_data [UpdateIotSecuritySolutionData] The
|
277
479
|
# security solution data
|
278
480
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -285,12 +487,12 @@ module Azure::Security::Mgmt::V2019_08_01
|
|
285
487
|
end
|
286
488
|
|
287
489
|
#
|
288
|
-
# update existing Security
|
289
|
-
# other fields use the CreateOrUpdate method
|
490
|
+
# Use this method to update existing IoT Security solution tags or user defined
|
491
|
+
# resources. To update other fields use the CreateOrUpdate method.
|
290
492
|
#
|
291
493
|
# @param resource_group_name [String] The name of the resource group within the
|
292
494
|
# user's subscription. The name is case insensitive.
|
293
|
-
# @param solution_name [String] The
|
495
|
+
# @param solution_name [String] The name of the IoT Security solution.
|
294
496
|
# @param update_iot_security_solution_data [UpdateIotSecuritySolutionData] The
|
295
497
|
# security solution data
|
296
498
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -366,11 +568,11 @@ module Azure::Security::Mgmt::V2019_08_01
|
|
366
568
|
end
|
367
569
|
|
368
570
|
#
|
369
|
-
#
|
571
|
+
# Use this method to delete yours IoT Security solution
|
370
572
|
#
|
371
573
|
# @param resource_group_name [String] The name of the resource group within the
|
372
574
|
# user's subscription. The name is case insensitive.
|
373
|
-
# @param solution_name [String] The
|
575
|
+
# @param solution_name [String] The name of the IoT Security solution.
|
374
576
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
375
577
|
# will be added to the HTTP request.
|
376
578
|
#
|
@@ -381,11 +583,11 @@ module Azure::Security::Mgmt::V2019_08_01
|
|
381
583
|
end
|
382
584
|
|
383
585
|
#
|
384
|
-
#
|
586
|
+
# Use this method to delete yours IoT Security solution
|
385
587
|
#
|
386
588
|
# @param resource_group_name [String] The name of the resource group within the
|
387
589
|
# user's subscription. The name is case insensitive.
|
388
|
-
# @param solution_name [String] The
|
590
|
+
# @param solution_name [String] The name of the IoT Security solution.
|
389
591
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
390
592
|
# will be added to the HTTP request.
|
391
593
|
#
|
@@ -396,11 +598,11 @@ module Azure::Security::Mgmt::V2019_08_01
|
|
396
598
|
end
|
397
599
|
|
398
600
|
#
|
399
|
-
#
|
601
|
+
# Use this method to delete yours IoT Security solution
|
400
602
|
#
|
401
603
|
# @param resource_group_name [String] The name of the resource group within the
|
402
604
|
# user's subscription. The name is case insensitive.
|
403
|
-
# @param solution_name [String] The
|
605
|
+
# @param solution_name [String] The name of the IoT Security solution.
|
404
606
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
405
607
|
# to the HTTP request.
|
406
608
|
#
|
@@ -455,5 +657,235 @@ module Azure::Security::Mgmt::V2019_08_01
|
|
455
657
|
promise.execute
|
456
658
|
end
|
457
659
|
|
660
|
+
#
|
661
|
+
# Use this method to get the list of IoT Security solutions by subscription.
|
662
|
+
#
|
663
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
664
|
+
# to List operation.
|
665
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
666
|
+
# will be added to the HTTP request.
|
667
|
+
#
|
668
|
+
# @return [IoTSecuritySolutionsList] operation results.
|
669
|
+
#
|
670
|
+
def list_by_subscription_next(next_page_link, custom_headers:nil)
|
671
|
+
response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
|
672
|
+
response.body unless response.nil?
|
673
|
+
end
|
674
|
+
|
675
|
+
#
|
676
|
+
# Use this method to get the list of IoT Security solutions by subscription.
|
677
|
+
#
|
678
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
679
|
+
# to List operation.
|
680
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
681
|
+
# will be added to the HTTP request.
|
682
|
+
#
|
683
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
684
|
+
#
|
685
|
+
def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil)
|
686
|
+
list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
|
687
|
+
end
|
688
|
+
|
689
|
+
#
|
690
|
+
# Use this method to get the list of IoT Security solutions by subscription.
|
691
|
+
#
|
692
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
693
|
+
# to List operation.
|
694
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
695
|
+
# to the HTTP request.
|
696
|
+
#
|
697
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
698
|
+
#
|
699
|
+
def list_by_subscription_next_async(next_page_link, custom_headers:nil)
|
700
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
701
|
+
|
702
|
+
|
703
|
+
request_headers = {}
|
704
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
705
|
+
|
706
|
+
# Set Headers
|
707
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
708
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
709
|
+
path_template = '{nextLink}'
|
710
|
+
|
711
|
+
request_url = @base_url || @client.base_url
|
712
|
+
|
713
|
+
options = {
|
714
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
715
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
716
|
+
headers: request_headers.merge(custom_headers || {}),
|
717
|
+
base_url: request_url
|
718
|
+
}
|
719
|
+
promise = @client.make_request_async(:get, path_template, options)
|
720
|
+
|
721
|
+
promise = promise.then do |result|
|
722
|
+
http_response = result.response
|
723
|
+
status_code = http_response.status
|
724
|
+
response_content = http_response.body
|
725
|
+
unless status_code == 200
|
726
|
+
error_model = JSON.load(response_content)
|
727
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
728
|
+
end
|
729
|
+
|
730
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
731
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
732
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
733
|
+
# Deserialize Response
|
734
|
+
if status_code == 200
|
735
|
+
begin
|
736
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
737
|
+
result_mapper = Azure::Security::Mgmt::V2019_08_01::Models::IoTSecuritySolutionsList.mapper()
|
738
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
739
|
+
rescue Exception => e
|
740
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
741
|
+
end
|
742
|
+
end
|
743
|
+
|
744
|
+
result
|
745
|
+
end
|
746
|
+
|
747
|
+
promise.execute
|
748
|
+
end
|
749
|
+
|
750
|
+
#
|
751
|
+
# Use this method to get the list IoT Security solutions organized by resource
|
752
|
+
# group.
|
753
|
+
#
|
754
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
755
|
+
# to List operation.
|
756
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
757
|
+
# will be added to the HTTP request.
|
758
|
+
#
|
759
|
+
# @return [IoTSecuritySolutionsList] operation results.
|
760
|
+
#
|
761
|
+
def list_by_resource_group_next(next_page_link, custom_headers:nil)
|
762
|
+
response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
763
|
+
response.body unless response.nil?
|
764
|
+
end
|
765
|
+
|
766
|
+
#
|
767
|
+
# Use this method to get the list IoT Security solutions organized by resource
|
768
|
+
# group.
|
769
|
+
#
|
770
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
771
|
+
# to List operation.
|
772
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
773
|
+
# will be added to the HTTP request.
|
774
|
+
#
|
775
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
776
|
+
#
|
777
|
+
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
|
778
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
779
|
+
end
|
780
|
+
|
781
|
+
#
|
782
|
+
# Use this method to get the list IoT Security solutions organized by resource
|
783
|
+
# group.
|
784
|
+
#
|
785
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
786
|
+
# to List operation.
|
787
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
788
|
+
# to the HTTP request.
|
789
|
+
#
|
790
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
791
|
+
#
|
792
|
+
def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
|
793
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
794
|
+
|
795
|
+
|
796
|
+
request_headers = {}
|
797
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
798
|
+
|
799
|
+
# Set Headers
|
800
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
801
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
802
|
+
path_template = '{nextLink}'
|
803
|
+
|
804
|
+
request_url = @base_url || @client.base_url
|
805
|
+
|
806
|
+
options = {
|
807
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
808
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
809
|
+
headers: request_headers.merge(custom_headers || {}),
|
810
|
+
base_url: request_url
|
811
|
+
}
|
812
|
+
promise = @client.make_request_async(:get, path_template, options)
|
813
|
+
|
814
|
+
promise = promise.then do |result|
|
815
|
+
http_response = result.response
|
816
|
+
status_code = http_response.status
|
817
|
+
response_content = http_response.body
|
818
|
+
unless status_code == 200
|
819
|
+
error_model = JSON.load(response_content)
|
820
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
821
|
+
end
|
822
|
+
|
823
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
824
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
825
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
826
|
+
# Deserialize Response
|
827
|
+
if status_code == 200
|
828
|
+
begin
|
829
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
830
|
+
result_mapper = Azure::Security::Mgmt::V2019_08_01::Models::IoTSecuritySolutionsList.mapper()
|
831
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
832
|
+
rescue Exception => e
|
833
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
834
|
+
end
|
835
|
+
end
|
836
|
+
|
837
|
+
result
|
838
|
+
end
|
839
|
+
|
840
|
+
promise.execute
|
841
|
+
end
|
842
|
+
|
843
|
+
#
|
844
|
+
# Use this method to get the list of IoT Security solutions by subscription.
|
845
|
+
#
|
846
|
+
# @param filter [String] Filter the IoT Security solution with OData syntax.
|
847
|
+
# Supports filtering by iotHubs.
|
848
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
849
|
+
# will be added to the HTTP request.
|
850
|
+
#
|
851
|
+
# @return [IoTSecuritySolutionsList] which provide lazy access to pages of the
|
852
|
+
# response.
|
853
|
+
#
|
854
|
+
def list_by_subscription_as_lazy(filter:nil, custom_headers:nil)
|
855
|
+
response = list_by_subscription_async(filter:filter, custom_headers:custom_headers).value!
|
856
|
+
unless response.nil?
|
857
|
+
page = response.body
|
858
|
+
page.next_method = Proc.new do |next_page_link|
|
859
|
+
list_by_subscription_next_async(next_page_link, custom_headers:custom_headers)
|
860
|
+
end
|
861
|
+
page
|
862
|
+
end
|
863
|
+
end
|
864
|
+
|
865
|
+
#
|
866
|
+
# Use this method to get the list IoT Security solutions organized by resource
|
867
|
+
# group.
|
868
|
+
#
|
869
|
+
# @param resource_group_name [String] The name of the resource group within the
|
870
|
+
# user's subscription. The name is case insensitive.
|
871
|
+
# @param filter [String] Filter the IoT Security solution with OData syntax.
|
872
|
+
# Supports filtering by iotHubs.
|
873
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
874
|
+
# will be added to the HTTP request.
|
875
|
+
#
|
876
|
+
# @return [IoTSecuritySolutionsList] which provide lazy access to pages of the
|
877
|
+
# response.
|
878
|
+
#
|
879
|
+
def list_by_resource_group_as_lazy(resource_group_name, filter:nil, custom_headers:nil)
|
880
|
+
response = list_by_resource_group_async(resource_group_name, filter:filter, custom_headers:custom_headers).value!
|
881
|
+
unless response.nil?
|
882
|
+
page = response.body
|
883
|
+
page.next_method = Proc.new do |next_page_link|
|
884
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
|
885
|
+
end
|
886
|
+
page
|
887
|
+
end
|
888
|
+
end
|
889
|
+
|
458
890
|
end
|
459
891
|
end
|