azure_mgmt_security_insights 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,155 @@
|
|
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 CaseComments
|
12
|
+
include MsRestAzure
|
13
|
+
|
14
|
+
#
|
15
|
+
# Creates and initializes a new instance of the CaseComments 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
|
+
# Creates the case comment.
|
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 case_id [String] Case ID
|
34
|
+
# @param case_comment_id [String] Case comment ID
|
35
|
+
# @param case_comment [CaseComment] The case comment
|
36
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
37
|
+
# will be added to the HTTP request.
|
38
|
+
#
|
39
|
+
# @return [CaseComment] operation results.
|
40
|
+
#
|
41
|
+
def create_comment(resource_group_name, operational_insights_resource_provider, workspace_name, case_id, case_comment_id, case_comment, custom_headers:nil)
|
42
|
+
response = create_comment_async(resource_group_name, operational_insights_resource_provider, workspace_name, case_id, case_comment_id, case_comment, custom_headers:custom_headers).value!
|
43
|
+
response.body unless response.nil?
|
44
|
+
end
|
45
|
+
|
46
|
+
#
|
47
|
+
# Creates the case comment.
|
48
|
+
#
|
49
|
+
# @param resource_group_name [String] The name of the resource group within the
|
50
|
+
# user's subscription. The name is case insensitive.
|
51
|
+
# @param operational_insights_resource_provider [String] The namespace of
|
52
|
+
# workspaces resource provider- Microsoft.OperationalInsights.
|
53
|
+
# @param workspace_name [String] The name of the workspace.
|
54
|
+
# @param case_id [String] Case ID
|
55
|
+
# @param case_comment_id [String] Case comment ID
|
56
|
+
# @param case_comment [CaseComment] The case comment
|
57
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
58
|
+
# will be added to the HTTP request.
|
59
|
+
#
|
60
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
61
|
+
#
|
62
|
+
def create_comment_with_http_info(resource_group_name, operational_insights_resource_provider, workspace_name, case_id, case_comment_id, case_comment, custom_headers:nil)
|
63
|
+
create_comment_async(resource_group_name, operational_insights_resource_provider, workspace_name, case_id, case_comment_id, case_comment, custom_headers:custom_headers).value!
|
64
|
+
end
|
65
|
+
|
66
|
+
#
|
67
|
+
# Creates the case comment.
|
68
|
+
#
|
69
|
+
# @param resource_group_name [String] The name of the resource group within the
|
70
|
+
# user's subscription. The name is case insensitive.
|
71
|
+
# @param operational_insights_resource_provider [String] The namespace of
|
72
|
+
# workspaces resource provider- Microsoft.OperationalInsights.
|
73
|
+
# @param workspace_name [String] The name of the workspace.
|
74
|
+
# @param case_id [String] Case ID
|
75
|
+
# @param case_comment_id [String] Case comment ID
|
76
|
+
# @param case_comment [CaseComment] The case comment
|
77
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
78
|
+
# to the HTTP request.
|
79
|
+
#
|
80
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
81
|
+
#
|
82
|
+
def create_comment_async(resource_group_name, operational_insights_resource_provider, workspace_name, case_id, case_comment_id, case_comment, custom_headers:nil)
|
83
|
+
@client.api_version = '2019-01-01-preview'
|
84
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
85
|
+
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?
|
86
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
87
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
88
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
89
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
90
|
+
fail ArgumentError, 'operational_insights_resource_provider is nil' if operational_insights_resource_provider.nil?
|
91
|
+
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
92
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MaxLength': '90'" if !workspace_name.nil? && workspace_name.length > 90
|
93
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MinLength': '1'" if !workspace_name.nil? && workspace_name.length < 1
|
94
|
+
fail ArgumentError, 'case_id is nil' if case_id.nil?
|
95
|
+
fail ArgumentError, 'case_comment_id is nil' if case_comment_id.nil?
|
96
|
+
fail ArgumentError, 'case_comment is nil' if case_comment.nil?
|
97
|
+
|
98
|
+
|
99
|
+
request_headers = {}
|
100
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
101
|
+
|
102
|
+
# Set Headers
|
103
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
104
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
105
|
+
|
106
|
+
# Serialize Request
|
107
|
+
request_mapper = Azure::SecurityInsights::Mgmt::V2019_01_01_preview::Models::CaseComment.mapper()
|
108
|
+
request_content = @client.serialize(request_mapper, case_comment)
|
109
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
110
|
+
|
111
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{operationalInsightsResourceProvider}/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/cases/{caseId}/comments/{caseCommentId}'
|
112
|
+
|
113
|
+
request_url = @base_url || @client.base_url
|
114
|
+
|
115
|
+
options = {
|
116
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
117
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'operationalInsightsResourceProvider' => operational_insights_resource_provider,'workspaceName' => workspace_name,'caseId' => case_id,'caseCommentId' => case_comment_id},
|
118
|
+
query_params: {'api-version' => @client.api_version},
|
119
|
+
body: request_content,
|
120
|
+
headers: request_headers.merge(custom_headers || {}),
|
121
|
+
base_url: request_url
|
122
|
+
}
|
123
|
+
promise = @client.make_request_async(:put, path_template, options)
|
124
|
+
|
125
|
+
promise = promise.then do |result|
|
126
|
+
http_response = result.response
|
127
|
+
status_code = http_response.status
|
128
|
+
response_content = http_response.body
|
129
|
+
unless status_code == 201
|
130
|
+
error_model = JSON.load(response_content)
|
131
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
132
|
+
end
|
133
|
+
|
134
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
135
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
136
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
137
|
+
# Deserialize Response
|
138
|
+
if status_code == 201
|
139
|
+
begin
|
140
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
141
|
+
result_mapper = Azure::SecurityInsights::Mgmt::V2019_01_01_preview::Models::CaseComment.mapper()
|
142
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
143
|
+
rescue Exception => e
|
144
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
148
|
+
result
|
149
|
+
end
|
150
|
+
|
151
|
+
promise.execute
|
152
|
+
end
|
153
|
+
|
154
|
+
end
|
155
|
+
end
|
@@ -0,0 +1,652 @@
|
|
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 CaseRelations
|
12
|
+
include MsRestAzure
|
13
|
+
|
14
|
+
#
|
15
|
+
# Creates and initializes a new instance of the CaseRelations 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
|
+
# Gets all case relations.
|
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 case_id [String] Case ID
|
34
|
+
# @param filter [String] Filters the results, based on a Boolean condition.
|
35
|
+
# Optional.
|
36
|
+
# @param orderby [String] Sorts the results. Optional.
|
37
|
+
# @param top [Integer] Returns only the first n results. Optional.
|
38
|
+
# @param skip_token [String] Skiptoken is only used if a previous operation
|
39
|
+
# returned a partial result. If a previous response contains a nextLink
|
40
|
+
# element, the value of the nextLink element will include a skiptoken parameter
|
41
|
+
# that specifies a starting point to use for subsequent calls. Optional.
|
42
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
43
|
+
# will be added to the HTTP request.
|
44
|
+
#
|
45
|
+
# @return [Array<CaseRelation>] operation results.
|
46
|
+
#
|
47
|
+
def list(resource_group_name, operational_insights_resource_provider, workspace_name, case_id, filter:nil, orderby:nil, top:nil, skip_token:nil, custom_headers:nil)
|
48
|
+
first_page = list_as_lazy(resource_group_name, operational_insights_resource_provider, workspace_name, case_id, filter:filter, orderby:orderby, top:top, skip_token:skip_token, custom_headers:custom_headers)
|
49
|
+
first_page.get_all_items
|
50
|
+
end
|
51
|
+
|
52
|
+
#
|
53
|
+
# Gets all case relations.
|
54
|
+
#
|
55
|
+
# @param resource_group_name [String] The name of the resource group within the
|
56
|
+
# user's subscription. The name is case insensitive.
|
57
|
+
# @param operational_insights_resource_provider [String] The namespace of
|
58
|
+
# workspaces resource provider- Microsoft.OperationalInsights.
|
59
|
+
# @param workspace_name [String] The name of the workspace.
|
60
|
+
# @param case_id [String] Case ID
|
61
|
+
# @param filter [String] Filters the results, based on a Boolean condition.
|
62
|
+
# Optional.
|
63
|
+
# @param orderby [String] Sorts the results. Optional.
|
64
|
+
# @param top [Integer] Returns only the first n results. Optional.
|
65
|
+
# @param skip_token [String] Skiptoken is only used if a previous operation
|
66
|
+
# returned a partial result. If a previous response contains a nextLink
|
67
|
+
# element, the value of the nextLink element will include a skiptoken parameter
|
68
|
+
# that specifies a starting point to use for subsequent calls. Optional.
|
69
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
70
|
+
# will be added to the HTTP request.
|
71
|
+
#
|
72
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
73
|
+
#
|
74
|
+
def list_with_http_info(resource_group_name, operational_insights_resource_provider, workspace_name, case_id, filter:nil, orderby:nil, top:nil, skip_token:nil, custom_headers:nil)
|
75
|
+
list_async(resource_group_name, operational_insights_resource_provider, workspace_name, case_id, filter:filter, orderby:orderby, top:top, skip_token:skip_token, custom_headers:custom_headers).value!
|
76
|
+
end
|
77
|
+
|
78
|
+
#
|
79
|
+
# Gets all case relations.
|
80
|
+
#
|
81
|
+
# @param resource_group_name [String] The name of the resource group within the
|
82
|
+
# user's subscription. The name is case insensitive.
|
83
|
+
# @param operational_insights_resource_provider [String] The namespace of
|
84
|
+
# workspaces resource provider- Microsoft.OperationalInsights.
|
85
|
+
# @param workspace_name [String] The name of the workspace.
|
86
|
+
# @param case_id [String] Case ID
|
87
|
+
# @param filter [String] Filters the results, based on a Boolean condition.
|
88
|
+
# Optional.
|
89
|
+
# @param orderby [String] Sorts the results. Optional.
|
90
|
+
# @param top [Integer] Returns only the first n results. Optional.
|
91
|
+
# @param skip_token [String] Skiptoken is only used if a previous operation
|
92
|
+
# returned a partial result. If a previous response contains a nextLink
|
93
|
+
# element, the value of the nextLink element will include a skiptoken parameter
|
94
|
+
# that specifies a starting point to use for subsequent calls. Optional.
|
95
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
96
|
+
# to the HTTP request.
|
97
|
+
#
|
98
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
99
|
+
#
|
100
|
+
def list_async(resource_group_name, operational_insights_resource_provider, workspace_name, case_id, filter:nil, orderby:nil, top:nil, skip_token:nil, custom_headers:nil)
|
101
|
+
@client.api_version = '2019-01-01-preview'
|
102
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
103
|
+
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?
|
104
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
105
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
106
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
107
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
108
|
+
fail ArgumentError, 'operational_insights_resource_provider is nil' if operational_insights_resource_provider.nil?
|
109
|
+
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
110
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MaxLength': '90'" if !workspace_name.nil? && workspace_name.length > 90
|
111
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MinLength': '1'" if !workspace_name.nil? && workspace_name.length < 1
|
112
|
+
fail ArgumentError, 'case_id is nil' if case_id.nil?
|
113
|
+
|
114
|
+
|
115
|
+
request_headers = {}
|
116
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
117
|
+
|
118
|
+
# Set Headers
|
119
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
120
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
121
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{operationalInsightsResourceProvider}/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/cases/{caseId}/relations'
|
122
|
+
|
123
|
+
request_url = @base_url || @client.base_url
|
124
|
+
|
125
|
+
options = {
|
126
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
127
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'operationalInsightsResourceProvider' => operational_insights_resource_provider,'workspaceName' => workspace_name,'caseId' => case_id},
|
128
|
+
query_params: {'api-version' => @client.api_version,'$filter' => filter,'$orderby' => orderby,'$top' => top,'$skipToken' => skip_token},
|
129
|
+
headers: request_headers.merge(custom_headers || {}),
|
130
|
+
base_url: request_url
|
131
|
+
}
|
132
|
+
promise = @client.make_request_async(:get, path_template, options)
|
133
|
+
|
134
|
+
promise = promise.then do |result|
|
135
|
+
http_response = result.response
|
136
|
+
status_code = http_response.status
|
137
|
+
response_content = http_response.body
|
138
|
+
unless status_code == 200
|
139
|
+
error_model = JSON.load(response_content)
|
140
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
141
|
+
end
|
142
|
+
|
143
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
144
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
145
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
146
|
+
# Deserialize Response
|
147
|
+
if status_code == 200
|
148
|
+
begin
|
149
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
150
|
+
result_mapper = Azure::SecurityInsights::Mgmt::V2019_01_01_preview::Models::CaseRelationList.mapper()
|
151
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
152
|
+
rescue Exception => e
|
153
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
157
|
+
result
|
158
|
+
end
|
159
|
+
|
160
|
+
promise.execute
|
161
|
+
end
|
162
|
+
|
163
|
+
#
|
164
|
+
# Gets a case relation.
|
165
|
+
#
|
166
|
+
# @param resource_group_name [String] The name of the resource group within the
|
167
|
+
# user's subscription. The name is case insensitive.
|
168
|
+
# @param operational_insights_resource_provider [String] The namespace of
|
169
|
+
# workspaces resource provider- Microsoft.OperationalInsights.
|
170
|
+
# @param workspace_name [String] The name of the workspace.
|
171
|
+
# @param case_id [String] Case ID
|
172
|
+
# @param relation_name [String] Relation Name
|
173
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
174
|
+
# will be added to the HTTP request.
|
175
|
+
#
|
176
|
+
# @return [CaseRelation] operation results.
|
177
|
+
#
|
178
|
+
def get_relation(resource_group_name, operational_insights_resource_provider, workspace_name, case_id, relation_name, custom_headers:nil)
|
179
|
+
response = get_relation_async(resource_group_name, operational_insights_resource_provider, workspace_name, case_id, relation_name, custom_headers:custom_headers).value!
|
180
|
+
response.body unless response.nil?
|
181
|
+
end
|
182
|
+
|
183
|
+
#
|
184
|
+
# Gets a case relation.
|
185
|
+
#
|
186
|
+
# @param resource_group_name [String] The name of the resource group within the
|
187
|
+
# user's subscription. The name is case insensitive.
|
188
|
+
# @param operational_insights_resource_provider [String] The namespace of
|
189
|
+
# workspaces resource provider- Microsoft.OperationalInsights.
|
190
|
+
# @param workspace_name [String] The name of the workspace.
|
191
|
+
# @param case_id [String] Case ID
|
192
|
+
# @param relation_name [String] Relation Name
|
193
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
194
|
+
# will be added to the HTTP request.
|
195
|
+
#
|
196
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
197
|
+
#
|
198
|
+
def get_relation_with_http_info(resource_group_name, operational_insights_resource_provider, workspace_name, case_id, relation_name, custom_headers:nil)
|
199
|
+
get_relation_async(resource_group_name, operational_insights_resource_provider, workspace_name, case_id, relation_name, custom_headers:custom_headers).value!
|
200
|
+
end
|
201
|
+
|
202
|
+
#
|
203
|
+
# Gets a case relation.
|
204
|
+
#
|
205
|
+
# @param resource_group_name [String] The name of the resource group within the
|
206
|
+
# user's subscription. The name is case insensitive.
|
207
|
+
# @param operational_insights_resource_provider [String] The namespace of
|
208
|
+
# workspaces resource provider- Microsoft.OperationalInsights.
|
209
|
+
# @param workspace_name [String] The name of the workspace.
|
210
|
+
# @param case_id [String] Case ID
|
211
|
+
# @param relation_name [String] Relation Name
|
212
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
213
|
+
# to the HTTP request.
|
214
|
+
#
|
215
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
216
|
+
#
|
217
|
+
def get_relation_async(resource_group_name, operational_insights_resource_provider, workspace_name, case_id, relation_name, custom_headers:nil)
|
218
|
+
@client.api_version = '2019-01-01-preview'
|
219
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
220
|
+
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?
|
221
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
222
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
223
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
224
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
225
|
+
fail ArgumentError, 'operational_insights_resource_provider is nil' if operational_insights_resource_provider.nil?
|
226
|
+
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
227
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MaxLength': '90'" if !workspace_name.nil? && workspace_name.length > 90
|
228
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MinLength': '1'" if !workspace_name.nil? && workspace_name.length < 1
|
229
|
+
fail ArgumentError, 'case_id is nil' if case_id.nil?
|
230
|
+
fail ArgumentError, 'relation_name is nil' if relation_name.nil?
|
231
|
+
|
232
|
+
|
233
|
+
request_headers = {}
|
234
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
235
|
+
|
236
|
+
# Set Headers
|
237
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
238
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
239
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{operationalInsightsResourceProvider}/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/cases/{caseId}/relations/{relationName}'
|
240
|
+
|
241
|
+
request_url = @base_url || @client.base_url
|
242
|
+
|
243
|
+
options = {
|
244
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
245
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'operationalInsightsResourceProvider' => operational_insights_resource_provider,'workspaceName' => workspace_name,'caseId' => case_id,'relationName' => relation_name},
|
246
|
+
query_params: {'api-version' => @client.api_version},
|
247
|
+
headers: request_headers.merge(custom_headers || {}),
|
248
|
+
base_url: request_url
|
249
|
+
}
|
250
|
+
promise = @client.make_request_async(:get, path_template, options)
|
251
|
+
|
252
|
+
promise = promise.then do |result|
|
253
|
+
http_response = result.response
|
254
|
+
status_code = http_response.status
|
255
|
+
response_content = http_response.body
|
256
|
+
unless status_code == 200
|
257
|
+
error_model = JSON.load(response_content)
|
258
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
259
|
+
end
|
260
|
+
|
261
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
262
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
263
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
264
|
+
# Deserialize Response
|
265
|
+
if status_code == 200
|
266
|
+
begin
|
267
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
268
|
+
result_mapper = Azure::SecurityInsights::Mgmt::V2019_01_01_preview::Models::CaseRelation.mapper()
|
269
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
270
|
+
rescue Exception => e
|
271
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
272
|
+
end
|
273
|
+
end
|
274
|
+
|
275
|
+
result
|
276
|
+
end
|
277
|
+
|
278
|
+
promise.execute
|
279
|
+
end
|
280
|
+
|
281
|
+
#
|
282
|
+
# Creates or updates the case relation.
|
283
|
+
#
|
284
|
+
# @param resource_group_name [String] The name of the resource group within the
|
285
|
+
# user's subscription. The name is case insensitive.
|
286
|
+
# @param operational_insights_resource_provider [String] The namespace of
|
287
|
+
# workspaces resource provider- Microsoft.OperationalInsights.
|
288
|
+
# @param workspace_name [String] The name of the workspace.
|
289
|
+
# @param case_id [String] Case ID
|
290
|
+
# @param relation_name [String] Relation Name
|
291
|
+
# @param relation_input_model [RelationsModelInput] The relation input model
|
292
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
293
|
+
# will be added to the HTTP request.
|
294
|
+
#
|
295
|
+
# @return [CaseRelation] operation results.
|
296
|
+
#
|
297
|
+
def create_or_update_relation(resource_group_name, operational_insights_resource_provider, workspace_name, case_id, relation_name, relation_input_model, custom_headers:nil)
|
298
|
+
response = create_or_update_relation_async(resource_group_name, operational_insights_resource_provider, workspace_name, case_id, relation_name, relation_input_model, custom_headers:custom_headers).value!
|
299
|
+
response.body unless response.nil?
|
300
|
+
end
|
301
|
+
|
302
|
+
#
|
303
|
+
# Creates or updates the case relation.
|
304
|
+
#
|
305
|
+
# @param resource_group_name [String] The name of the resource group within the
|
306
|
+
# user's subscription. The name is case insensitive.
|
307
|
+
# @param operational_insights_resource_provider [String] The namespace of
|
308
|
+
# workspaces resource provider- Microsoft.OperationalInsights.
|
309
|
+
# @param workspace_name [String] The name of the workspace.
|
310
|
+
# @param case_id [String] Case ID
|
311
|
+
# @param relation_name [String] Relation Name
|
312
|
+
# @param relation_input_model [RelationsModelInput] The relation input model
|
313
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
314
|
+
# will be added to the HTTP request.
|
315
|
+
#
|
316
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
317
|
+
#
|
318
|
+
def create_or_update_relation_with_http_info(resource_group_name, operational_insights_resource_provider, workspace_name, case_id, relation_name, relation_input_model, custom_headers:nil)
|
319
|
+
create_or_update_relation_async(resource_group_name, operational_insights_resource_provider, workspace_name, case_id, relation_name, relation_input_model, custom_headers:custom_headers).value!
|
320
|
+
end
|
321
|
+
|
322
|
+
#
|
323
|
+
# Creates or updates the case relation.
|
324
|
+
#
|
325
|
+
# @param resource_group_name [String] The name of the resource group within the
|
326
|
+
# user's subscription. The name is case insensitive.
|
327
|
+
# @param operational_insights_resource_provider [String] The namespace of
|
328
|
+
# workspaces resource provider- Microsoft.OperationalInsights.
|
329
|
+
# @param workspace_name [String] The name of the workspace.
|
330
|
+
# @param case_id [String] Case ID
|
331
|
+
# @param relation_name [String] Relation Name
|
332
|
+
# @param relation_input_model [RelationsModelInput] The relation input model
|
333
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
334
|
+
# to the HTTP request.
|
335
|
+
#
|
336
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
337
|
+
#
|
338
|
+
def create_or_update_relation_async(resource_group_name, operational_insights_resource_provider, workspace_name, case_id, relation_name, relation_input_model, custom_headers:nil)
|
339
|
+
@client.api_version = '2019-01-01-preview'
|
340
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
341
|
+
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?
|
342
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
343
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
344
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
345
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
346
|
+
fail ArgumentError, 'operational_insights_resource_provider is nil' if operational_insights_resource_provider.nil?
|
347
|
+
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
348
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MaxLength': '90'" if !workspace_name.nil? && workspace_name.length > 90
|
349
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MinLength': '1'" if !workspace_name.nil? && workspace_name.length < 1
|
350
|
+
fail ArgumentError, 'case_id is nil' if case_id.nil?
|
351
|
+
fail ArgumentError, 'relation_name is nil' if relation_name.nil?
|
352
|
+
fail ArgumentError, 'relation_input_model is nil' if relation_input_model.nil?
|
353
|
+
|
354
|
+
|
355
|
+
request_headers = {}
|
356
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
357
|
+
|
358
|
+
# Set Headers
|
359
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
360
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
361
|
+
|
362
|
+
# Serialize Request
|
363
|
+
request_mapper = Azure::SecurityInsights::Mgmt::V2019_01_01_preview::Models::RelationsModelInput.mapper()
|
364
|
+
request_content = @client.serialize(request_mapper, relation_input_model)
|
365
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
366
|
+
|
367
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{operationalInsightsResourceProvider}/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/cases/{caseId}/relations/{relationName}'
|
368
|
+
|
369
|
+
request_url = @base_url || @client.base_url
|
370
|
+
|
371
|
+
options = {
|
372
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
373
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'operationalInsightsResourceProvider' => operational_insights_resource_provider,'workspaceName' => workspace_name,'caseId' => case_id,'relationName' => relation_name},
|
374
|
+
query_params: {'api-version' => @client.api_version},
|
375
|
+
body: request_content,
|
376
|
+
headers: request_headers.merge(custom_headers || {}),
|
377
|
+
base_url: request_url
|
378
|
+
}
|
379
|
+
promise = @client.make_request_async(:put, path_template, options)
|
380
|
+
|
381
|
+
promise = promise.then do |result|
|
382
|
+
http_response = result.response
|
383
|
+
status_code = http_response.status
|
384
|
+
response_content = http_response.body
|
385
|
+
unless status_code == 200 || status_code == 201
|
386
|
+
error_model = JSON.load(response_content)
|
387
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
388
|
+
end
|
389
|
+
|
390
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
391
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
392
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
393
|
+
# Deserialize Response
|
394
|
+
if status_code == 200
|
395
|
+
begin
|
396
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
397
|
+
result_mapper = Azure::SecurityInsights::Mgmt::V2019_01_01_preview::Models::CaseRelation.mapper()
|
398
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
399
|
+
rescue Exception => e
|
400
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
401
|
+
end
|
402
|
+
end
|
403
|
+
# Deserialize Response
|
404
|
+
if status_code == 201
|
405
|
+
begin
|
406
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
407
|
+
result_mapper = Azure::SecurityInsights::Mgmt::V2019_01_01_preview::Models::CaseRelation.mapper()
|
408
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
409
|
+
rescue Exception => e
|
410
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
411
|
+
end
|
412
|
+
end
|
413
|
+
|
414
|
+
result
|
415
|
+
end
|
416
|
+
|
417
|
+
promise.execute
|
418
|
+
end
|
419
|
+
|
420
|
+
#
|
421
|
+
# Delete the case relation.
|
422
|
+
#
|
423
|
+
# @param resource_group_name [String] The name of the resource group within the
|
424
|
+
# user's subscription. The name is case insensitive.
|
425
|
+
# @param operational_insights_resource_provider [String] The namespace of
|
426
|
+
# workspaces resource provider- Microsoft.OperationalInsights.
|
427
|
+
# @param workspace_name [String] The name of the workspace.
|
428
|
+
# @param case_id [String] Case ID
|
429
|
+
# @param relation_name [String] Relation Name
|
430
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
431
|
+
# will be added to the HTTP request.
|
432
|
+
#
|
433
|
+
#
|
434
|
+
def delete_relation(resource_group_name, operational_insights_resource_provider, workspace_name, case_id, relation_name, custom_headers:nil)
|
435
|
+
response = delete_relation_async(resource_group_name, operational_insights_resource_provider, workspace_name, case_id, relation_name, custom_headers:custom_headers).value!
|
436
|
+
nil
|
437
|
+
end
|
438
|
+
|
439
|
+
#
|
440
|
+
# Delete the case relation.
|
441
|
+
#
|
442
|
+
# @param resource_group_name [String] The name of the resource group within the
|
443
|
+
# user's subscription. The name is case insensitive.
|
444
|
+
# @param operational_insights_resource_provider [String] The namespace of
|
445
|
+
# workspaces resource provider- Microsoft.OperationalInsights.
|
446
|
+
# @param workspace_name [String] The name of the workspace.
|
447
|
+
# @param case_id [String] Case ID
|
448
|
+
# @param relation_name [String] Relation Name
|
449
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
450
|
+
# will be added to the HTTP request.
|
451
|
+
#
|
452
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
453
|
+
#
|
454
|
+
def delete_relation_with_http_info(resource_group_name, operational_insights_resource_provider, workspace_name, case_id, relation_name, custom_headers:nil)
|
455
|
+
delete_relation_async(resource_group_name, operational_insights_resource_provider, workspace_name, case_id, relation_name, custom_headers:custom_headers).value!
|
456
|
+
end
|
457
|
+
|
458
|
+
#
|
459
|
+
# Delete the case relation.
|
460
|
+
#
|
461
|
+
# @param resource_group_name [String] The name of the resource group within the
|
462
|
+
# user's subscription. The name is case insensitive.
|
463
|
+
# @param operational_insights_resource_provider [String] The namespace of
|
464
|
+
# workspaces resource provider- Microsoft.OperationalInsights.
|
465
|
+
# @param workspace_name [String] The name of the workspace.
|
466
|
+
# @param case_id [String] Case ID
|
467
|
+
# @param relation_name [String] Relation Name
|
468
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
469
|
+
# to the HTTP request.
|
470
|
+
#
|
471
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
472
|
+
#
|
473
|
+
def delete_relation_async(resource_group_name, operational_insights_resource_provider, workspace_name, case_id, relation_name, custom_headers:nil)
|
474
|
+
@client.api_version = '2019-01-01-preview'
|
475
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
476
|
+
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?
|
477
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
478
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
479
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
480
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
481
|
+
fail ArgumentError, 'operational_insights_resource_provider is nil' if operational_insights_resource_provider.nil?
|
482
|
+
fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
|
483
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MaxLength': '90'" if !workspace_name.nil? && workspace_name.length > 90
|
484
|
+
fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MinLength': '1'" if !workspace_name.nil? && workspace_name.length < 1
|
485
|
+
fail ArgumentError, 'case_id is nil' if case_id.nil?
|
486
|
+
fail ArgumentError, 'relation_name is nil' if relation_name.nil?
|
487
|
+
|
488
|
+
|
489
|
+
request_headers = {}
|
490
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
491
|
+
|
492
|
+
# Set Headers
|
493
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
494
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
495
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{operationalInsightsResourceProvider}/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/cases/{caseId}/relations/{relationName}'
|
496
|
+
|
497
|
+
request_url = @base_url || @client.base_url
|
498
|
+
|
499
|
+
options = {
|
500
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
501
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'operationalInsightsResourceProvider' => operational_insights_resource_provider,'workspaceName' => workspace_name,'caseId' => case_id,'relationName' => relation_name},
|
502
|
+
query_params: {'api-version' => @client.api_version},
|
503
|
+
headers: request_headers.merge(custom_headers || {}),
|
504
|
+
base_url: request_url
|
505
|
+
}
|
506
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
507
|
+
|
508
|
+
promise = promise.then do |result|
|
509
|
+
http_response = result.response
|
510
|
+
status_code = http_response.status
|
511
|
+
response_content = http_response.body
|
512
|
+
unless status_code == 200 || status_code == 204
|
513
|
+
error_model = JSON.load(response_content)
|
514
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
515
|
+
end
|
516
|
+
|
517
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
518
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
519
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
520
|
+
|
521
|
+
result
|
522
|
+
end
|
523
|
+
|
524
|
+
promise.execute
|
525
|
+
end
|
526
|
+
|
527
|
+
#
|
528
|
+
# Gets all case relations.
|
529
|
+
#
|
530
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
531
|
+
# to List operation.
|
532
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
533
|
+
# will be added to the HTTP request.
|
534
|
+
#
|
535
|
+
# @return [CaseRelationList] operation results.
|
536
|
+
#
|
537
|
+
def list_next(next_page_link, custom_headers:nil)
|
538
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
539
|
+
response.body unless response.nil?
|
540
|
+
end
|
541
|
+
|
542
|
+
#
|
543
|
+
# Gets all case relations.
|
544
|
+
#
|
545
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
546
|
+
# to List operation.
|
547
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
548
|
+
# will be added to the HTTP request.
|
549
|
+
#
|
550
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
551
|
+
#
|
552
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
553
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
554
|
+
end
|
555
|
+
|
556
|
+
#
|
557
|
+
# Gets all case relations.
|
558
|
+
#
|
559
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
560
|
+
# to List operation.
|
561
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
562
|
+
# to the HTTP request.
|
563
|
+
#
|
564
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
565
|
+
#
|
566
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
567
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
568
|
+
|
569
|
+
|
570
|
+
request_headers = {}
|
571
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
572
|
+
|
573
|
+
# Set Headers
|
574
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
575
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
576
|
+
path_template = '{nextLink}'
|
577
|
+
|
578
|
+
request_url = @base_url || @client.base_url
|
579
|
+
|
580
|
+
options = {
|
581
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
582
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
583
|
+
headers: request_headers.merge(custom_headers || {}),
|
584
|
+
base_url: request_url
|
585
|
+
}
|
586
|
+
promise = @client.make_request_async(:get, path_template, options)
|
587
|
+
|
588
|
+
promise = promise.then do |result|
|
589
|
+
http_response = result.response
|
590
|
+
status_code = http_response.status
|
591
|
+
response_content = http_response.body
|
592
|
+
unless status_code == 200
|
593
|
+
error_model = JSON.load(response_content)
|
594
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
595
|
+
end
|
596
|
+
|
597
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
598
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
599
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
600
|
+
# Deserialize Response
|
601
|
+
if status_code == 200
|
602
|
+
begin
|
603
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
604
|
+
result_mapper = Azure::SecurityInsights::Mgmt::V2019_01_01_preview::Models::CaseRelationList.mapper()
|
605
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
606
|
+
rescue Exception => e
|
607
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
608
|
+
end
|
609
|
+
end
|
610
|
+
|
611
|
+
result
|
612
|
+
end
|
613
|
+
|
614
|
+
promise.execute
|
615
|
+
end
|
616
|
+
|
617
|
+
#
|
618
|
+
# Gets all case relations.
|
619
|
+
#
|
620
|
+
# @param resource_group_name [String] The name of the resource group within the
|
621
|
+
# user's subscription. The name is case insensitive.
|
622
|
+
# @param operational_insights_resource_provider [String] The namespace of
|
623
|
+
# workspaces resource provider- Microsoft.OperationalInsights.
|
624
|
+
# @param workspace_name [String] The name of the workspace.
|
625
|
+
# @param case_id [String] Case ID
|
626
|
+
# @param filter [String] Filters the results, based on a Boolean condition.
|
627
|
+
# Optional.
|
628
|
+
# @param orderby [String] Sorts the results. Optional.
|
629
|
+
# @param top [Integer] Returns only the first n results. Optional.
|
630
|
+
# @param skip_token [String] Skiptoken is only used if a previous operation
|
631
|
+
# returned a partial result. If a previous response contains a nextLink
|
632
|
+
# element, the value of the nextLink element will include a skiptoken parameter
|
633
|
+
# that specifies a starting point to use for subsequent calls. Optional.
|
634
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
635
|
+
# will be added to the HTTP request.
|
636
|
+
#
|
637
|
+
# @return [CaseRelationList] which provide lazy access to pages of the
|
638
|
+
# response.
|
639
|
+
#
|
640
|
+
def list_as_lazy(resource_group_name, operational_insights_resource_provider, workspace_name, case_id, filter:nil, orderby:nil, top:nil, skip_token:nil, custom_headers:nil)
|
641
|
+
response = list_async(resource_group_name, operational_insights_resource_provider, workspace_name, case_id, filter:filter, orderby:orderby, top:top, skip_token:skip_token, custom_headers:custom_headers).value!
|
642
|
+
unless response.nil?
|
643
|
+
page = response.body
|
644
|
+
page.next_method = Proc.new do |next_page_link|
|
645
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
646
|
+
end
|
647
|
+
page
|
648
|
+
end
|
649
|
+
end
|
650
|
+
|
651
|
+
end
|
652
|
+
end
|