diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/CHANGELOG.md b/sdk/securityinsights/azure-resourcemanager-securityinsights/CHANGELOG.md
index 72e1cc8528daf..1fbc4e355b7ab 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/CHANGELOG.md
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/CHANGELOG.md
@@ -1,6 +1,8 @@
# Release History
-## 1.0.0-beta.2 (Unreleased)
+## 1.0.0-beta.1 (2022-02-28)
+
+- Azure Resource Manager SecurityInsights client library for Java. This package contains Microsoft Azure SDK for SecurityInsights Management SDK. API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provider. Package tag package-preview-2021-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/README.md b/sdk/securityinsights/azure-resourcemanager-securityinsights/README.md
index 1b93d3a716140..f2f23c1cdfc13 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/README.md
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager SecurityInsights client library for Java.
-This package contains Microsoft Azure SDK for SecurityInsights Management SDK. API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provider. Package tag package-preview-2021-09. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for SecurityInsights Management SDK. API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provider. Package tag package-preview-2021-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-securityinsights
- 1.0.0-beta.1
+ 1.0.0-beta.2
```
[//]: # ({x-version-update-end})
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/SAMPLE.md b/sdk/securityinsights/azure-resourcemanager-securityinsights/SAMPLE.md
index 639641490bec5..ea9e4ef8cedbc 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/SAMPLE.md
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/SAMPLE.md
@@ -118,6 +118,7 @@
- [ListAlerts](#incidents_listalerts)
- [ListBookmarks](#incidents_listbookmarks)
- [ListEntities](#incidents_listentities)
+- [RunPlaybook](#incidents_runplaybook)
## IpGeodata
@@ -199,7 +200,7 @@
/** Samples for Actions CreateOrUpdate. */
public final class ActionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/actions/CreateActionOfAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/actions/CreateActionOfAlertRule.json
*/
/**
* Sample code: Creates or updates an action of alert rule.
@@ -230,7 +231,7 @@ import com.azure.core.util.Context;
/** Samples for Actions Delete. */
public final class ActionsDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/actions/DeleteActionOfAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/actions/DeleteActionOfAlertRule.json
*/
/**
* Sample code: Delete an action of alert rule.
@@ -259,7 +260,7 @@ import com.azure.core.util.Context;
/** Samples for Actions Get. */
public final class ActionsGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/actions/GetActionOfAlertRuleById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/actions/GetActionOfAlertRuleById.json
*/
/**
* Sample code: Get an action of alert rule.
@@ -288,7 +289,7 @@ import com.azure.core.util.Context;
/** Samples for Actions ListByAlertRule. */
public final class ActionsListByAlertRuleSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/actions/GetAllActionsByAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/actions/GetAllActionsByAlertRule.json
*/
/**
* Sample code: Get all actions of alert rule.
@@ -310,7 +311,7 @@ import com.azure.core.util.Context;
/** Samples for AlertRuleTemplates Get. */
public final class AlertRuleTemplatesGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/alertRuleTemplates/GetAlertRuleTemplateById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/alertRuleTemplates/GetAlertRuleTemplateById.json
*/
/**
* Sample code: Get alert rule template by Id.
@@ -334,7 +335,7 @@ import com.azure.core.util.Context;
/** Samples for AlertRuleTemplates List. */
public final class AlertRuleTemplatesListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/alertRuleTemplates/GetAlertRuleTemplates.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/alertRuleTemplates/GetAlertRuleTemplates.json
*/
/**
* Sample code: Get all alert rule templates.
@@ -362,6 +363,10 @@ import com.azure.resourcemanager.securityinsights.models.EventGroupingAggregatio
import com.azure.resourcemanager.securityinsights.models.EventGroupingSettings;
import com.azure.resourcemanager.securityinsights.models.FieldMapping;
import com.azure.resourcemanager.securityinsights.models.FusionAlertRule;
+import com.azure.resourcemanager.securityinsights.models.FusionSourceSettings;
+import com.azure.resourcemanager.securityinsights.models.FusionSourceSubTypeSetting;
+import com.azure.resourcemanager.securityinsights.models.FusionSubTypeSeverityFilter;
+import com.azure.resourcemanager.securityinsights.models.FusionSubTypeSeverityFiltersItem;
import com.azure.resourcemanager.securityinsights.models.GroupingConfiguration;
import com.azure.resourcemanager.securityinsights.models.IncidentConfiguration;
import com.azure.resourcemanager.securityinsights.models.MatchingMethod;
@@ -378,7 +383,7 @@ import java.util.Map;
/** Samples for AlertRules CreateOrUpdate. */
public final class AlertRulesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/alertRules/CreateFusionAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/alertRules/CreateFusionAlertRule.json
*/
/**
* Sample code: Creates or updates a Fusion alert rule.
@@ -396,12 +401,212 @@ public final class AlertRulesCreateOrUpdateSamples {
new FusionAlertRule()
.withEtag("3d00c3ca-0000-0100-0000-5d42d5010000")
.withAlertRuleTemplateName("f71aba3d-28fb-450b-b192-4e76a83015c8")
- .withEnabled(true),
+ .withEnabled(true)
+ .withSourceSettings(
+ Arrays
+ .asList(
+ new FusionSourceSettings().withEnabled(true).withSourceName("Anomalies"),
+ new FusionSourceSettings()
+ .withEnabled(true)
+ .withSourceName("Alert providers")
+ .withSourceSubTypes(
+ Arrays
+ .asList(
+ new FusionSourceSubTypeSetting()
+ .withEnabled(true)
+ .withSourceSubTypeName("Azure Active Directory Identity Protection")
+ .withSeverityFilters(
+ new FusionSubTypeSeverityFilter()
+ .withFilters(
+ Arrays
+ .asList(
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.HIGH)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.MEDIUM)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.LOW)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.INFORMATIONAL)
+ .withEnabled(true)))),
+ new FusionSourceSubTypeSetting()
+ .withEnabled(true)
+ .withSourceSubTypeName("Azure Defender")
+ .withSeverityFilters(
+ new FusionSubTypeSeverityFilter()
+ .withFilters(
+ Arrays
+ .asList(
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.HIGH)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.MEDIUM)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.LOW)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.INFORMATIONAL)
+ .withEnabled(true)))),
+ new FusionSourceSubTypeSetting()
+ .withEnabled(true)
+ .withSourceSubTypeName("Azure Defender for IoT")
+ .withSeverityFilters(
+ new FusionSubTypeSeverityFilter()
+ .withFilters(
+ Arrays
+ .asList(
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.HIGH)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.MEDIUM)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.LOW)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.INFORMATIONAL)
+ .withEnabled(true)))),
+ new FusionSourceSubTypeSetting()
+ .withEnabled(true)
+ .withSourceSubTypeName("Microsoft 365 Defender")
+ .withSeverityFilters(
+ new FusionSubTypeSeverityFilter()
+ .withFilters(
+ Arrays
+ .asList(
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.HIGH)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.MEDIUM)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.LOW)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.INFORMATIONAL)
+ .withEnabled(true)))),
+ new FusionSourceSubTypeSetting()
+ .withEnabled(true)
+ .withSourceSubTypeName("Microsoft Cloud App Security")
+ .withSeverityFilters(
+ new FusionSubTypeSeverityFilter()
+ .withFilters(
+ Arrays
+ .asList(
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.HIGH)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.MEDIUM)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.LOW)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.INFORMATIONAL)
+ .withEnabled(true)))),
+ new FusionSourceSubTypeSetting()
+ .withEnabled(true)
+ .withSourceSubTypeName("Microsoft Defender for Endpoint")
+ .withSeverityFilters(
+ new FusionSubTypeSeverityFilter()
+ .withFilters(
+ Arrays
+ .asList(
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.HIGH)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.MEDIUM)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.LOW)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.INFORMATIONAL)
+ .withEnabled(true)))),
+ new FusionSourceSubTypeSetting()
+ .withEnabled(true)
+ .withSourceSubTypeName("Microsoft Defender for Identity")
+ .withSeverityFilters(
+ new FusionSubTypeSeverityFilter()
+ .withFilters(
+ Arrays
+ .asList(
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.HIGH)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.MEDIUM)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.LOW)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.INFORMATIONAL)
+ .withEnabled(true)))),
+ new FusionSourceSubTypeSetting()
+ .withEnabled(true)
+ .withSourceSubTypeName("Microsoft Defender for Office 365")
+ .withSeverityFilters(
+ new FusionSubTypeSeverityFilter()
+ .withFilters(
+ Arrays
+ .asList(
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.HIGH)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.MEDIUM)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.LOW)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.INFORMATIONAL)
+ .withEnabled(true)))),
+ new FusionSourceSubTypeSetting()
+ .withEnabled(true)
+ .withSourceSubTypeName("Azure Sentinel scheduled analytics rules")
+ .withSeverityFilters(
+ new FusionSubTypeSeverityFilter()
+ .withFilters(
+ Arrays
+ .asList(
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.HIGH)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.MEDIUM)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.LOW)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.INFORMATIONAL)
+ .withEnabled(true)))))),
+ new FusionSourceSettings()
+ .withEnabled(true)
+ .withSourceName("Raw logs from other sources")
+ .withSourceSubTypes(
+ Arrays
+ .asList(
+ new FusionSourceSubTypeSetting()
+ .withEnabled(true)
+ .withSourceSubTypeName("Palo Alto Networks")
+ .withSeverityFilters(new FusionSubTypeSeverityFilter()))))),
Context.NONE);
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/alertRules/CreateMicrosoftSecurityIncidentCreationAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/alertRules/CreateMicrosoftSecurityIncidentCreationAlertRule.json
*/
/**
* Sample code: Creates or updates a MicrosoftSecurityIncidentCreation rule.
@@ -425,7 +630,7 @@ public final class AlertRulesCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/alertRules/CreateScheduledAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/alertRules/CreateScheduledAlertRule.json
*/
/**
* Sample code: Creates or updates a Scheduled alert rule.
@@ -444,12 +649,13 @@ public final class AlertRulesCreateOrUpdateSamples {
.withEtag("\"0300bf09-0000-0000-0000-5c37296e0000\"")
.withDescription("An example for a scheduled rule")
.withQuery("Heartbeat")
+ .withTactics(Arrays.asList(AttackTactic.PERSISTENCE, AttackTactic.LATERAL_MOVEMENT))
+ .withTechniques(Arrays.asList("T1037", "T1021"))
.withDisplayName("My scheduled rule")
.withEnabled(true)
.withSuppressionDuration(Duration.parse("PT1H"))
.withSuppressionEnabled(false)
.withSeverity(AlertSeverity.HIGH)
- .withTactics(Arrays.asList(AttackTactic.PERSISTENCE, AttackTactic.LATERAL_MOVEMENT))
.withIncidentConfiguration(
new IncidentConfiguration()
.withCreateIncident(true)
@@ -497,7 +703,230 @@ public final class AlertRulesCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/alertRules/CreateNrtAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/alertRules/CreateFusionAlertRuleWithFusionScenarioExclusion.json
+ */
+ /**
+ * Sample code: Creates or updates a Fusion alert rule with scenario exclusion pattern.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void createsOrUpdatesAFusionAlertRuleWithScenarioExclusionPattern(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .alertRules()
+ .createOrUpdateWithResponse(
+ "myRg",
+ "myWorkspace",
+ "myFirstFusionRule",
+ new FusionAlertRule()
+ .withEtag("3d00c3ca-0000-0100-0000-5d42d5010000")
+ .withAlertRuleTemplateName("f71aba3d-28fb-450b-b192-4e76a83015c8")
+ .withEnabled(true)
+ .withSourceSettings(
+ Arrays
+ .asList(
+ new FusionSourceSettings().withEnabled(true).withSourceName("Anomalies"),
+ new FusionSourceSettings()
+ .withEnabled(true)
+ .withSourceName("Alert providers")
+ .withSourceSubTypes(
+ Arrays
+ .asList(
+ new FusionSourceSubTypeSetting()
+ .withEnabled(true)
+ .withSourceSubTypeName("Azure Active Directory Identity Protection")
+ .withSeverityFilters(
+ new FusionSubTypeSeverityFilter()
+ .withFilters(
+ Arrays
+ .asList(
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.HIGH)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.MEDIUM)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.LOW)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.INFORMATIONAL)
+ .withEnabled(true)))),
+ new FusionSourceSubTypeSetting()
+ .withEnabled(true)
+ .withSourceSubTypeName("Azure Defender")
+ .withSeverityFilters(
+ new FusionSubTypeSeverityFilter()
+ .withFilters(
+ Arrays
+ .asList(
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.HIGH)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.MEDIUM)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.LOW)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.INFORMATIONAL)
+ .withEnabled(true)))),
+ new FusionSourceSubTypeSetting()
+ .withEnabled(true)
+ .withSourceSubTypeName("Azure Defender for IoT")
+ .withSeverityFilters(
+ new FusionSubTypeSeverityFilter()
+ .withFilters(
+ Arrays
+ .asList(
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.HIGH)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.MEDIUM)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.LOW)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.INFORMATIONAL)
+ .withEnabled(true)))),
+ new FusionSourceSubTypeSetting()
+ .withEnabled(true)
+ .withSourceSubTypeName("Microsoft 365 Defender")
+ .withSeverityFilters(
+ new FusionSubTypeSeverityFilter()
+ .withFilters(
+ Arrays
+ .asList(
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.HIGH)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.MEDIUM)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.LOW)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.INFORMATIONAL)
+ .withEnabled(true)))),
+ new FusionSourceSubTypeSetting()
+ .withEnabled(true)
+ .withSourceSubTypeName("Microsoft Cloud App Security")
+ .withSeverityFilters(
+ new FusionSubTypeSeverityFilter()
+ .withFilters(
+ Arrays
+ .asList(
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.HIGH)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.MEDIUM)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.LOW)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.INFORMATIONAL)
+ .withEnabled(true)))),
+ new FusionSourceSubTypeSetting()
+ .withEnabled(true)
+ .withSourceSubTypeName("Microsoft Defender for Endpoint")
+ .withSeverityFilters(
+ new FusionSubTypeSeverityFilter()
+ .withFilters(
+ Arrays
+ .asList(
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.HIGH)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.MEDIUM)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.LOW)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.INFORMATIONAL)
+ .withEnabled(true)))),
+ new FusionSourceSubTypeSetting()
+ .withEnabled(true)
+ .withSourceSubTypeName("Microsoft Defender for Identity")
+ .withSeverityFilters(
+ new FusionSubTypeSeverityFilter()
+ .withFilters(
+ Arrays
+ .asList(
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.HIGH)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.MEDIUM)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.LOW)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.INFORMATIONAL)
+ .withEnabled(true)))),
+ new FusionSourceSubTypeSetting()
+ .withEnabled(true)
+ .withSourceSubTypeName("Microsoft Defender for Office 365")
+ .withSeverityFilters(
+ new FusionSubTypeSeverityFilter()
+ .withFilters(
+ Arrays
+ .asList(
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.HIGH)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.MEDIUM)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.LOW)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.INFORMATIONAL)
+ .withEnabled(true)))),
+ new FusionSourceSubTypeSetting()
+ .withEnabled(true)
+ .withSourceSubTypeName("Azure Sentinel scheduled analytics rules")
+ .withSeverityFilters(
+ new FusionSubTypeSeverityFilter()
+ .withFilters(
+ Arrays
+ .asList(
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.HIGH)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.MEDIUM)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.LOW)
+ .withEnabled(true),
+ new FusionSubTypeSeverityFiltersItem()
+ .withSeverity(AlertSeverity.INFORMATIONAL)
+ .withEnabled(true)))))),
+ new FusionSourceSettings()
+ .withEnabled(true)
+ .withSourceName("Raw logs from other sources")
+ .withSourceSubTypes(
+ Arrays
+ .asList(
+ new FusionSourceSubTypeSetting()
+ .withEnabled(true)
+ .withSourceSubTypeName("Palo Alto Networks")
+ .withSeverityFilters(new FusionSubTypeSeverityFilter()))))),
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/alertRules/CreateNrtAlertRule.json
*/
/**
* Sample code: Creates or updates a Nrt alert rule.
@@ -537,7 +966,7 @@ import com.azure.core.util.Context;
/** Samples for AlertRules Delete. */
public final class AlertRulesDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/alertRules/DeleteAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/alertRules/DeleteAlertRule.json
*/
/**
* Sample code: Delete an alert rule.
@@ -560,7 +989,7 @@ import com.azure.core.util.Context;
/** Samples for AlertRules Get. */
public final class AlertRulesGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/alertRules/GetScheduledAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/alertRules/GetScheduledAlertRule.json
*/
/**
* Sample code: Get a Scheduled alert rule.
@@ -575,7 +1004,7 @@ public final class AlertRulesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/alertRules/GetNrtAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/alertRules/GetNrtAlertRule.json
*/
/**
* Sample code: Get an Nrt alert rule.
@@ -589,7 +1018,7 @@ public final class AlertRulesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/alertRules/GetFusionAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/alertRules/GetFusionAlertRule.json
*/
/**
* Sample code: Get a Fusion alert rule.
@@ -601,7 +1030,7 @@ public final class AlertRulesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/alertRules/GetMicrosoftSecurityIncidentCreationAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/alertRules/GetMicrosoftSecurityIncidentCreationAlertRule.json
*/
/**
* Sample code: Get a MicrosoftSecurityIncidentCreation rule.
@@ -625,7 +1054,7 @@ import com.azure.core.util.Context;
/** Samples for AlertRules List. */
public final class AlertRulesListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/alertRules/GetAllAlertRules.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/alertRules/GetAllAlertRules.json
*/
/**
* Sample code: Get all alert rules.
@@ -641,74 +1070,30 @@ public final class AlertRulesListSamples {
### AutomationRules_CreateOrUpdate
```java
-import com.azure.resourcemanager.securityinsights.models.AutomationRuleModifyPropertiesAction;
-import com.azure.resourcemanager.securityinsights.models.AutomationRuleModifyPropertiesActionConfiguration;
-import com.azure.resourcemanager.securityinsights.models.AutomationRulePropertyConditionSupportedOperator;
-import com.azure.resourcemanager.securityinsights.models.AutomationRulePropertyConditionSupportedProperty;
-import com.azure.resourcemanager.securityinsights.models.AutomationRulePropertyValuesCondition;
-import com.azure.resourcemanager.securityinsights.models.AutomationRulePropertyValuesConditionProperties;
-import com.azure.resourcemanager.securityinsights.models.AutomationRuleRunPlaybookAction;
-import com.azure.resourcemanager.securityinsights.models.AutomationRuleRunPlaybookActionConfiguration;
+import com.azure.resourcemanager.securityinsights.models.AutomationRuleAction;
import com.azure.resourcemanager.securityinsights.models.AutomationRuleTriggeringLogic;
-import com.azure.resourcemanager.securityinsights.models.IncidentSeverity;
-import com.azure.resourcemanager.securityinsights.models.TriggersOn;
-import com.azure.resourcemanager.securityinsights.models.TriggersWhen;
-import java.util.Arrays;
+import java.util.List;
/** Samples for AutomationRules CreateOrUpdate. */
public final class AutomationRulesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/automationRules/CreateAutomationRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/automationRules/AutomationRules_CreateOrUpdate.json
*/
/**
- * Sample code: Creates or updates an automation rule.
+ * Sample code: AutomationRules_CreateOrUpdate.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void createsOrUpdatesAnAutomationRule(
+ public static void automationRulesCreateOrUpdate(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.automationRules()
.define("73e01a99-5cd7-4139-a149-9f2736ff2ab5")
.withExistingWorkspace("myRg", "myWorkspace")
- .withEtag("\"0300bf09-0000-0000-0000-5c37296e0000\"")
- .withDisplayName("High severity incidents escalation")
- .withOrder(1)
- .withTriggeringLogic(
- new AutomationRuleTriggeringLogic()
- .withIsEnabled(true)
- .withTriggersOn(TriggersOn.INCIDENTS)
- .withTriggersWhen(TriggersWhen.CREATED)
- .withConditions(
- Arrays
- .asList(
- new AutomationRulePropertyValuesCondition()
- .withConditionProperties(
- new AutomationRulePropertyValuesConditionProperties()
- .withPropertyName(
- AutomationRulePropertyConditionSupportedProperty
- .INCIDENT_RELATED_ANALYTIC_RULE_IDS)
- .withOperator(AutomationRulePropertyConditionSupportedOperator.CONTAINS)
- .withPropertyValues(
- Arrays
- .asList(
- "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/fab3d2d4-747f-46a7-8ef0-9c0be8112bf7",
- "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/8deb8303-e94d-46ff-96e0-5fd94b33df1a"))))))
- .withActions(
- Arrays
- .asList(
- new AutomationRuleModifyPropertiesAction()
- .withOrder(1)
- .withActionConfiguration(
- new AutomationRuleModifyPropertiesActionConfiguration()
- .withSeverity(IncidentSeverity.HIGH)),
- new AutomationRuleRunPlaybookAction()
- .withOrder(2)
- .withActionConfiguration(
- new AutomationRuleRunPlaybookActionConfiguration()
- .withLogicAppResourceId(
- "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.Logic/workflows/IncidentPlaybook")
- .withTenantId("ee48efaf-50c6-411b-9345-b2bdc3eb4abc"))))
+ .withDisplayName((String) null)
+ .withOrder((int) null)
+ .withTriggeringLogic((AutomationRuleTriggeringLogic) null)
+ .withActions((List) null)
.create();
}
}
@@ -722,14 +1107,14 @@ import com.azure.core.util.Context;
/** Samples for AutomationRules Delete. */
public final class AutomationRulesDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/automationRules/DeleteAutomationRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/automationRules/AutomationRules_Delete.json
*/
/**
- * Sample code: Delete an automation rule.
+ * Sample code: AutomationRules_Delete.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void deleteAnAutomationRule(
+ public static void automationRulesDelete(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.automationRules()
@@ -746,14 +1131,14 @@ import com.azure.core.util.Context;
/** Samples for AutomationRules Get. */
public final class AutomationRulesGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/automationRules/GetAutomationRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/automationRules/AutomationRules_Get.json
*/
/**
- * Sample code: Get an automation rule.
+ * Sample code: AutomationRules_Get.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void getAnAutomationRule(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ public static void automationRulesGet(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.automationRules()
.getWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", Context.NONE);
@@ -769,15 +1154,14 @@ import com.azure.core.util.Context;
/** Samples for AutomationRules List. */
public final class AutomationRulesListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/automationRules/GetAllAutomationRules.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/automationRules/AutomationRules_List.json
*/
/**
- * Sample code: Get all automation rules.
+ * Sample code: AutomationRules_List.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void getAllAutomationRules(
- com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ public static void automationRulesList(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager.automationRules().list("myRg", "myWorkspace", Context.NONE);
}
}
@@ -794,7 +1178,7 @@ import java.util.UUID;
/** Samples for BookmarkOperation Expand. */
public final class BookmarkOperationExpandSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/bookmarks/expand/PostExpandBookmark.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/bookmarks/expand/PostExpandBookmark.json
*/
/**
* Sample code: Expand an bookmark.
@@ -823,7 +1207,7 @@ public final class BookmarkOperationExpandSamples {
/** Samples for BookmarkRelations CreateOrUpdate. */
public final class BookmarkRelationsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/bookmarks/relations/CreateBookmarkRelation.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/bookmarks/relations/CreateBookmarkRelation.json
*/
/**
* Sample code: Creates or updates a bookmark relation.
@@ -851,7 +1235,7 @@ import com.azure.core.util.Context;
/** Samples for BookmarkRelations Delete. */
public final class BookmarkRelationsDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/bookmarks/relations/DeleteBookmarkRelation.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/bookmarks/relations/DeleteBookmarkRelation.json
*/
/**
* Sample code: Delete the bookmark relation.
@@ -880,7 +1264,7 @@ import com.azure.core.util.Context;
/** Samples for BookmarkRelations Get. */
public final class BookmarkRelationsGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/bookmarks/relations/GetBookmarkRelationByName.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/bookmarks/relations/GetBookmarkRelationByName.json
*/
/**
* Sample code: Get a bookmark relation.
@@ -909,7 +1293,7 @@ import com.azure.core.util.Context;
/** Samples for BookmarkRelations List. */
public final class BookmarkRelationsListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/bookmarks/relations/GetAllBookmarkRelations.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/bookmarks/relations/GetAllBookmarkRelations.json
*/
/**
* Sample code: Get all bookmark relations.
@@ -928,6 +1312,9 @@ public final class BookmarkRelationsListSamples {
### Bookmarks_CreateOrUpdate
```java
+import com.azure.resourcemanager.securityinsights.models.AttackTactic;
+import com.azure.resourcemanager.securityinsights.models.BookmarkEntityMappings;
+import com.azure.resourcemanager.securityinsights.models.EntityFieldMapping;
import com.azure.resourcemanager.securityinsights.models.UserInfo;
import java.time.OffsetDateTime;
import java.util.Arrays;
@@ -936,7 +1323,7 @@ import java.util.UUID;
/** Samples for Bookmarks CreateOrUpdate. */
public final class BookmarksCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/bookmarks/CreateBookmark.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/bookmarks/CreateBookmark.json
*/
/**
* Sample code: Creates or updates a bookmark.
@@ -959,6 +1346,19 @@ public final class BookmarksCreateOrUpdateSamples {
.withQueryResult("Security Event query result")
.withUpdated(OffsetDateTime.parse("2021-09-01T13:15:30Z"))
.withUpdatedBy(new UserInfo().withObjectId(UUID.fromString("2046feea-040d-4a46-9e2b-91c2941bfa70")))
+ .withEntityMappings(
+ Arrays
+ .asList(
+ new BookmarkEntityMappings()
+ .withEntityType("Account")
+ .withFieldMappings(
+ Arrays
+ .asList(
+ new EntityFieldMapping()
+ .withIdentifier("Fullname")
+ .withValue("johndoe@microsoft.com")))))
+ .withTactics(Arrays.asList(AttackTactic.EXECUTION))
+ .withTechniques(Arrays.asList("T1609"))
.create();
}
}
@@ -972,7 +1372,7 @@ import com.azure.core.util.Context;
/** Samples for Bookmarks Delete. */
public final class BookmarksDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/bookmarks/DeleteBookmark.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/bookmarks/DeleteBookmark.json
*/
/**
* Sample code: Delete a bookmark.
@@ -995,7 +1395,7 @@ import com.azure.core.util.Context;
/** Samples for Bookmarks Get. */
public final class BookmarksGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/bookmarks/GetBookmarkById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/bookmarks/GetBookmarkById.json
*/
/**
* Sample code: Get a bookmark.
@@ -1018,7 +1418,7 @@ import com.azure.core.util.Context;
/** Samples for Bookmarks List. */
public final class BookmarksListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/bookmarks/GetBookmarks.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/bookmarks/GetBookmarks.json
*/
/**
* Sample code: Get all bookmarks.
@@ -1045,7 +1445,7 @@ import java.util.Arrays;
/** Samples for DataConnectors Connect. */
public final class DataConnectorsConnectSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/ConnectAPIPolling.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/ConnectAPIPolling.json
*/
/**
* Sample code: Connect an APIPolling data connector.
@@ -1105,11 +1505,17 @@ import com.azure.resourcemanager.securityinsights.models.Dynamics365DataConnecto
import com.azure.resourcemanager.securityinsights.models.Dynamics365DataConnectorDataTypes;
import com.azure.resourcemanager.securityinsights.models.Dynamics365DataConnectorDataTypesDynamics365CdsActivities;
import com.azure.resourcemanager.securityinsights.models.InstructionStepsInstructionsItem;
+import com.azure.resourcemanager.securityinsights.models.Office365ProjectConnectorDataTypes;
+import com.azure.resourcemanager.securityinsights.models.Office365ProjectConnectorDataTypesLogs;
+import com.azure.resourcemanager.securityinsights.models.Office365ProjectDataConnector;
import com.azure.resourcemanager.securityinsights.models.OfficeDataConnector;
import com.azure.resourcemanager.securityinsights.models.OfficeDataConnectorDataTypes;
import com.azure.resourcemanager.securityinsights.models.OfficeDataConnectorDataTypesExchange;
import com.azure.resourcemanager.securityinsights.models.OfficeDataConnectorDataTypesSharePoint;
import com.azure.resourcemanager.securityinsights.models.OfficeDataConnectorDataTypesTeams;
+import com.azure.resourcemanager.securityinsights.models.OfficePowerBIConnectorDataTypes;
+import com.azure.resourcemanager.securityinsights.models.OfficePowerBIConnectorDataTypesLogs;
+import com.azure.resourcemanager.securityinsights.models.OfficePowerBIDataConnector;
import com.azure.resourcemanager.securityinsights.models.PermissionProviderScope;
import com.azure.resourcemanager.securityinsights.models.Permissions;
import com.azure.resourcemanager.securityinsights.models.PermissionsCustomsItem;
@@ -1131,7 +1537,7 @@ import java.util.Arrays;
/** Samples for DataConnectors CreateOrUpdate. */
public final class DataConnectorsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/CreateOfficeDataConnetor.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/CreateOfficeDataConnetor.json
*/
/**
* Sample code: Creates or updates an Office365 data connector.
@@ -1159,7 +1565,32 @@ public final class DataConnectorsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/CreateThreatIntelligenceTaxiiDataConnector.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/CreateOfficePowerBIDataConnector.json
+ */
+ /**
+ * Sample code: Creates or updates an Office PowerBI data connector.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void createsOrUpdatesAnOfficePowerBIDataConnector(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .dataConnectors()
+ .createOrUpdateWithResponse(
+ "myRg",
+ "myWorkspace",
+ "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
+ new OfficePowerBIDataConnector()
+ .withEtag("\"0300bf09-0000-0000-0000-5c37296e0000\"")
+ .withDataTypes(
+ new OfficePowerBIConnectorDataTypes()
+ .withLogs(new OfficePowerBIConnectorDataTypesLogs().withState(DataTypeState.ENABLED)))
+ .withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/CreateThreatIntelligenceTaxiiDataConnector.json
*/
/**
* Sample code: Creates or updates a Threat Intelligence Taxii data connector.
@@ -1193,7 +1624,7 @@ public final class DataConnectorsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/CreateThreatIntelligenceDataConnector.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/CreateThreatIntelligenceDataConnector.json
*/
/**
* Sample code: Creates or updates an Threat Intelligence Platform data connector.
@@ -1218,7 +1649,7 @@ public final class DataConnectorsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/CreateDynamics365DataConnetor.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/CreateDynamics365DataConnetor.json
*/
/**
* Sample code: Creates or updates a Dynamics365 data connector.
@@ -1245,7 +1676,7 @@ public final class DataConnectorsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/CreateGenericUI.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/CreateGenericUI.json
*/
/**
* Sample code: Creates or updates a GenericUI data connector.
@@ -1565,7 +1996,32 @@ public final class DataConnectorsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/CreateAPIPolling.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/CreateOffice365ProjectDataConnetor.json
+ */
+ /**
+ * Sample code: Creates or updates an Office365 Project data connector.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void createsOrUpdatesAnOffice365ProjectDataConnector(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .dataConnectors()
+ .createOrUpdateWithResponse(
+ "myRg",
+ "myWorkspace",
+ "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
+ new Office365ProjectDataConnector()
+ .withEtag("\"0300bf09-0000-0000-0000-5c37296e0000\"")
+ .withDataTypes(
+ new Office365ProjectConnectorDataTypes()
+ .withLogs(new Office365ProjectConnectorDataTypesLogs().withState(DataTypeState.ENABLED)))
+ .withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/CreateAPIPolling.json
*/
/**
* Sample code: Creates or updates a APIPolling data connector.
@@ -1718,7 +2174,22 @@ import com.azure.core.util.Context;
/** Samples for DataConnectors Delete. */
public final class DataConnectorsDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/DeleteGenericUI.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/DeleteOffice365ProjectDataConnetor.json
+ */
+ /**
+ * Sample code: Delete an Office365 Project data connector.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void deleteAnOffice365ProjectDataConnector(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .dataConnectors()
+ .deleteWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/DeleteGenericUI.json
*/
/**
* Sample code: Delete a GenericUI data connector.
@@ -1733,7 +2204,7 @@ public final class DataConnectorsDeleteSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/DeleteOfficeDataConnetor.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/DeleteOfficeDataConnetor.json
*/
/**
* Sample code: Delete an Office365 data connector.
@@ -1748,7 +2219,22 @@ public final class DataConnectorsDeleteSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/DeleteAPIPolling.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/DeleteOfficePowerBIDataConnetor.json
+ */
+ /**
+ * Sample code: Delete an Office PowerBI data connector.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void deleteAnOfficePowerBIDataConnector(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .dataConnectors()
+ .deleteWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/DeleteAPIPolling.json
*/
/**
* Sample code: Delete a APIPolling data connector.
@@ -1772,7 +2258,7 @@ import com.azure.core.util.Context;
/** Samples for DataConnectors Disconnect. */
public final class DataConnectorsDisconnectSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/DisconnectAPIPolling.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/DisconnectAPIPolling.json
*/
/**
* Sample code: Disconnect an APIPolling data connector.
@@ -1796,7 +2282,22 @@ import com.azure.core.util.Context;
/** Samples for DataConnectors Get. */
public final class DataConnectorsGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/GetGenericUI.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/GetOffice365ProjectDataConnetorById.json
+ */
+ /**
+ * Sample code: Get an Office365 Project data connector.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void getAnOffice365ProjectDataConnector(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .dataConnectors()
+ .getWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/GetGenericUI.json
*/
/**
* Sample code: Get a GenericUI data connector.
@@ -1811,14 +2312,14 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/GetOffice365AdvancedThreatProtectionById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/GetOffice365AdvancedThreatProtectionById.json
*/
/**
- * Sample code: Get a Office ATP data connector.
+ * Sample code: Get an Office ATP data connector.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void getAOfficeATPDataConnector(
+ public static void getAnOfficeATPDataConnector(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectors()
@@ -1826,7 +2327,7 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/GetMicrosoftCloudAppSecurityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/GetMicrosoftCloudAppSecurityById.json
*/
/**
* Sample code: Get a MCAS data connector.
@@ -1841,7 +2342,7 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/GetThreatIntelligenceTaxiiById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/GetThreatIntelligenceTaxiiById.json
*/
/**
* Sample code: Get a TI Taxii data connector.
@@ -1856,7 +2357,7 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/GetMicrosoftThreatIntelligenceById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/GetMicrosoftThreatIntelligenceById.json
*/
/**
* Sample code: Get a MicrosoftThreatIntelligence data connector.
@@ -1871,7 +2372,7 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/GetAzureSecurityCenterById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/GetAzureSecurityCenterById.json
*/
/**
* Sample code: Get a ASC data connector.
@@ -1886,7 +2387,7 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/GetThreatIntelligenceById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/GetThreatIntelligenceById.json
*/
/**
* Sample code: Get a TI data connector.
@@ -1900,7 +2401,7 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/GetAmazonWebServicesCloudTrailById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/GetAmazonWebServicesCloudTrailById.json
*/
/**
* Sample code: Get an AwsCloudTrail data connector.
@@ -1915,7 +2416,7 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/GetMicrosoftDefenderAdvancedThreatProtectionById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/GetMicrosoftDefenderAdvancedThreatProtectionById.json
*/
/**
* Sample code: Get a MDATP data connector.
@@ -1930,7 +2431,7 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/GetMicrosoftThreatProtectionById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/GetMicrosoftThreatProtectionById.json
*/
/**
* Sample code: Get a MicrosoftThreatProtection data connector.
@@ -1945,7 +2446,7 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/GetAzureActiveDirectoryById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/GetAzureActiveDirectoryById.json
*/
/**
* Sample code: Get an AAD data connector.
@@ -1960,52 +2461,52 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/GetMicrosoftInsiderRiskManagementById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/GetAzureAdvancedThreatProtectionById.json
*/
/**
- * Sample code: Get a Office IRM data connector.
+ * Sample code: Get an AATP data connector.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void getAOfficeIRMDataConnector(
+ public static void getAnAATPDataConnector(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "3d3e955e-33eb-401d-89a7-251c81ddd660", Context.NONE);
+ .getWithResponse("myRg", "myWorkspace", "07e42cb3-e658-4e90-801c-efa0f29d3d44", Context.NONE);
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/GetAzureAdvancedThreatProtectionById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/GetAPIPolling.json
*/
/**
- * Sample code: Get an AATP data connector.
+ * Sample code: Get a APIPolling data connector.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void getAnAATPDataConnector(
+ public static void getAAPIPollingDataConnector(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "07e42cb3-e658-4e90-801c-efa0f29d3d44", Context.NONE);
+ .getWithResponse("myRg", "myWorkspace", "316ec55e-7138-4d63-ab18-90c8a60fd1c8", Context.NONE);
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/GetAPIPolling.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/GetMicrosoftInsiderRiskManagementById.json
*/
/**
- * Sample code: Get a APIPolling data connector.
+ * Sample code: Get an Office IRM data connector.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void getAAPIPollingDataConnector(
+ public static void getAnOfficeIRMDataConnector(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "316ec55e-7138-4d63-ab18-90c8a60fd1c8", Context.NONE);
+ .getWithResponse("myRg", "myWorkspace", "3d3e955e-33eb-401d-89a7-251c81ddd660", Context.NONE);
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/GetDynamics365DataConnectorById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/GetDynamics365DataConnectorById.json
*/
/**
* Sample code: Get a Dynamics365 data connector.
@@ -2020,7 +2521,7 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/GetOfficeDataConnetorById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/GetOfficeDataConnetorById.json
*/
/**
* Sample code: Get an Office365 data connector.
@@ -2035,7 +2536,7 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/GetAmazonWebServicesS3ById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/GetAmazonWebServicesS3ById.json
*/
/**
* Sample code: Get an Aws S3 data connector.
@@ -2048,6 +2549,21 @@ public final class DataConnectorsGetSamples {
.dataConnectors()
.getWithResponse("myRg", "myWorkspace", "afef3743-0c88-469c-84ff-ca2e87dc1e48", Context.NONE);
}
+
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/GetOfficePowerBIDataConnetorById.json
+ */
+ /**
+ * Sample code: Get an Office365 PowerBI data connector.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void getAnOffice365PowerBIDataConnector(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .dataConnectors()
+ .getWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", Context.NONE);
+ }
}
```
@@ -2059,7 +2575,7 @@ import com.azure.core.util.Context;
/** Samples for DataConnectors List. */
public final class DataConnectorsListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/GetDataConnectors.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/GetDataConnectors.json
*/
/**
* Sample code: Get all data connectors.
@@ -2083,15 +2599,17 @@ import com.azure.resourcemanager.securityinsights.models.Dynamics365CheckRequire
import com.azure.resourcemanager.securityinsights.models.McasCheckRequirements;
import com.azure.resourcemanager.securityinsights.models.MstiCheckRequirements;
import com.azure.resourcemanager.securityinsights.models.MtpCheckRequirements;
+import com.azure.resourcemanager.securityinsights.models.Office365ProjectCheckRequirements;
import com.azure.resourcemanager.securityinsights.models.OfficeAtpCheckRequirements;
import com.azure.resourcemanager.securityinsights.models.OfficeIrmCheckRequirements;
+import com.azure.resourcemanager.securityinsights.models.OfficePowerBICheckRequirements;
import com.azure.resourcemanager.securityinsights.models.TICheckRequirements;
import com.azure.resourcemanager.securityinsights.models.TiTaxiiCheckRequirements;
/** Samples for DataConnectorsCheckRequirementsOperation Post. */
public final class DataConnectorsCheckRequirementsOperationPostSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/CheckRequirementsOfficeATP.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/CheckRequirementsOfficeATP.json
*/
/**
* Sample code: Check requirements for OfficeATP.
@@ -2106,7 +2624,22 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/CheckRequirementsAzureActiveDirectory.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/CheckRequirementsOffice365Project.json
+ */
+ /**
+ * Sample code: Check requirements for Office365Project.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void checkRequirementsForOffice365Project(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .dataConnectorsCheckRequirementsOperations()
+ .postWithResponse("myRg", "myWorkspace", new Office365ProjectCheckRequirements(), Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/CheckRequirementsAzureActiveDirectory.json
*/
/**
* Sample code: Check requirements for AAD.
@@ -2121,7 +2654,7 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/CheckRequirementsMicrosoftCloudAppSecurity.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/CheckRequirementsMicrosoftCloudAppSecurity.json
*/
/**
* Sample code: Check requirements for Mcas.
@@ -2136,7 +2669,7 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/CheckRequirementsMdatp.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/CheckRequirementsMdatp.json
*/
/**
* Sample code: Check requirements for Mdatp.
@@ -2151,7 +2684,7 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/CheckRequirementsAzureActiveDirectoryNoAuthorization.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/CheckRequirementsAzureActiveDirectoryNoAuthorization.json
*/
/**
* Sample code: Check requirements for AAD - no authorization.
@@ -2166,7 +2699,7 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/CheckRequirementsAzureSecurityCenter.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/CheckRequirementsAzureSecurityCenter.json
*/
/**
* Sample code: Check requirements for ASC.
@@ -2185,7 +2718,7 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/CheckRequirementsMicrosoftThreatProtection.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/CheckRequirementsMicrosoftThreatProtection.json
*/
/**
* Sample code: Check requirements for MicrosoftThreatProtection.
@@ -2200,7 +2733,7 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/CheckRequirementsThreatIntelligenceTaxii.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/CheckRequirementsThreatIntelligenceTaxii.json
*/
/**
* Sample code: Check requirements for TI Taxii.
@@ -2215,7 +2748,7 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/CheckRequirementsOfficeIRM.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/CheckRequirementsOfficeIRM.json
*/
/**
* Sample code: Check requirements for OfficeIRM.
@@ -2230,7 +2763,7 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/CheckRequirementsMicrosoftThreatIntelligence.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/CheckRequirementsMicrosoftThreatIntelligence.json
*/
/**
* Sample code: Check requirements for MicrosoftThreatIntelligence.
@@ -2245,7 +2778,22 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/CheckRequirementsDynamics365.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/CheckRequirementsOfficePowerBI.json
+ */
+ /**
+ * Sample code: Check requirements for OfficePowerBI.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void checkRequirementsForOfficePowerBI(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .dataConnectorsCheckRequirementsOperations()
+ .postWithResponse("myRg", "myWorkspace", new OfficePowerBICheckRequirements(), Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/CheckRequirementsDynamics365.json
*/
/**
* Sample code: Check requirements for Dynamics365.
@@ -2260,7 +2808,7 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/CheckRequirementsAzureActiveDirectoryNoLicense.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/CheckRequirementsAzureActiveDirectoryNoLicense.json
*/
/**
* Sample code: Check requirements for AAD - no license.
@@ -2275,7 +2823,7 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/dataConnectors/CheckRequirementsThreatIntelligence.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/dataConnectors/CheckRequirementsThreatIntelligence.json
*/
/**
* Sample code: Check requirements for TI.
@@ -2299,7 +2847,7 @@ import com.azure.core.util.Context;
/** Samples for DomainWhois Get. */
public final class DomainWhoisGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/enrichment/GetWhoisByDomainName.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/enrichment/GetWhoisByDomainName.json
*/
/**
* Sample code: Get whois information for a single domain name.
@@ -2324,7 +2872,7 @@ import java.util.UUID;
/** Samples for Entities Expand. */
public final class EntitiesExpandSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entities/expand/PostExpandEntity.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entities/expand/PostExpandEntity.json
*/
/**
* Sample code: Expand an entity.
@@ -2355,7 +2903,7 @@ import com.azure.core.util.Context;
/** Samples for Entities Get. */
public final class EntitiesGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entities/GetSubmissionMailEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entities/GetSubmissionMailEntityById.json
*/
/**
* Sample code: Get a submissionMail entity.
@@ -2368,7 +2916,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entities/GetDnsEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entities/GetDnsEntityById.json
*/
/**
* Sample code: Get a dns entity.
@@ -2380,7 +2928,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entities/GetFileHashEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entities/GetFileHashEntityById.json
*/
/**
* Sample code: Get a file hash entity.
@@ -2392,7 +2940,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entities/GetIoTDeviceEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entities/GetIoTDeviceEntityById.json
*/
/**
* Sample code: Get an IoT device entity.
@@ -2405,7 +2953,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entities/GetRegistryKeyEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entities/GetRegistryKeyEntityById.json
*/
/**
* Sample code: Get a registry key entity.
@@ -2418,7 +2966,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entities/GetMailboxEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entities/GetMailboxEntityById.json
*/
/**
* Sample code: Get a mailbox entity.
@@ -2430,7 +2978,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entities/GetMalwareEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entities/GetMalwareEntityById.json
*/
/**
* Sample code: Get a malware entity.
@@ -2442,7 +2990,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entities/GetSecurityAlertEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entities/GetSecurityAlertEntityById.json
*/
/**
* Sample code: Get a security alert entity.
@@ -2455,7 +3003,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entities/GetIpEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entities/GetIpEntityById.json
*/
/**
* Sample code: Get an ip entity.
@@ -2467,7 +3015,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entities/GetAccountEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entities/GetAccountEntityById.json
*/
/**
* Sample code: Get an account entity.
@@ -2479,7 +3027,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entities/GetCloudApplicationEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entities/GetCloudApplicationEntityById.json
*/
/**
* Sample code: Get a cloud application entity.
@@ -2492,7 +3040,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entities/GetFileEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entities/GetFileEntityById.json
*/
/**
* Sample code: Get a file entity.
@@ -2504,7 +3052,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entities/GetRegistryValueEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entities/GetRegistryValueEntityById.json
*/
/**
* Sample code: Get a registry value entity.
@@ -2517,7 +3065,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entities/GetUrlEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entities/GetUrlEntityById.json
*/
/**
* Sample code: Get a url entity.
@@ -2529,7 +3077,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entities/GetMailClusterEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entities/GetMailClusterEntityById.json
*/
/**
* Sample code: Get a mailCluster entity.
@@ -2542,7 +3090,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entities/GetSecurityGroupEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entities/GetSecurityGroupEntityById.json
*/
/**
* Sample code: Get a security group entity.
@@ -2555,7 +3103,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entities/GetMailMessageEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entities/GetMailMessageEntityById.json
*/
/**
* Sample code: Get a mailMessage entity.
@@ -2568,7 +3116,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entities/GetAzureResourceEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entities/GetAzureResourceEntityById.json
*/
/**
* Sample code: Get an azure resource entity.
@@ -2581,7 +3129,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entities/GetHostEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entities/GetHostEntityById.json
*/
/**
* Sample code: Get a host entity.
@@ -2593,7 +3141,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entities/GetProcessEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entities/GetProcessEntityById.json
*/
/**
* Sample code: Get a process entity.
@@ -2618,7 +3166,7 @@ import java.util.UUID;
/** Samples for Entities GetInsights. */
public final class EntitiesGetInsightsSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entities/insights/PostGetInsights.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entities/insights/PostGetInsights.json
*/
/**
* Sample code: Entity Insight.
@@ -2650,7 +3198,7 @@ import com.azure.core.util.Context;
/** Samples for Entities List. */
public final class EntitiesListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entities/GetEntities.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entities/GetEntities.json
*/
/**
* Sample code: Get all entities.
@@ -2672,7 +3220,7 @@ import com.azure.resourcemanager.securityinsights.models.EntityItemQueryKind;
/** Samples for Entities Queries. */
public final class EntitiesQueriesSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entities/GetQueries.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entities/GetQueries.json
*/
/**
* Sample code: Get Entity Query.
@@ -2702,7 +3250,7 @@ import java.time.OffsetDateTime;
/** Samples for EntitiesGetTimeline List. */
public final class EntitiesGetTimelineListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entities/timeline/PostTimelineEntity.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entities/timeline/PostTimelineEntity.json
*/
/**
* Sample code: Entity timeline.
@@ -2733,7 +3281,7 @@ import com.azure.core.util.Context;
/** Samples for EntitiesRelations List. */
public final class EntitiesRelationsListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entities/relations/GetAllEntityRelations.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entities/relations/GetAllEntityRelations.json
*/
/**
* Sample code: Get all relations of an entity.
@@ -2763,7 +3311,7 @@ import java.util.Map;
/** Samples for EntityQueries CreateOrUpdate. */
public final class EntityQueriesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entityQueries/CreateEntityQueryActivity.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entityQueries/CreateEntityQueryActivity.json
*/
/**
* Sample code: Creates or updates an Activity entity query.
@@ -2857,7 +3405,7 @@ import com.azure.core.util.Context;
/** Samples for EntityQueries Delete. */
public final class EntityQueriesDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entityQueries/DeleteEntityQuery.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entityQueries/DeleteEntityQuery.json
*/
/**
* Sample code: Delete an entity query.
@@ -2880,7 +3428,7 @@ import com.azure.core.util.Context;
/** Samples for EntityQueries Get. */
public final class EntityQueriesGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entityQueries/GetActivityEntityQueryById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entityQueries/GetActivityEntityQueryById.json
*/
/**
* Sample code: Get an Activity entity query.
@@ -2895,7 +3443,7 @@ public final class EntityQueriesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entityQueries/GetExpansionEntityQueryById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entityQueries/GetExpansionEntityQueryById.json
*/
/**
* Sample code: Get an Expansion entity query.
@@ -2920,7 +3468,7 @@ import com.azure.resourcemanager.securityinsights.models.EntityQueriesKind;
/** Samples for EntityQueries List. */
public final class EntityQueriesListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entityQueries/GetEntityQueries.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entityQueries/GetEntityQueries.json
*/
/**
* Sample code: Get all entity queries.
@@ -2941,7 +3489,7 @@ import com.azure.core.util.Context;
/** Samples for EntityQueryTemplates Get. */
public final class EntityQueryTemplatesGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entityQueryTemplates/GetActivityEntityQueryTemplateById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entityQueryTemplates/GetActivityEntityQueryTemplateById.json
*/
/**
* Sample code: Get an Activity entity query template.
@@ -2966,7 +3514,7 @@ import com.azure.resourcemanager.securityinsights.models.Constant69;
/** Samples for EntityQueryTemplates List. */
public final class EntityQueryTemplatesListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entityQueryTemplates/GetEntityQueryTemplates.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entityQueryTemplates/GetEntityQueryTemplates.json
*/
/**
* Sample code: Get all entity query templates.
@@ -2988,7 +3536,7 @@ import com.azure.core.util.Context;
/** Samples for EntityRelations GetRelation. */
public final class EntityRelationsGetRelationSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/entities/relations/GetEntityRelationByName.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/entities/relations/GetEntityRelationByName.json
*/
/**
* Sample code: Get an entity relation.
@@ -3014,7 +3562,7 @@ public final class EntityRelationsGetRelationSamples {
/** Samples for IncidentComments CreateOrUpdate. */
public final class IncidentCommentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/incidents/comments/CreateIncidentComment.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/incidents/comments/CreateIncidentComment.json
*/
/**
* Sample code: Creates or updates an incident comment.
@@ -3041,7 +3589,7 @@ import com.azure.core.util.Context;
/** Samples for IncidentComments Delete. */
public final class IncidentCommentsDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/incidents/comments/DeleteIncidentComment.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/incidents/comments/DeleteIncidentComment.json
*/
/**
* Sample code: Delete the incident comment.
@@ -3070,7 +3618,7 @@ import com.azure.core.util.Context;
/** Samples for IncidentComments Get. */
public final class IncidentCommentsGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/incidents/comments/GetIncidentCommentById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/incidents/comments/GetIncidentCommentById.json
*/
/**
* Sample code: Get an incident comment.
@@ -3099,7 +3647,7 @@ import com.azure.core.util.Context;
/** Samples for IncidentComments List. */
public final class IncidentCommentsListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/incidents/comments/GetAllIncidentComments.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/incidents/comments/GetAllIncidentComments.json
*/
/**
* Sample code: Get all incident comments.
@@ -3124,7 +3672,7 @@ import com.azure.resourcemanager.securityinsights.fluent.models.RelationInner;
/** Samples for IncidentRelations CreateOrUpdate. */
public final class IncidentRelationsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/incidents/relations/CreateIncidentRelation.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/incidents/relations/CreateIncidentRelation.json
*/
/**
* Sample code: Creates or updates an incident relation.
@@ -3156,7 +3704,7 @@ import com.azure.core.util.Context;
/** Samples for IncidentRelations Delete. */
public final class IncidentRelationsDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/incidents/relations/DeleteIncidentRelation.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/incidents/relations/DeleteIncidentRelation.json
*/
/**
* Sample code: Delete the incident relation.
@@ -3185,7 +3733,7 @@ import com.azure.core.util.Context;
/** Samples for IncidentRelations Get. */
public final class IncidentRelationsGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/incidents/relations/GetIncidentRelationByName.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/incidents/relations/GetIncidentRelationByName.json
*/
/**
* Sample code: Get an incident relation.
@@ -3214,7 +3762,7 @@ import com.azure.core.util.Context;
/** Samples for IncidentRelations List. */
public final class IncidentRelationsListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/incidents/relations/GetAllIncidentRelations.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/incidents/relations/GetAllIncidentRelations.json
*/
/**
* Sample code: Get all incident relations.
@@ -3244,7 +3792,7 @@ import java.util.UUID;
/** Samples for Incidents CreateOrUpdate. */
public final class IncidentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/incidents/CreateIncident.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/incidents/CreateIncident.json
*/
/**
* Sample code: Creates or updates an incident.
@@ -3282,7 +3830,7 @@ import com.azure.resourcemanager.securityinsights.models.TeamProperties;
/** Samples for Incidents CreateTeam. */
public final class IncidentsCreateTeamSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/incidents/CreateTeam.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/incidents/CreateTeam.json
*/
/**
* Sample code: Creates incident teams group.
@@ -3311,7 +3859,7 @@ import com.azure.core.util.Context;
/** Samples for Incidents Delete. */
public final class IncidentsDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/incidents/DeleteIncident.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/incidents/DeleteIncident.json
*/
/**
* Sample code: Delete an incident.
@@ -3334,7 +3882,7 @@ import com.azure.core.util.Context;
/** Samples for Incidents Get. */
public final class IncidentsGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/incidents/GetIncidentById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/incidents/GetIncidentById.json
*/
/**
* Sample code: Get an incident.
@@ -3357,7 +3905,7 @@ import com.azure.core.util.Context;
/** Samples for Incidents List. */
public final class IncidentsListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/incidents/GetIncidents.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/incidents/GetIncidents.json
*/
/**
* Sample code: Get all incidents.
@@ -3378,7 +3926,7 @@ import com.azure.core.util.Context;
/** Samples for Incidents ListAlerts. */
public final class IncidentsListAlertsSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/incidents/GetAllIncidentAlerts.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/incidents/GetAllIncidentAlerts.json
*/
/**
* Sample code: Get all incident alerts.
@@ -3402,7 +3950,7 @@ import com.azure.core.util.Context;
/** Samples for Incidents ListBookmarks. */
public final class IncidentsListBookmarksSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/incidents/GetAllIncidentBookmarks.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/incidents/GetAllIncidentBookmarks.json
*/
/**
* Sample code: Get all incident bookmarks.
@@ -3426,7 +3974,7 @@ import com.azure.core.util.Context;
/** Samples for Incidents ListEntities. */
public final class IncidentsListEntitiesSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/incidents/entities/GetAllIncidentEntities.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/incidents/entities/GetAllIncidentEntities.json
*/
/**
* Sample code: Gets all incident related entities.
@@ -3442,6 +3990,30 @@ public final class IncidentsListEntitiesSamples {
}
```
+### Incidents_RunPlaybook
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Incidents RunPlaybook. */
+public final class IncidentsRunPlaybookSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/manualTrigger/AutomationRules_ManualTriggerPlaybook.json
+ */
+ /**
+ * Sample code: AutomationRules_ManualTriggerPlaybook.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void automationRulesManualTriggerPlaybook(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .incidents()
+ .runPlaybookWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ar4", null, Context.NONE);
+ }
+}
+```
+
### IpGeodata_Get
```java
@@ -3450,7 +4022,7 @@ import com.azure.core.util.Context;
/** Samples for IpGeodata Get. */
public final class IpGeodataGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/enrichment/GetGeodataByIp.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/enrichment/GetGeodataByIp.json
*/
/**
* Sample code: Get geodata for a single IP address.
@@ -3482,7 +4054,7 @@ import java.util.Arrays;
/** Samples for Metadata Create. */
public final class MetadataCreateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/metadata/PutMetadata.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/metadata/PutMetadata.json
*/
/**
* Sample code: Create/update full metadata.
@@ -3552,7 +4124,7 @@ public final class MetadataCreateSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/metadata/PutMetadataMinimal.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/metadata/PutMetadataMinimal.json
*/
/**
* Sample code: Create/update minimal metadata.
@@ -3582,7 +4154,7 @@ import com.azure.core.util.Context;
/** Samples for Metadata Delete. */
public final class MetadataDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/metadata/DeleteMetadata.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/metadata/DeleteMetadata.json
*/
/**
* Sample code: Delete metadata.
@@ -3603,7 +4175,7 @@ import com.azure.core.util.Context;
/** Samples for Metadata Get. */
public final class MetadataGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/metadata/GetMetadata.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/metadata/GetMetadata.json
*/
/**
* Sample code: Get single metadata by name.
@@ -3625,7 +4197,7 @@ import com.azure.core.util.Context;
/** Samples for Metadata List. */
public final class MetadataListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/metadata/GetAllMetadata.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/metadata/GetAllMetadata.json
*/
/**
* Sample code: Get all metadata.
@@ -3637,7 +4209,7 @@ public final class MetadataListSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/metadata/GetAllMetadataOData.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/metadata/GetAllMetadataOData.json
*/
/**
* Sample code: Get all metadata with OData filter/orderby/skip/top.
@@ -3661,7 +4233,7 @@ import com.azure.resourcemanager.securityinsights.models.MetadataModel;
/** Samples for Metadata Update. */
public final class MetadataUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/metadata/PatchMetadata.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/metadata/PatchMetadata.json
*/
/**
* Sample code: Update metadata.
@@ -3687,7 +4259,7 @@ import com.azure.core.util.Context;
/** Samples for OfficeConsents Delete. */
public final class OfficeConsentsDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/officeConsents/DeleteOfficeConsents.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/officeConsents/DeleteOfficeConsents.json
*/
/**
* Sample code: Delete an office consent.
@@ -3711,7 +4283,7 @@ import com.azure.core.util.Context;
/** Samples for OfficeConsents Get. */
public final class OfficeConsentsGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/officeConsents/GetOfficeConsentsById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/officeConsents/GetOfficeConsentsById.json
*/
/**
* Sample code: Get an office consent.
@@ -3734,7 +4306,7 @@ import com.azure.core.util.Context;
/** Samples for OfficeConsents List. */
public final class OfficeConsentsListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/officeConsents/GetOfficeConsents.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/officeConsents/GetOfficeConsents.json
*/
/**
* Sample code: Get all office consents.
@@ -3756,7 +4328,7 @@ import com.azure.core.util.Context;
/** Samples for ProductSettings Delete. */
public final class ProductSettingsDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/settings/DeleteEyesOnSetting.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/settings/DeleteEyesOnSetting.json
*/
/**
* Sample code: Delete EyesOn settings.
@@ -3778,7 +4350,7 @@ import com.azure.core.util.Context;
/** Samples for ProductSettings Get. */
public final class ProductSettingsGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/settings/GetEyesOnSetting.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/settings/GetEyesOnSetting.json
*/
/**
* Sample code: Get EyesOn settings.
@@ -3799,7 +4371,7 @@ import com.azure.core.util.Context;
/** Samples for ProductSettings List. */
public final class ProductSettingsListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/settings/GetAllSettings.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/settings/GetAllSettings.json
*/
/**
* Sample code: Get all settings.
@@ -3821,7 +4393,7 @@ import com.azure.resourcemanager.securityinsights.models.EyesOn;
/** Samples for ProductSettings Update. */
public final class ProductSettingsUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/settings/UpdateEyesOnSetting.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/settings/UpdateEyesOnSetting.json
*/
/**
* Sample code: Update EyesOn settings.
@@ -3848,7 +4420,7 @@ public final class ProductSettingsUpdateSamples {
/** Samples for SentinelOnboardingStates Create. */
public final class SentinelOnboardingStatesCreateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/onboardingStates/CreateSentinelOnboardingState.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/onboardingStates/CreateSentinelOnboardingState.json
*/
/**
* Sample code: Create Sentinel onboarding state.
@@ -3875,7 +4447,7 @@ import com.azure.core.util.Context;
/** Samples for SentinelOnboardingStates Delete. */
public final class SentinelOnboardingStatesDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/onboardingStates/DeleteSentinelOnboardingState.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/onboardingStates/DeleteSentinelOnboardingState.json
*/
/**
* Sample code: Delete Sentinel onboarding state.
@@ -3897,7 +4469,7 @@ import com.azure.core.util.Context;
/** Samples for SentinelOnboardingStates Get. */
public final class SentinelOnboardingStatesGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/onboardingStates/GetSentinelOnboardingState.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/onboardingStates/GetSentinelOnboardingState.json
*/
/**
* Sample code: Get Sentinel onboarding state.
@@ -3919,7 +4491,7 @@ import com.azure.core.util.Context;
/** Samples for SentinelOnboardingStates List. */
public final class SentinelOnboardingStatesListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/onboardingStates/GetAllSentinelOnboardingStates.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/onboardingStates/GetAllSentinelOnboardingStates.json
*/
/**
* Sample code: Get all Sentinel onboarding states.
@@ -3942,7 +4514,7 @@ import com.azure.resourcemanager.securityinsights.models.RepoType;
/** Samples for SourceControl ListRepositories. */
public final class SourceControlListRepositoriesSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/repositories/GetRepositories.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/repositories/GetRepositories.json
*/
/**
* Sample code: Get repository list.
@@ -3967,7 +4539,7 @@ import java.util.Arrays;
/** Samples for SourceControlsOperation Create. */
public final class SourceControlsOperationCreateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/sourcecontrols/CreateSourceControl.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/sourcecontrols/CreateSourceControl.json
*/
/**
* Sample code: Creates a source control.
@@ -4012,7 +4584,7 @@ import com.azure.core.util.Context;
/** Samples for SourceControlsOperation Delete. */
public final class SourceControlsOperationDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/sourcecontrols/DeleteSourceControl.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/sourcecontrols/DeleteSourceControl.json
*/
/**
* Sample code: Delete a source control.
@@ -4036,7 +4608,7 @@ import com.azure.core.util.Context;
/** Samples for SourceControlsOperation Get. */
public final class SourceControlsOperationGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/sourcecontrols/GetSourceControlById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/sourcecontrols/GetSourceControlById.json
*/
/**
* Sample code: Get a source control.
@@ -4059,7 +4631,7 @@ import com.azure.core.util.Context;
/** Samples for SourceControlsOperation List. */
public final class SourceControlsOperationListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/sourcecontrols/GetSourceControls.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/sourcecontrols/GetSourceControls.json
*/
/**
* Sample code: Get all source controls.
@@ -4083,7 +4655,7 @@ import java.util.Arrays;
/** Samples for ThreatIntelligenceIndicator AppendTags. */
public final class ThreatIntelligenceIndicatorAppendTagsSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/threatintelligence/AppendTagsThreatIntelligence.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/threatintelligence/AppendTagsThreatIntelligence.json
*/
/**
* Sample code: Append tags to a threat intelligence indicator.
@@ -4109,13 +4681,12 @@ public final class ThreatIntelligenceIndicatorAppendTagsSamples {
```java
import com.azure.core.util.Context;
import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceIndicatorModelForRequestBody;
-import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceResourceKindEnum;
import java.util.Arrays;
/** Samples for ThreatIntelligenceIndicator Create. */
public final class ThreatIntelligenceIndicatorCreateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/threatintelligence/UpdateThreatIntelligence.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/threatintelligence/UpdateThreatIntelligence.json
*/
/**
* Sample code: Update a threat Intelligence indicator.
@@ -4131,7 +4702,6 @@ public final class ThreatIntelligenceIndicatorCreateSamples {
"myWorkspace",
"d9cd6f0b-96b9-3984-17cd-a779d1e15a93",
new ThreatIntelligenceIndicatorModelForRequestBody()
- .withKind(ThreatIntelligenceResourceKindEnum.INDICATOR)
.withThreatIntelligenceTags(Arrays.asList("new schema"))
.withSource("Azure Sentinel")
.withDisplayName("new schema")
@@ -4159,13 +4729,12 @@ public final class ThreatIntelligenceIndicatorCreateSamples {
```java
import com.azure.core.util.Context;
import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceIndicatorModelForRequestBody;
-import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceResourceKindEnum;
import java.util.Arrays;
/** Samples for ThreatIntelligenceIndicator CreateIndicator. */
public final class ThreatIntelligenceIndicatorCreateIndicatorSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/threatintelligence/CreateThreatIntelligence.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/threatintelligence/CreateThreatIntelligence.json
*/
/**
* Sample code: Create a new Threat Intelligence.
@@ -4180,7 +4749,6 @@ public final class ThreatIntelligenceIndicatorCreateIndicatorSamples {
"myRg",
"myWorkspace",
new ThreatIntelligenceIndicatorModelForRequestBody()
- .withKind(ThreatIntelligenceResourceKindEnum.INDICATOR)
.withThreatIntelligenceTags(Arrays.asList("new schema"))
.withSource("Azure Sentinel")
.withDisplayName("new schema")
@@ -4211,7 +4779,7 @@ import com.azure.core.util.Context;
/** Samples for ThreatIntelligenceIndicator Delete. */
public final class ThreatIntelligenceIndicatorDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/threatintelligence/DeleteThreatIntelligence.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/threatintelligence/DeleteThreatIntelligence.json
*/
/**
* Sample code: Delete a threat intelligence indicator.
@@ -4235,7 +4803,7 @@ import com.azure.core.util.Context;
/** Samples for ThreatIntelligenceIndicator Get. */
public final class ThreatIntelligenceIndicatorGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/threatintelligence/GetThreatIntelligenceById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/threatintelligence/GetThreatIntelligenceById.json
*/
/**
* Sample code: View a threat intelligence indicator by name.
@@ -4263,7 +4831,7 @@ import java.util.Arrays;
/** Samples for ThreatIntelligenceIndicator QueryIndicators. */
public final class ThreatIntelligenceIndicatorQueryIndicatorsSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/threatintelligence/QueryThreatIntelligence.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/threatintelligence/QueryThreatIntelligence.json
*/
/**
* Sample code: Query threat intelligence indicators as per filtering criteria.
@@ -4300,13 +4868,12 @@ public final class ThreatIntelligenceIndicatorQueryIndicatorsSamples {
```java
import com.azure.core.util.Context;
import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceIndicatorModelForRequestBody;
-import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceResourceKindEnum;
import java.util.Arrays;
/** Samples for ThreatIntelligenceIndicator ReplaceTags. */
public final class ThreatIntelligenceIndicatorReplaceTagsSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/threatintelligence/ReplaceTagsThreatIntelligence.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/threatintelligence/ReplaceTagsThreatIntelligence.json
*/
/**
* Sample code: Replace tags to a Threat Intelligence.
@@ -4322,7 +4889,6 @@ public final class ThreatIntelligenceIndicatorReplaceTagsSamples {
"myWorkspace",
"d9cd6f0b-96b9-3984-17cd-a779d1e15a93",
new ThreatIntelligenceIndicatorModelForRequestBody()
- .withKind(ThreatIntelligenceResourceKindEnum.INDICATOR)
.withEtag("\"0000262c-0000-0800-0000-5e9767060000\"")
.withThreatIntelligenceTags(Arrays.asList("patching tags")),
Context.NONE);
@@ -4338,7 +4904,7 @@ import com.azure.core.util.Context;
/** Samples for ThreatIntelligenceIndicatorMetrics List. */
public final class ThreatIntelligenceIndicatorMetricsListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/threatintelligence/CollectThreatIntelligenceMetrics.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/threatintelligence/CollectThreatIntelligenceMetrics.json
*/
/**
* Sample code: Get threat intelligence indicators metrics.
@@ -4360,7 +4926,7 @@ import com.azure.core.util.Context;
/** Samples for ThreatIntelligenceIndicatorsOperation List. */
public final class ThreatIntelligenceIndicatorsOperationListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/threatintelligence/GetThreatIntelligence.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/threatintelligence/GetThreatIntelligence.json
*/
/**
* Sample code: Get all threat intelligence indicators.
@@ -4386,7 +4952,7 @@ import java.io.IOException;
/** Samples for WatchlistItems CreateOrUpdate. */
public final class WatchlistItemsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/watchlists/CreateWatchlistItem.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/watchlists/CreateWatchlistItem.json
*/
/**
* Sample code: Creates or updates a watchlist item.
@@ -4422,7 +4988,7 @@ import com.azure.core.util.Context;
/** Samples for WatchlistItems Delete. */
public final class WatchlistItemsDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/watchlists/DeleteWatchlistItem.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/watchlists/DeleteWatchlistItem.json
*/
/**
* Sample code: Delete a watchlist Item.
@@ -4447,7 +5013,7 @@ import com.azure.core.util.Context;
/** Samples for WatchlistItems Get. */
public final class WatchlistItemsGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/watchlists/GetWatchlistItemById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/watchlists/GetWatchlistItemById.json
*/
/**
* Sample code: Get a watchlist item.
@@ -4471,7 +5037,7 @@ import com.azure.core.util.Context;
/** Samples for WatchlistItems List. */
public final class WatchlistItemsListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/watchlists/GetWatchlistItems.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/watchlists/GetWatchlistItems.json
*/
/**
* Sample code: Get all watchlist Items.
@@ -4493,7 +5059,7 @@ import com.azure.resourcemanager.securityinsights.models.Source;
/** Samples for Watchlists CreateOrUpdate. */
public final class WatchlistsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/watchlists/CreateWatchlistAndWatchlistItems.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/watchlists/CreateWatchlistAndWatchlistItems.json
*/
/**
* Sample code: Creates or updates a watchlist and bulk creates watchlist items.
@@ -4519,7 +5085,7 @@ public final class WatchlistsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/watchlists/CreateWatchlist.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/watchlists/CreateWatchlist.json
*/
/**
* Sample code: Creates or updates a watchlist.
@@ -4551,7 +5117,7 @@ import com.azure.core.util.Context;
/** Samples for Watchlists Delete. */
public final class WatchlistsDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/watchlists/DeleteWatchlist.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/watchlists/DeleteWatchlist.json
*/
/**
* Sample code: Delete a watchlist.
@@ -4572,7 +5138,7 @@ import com.azure.core.util.Context;
/** Samples for Watchlists Get. */
public final class WatchlistsGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/watchlists/GetWatchlistByAlias.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/watchlists/GetWatchlistByAlias.json
*/
/**
* Sample code: Get a watchlist.
@@ -4593,7 +5159,7 @@ import com.azure.core.util.Context;
/** Samples for Watchlists List. */
public final class WatchlistsListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/watchlists/GetWatchlists.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-10-01-preview/examples/watchlists/GetWatchlists.json
*/
/**
* Sample code: Get all watchlists.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/pom.xml b/sdk/securityinsights/azure-resourcemanager-securityinsights/pom.xml
index 36bcf49e04fde..0e1c6f7e38d63 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/pom.xml
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/pom.xml
@@ -13,7 +13,7 @@
jar
Microsoft Azure SDK for SecurityInsights Management
- This package contains Microsoft Azure SDK for SecurityInsights Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provider. Package tag package-preview-2021-09.
+ This package contains Microsoft Azure SDK for SecurityInsights Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provider. Package tag package-preview-2021-10.
https://github.com/Azure/azure-sdk-for-java
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/SecurityInsightsManager.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/SecurityInsightsManager.java
index 278e6696e8f0e..17a567b535d01 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/SecurityInsightsManager.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/SecurityInsightsManager.java
@@ -107,6 +107,8 @@ public final class SecurityInsightsManager {
private AutomationRules automationRules;
+ private Incidents incidents;
+
private Bookmarks bookmarks;
private BookmarkRelations bookmarkRelations;
@@ -117,8 +119,6 @@ public final class SecurityInsightsManager {
private DomainWhois domainWhois;
- private EntityQueries entityQueries;
-
private Entities entities;
private EntitiesGetTimelines entitiesGetTimelines;
@@ -127,7 +127,9 @@ public final class SecurityInsightsManager {
private EntityRelations entityRelations;
- private Incidents incidents;
+ private EntityQueries entityQueries;
+
+ private EntityQueryTemplates entityQueryTemplates;
private IncidentComments incidentComments;
@@ -135,6 +137,8 @@ public final class SecurityInsightsManager {
private Metadatas metadatas;
+ private OfficeConsents officeConsents;
+
private SentinelOnboardingStates sentinelOnboardingStates;
private ProductSettings productSettings;
@@ -143,6 +147,12 @@ public final class SecurityInsightsManager {
private SourceControlsOperations sourceControlsOperations;
+ private ThreatIntelligenceIndicators threatIntelligenceIndicators;
+
+ private ThreatIntelligenceIndicatorsOperations threatIntelligenceIndicatorsOperations;
+
+ private ThreatIntelligenceIndicatorMetrics threatIntelligenceIndicatorMetrics;
+
private Watchlists watchlists;
private WatchlistItems watchlistItems;
@@ -151,18 +161,8 @@ public final class SecurityInsightsManager {
private DataConnectorsCheckRequirementsOperations dataConnectorsCheckRequirementsOperations;
- private ThreatIntelligenceIndicators threatIntelligenceIndicators;
-
- private ThreatIntelligenceIndicatorsOperations threatIntelligenceIndicatorsOperations;
-
- private ThreatIntelligenceIndicatorMetrics threatIntelligenceIndicatorMetrics;
-
private Operations operations;
- private OfficeConsents officeConsents;
-
- private EntityQueryTemplates entityQueryTemplates;
-
private final SecurityInsights clientObject;
private SecurityInsightsManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -383,6 +383,14 @@ public AutomationRules automationRules() {
return automationRules;
}
+ /** @return Resource collection API of Incidents. */
+ public Incidents incidents() {
+ if (this.incidents == null) {
+ this.incidents = new IncidentsImpl(clientObject.getIncidents(), this);
+ }
+ return incidents;
+ }
+
/** @return Resource collection API of Bookmarks. */
public Bookmarks bookmarks() {
if (this.bookmarks == null) {
@@ -423,14 +431,6 @@ public DomainWhois domainWhois() {
return domainWhois;
}
- /** @return Resource collection API of EntityQueries. */
- public EntityQueries entityQueries() {
- if (this.entityQueries == null) {
- this.entityQueries = new EntityQueriesImpl(clientObject.getEntityQueries(), this);
- }
- return entityQueries;
- }
-
/** @return Resource collection API of Entities. */
public Entities entities() {
if (this.entities == null) {
@@ -463,12 +463,20 @@ public EntityRelations entityRelations() {
return entityRelations;
}
- /** @return Resource collection API of Incidents. */
- public Incidents incidents() {
- if (this.incidents == null) {
- this.incidents = new IncidentsImpl(clientObject.getIncidents(), this);
+ /** @return Resource collection API of EntityQueries. */
+ public EntityQueries entityQueries() {
+ if (this.entityQueries == null) {
+ this.entityQueries = new EntityQueriesImpl(clientObject.getEntityQueries(), this);
}
- return incidents;
+ return entityQueries;
+ }
+
+ /** @return Resource collection API of EntityQueryTemplates. */
+ public EntityQueryTemplates entityQueryTemplates() {
+ if (this.entityQueryTemplates == null) {
+ this.entityQueryTemplates = new EntityQueryTemplatesImpl(clientObject.getEntityQueryTemplates(), this);
+ }
+ return entityQueryTemplates;
}
/** @return Resource collection API of IncidentComments. */
@@ -495,6 +503,14 @@ public Metadatas metadatas() {
return metadatas;
}
+ /** @return Resource collection API of OfficeConsents. */
+ public OfficeConsents officeConsents() {
+ if (this.officeConsents == null) {
+ this.officeConsents = new OfficeConsentsImpl(clientObject.getOfficeConsents(), this);
+ }
+ return officeConsents;
+ }
+
/** @return Resource collection API of SentinelOnboardingStates. */
public SentinelOnboardingStates sentinelOnboardingStates() {
if (this.sentinelOnboardingStates == null) {
@@ -529,6 +545,34 @@ public SourceControlsOperations sourceControlsOperations() {
return sourceControlsOperations;
}
+ /** @return Resource collection API of ThreatIntelligenceIndicators. */
+ public ThreatIntelligenceIndicators threatIntelligenceIndicators() {
+ if (this.threatIntelligenceIndicators == null) {
+ this.threatIntelligenceIndicators =
+ new ThreatIntelligenceIndicatorsImpl(clientObject.getThreatIntelligenceIndicators(), this);
+ }
+ return threatIntelligenceIndicators;
+ }
+
+ /** @return Resource collection API of ThreatIntelligenceIndicatorsOperations. */
+ public ThreatIntelligenceIndicatorsOperations threatIntelligenceIndicatorsOperations() {
+ if (this.threatIntelligenceIndicatorsOperations == null) {
+ this.threatIntelligenceIndicatorsOperations =
+ new ThreatIntelligenceIndicatorsOperationsImpl(
+ clientObject.getThreatIntelligenceIndicatorsOperations(), this);
+ }
+ return threatIntelligenceIndicatorsOperations;
+ }
+
+ /** @return Resource collection API of ThreatIntelligenceIndicatorMetrics. */
+ public ThreatIntelligenceIndicatorMetrics threatIntelligenceIndicatorMetrics() {
+ if (this.threatIntelligenceIndicatorMetrics == null) {
+ this.threatIntelligenceIndicatorMetrics =
+ new ThreatIntelligenceIndicatorMetricsImpl(clientObject.getThreatIntelligenceIndicatorMetrics(), this);
+ }
+ return threatIntelligenceIndicatorMetrics;
+ }
+
/** @return Resource collection API of Watchlists. */
public Watchlists watchlists() {
if (this.watchlists == null) {
@@ -563,34 +607,6 @@ public DataConnectorsCheckRequirementsOperations dataConnectorsCheckRequirements
return dataConnectorsCheckRequirementsOperations;
}
- /** @return Resource collection API of ThreatIntelligenceIndicators. */
- public ThreatIntelligenceIndicators threatIntelligenceIndicators() {
- if (this.threatIntelligenceIndicators == null) {
- this.threatIntelligenceIndicators =
- new ThreatIntelligenceIndicatorsImpl(clientObject.getThreatIntelligenceIndicators(), this);
- }
- return threatIntelligenceIndicators;
- }
-
- /** @return Resource collection API of ThreatIntelligenceIndicatorsOperations. */
- public ThreatIntelligenceIndicatorsOperations threatIntelligenceIndicatorsOperations() {
- if (this.threatIntelligenceIndicatorsOperations == null) {
- this.threatIntelligenceIndicatorsOperations =
- new ThreatIntelligenceIndicatorsOperationsImpl(
- clientObject.getThreatIntelligenceIndicatorsOperations(), this);
- }
- return threatIntelligenceIndicatorsOperations;
- }
-
- /** @return Resource collection API of ThreatIntelligenceIndicatorMetrics. */
- public ThreatIntelligenceIndicatorMetrics threatIntelligenceIndicatorMetrics() {
- if (this.threatIntelligenceIndicatorMetrics == null) {
- this.threatIntelligenceIndicatorMetrics =
- new ThreatIntelligenceIndicatorMetricsImpl(clientObject.getThreatIntelligenceIndicatorMetrics(), this);
- }
- return threatIntelligenceIndicatorMetrics;
- }
-
/** @return Resource collection API of Operations. */
public Operations operations() {
if (this.operations == null) {
@@ -599,22 +615,6 @@ public Operations operations() {
return operations;
}
- /** @return Resource collection API of OfficeConsents. */
- public OfficeConsents officeConsents() {
- if (this.officeConsents == null) {
- this.officeConsents = new OfficeConsentsImpl(clientObject.getOfficeConsents(), this);
- }
- return officeConsents;
- }
-
- /** @return Resource collection API of EntityQueryTemplates. */
- public EntityQueryTemplates entityQueryTemplates() {
- if (this.entityQueryTemplates == null) {
- this.entityQueryTemplates = new EntityQueryTemplatesImpl(clientObject.getEntityQueryTemplates(), this);
- }
- return entityQueryTemplates;
- }
-
/**
* @return Wrapped service client SecurityInsights providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/ActionsClient.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/ActionsClient.java
index b12c368e10595..1679ca2138ad0 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/ActionsClient.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/ActionsClient.java
@@ -23,7 +23,7 @@ public interface ActionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all actions of alert rule.
+ * @return all actions of alert rule as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByAlertRule(String resourceGroupName, String workspaceName, String ruleId);
@@ -38,7 +38,7 @@ public interface ActionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all actions of alert rule.
+ * @return all actions of alert rule as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByAlertRule(
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/AlertRuleTemplatesClient.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/AlertRuleTemplatesClient.java
index 3a0d28ae7b750..c568ee0f23feb 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/AlertRuleTemplatesClient.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/AlertRuleTemplatesClient.java
@@ -21,7 +21,7 @@ public interface AlertRuleTemplatesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all alert rule templates.
+ * @return all alert rule templates as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String workspaceName);
@@ -35,7 +35,7 @@ public interface AlertRuleTemplatesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all alert rule templates.
+ * @return all alert rule templates as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String workspaceName, Context context);
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/AlertRulesClient.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/AlertRulesClient.java
index 49f5930dfee3e..d40ca296e5fc6 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/AlertRulesClient.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/AlertRulesClient.java
@@ -21,7 +21,7 @@ public interface AlertRulesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all alert rules.
+ * @return all alert rules as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String workspaceName);
@@ -35,7 +35,7 @@ public interface AlertRulesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all alert rules.
+ * @return all alert rules as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String workspaceName, Context context);
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/AutomationRulesClient.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/AutomationRulesClient.java
index 7548031cd1ded..8bdfc546a32d2 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/AutomationRulesClient.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/AutomationRulesClient.java
@@ -13,33 +13,6 @@
/** An instance of this class provides access to all the operations defined in AutomationRulesClient. */
public interface AutomationRulesClient {
- /**
- * Gets all automation rules.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all automation rules.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String workspaceName);
-
- /**
- * Gets all automation rules.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all automation rules.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String workspaceName, Context context);
-
/**
* Gets the automation rule.
*
@@ -76,15 +49,13 @@ Response getWithResponse(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param automationRuleId Automation rule ID.
- * @param automationRule The automation rule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents an automation rule.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AutomationRuleInner createOrUpdate(
- String resourceGroupName, String workspaceName, String automationRuleId, AutomationRuleInner automationRule);
+ AutomationRuleInner createOrUpdate(String resourceGroupName, String workspaceName, String automationRuleId);
/**
* Creates or updates the automation rule.
@@ -92,19 +63,19 @@ AutomationRuleInner createOrUpdate(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param automationRuleId Automation rule ID.
- * @param automationRule The automation rule.
+ * @param automationRuleToUpsert The automation rule.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents an automation rule along with {@link Response}.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(
String resourceGroupName,
String workspaceName,
String automationRuleId,
- AutomationRuleInner automationRule,
+ AutomationRuleInner automationRuleToUpsert,
Context context);
/**
@@ -116,9 +87,10 @@ Response createOrUpdateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return any object.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String workspaceName, String automationRuleId);
+ Object delete(String resourceGroupName, String workspaceName, String automationRuleId);
/**
* Delete the automation rule.
@@ -130,9 +102,36 @@ Response createOrUpdateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
+ * @return any object along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(
+ Response