azure_mgmt_security_insights 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights.rb +254 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/actions.rb +255 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/alert_rule_templates.rb +365 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/alert_rules.rb +966 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/bookmark_operations.rb +154 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/bookmark_relations.rb +651 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/bookmarks.rb +602 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/case_comments.rb +155 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/case_relations.rb +652 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/cases.rb +752 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/cases_aggregations.rb +140 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/comments.rb +287 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/data_connectors.rb +603 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/data_connectors_check_requirements_operations.rb +150 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/entities.rb +492 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/entities_relations.rb +287 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/entity_queries.rb +364 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/entity_relations.rb +144 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/incident_comments.rb +652 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/incident_relations.rb +651 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/incidents.rb +976 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/aadcheck_requirements.rb +61 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/aaddata_connector.rb +109 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/aatpcheck_requirements.rb +62 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/aatpdata_connector.rb +109 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/account_entity.rb +261 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/action_properties_base.rb +47 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/action_request.rb +93 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/action_response.rb +96 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/actions_list.rb +99 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/aggregations.rb +82 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/aggregations_kind.rb +49 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/alert_rule.rb +95 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/alert_rule_kind.rb +17 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/alert_rule_kind1.rb +47 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/alert_rule_template.rb +84 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/alert_rule_template_data_source.rb +66 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/alert_rule_template_properties_base.rb +115 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/alert_rule_templates_list.rb +101 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/alert_rules_list.rb +101 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/alert_severity.rb +18 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/alert_status.rb +19 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/alerts_data_type_of_data_connector.rb +48 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/alerts_data_type_of_data_connector_alerts.rb +43 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/asccheck_requirements.rb +62 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/ascdata_connector.rb +110 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/attack_tactic.rb +27 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/aws_cloud_trail_check_requirements.rb +50 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/aws_cloud_trail_data_connector.rb +110 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/aws_cloud_trail_data_connector_data_types.rb +48 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/aws_cloud_trail_data_connector_data_types_logs.rb +43 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/azure_resource_entity.rb +136 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/bookmark.rb +191 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/bookmark_expand_parameters.rb +71 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/bookmark_expand_response.rb +60 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/bookmark_expand_response_value.rb +57 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/bookmark_list.rb +99 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/case_comment.rb +98 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/case_comment_list.rb +99 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/case_list.rb +99 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/case_model.rb +293 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/case_relation.rb +123 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/case_relation_list.rb +99 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/case_severity.rb +19 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/case_status.rb +18 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/cases_aggregation.rb +103 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/cases_aggregation_by_severity_properties.rb +96 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/cases_aggregation_by_status_properties.rb +83 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/client_info.rb +79 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/close_reason.rb +19 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/cloud_application_entity.rb +150 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/confidence_level.rb +17 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/confidence_score_status.rb +18 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/data_connector.rb +102 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/data_connector_authorization_state.rb +16 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/data_connector_data_type_common.rb +47 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/data_connector_kind.rb +24 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/data_connector_kind1.rb +51 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/data_connector_license_state.rb +17 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/data_connector_list.rb +101 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/data_connector_requirements_state.rb +59 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/data_connector_tenant_id.rb +46 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/data_connector_with_alerts_properties.rb +48 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/data_connectors_check_requirements.rb +54 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/data_type_state.rb +16 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/dns_entity.rb +170 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/elevation_token.rb +17 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/entities_matching_method.rb +17 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/entity.rb +98 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/entity_analytics.rb +97 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/entity_common_properties.rb +70 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/entity_expand_parameters.rb +71 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/entity_expand_response.rb +60 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/entity_expand_response_value.rb +57 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/entity_kind.rb +31 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/entity_kind1.rb +50 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/entity_list.rb +101 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/entity_query.rb +159 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/entity_query_list.rb +99 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/entity_type.rb +31 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/event_grouping_aggregation_kind.rb +16 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/event_grouping_settings.rb +47 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/expansion_result_aggregation.rb +85 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/expansion_results_metadata.rb +56 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/eyes_on.rb +97 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/file_entity.rb +170 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/file_hash_algorithm.rb +19 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/file_hash_entity.rb +137 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/fusion_alert_rule.rb +179 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/fusion_alert_rule_template.rb +188 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/geo_location.rb +126 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/grouping_configuration.rb +101 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/grouping_entity_type.rb +18 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/host_entity.rb +224 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/hunting_bookmark.rb +244 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/incident.rb +291 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/incident_additional_data.rb +111 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/incident_alert_list.rb +55 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/incident_bookmark_list.rb +55 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/incident_classification.rb +18 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/incident_classification_reason.rb +18 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/incident_comment.rb +118 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/incident_comment_list.rb +99 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/incident_configuration.rb +60 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/incident_entities_response.rb +78 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/incident_entities_results_metadata.rb +63 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/incident_info.rb +80 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/incident_label.rb +59 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/incident_label_type.rb +16 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/incident_list.rb +99 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/incident_owner_info.rb +80 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/incident_severity.rb +18 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/incident_status.rb +17 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/io_tdevice_entity.rb +218 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/ip_entity.rb +160 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/kill_chain_intent.rb +28 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/malware_entity.rb +178 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/mcascheck_requirements.rb +62 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/mcasdata_connector.rb +109 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/mcasdata_connector_data_types.rb +58 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/mcasdata_connector_data_types_discovery_logs.rb +43 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/mdatpcheck_requirements.rb +62 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/mdatpdata_connector.rb +110 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/microsoft_security_incident_creation_alert_rule.rb +221 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/microsoft_security_incident_creation_alert_rule_common_properties.rb +112 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/microsoft_security_incident_creation_alert_rule_template.rb +234 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/microsoft_security_product_name.rb +21 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/office_atpcheck_requirements.rb +62 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/office_atpdata_connector.rb +110 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/office_consent.rb +85 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/office_consent_list.rb +99 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/office_data_connector.rb +109 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/office_data_connector_data_types.rb +73 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/office_data_connector_data_types_exchange.rb +43 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/office_data_connector_data_types_share_point.rb +43 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/office_data_connector_data_types_teams.rb +43 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/operation.rb +58 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/operation_display.rb +79 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/operations_list.rb +98 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/osfamily.rb +18 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/process_entity.rb +221 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/registry_hive.rb +24 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/registry_key_entity.rb +141 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/registry_value_entity.rb +163 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/registry_value_kind.rb +22 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/relation.rb +117 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/relation_base.rb +86 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/relation_list.rb +99 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/relation_node.rb +89 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/relation_node_kind.rb +16 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/relation_types.rb +15 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/relations_model_input.rb +114 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/resource.rb +80 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/resource_with_etag.rb +82 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/scheduled_alert_rule.rb +285 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/scheduled_alert_rule_common_properties.rb +119 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/scheduled_alert_rule_template.rb +260 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/security_alert.rb +462 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/security_alert_properties_confidence_reasons_item.rb +60 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/security_group_entity.rb +150 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/setting_kind.rb +17 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/setting_list.rb +57 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/settings.rb +95 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/settings_kind.rb +47 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/source.rb +16 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/template_status.rb +17 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/threat_intelligence.rb +108 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/threat_intelligence_append_tags_request_body.rb +54 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/threat_intelligence_arm_stix_query.rb +227 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/threat_intelligence_arm_stix_sort_by.rb +17 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/threat_intelligence_arm_stix_sort_by1.rb +58 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/threat_intelligence_granular_marking_model.rb +76 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/threat_intelligence_indicator_model.rb +410 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/threat_intelligence_indicator_without_read_only_fields.rb +382 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/threat_intelligence_kill_chain_phase.rb +57 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/threat_intelligence_metric.rb +106 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/threat_intelligence_metric_entity.rb +57 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/threat_intelligence_metric_resource.rb +47 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/threat_intelligence_metric_resource_list.rb +56 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/threat_intelligence_resource.rb +93 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/threat_intelligence_resource_kind.rb +15 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/threat_intelligence_resource_kind1.rb +48 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/threat_intelligence_resource_list.rb +102 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/ti_taxii_check_requirements.rb +61 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/ti_taxii_data_connector.rb +175 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/ti_taxii_data_connector_data_types.rb +48 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/ti_taxii_data_connector_data_types_taxii_client.rb +43 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/ticheck_requirements.rb +61 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/tidata_connector.rb +109 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/tidata_connector_data_types.rb +49 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/tidata_connector_data_types_indicators.rb +43 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/trigger_operator.rb +18 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/ueba.rb +105 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/ueba_data_sources.rb +18 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/url_entity.rb +124 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/user_info.rb +70 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/watchlist.rb +256 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/watchlist_item.rb +185 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/watchlist_list.rb +99 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/module_definition.rb +9 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/office_consents.rb +468 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/operations.rb +219 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/product_settings.rb +487 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/security_insights.rb +384 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/threat_intelligence_indicator.rb +494 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/threat_intelligence_indicator_metrics.rb +139 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/threat_intelligence_indicator_upsert.rb +167 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/threat_intelligence_indicators.rb +283 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/threat_intelligence_indicators_list.rb +267 -0
- data/lib/2019-01-01-preview/generated/azure_mgmt_security_insights/watchlists.rb +814 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights.rb +116 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/actions.rb +246 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/alert_rule_templates.rb +349 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/alert_rules.rb +915 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/bookmarks.rb +572 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/data_connectors.rb +573 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/incident_comments.rb +512 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/incidents.rb +604 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/aaddata_connector.rb +109 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/aatpdata_connector.rb +109 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/action_properties_base.rb +47 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/action_request.rb +93 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/action_response.rb +96 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/actions_list.rb +99 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/alert_rule.rb +79 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/alert_rule_kind.rb +17 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/alert_rule_template.rb +71 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/alert_rule_template_data_source.rb +66 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/alert_rule_templates_list.rb +101 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/alert_rules_list.rb +101 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/alert_severity.rb +18 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/alerts_data_type_of_data_connector.rb +47 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/ascdata_connector.rb +110 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/attack_tactic.rb +26 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/aws_cloud_trail_data_connector.rb +110 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/aws_cloud_trail_data_connector_data_types.rb +48 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/aws_cloud_trail_data_connector_data_types_logs.rb +43 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/bookmark.rb +191 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/bookmark_list.rb +99 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/case_severity.rb +19 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/client_info.rb +79 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/data_connector.rb +79 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/data_connector_data_type_common.rb +47 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/data_connector_kind.rb +22 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/data_connector_list.rb +101 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/data_connector_tenant_id.rb +46 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/data_connector_with_alerts_properties.rb +48 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/data_type_state.rb +16 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/error_additional_info.rb +59 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/error_response.rb +117 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/fusion_alert_rule.rb +179 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/fusion_alert_rule_template.rb +188 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/incident.rb +291 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/incident_additional_data.rb +111 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/incident_classification.rb +18 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/incident_classification_reason.rb +18 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/incident_comment.rb +98 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/incident_comment_list.rb +99 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/incident_info.rb +80 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/incident_label.rb +59 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/incident_label_type.rb +16 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/incident_list.rb +99 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/incident_owner_info.rb +80 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/incident_severity.rb +18 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/incident_status.rb +17 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/license_status.rb +16 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/mcasdata_connector.rb +109 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/mcasdata_connector_data_types.rb +58 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/mdatpdata_connector.rb +110 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/microsoft_security_incident_creation_alert_rule.rb +220 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/microsoft_security_incident_creation_alert_rule_common_properties.rb +111 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/microsoft_security_incident_creation_alert_rule_template.rb +233 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/microsoft_security_product_name.rb +19 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/office_consent.rb +85 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/office_consent_list.rb +67 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/office_data_connector.rb +109 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/office_data_connector_data_types.rb +61 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/office_data_connector_data_types_exchange.rb +43 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/office_data_connector_data_types_share_point.rb +43 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/operation.rb +58 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/operation_display.rb +79 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/operations_list.rb +98 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/resource.rb +80 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/resource_with_etag.rb +82 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/scheduled_alert_rule.rb +260 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/scheduled_alert_rule_common_properties.rb +107 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/scheduled_alert_rule_template.rb +248 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/setting_kind.rb +16 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/settings.rb +79 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/status_in_mcas.rb +16 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/template_status.rb +17 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/threat_intelligence.rb +108 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/tidata_connector.rb +109 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/tidata_connector_data_types.rb +48 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/tidata_connector_data_types_indicators.rb +43 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/toggle_settings.rb +96 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/trigger_operator.rb +18 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/ueba_settings.rb +125 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/models/user_info.rb +70 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/module_definition.rb +9 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/operations.rb +219 -0
- data/lib/2020-01-01/generated/azure_mgmt_security_insights/security_insights.rb +159 -0
- data/lib/azure_mgmt_security_insights.rb +7 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/modules/securityinsights_profile_module.rb +399 -0
- data/lib/profiles/latest/securityinsights_latest_profile_client.rb +40 -0
- data/lib/profiles/latest/securityinsights_module_definition.rb +8 -0
- data/lib/version.rb +7 -0
- metadata +446 -0
@@ -0,0 +1,219 @@
|
|
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::SecurityInsights::Mgmt::V2019_01_01_preview
|
7
|
+
#
|
8
|
+
# API spec for Microsoft.SecurityInsights (Azure Security Insights) resource
|
9
|
+
# provider
|
10
|
+
#
|
11
|
+
class Operations
|
12
|
+
include MsRestAzure
|
13
|
+
|
14
|
+
#
|
15
|
+
# Creates and initializes a new instance of the Operations class.
|
16
|
+
# @param client service class for accessing basic functionality.
|
17
|
+
#
|
18
|
+
def initialize(client)
|
19
|
+
@client = client
|
20
|
+
end
|
21
|
+
|
22
|
+
# @return [SecurityInsights] reference to the SecurityInsights
|
23
|
+
attr_reader :client
|
24
|
+
|
25
|
+
#
|
26
|
+
# Lists all operations available Azure Security Insights Resource Provider.
|
27
|
+
#
|
28
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
29
|
+
# will be added to the HTTP request.
|
30
|
+
#
|
31
|
+
# @return [Array<Operation>] operation results.
|
32
|
+
#
|
33
|
+
def list(custom_headers:nil)
|
34
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
35
|
+
first_page.get_all_items
|
36
|
+
end
|
37
|
+
|
38
|
+
#
|
39
|
+
# Lists all operations available Azure Security Insights Resource Provider.
|
40
|
+
#
|
41
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
42
|
+
# will be added to the HTTP request.
|
43
|
+
#
|
44
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
45
|
+
#
|
46
|
+
def list_with_http_info(custom_headers:nil)
|
47
|
+
list_async(custom_headers:custom_headers).value!
|
48
|
+
end
|
49
|
+
|
50
|
+
#
|
51
|
+
# Lists all operations available Azure Security Insights Resource Provider.
|
52
|
+
#
|
53
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
54
|
+
# to the HTTP request.
|
55
|
+
#
|
56
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
57
|
+
#
|
58
|
+
def list_async(custom_headers:nil)
|
59
|
+
@client.api_version = '2019-01-01-preview'
|
60
|
+
|
61
|
+
|
62
|
+
request_headers = {}
|
63
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
64
|
+
|
65
|
+
# Set Headers
|
66
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
67
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
68
|
+
path_template = 'providers/Microsoft.SecurityInsights/operations'
|
69
|
+
|
70
|
+
request_url = @base_url || @client.base_url
|
71
|
+
|
72
|
+
options = {
|
73
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
74
|
+
query_params: {'api-version' => @client.api_version},
|
75
|
+
headers: request_headers.merge(custom_headers || {}),
|
76
|
+
base_url: request_url
|
77
|
+
}
|
78
|
+
promise = @client.make_request_async(:get, path_template, options)
|
79
|
+
|
80
|
+
promise = promise.then do |result|
|
81
|
+
http_response = result.response
|
82
|
+
status_code = http_response.status
|
83
|
+
response_content = http_response.body
|
84
|
+
unless status_code == 200
|
85
|
+
error_model = JSON.load(response_content)
|
86
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
87
|
+
end
|
88
|
+
|
89
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
90
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
91
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
92
|
+
# Deserialize Response
|
93
|
+
if status_code == 200
|
94
|
+
begin
|
95
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
96
|
+
result_mapper = Azure::SecurityInsights::Mgmt::V2019_01_01_preview::Models::OperationsList.mapper()
|
97
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
98
|
+
rescue Exception => e
|
99
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
result
|
104
|
+
end
|
105
|
+
|
106
|
+
promise.execute
|
107
|
+
end
|
108
|
+
|
109
|
+
#
|
110
|
+
# Lists all operations available Azure Security Insights Resource Provider.
|
111
|
+
#
|
112
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
113
|
+
# to List operation.
|
114
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
115
|
+
# will be added to the HTTP request.
|
116
|
+
#
|
117
|
+
# @return [OperationsList] operation results.
|
118
|
+
#
|
119
|
+
def list_next(next_page_link, custom_headers:nil)
|
120
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
121
|
+
response.body unless response.nil?
|
122
|
+
end
|
123
|
+
|
124
|
+
#
|
125
|
+
# Lists all operations available Azure Security Insights Resource Provider.
|
126
|
+
#
|
127
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
128
|
+
# to List operation.
|
129
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
130
|
+
# will be added to the HTTP request.
|
131
|
+
#
|
132
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
133
|
+
#
|
134
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
135
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
136
|
+
end
|
137
|
+
|
138
|
+
#
|
139
|
+
# Lists all operations available Azure Security Insights Resource Provider.
|
140
|
+
#
|
141
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
142
|
+
# to List operation.
|
143
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
144
|
+
# to the HTTP request.
|
145
|
+
#
|
146
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
147
|
+
#
|
148
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
149
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
150
|
+
|
151
|
+
|
152
|
+
request_headers = {}
|
153
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
154
|
+
|
155
|
+
# Set Headers
|
156
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
157
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
158
|
+
path_template = '{nextLink}'
|
159
|
+
|
160
|
+
request_url = @base_url || @client.base_url
|
161
|
+
|
162
|
+
options = {
|
163
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
164
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
165
|
+
headers: request_headers.merge(custom_headers || {}),
|
166
|
+
base_url: request_url
|
167
|
+
}
|
168
|
+
promise = @client.make_request_async(:get, path_template, options)
|
169
|
+
|
170
|
+
promise = promise.then do |result|
|
171
|
+
http_response = result.response
|
172
|
+
status_code = http_response.status
|
173
|
+
response_content = http_response.body
|
174
|
+
unless status_code == 200
|
175
|
+
error_model = JSON.load(response_content)
|
176
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
177
|
+
end
|
178
|
+
|
179
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
180
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
181
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
182
|
+
# Deserialize Response
|
183
|
+
if status_code == 200
|
184
|
+
begin
|
185
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
186
|
+
result_mapper = Azure::SecurityInsights::Mgmt::V2019_01_01_preview::Models::OperationsList.mapper()
|
187
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
188
|
+
rescue Exception => e
|
189
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
result
|
194
|
+
end
|
195
|
+
|
196
|
+
promise.execute
|
197
|
+
end
|
198
|
+
|
199
|
+
#
|
200
|
+
# Lists all operations available Azure Security Insights Resource Provider.
|
201
|
+
#
|
202
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
203
|
+
# will be added to the HTTP request.
|
204
|
+
#
|
205
|
+
# @return [OperationsList] which provide lazy access to pages of the response.
|
206
|
+
#
|
207
|
+
def list_as_lazy(custom_headers:nil)
|
208
|
+
response = list_async(custom_headers:custom_headers).value!
|
209
|
+
unless response.nil?
|
210
|
+
page = response.body
|
211
|
+
page.next_method = Proc.new do |next_page_link|
|
212
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
213
|
+
end
|
214
|
+
page
|
215
|
+
end
|
216
|
+
end
|
217
|
+
|
218
|
+
end
|
219
|
+
end
|
@@ -0,0 +1,487 @@
|
|
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::SecurityInsights::Mgmt::V2019_01_01_preview
|
7
|
+
#
|
8
|
+
# API spec for Microsoft.SecurityInsights (Azure Security Insights) resource
|
9
|
+
# provider
|
10
|
+
#
|
11
|
+
class ProductSettings
|
12
|
+
include MsRestAzure
|
13
|
+
|
14
|
+
#
|
15
|
+
# Creates and initializes a new instance of the ProductSettings class.
|
16
|
+
# @param client service class for accessing basic functionality.
|
17
|
+
#
|
18
|
+
def initialize(client)
|
19
|
+
@client = client
|
20
|
+
end
|
21
|
+
|
22
|
+
# @return [SecurityInsights] reference to the SecurityInsights
|
23
|
+
attr_reader :client
|
24
|
+
|
25
|
+
#
|
26
|
+
# List of all the settings
|
27
|
+
#
|
28
|
+
# @param resource_group_name [String] The name of the resource group within the
|
29
|
+
# user's subscription. The name is case insensitive.
|
30
|
+
# @param operational_insights_resource_provider [String] The namespace of
|
31
|
+
# workspaces resource provider- Microsoft.OperationalInsights.
|
32
|
+
# @param workspace_name [String] The name of the workspace.
|
33
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
34
|
+
# will be added to the HTTP request.
|
35
|
+
#
|
36
|
+
# @return [SettingList] operation results.
|
37
|
+
#
|
38
|
+
def get_all(resource_group_name, operational_insights_resource_provider, workspace_name, custom_headers:nil)
|
39
|
+
response = get_all_async(resource_group_name, operational_insights_resource_provider, workspace_name, custom_headers:custom_headers).value!
|
40
|
+
response.body unless response.nil?
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
# List of all the settings
|
45
|
+
#
|
46
|
+
# @param resource_group_name [String] The name of the resource group within the
|
47
|
+
# user's subscription. The name is case insensitive.
|
48
|
+
# @param operational_insights_resource_provider [String] The namespace of
|
49
|
+
# workspaces resource provider- Microsoft.OperationalInsights.
|
50
|
+
# @param workspace_name [String] The name of the workspace.
|
51
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
52
|
+
# will be added to the HTTP request.
|
53
|
+
#
|
54
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
55
|
+
#
|
56
|
+
def get_all_with_http_info(resource_group_name, operational_insights_resource_provider, workspace_name, custom_headers:nil)
|
57
|
+
get_all_async(resource_group_name, operational_insights_resource_provider, workspace_name, custom_headers:custom_headers).value!
|
58
|
+
end
|
59
|
+
|
60
|
+
#
|
61
|
+
# List of all the settings
|
62
|
+
#
|
63
|
+
# @param resource_group_name [String] The name of the resource group within the
|
64
|
+
# user's subscription. The name is case insensitive.
|
65
|
+
# @param operational_insights_resource_provider [String] The namespace of
|
66
|
+
# workspaces resource provider- Microsoft.OperationalInsights.
|
67
|
+
# @param workspace_name [String] The name of the workspace.
|
68
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
69
|
+
# to the HTTP request.
|
70
|
+
#
|
71
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
72
|
+
#
|
73
|
+
def get_all_async(resource_group_name, operational_insights_resource_provider, workspace_name, custom_headers:nil)
|
74
|
+
@client.api_version = '2019-01-01-preview'
|
75
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
76
|
+
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?
|
77
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
78
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
79
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
80
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
81
|
+
fail ArgumentError, 'operational_insights_resource_provider is nil' if operational_insights_resource_provider.nil?
|
82
|
+
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
83
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MaxLength': '90'" if !workspace_name.nil? && workspace_name.length > 90
|
84
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MinLength': '1'" if !workspace_name.nil? && workspace_name.length < 1
|
85
|
+
|
86
|
+
|
87
|
+
request_headers = {}
|
88
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
89
|
+
|
90
|
+
# Set Headers
|
91
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
92
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
93
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{operationalInsightsResourceProvider}/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/settings'
|
94
|
+
|
95
|
+
request_url = @base_url || @client.base_url
|
96
|
+
|
97
|
+
options = {
|
98
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
99
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'operationalInsightsResourceProvider' => operational_insights_resource_provider,'workspaceName' => workspace_name},
|
100
|
+
query_params: {'api-version' => @client.api_version},
|
101
|
+
headers: request_headers.merge(custom_headers || {}),
|
102
|
+
base_url: request_url
|
103
|
+
}
|
104
|
+
promise = @client.make_request_async(:get, path_template, options)
|
105
|
+
|
106
|
+
promise = promise.then do |result|
|
107
|
+
http_response = result.response
|
108
|
+
status_code = http_response.status
|
109
|
+
response_content = http_response.body
|
110
|
+
unless status_code == 200
|
111
|
+
error_model = JSON.load(response_content)
|
112
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
113
|
+
end
|
114
|
+
|
115
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
116
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
117
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
118
|
+
# Deserialize Response
|
119
|
+
if status_code == 200
|
120
|
+
begin
|
121
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
122
|
+
result_mapper = Azure::SecurityInsights::Mgmt::V2019_01_01_preview::Models::SettingList.mapper()
|
123
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
124
|
+
rescue Exception => e
|
125
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
result
|
130
|
+
end
|
131
|
+
|
132
|
+
promise.execute
|
133
|
+
end
|
134
|
+
|
135
|
+
#
|
136
|
+
# Gets a setting.
|
137
|
+
#
|
138
|
+
# @param resource_group_name [String] The name of the resource group within the
|
139
|
+
# user's subscription. The name is case insensitive.
|
140
|
+
# @param operational_insights_resource_provider [String] The namespace of
|
141
|
+
# workspaces resource provider- Microsoft.OperationalInsights.
|
142
|
+
# @param workspace_name [String] The name of the workspace.
|
143
|
+
# @param settings_name [String] The setting name. Supports - EyesOn,
|
144
|
+
# EntityAnalytics, Ueba
|
145
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
146
|
+
# will be added to the HTTP request.
|
147
|
+
#
|
148
|
+
# @return [Settings] operation results.
|
149
|
+
#
|
150
|
+
def get(resource_group_name, operational_insights_resource_provider, workspace_name, settings_name, custom_headers:nil)
|
151
|
+
response = get_async(resource_group_name, operational_insights_resource_provider, workspace_name, settings_name, custom_headers:custom_headers).value!
|
152
|
+
response.body unless response.nil?
|
153
|
+
end
|
154
|
+
|
155
|
+
#
|
156
|
+
# Gets a setting.
|
157
|
+
#
|
158
|
+
# @param resource_group_name [String] The name of the resource group within the
|
159
|
+
# user's subscription. The name is case insensitive.
|
160
|
+
# @param operational_insights_resource_provider [String] The namespace of
|
161
|
+
# workspaces resource provider- Microsoft.OperationalInsights.
|
162
|
+
# @param workspace_name [String] The name of the workspace.
|
163
|
+
# @param settings_name [String] The setting name. Supports - EyesOn,
|
164
|
+
# EntityAnalytics, Ueba
|
165
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
166
|
+
# will be added to the HTTP request.
|
167
|
+
#
|
168
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
169
|
+
#
|
170
|
+
def get_with_http_info(resource_group_name, operational_insights_resource_provider, workspace_name, settings_name, custom_headers:nil)
|
171
|
+
get_async(resource_group_name, operational_insights_resource_provider, workspace_name, settings_name, custom_headers:custom_headers).value!
|
172
|
+
end
|
173
|
+
|
174
|
+
#
|
175
|
+
# Gets a setting.
|
176
|
+
#
|
177
|
+
# @param resource_group_name [String] The name of the resource group within the
|
178
|
+
# user's subscription. The name is case insensitive.
|
179
|
+
# @param operational_insights_resource_provider [String] The namespace of
|
180
|
+
# workspaces resource provider- Microsoft.OperationalInsights.
|
181
|
+
# @param workspace_name [String] The name of the workspace.
|
182
|
+
# @param settings_name [String] The setting name. Supports - EyesOn,
|
183
|
+
# EntityAnalytics, Ueba
|
184
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
185
|
+
# to the HTTP request.
|
186
|
+
#
|
187
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
188
|
+
#
|
189
|
+
def get_async(resource_group_name, operational_insights_resource_provider, workspace_name, settings_name, custom_headers:nil)
|
190
|
+
@client.api_version = '2019-01-01-preview'
|
191
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
192
|
+
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?
|
193
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
194
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
195
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
196
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
197
|
+
fail ArgumentError, 'operational_insights_resource_provider is nil' if operational_insights_resource_provider.nil?
|
198
|
+
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
199
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MaxLength': '90'" if !workspace_name.nil? && workspace_name.length > 90
|
200
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MinLength': '1'" if !workspace_name.nil? && workspace_name.length < 1
|
201
|
+
fail ArgumentError, 'settings_name is nil' if settings_name.nil?
|
202
|
+
|
203
|
+
|
204
|
+
request_headers = {}
|
205
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
206
|
+
|
207
|
+
# Set Headers
|
208
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
209
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
210
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{operationalInsightsResourceProvider}/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/settings/{settingsName}'
|
211
|
+
|
212
|
+
request_url = @base_url || @client.base_url
|
213
|
+
|
214
|
+
options = {
|
215
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
216
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'operationalInsightsResourceProvider' => operational_insights_resource_provider,'workspaceName' => workspace_name,'settingsName' => settings_name},
|
217
|
+
query_params: {'api-version' => @client.api_version},
|
218
|
+
headers: request_headers.merge(custom_headers || {}),
|
219
|
+
base_url: request_url
|
220
|
+
}
|
221
|
+
promise = @client.make_request_async(:get, path_template, options)
|
222
|
+
|
223
|
+
promise = promise.then do |result|
|
224
|
+
http_response = result.response
|
225
|
+
status_code = http_response.status
|
226
|
+
response_content = http_response.body
|
227
|
+
unless status_code == 200
|
228
|
+
error_model = JSON.load(response_content)
|
229
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
230
|
+
end
|
231
|
+
|
232
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
233
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
234
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
235
|
+
# Deserialize Response
|
236
|
+
if status_code == 200
|
237
|
+
begin
|
238
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
239
|
+
result_mapper = Azure::SecurityInsights::Mgmt::V2019_01_01_preview::Models::Settings.mapper()
|
240
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
241
|
+
rescue Exception => e
|
242
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
243
|
+
end
|
244
|
+
end
|
245
|
+
|
246
|
+
result
|
247
|
+
end
|
248
|
+
|
249
|
+
promise.execute
|
250
|
+
end
|
251
|
+
|
252
|
+
#
|
253
|
+
# Delete setting of the product.
|
254
|
+
#
|
255
|
+
# @param resource_group_name [String] The name of the resource group within the
|
256
|
+
# user's subscription. The name is case insensitive.
|
257
|
+
# @param operational_insights_resource_provider [String] The namespace of
|
258
|
+
# workspaces resource provider- Microsoft.OperationalInsights.
|
259
|
+
# @param workspace_name [String] The name of the workspace.
|
260
|
+
# @param settings_name [String] The setting name. Supports - EyesOn,
|
261
|
+
# EntityAnalytics, Ueba
|
262
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
263
|
+
# will be added to the HTTP request.
|
264
|
+
#
|
265
|
+
#
|
266
|
+
def delete(resource_group_name, operational_insights_resource_provider, workspace_name, settings_name, custom_headers:nil)
|
267
|
+
response = delete_async(resource_group_name, operational_insights_resource_provider, workspace_name, settings_name, custom_headers:custom_headers).value!
|
268
|
+
nil
|
269
|
+
end
|
270
|
+
|
271
|
+
#
|
272
|
+
# Delete setting of the product.
|
273
|
+
#
|
274
|
+
# @param resource_group_name [String] The name of the resource group within the
|
275
|
+
# user's subscription. The name is case insensitive.
|
276
|
+
# @param operational_insights_resource_provider [String] The namespace of
|
277
|
+
# workspaces resource provider- Microsoft.OperationalInsights.
|
278
|
+
# @param workspace_name [String] The name of the workspace.
|
279
|
+
# @param settings_name [String] The setting name. Supports - EyesOn,
|
280
|
+
# EntityAnalytics, Ueba
|
281
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
282
|
+
# will be added to the HTTP request.
|
283
|
+
#
|
284
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
285
|
+
#
|
286
|
+
def delete_with_http_info(resource_group_name, operational_insights_resource_provider, workspace_name, settings_name, custom_headers:nil)
|
287
|
+
delete_async(resource_group_name, operational_insights_resource_provider, workspace_name, settings_name, custom_headers:custom_headers).value!
|
288
|
+
end
|
289
|
+
|
290
|
+
#
|
291
|
+
# Delete setting of the product.
|
292
|
+
#
|
293
|
+
# @param resource_group_name [String] The name of the resource group within the
|
294
|
+
# user's subscription. The name is case insensitive.
|
295
|
+
# @param operational_insights_resource_provider [String] The namespace of
|
296
|
+
# workspaces resource provider- Microsoft.OperationalInsights.
|
297
|
+
# @param workspace_name [String] The name of the workspace.
|
298
|
+
# @param settings_name [String] The setting name. Supports - EyesOn,
|
299
|
+
# EntityAnalytics, Ueba
|
300
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
301
|
+
# to the HTTP request.
|
302
|
+
#
|
303
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
304
|
+
#
|
305
|
+
def delete_async(resource_group_name, operational_insights_resource_provider, workspace_name, settings_name, custom_headers:nil)
|
306
|
+
@client.api_version = '2019-01-01-preview'
|
307
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
308
|
+
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?
|
309
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
310
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
311
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
312
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
313
|
+
fail ArgumentError, 'operational_insights_resource_provider is nil' if operational_insights_resource_provider.nil?
|
314
|
+
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
315
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MaxLength': '90'" if !workspace_name.nil? && workspace_name.length > 90
|
316
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MinLength': '1'" if !workspace_name.nil? && workspace_name.length < 1
|
317
|
+
fail ArgumentError, 'settings_name is nil' if settings_name.nil?
|
318
|
+
|
319
|
+
|
320
|
+
request_headers = {}
|
321
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
322
|
+
|
323
|
+
# Set Headers
|
324
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
325
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
326
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{operationalInsightsResourceProvider}/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/settings/{settingsName}'
|
327
|
+
|
328
|
+
request_url = @base_url || @client.base_url
|
329
|
+
|
330
|
+
options = {
|
331
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
332
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'operationalInsightsResourceProvider' => operational_insights_resource_provider,'workspaceName' => workspace_name,'settingsName' => settings_name},
|
333
|
+
query_params: {'api-version' => @client.api_version},
|
334
|
+
headers: request_headers.merge(custom_headers || {}),
|
335
|
+
base_url: request_url
|
336
|
+
}
|
337
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
338
|
+
|
339
|
+
promise = promise.then do |result|
|
340
|
+
http_response = result.response
|
341
|
+
status_code = http_response.status
|
342
|
+
response_content = http_response.body
|
343
|
+
unless status_code == 200 || status_code == 204
|
344
|
+
error_model = JSON.load(response_content)
|
345
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
346
|
+
end
|
347
|
+
|
348
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
349
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
350
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
351
|
+
|
352
|
+
result
|
353
|
+
end
|
354
|
+
|
355
|
+
promise.execute
|
356
|
+
end
|
357
|
+
|
358
|
+
#
|
359
|
+
# Updates setting.
|
360
|
+
#
|
361
|
+
# @param resource_group_name [String] The name of the resource group within the
|
362
|
+
# user's subscription. The name is case insensitive.
|
363
|
+
# @param operational_insights_resource_provider [String] The namespace of
|
364
|
+
# workspaces resource provider- Microsoft.OperationalInsights.
|
365
|
+
# @param workspace_name [String] The name of the workspace.
|
366
|
+
# @param settings_name [String] The setting name. Supports - EyesOn,
|
367
|
+
# EntityAnalytics, Ueba
|
368
|
+
# @param settings [Settings] The setting
|
369
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
370
|
+
# will be added to the HTTP request.
|
371
|
+
#
|
372
|
+
# @return [Settings] operation results.
|
373
|
+
#
|
374
|
+
def update(resource_group_name, operational_insights_resource_provider, workspace_name, settings_name, settings, custom_headers:nil)
|
375
|
+
response = update_async(resource_group_name, operational_insights_resource_provider, workspace_name, settings_name, settings, custom_headers:custom_headers).value!
|
376
|
+
response.body unless response.nil?
|
377
|
+
end
|
378
|
+
|
379
|
+
#
|
380
|
+
# Updates setting.
|
381
|
+
#
|
382
|
+
# @param resource_group_name [String] The name of the resource group within the
|
383
|
+
# user's subscription. The name is case insensitive.
|
384
|
+
# @param operational_insights_resource_provider [String] The namespace of
|
385
|
+
# workspaces resource provider- Microsoft.OperationalInsights.
|
386
|
+
# @param workspace_name [String] The name of the workspace.
|
387
|
+
# @param settings_name [String] The setting name. Supports - EyesOn,
|
388
|
+
# EntityAnalytics, Ueba
|
389
|
+
# @param settings [Settings] The setting
|
390
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
391
|
+
# will be added to the HTTP request.
|
392
|
+
#
|
393
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
394
|
+
#
|
395
|
+
def update_with_http_info(resource_group_name, operational_insights_resource_provider, workspace_name, settings_name, settings, custom_headers:nil)
|
396
|
+
update_async(resource_group_name, operational_insights_resource_provider, workspace_name, settings_name, settings, custom_headers:custom_headers).value!
|
397
|
+
end
|
398
|
+
|
399
|
+
#
|
400
|
+
# Updates setting.
|
401
|
+
#
|
402
|
+
# @param resource_group_name [String] The name of the resource group within the
|
403
|
+
# user's subscription. The name is case insensitive.
|
404
|
+
# @param operational_insights_resource_provider [String] The namespace of
|
405
|
+
# workspaces resource provider- Microsoft.OperationalInsights.
|
406
|
+
# @param workspace_name [String] The name of the workspace.
|
407
|
+
# @param settings_name [String] The setting name. Supports - EyesOn,
|
408
|
+
# EntityAnalytics, Ueba
|
409
|
+
# @param settings [Settings] The setting
|
410
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
411
|
+
# to the HTTP request.
|
412
|
+
#
|
413
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
414
|
+
#
|
415
|
+
def update_async(resource_group_name, operational_insights_resource_provider, workspace_name, settings_name, settings, custom_headers:nil)
|
416
|
+
@client.api_version = '2019-01-01-preview'
|
417
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
418
|
+
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?
|
419
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
420
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
421
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
422
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
423
|
+
fail ArgumentError, 'operational_insights_resource_provider is nil' if operational_insights_resource_provider.nil?
|
424
|
+
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
425
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MaxLength': '90'" if !workspace_name.nil? && workspace_name.length > 90
|
426
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MinLength': '1'" if !workspace_name.nil? && workspace_name.length < 1
|
427
|
+
fail ArgumentError, 'settings_name is nil' if settings_name.nil?
|
428
|
+
fail ArgumentError, 'settings is nil' if settings.nil?
|
429
|
+
|
430
|
+
|
431
|
+
request_headers = {}
|
432
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
433
|
+
|
434
|
+
# Set Headers
|
435
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
436
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
437
|
+
|
438
|
+
# Serialize Request
|
439
|
+
request_mapper = Azure::SecurityInsights::Mgmt::V2019_01_01_preview::Models::Settings.mapper()
|
440
|
+
request_content = @client.serialize(request_mapper, settings)
|
441
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
442
|
+
|
443
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{operationalInsightsResourceProvider}/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/settings/{settingsName}'
|
444
|
+
|
445
|
+
request_url = @base_url || @client.base_url
|
446
|
+
|
447
|
+
options = {
|
448
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
449
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'operationalInsightsResourceProvider' => operational_insights_resource_provider,'workspaceName' => workspace_name,'settingsName' => settings_name},
|
450
|
+
query_params: {'api-version' => @client.api_version},
|
451
|
+
body: request_content,
|
452
|
+
headers: request_headers.merge(custom_headers || {}),
|
453
|
+
base_url: request_url
|
454
|
+
}
|
455
|
+
promise = @client.make_request_async(:put, path_template, options)
|
456
|
+
|
457
|
+
promise = promise.then do |result|
|
458
|
+
http_response = result.response
|
459
|
+
status_code = http_response.status
|
460
|
+
response_content = http_response.body
|
461
|
+
unless status_code == 200
|
462
|
+
error_model = JSON.load(response_content)
|
463
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
464
|
+
end
|
465
|
+
|
466
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
467
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
468
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
469
|
+
# Deserialize Response
|
470
|
+
if status_code == 200
|
471
|
+
begin
|
472
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
473
|
+
result_mapper = Azure::SecurityInsights::Mgmt::V2019_01_01_preview::Models::Settings.mapper()
|
474
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
475
|
+
rescue Exception => e
|
476
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
477
|
+
end
|
478
|
+
end
|
479
|
+
|
480
|
+
result
|
481
|
+
end
|
482
|
+
|
483
|
+
promise.execute
|
484
|
+
end
|
485
|
+
|
486
|
+
end
|
487
|
+
end
|