diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/CHANGELOG.md b/sdk/securityinsights/azure-resourcemanager-securityinsights/CHANGELOG.md
index 51d1f53d4466..df7a1d0a5999 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.5 (Unreleased)
+## 1.0.0-beta.1 (2022-11-17)
+
+- 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-2022-11. 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 be7cd5eb6b9e..52ecf769d58e 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-2022-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-2022-11. 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.4
+ 1.0.0-beta.5
```
[//]: # ({x-version-update-end})
@@ -41,19 +41,19 @@ Various documentation is available to help you get started
Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client.
-[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation.
+[Azure Identity][azure_identity] and [Azure Core Netty HTTP][azure_core_http_netty] packages provide the default implementation.
### Authentication
-By default, Azure Active Directory token authentication depends on correct configure of following environment variables.
+By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables.
- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
-In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
+In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.
-With above configuration, `azure` client can be authenticated by following code:
+With above configuration, `azure` client can be authenticated using the following code:
```java
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
@@ -83,13 +83,13 @@ See [API design][design] for general introduction on design and key concepts on
## Contributing
-For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md).
+For details on contributing to this repository, see the [contributing guide][cg].
-1. Fork it
-1. Create your feature branch (`git checkout -b my-new-feature`)
-1. Commit your changes (`git commit -am 'Add some feature'`)
-1. Push to the branch (`git push origin my-new-feature`)
-1. Create new Pull Request
+This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit .
+
+When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA.
+
+This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For more information see the [Code of Conduct FAQ][coc_faq] or contact with any additional questions or comments.
[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
@@ -100,3 +100,6 @@ For details on contributing to this repository, see the [contributing guide](htt
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md
[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md
+[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
+[coc]: https://opensource.microsoft.com/codeofconduct/
+[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/SAMPLE.md b/sdk/securityinsights/azure-resourcemanager-securityinsights/SAMPLE.md
index de287165b2a0..d2395bae4f3f 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/SAMPLE.md
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/SAMPLE.md
@@ -101,6 +101,14 @@
- [Get](#fileimports_get)
- [List](#fileimports_list)
+## Get
+
+- [SingleRecommendation](#get_singlerecommendation)
+
+## GetRecommendations
+
+- [List](#getrecommendations_list)
+
## IncidentComments
- [CreateOrUpdate](#incidentcomments_createorupdate)
@@ -199,6 +207,10 @@
- [List](#threatintelligenceindicatorsoperation_list)
+## Update
+
+- [Recommendation](#update_recommendation)
+
## WatchlistItems
- [CreateOrUpdate](#watchlistitems_createorupdate)
@@ -218,7 +230,7 @@
/** Samples for Actions CreateOrUpdate. */
public final class ActionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/actions/CreateActionOfAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/actions/CreateActionOfAlertRule.json
*/
/**
* Sample code: Creates or updates an action of alert rule.
@@ -249,7 +261,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/2022-09-01-preview/examples/actions/DeleteActionOfAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/actions/DeleteActionOfAlertRule.json
*/
/**
* Sample code: Delete an action of alert rule.
@@ -278,7 +290,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/2022-09-01-preview/examples/actions/GetActionOfAlertRuleById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/actions/GetActionOfAlertRuleById.json
*/
/**
* Sample code: Get an action of alert rule.
@@ -307,7 +319,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/2022-09-01-preview/examples/actions/GetAllActionsByAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/actions/GetAllActionsByAlertRule.json
*/
/**
* Sample code: Get all actions of alert rule.
@@ -329,7 +341,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/2022-09-01-preview/examples/alertRuleTemplates/GetAlertRuleTemplateById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/alertRuleTemplates/GetAlertRuleTemplateById.json
*/
/**
* Sample code: Get alert rule template by Id.
@@ -353,7 +365,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/2022-09-01-preview/examples/alertRuleTemplates/GetAlertRuleTemplates.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/alertRuleTemplates/GetAlertRuleTemplates.json
*/
/**
* Sample code: Get all alert rule templates.
@@ -373,6 +385,8 @@ public final class AlertRuleTemplatesListSamples {
import com.azure.core.util.Context;
import com.azure.resourcemanager.securityinsights.models.AlertDetail;
import com.azure.resourcemanager.securityinsights.models.AlertDetailsOverride;
+import com.azure.resourcemanager.securityinsights.models.AlertProperty;
+import com.azure.resourcemanager.securityinsights.models.AlertPropertyMapping;
import com.azure.resourcemanager.securityinsights.models.AlertSeverity;
import com.azure.resourcemanager.securityinsights.models.AttackTactic;
import com.azure.resourcemanager.securityinsights.models.EntityMapping;
@@ -392,6 +406,7 @@ import com.azure.resourcemanager.securityinsights.models.MicrosoftSecurityIncide
import com.azure.resourcemanager.securityinsights.models.MicrosoftSecurityProductName;
import com.azure.resourcemanager.securityinsights.models.NrtAlertRule;
import com.azure.resourcemanager.securityinsights.models.ScheduledAlertRule;
+import com.azure.resourcemanager.securityinsights.models.SentinelEntityMapping;
import com.azure.resourcemanager.securityinsights.models.TriggerOperator;
import java.time.Duration;
import java.util.Arrays;
@@ -401,7 +416,7 @@ import java.util.Map;
/** Samples for AlertRules CreateOrUpdate. */
public final class AlertRulesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/alertRules/CreateFusionAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/alertRules/CreateFusionAlertRule.json
*/
/**
* Sample code: Creates or updates a Fusion alert rule.
@@ -624,7 +639,7 @@ public final class AlertRulesCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/alertRules/CreateMicrosoftSecurityIncidentCreationAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/alertRules/CreateMicrosoftSecurityIncidentCreationAlertRule.json
*/
/**
* Sample code: Creates or updates a MicrosoftSecurityIncidentCreation rule.
@@ -648,7 +663,7 @@ public final class AlertRulesCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/alertRules/CreateScheduledAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/alertRules/CreateScheduledAlertRule.json
*/
/**
* Sample code: Creates or updates a Scheduled alert rule.
@@ -716,12 +731,26 @@ public final class AlertRulesCreateOrUpdateSamples {
.withAlertDetailsOverride(
new AlertDetailsOverride()
.withAlertDisplayNameFormat("Alert from {{Computer}}")
- .withAlertDescriptionFormat("Suspicious activity was made by {{ComputerIP}}")),
+ .withAlertDescriptionFormat("Suspicious activity was made by {{ComputerIP}}")
+ .withAlertDynamicProperties(
+ Arrays
+ .asList(
+ new AlertPropertyMapping()
+ .withAlertProperty(AlertProperty.PRODUCT_COMPONENT_NAME)
+ .withValue("ProductComponentNameCustomColumn"),
+ new AlertPropertyMapping()
+ .withAlertProperty(AlertProperty.PRODUCT_NAME)
+ .withValue("ProductNameCustomColumn"),
+ new AlertPropertyMapping()
+ .withAlertProperty(AlertProperty.ALERT_LINK)
+ .withValue("Link"))))
+ .withSentinelEntitiesMappings(
+ Arrays.asList(new SentinelEntityMapping().withColumnName("Entities"))),
Context.NONE);
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/alertRules/CreateFusionAlertRuleWithFusionScenarioExclusion.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/alertRules/CreateFusionAlertRuleWithFusionScenarioExclusion.json
*/
/**
* Sample code: Creates or updates a Fusion alert rule with scenario exclusion pattern.
@@ -944,7 +973,7 @@ public final class AlertRulesCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/alertRules/CreateNrtAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/alertRules/CreateNrtAlertRule.json
*/
/**
* Sample code: Creates or updates a Nrt alert rule.
@@ -1009,7 +1038,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/2022-09-01-preview/examples/alertRules/DeleteAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/alertRules/DeleteAlertRule.json
*/
/**
* Sample code: Delete an alert rule.
@@ -1032,7 +1061,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/2022-09-01-preview/examples/alertRules/GetScheduledAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/alertRules/GetScheduledAlertRule.json
*/
/**
* Sample code: Get a Scheduled alert rule.
@@ -1047,7 +1076,7 @@ public final class AlertRulesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/alertRules/GetNrtAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/alertRules/GetNrtAlertRule.json
*/
/**
* Sample code: Get an Nrt alert rule.
@@ -1061,7 +1090,7 @@ public final class AlertRulesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/alertRules/GetFusionAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/alertRules/GetFusionAlertRule.json
*/
/**
* Sample code: Get a Fusion alert rule.
@@ -1073,7 +1102,7 @@ public final class AlertRulesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/alertRules/GetMicrosoftSecurityIncidentCreationAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/alertRules/GetMicrosoftSecurityIncidentCreationAlertRule.json
*/
/**
* Sample code: Get a MicrosoftSecurityIncidentCreation rule.
@@ -1097,7 +1126,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/2022-09-01-preview/examples/alertRules/GetAllAlertRules.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/alertRules/GetAllAlertRules.json
*/
/**
* Sample code: Get all alert rules.
@@ -1120,7 +1149,7 @@ import java.util.List;
/** Samples for AutomationRules CreateOrUpdate. */
public final class AutomationRulesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/automationRules/AutomationRules_CreateOrUpdate.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/automationRules/AutomationRules_CreateOrUpdate.json
*/
/**
* Sample code: AutomationRules_CreateOrUpdate.
@@ -1150,7 +1179,7 @@ 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/2022-09-01-preview/examples/automationRules/AutomationRules_Delete.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/automationRules/AutomationRules_Delete.json
*/
/**
* Sample code: AutomationRules_Delete.
@@ -1174,7 +1203,7 @@ 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/2022-09-01-preview/examples/automationRules/AutomationRules_Get.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/automationRules/AutomationRules_Get.json
*/
/**
* Sample code: AutomationRules_Get.
@@ -1197,7 +1226,7 @@ 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/2022-09-01-preview/examples/automationRules/AutomationRules_List.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/automationRules/AutomationRules_List.json
*/
/**
* Sample code: AutomationRules_List.
@@ -1221,7 +1250,7 @@ import java.util.UUID;
/** Samples for BookmarkOperation Expand. */
public final class BookmarkOperationExpandSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/bookmarks/expand/PostExpandBookmark.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/bookmarks/expand/PostExpandBookmark.json
*/
/**
* Sample code: Expand an bookmark.
@@ -1250,7 +1279,7 @@ public final class BookmarkOperationExpandSamples {
/** Samples for BookmarkRelations CreateOrUpdate. */
public final class BookmarkRelationsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/bookmarks/relations/CreateBookmarkRelation.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/bookmarks/relations/CreateBookmarkRelation.json
*/
/**
* Sample code: Creates or updates a bookmark relation.
@@ -1278,7 +1307,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/2022-09-01-preview/examples/bookmarks/relations/DeleteBookmarkRelation.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/bookmarks/relations/DeleteBookmarkRelation.json
*/
/**
* Sample code: Delete the bookmark relation.
@@ -1307,7 +1336,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/2022-09-01-preview/examples/bookmarks/relations/GetBookmarkRelationByName.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/bookmarks/relations/GetBookmarkRelationByName.json
*/
/**
* Sample code: Get a bookmark relation.
@@ -1336,7 +1365,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/2022-09-01-preview/examples/bookmarks/relations/GetAllBookmarkRelations.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/bookmarks/relations/GetAllBookmarkRelations.json
*/
/**
* Sample code: Get all bookmark relations.
@@ -1366,7 +1395,7 @@ import java.util.UUID;
/** Samples for Bookmarks CreateOrUpdate. */
public final class BookmarksCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/bookmarks/CreateBookmark.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/bookmarks/CreateBookmark.json
*/
/**
* Sample code: Creates or updates a bookmark.
@@ -1415,7 +1444,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/2022-09-01-preview/examples/bookmarks/DeleteBookmark.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/bookmarks/DeleteBookmark.json
*/
/**
* Sample code: Delete a bookmark.
@@ -1438,7 +1467,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/2022-09-01-preview/examples/bookmarks/GetBookmarkById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/bookmarks/GetBookmarkById.json
*/
/**
* Sample code: Get a bookmark.
@@ -1461,7 +1490,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/2022-09-01-preview/examples/bookmarks/GetBookmarks.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/bookmarks/GetBookmarks.json
*/
/**
* Sample code: Get all bookmarks.
@@ -1488,7 +1517,7 @@ import java.util.Arrays;
/** Samples for DataConnectors Connect. */
public final class DataConnectorsConnectSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/ConnectAPIPollingV2Logs.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/ConnectAPIPollingV2Logs.json
*/
/**
* Sample code: Connect an APIPolling V2 logs data connector.
@@ -1505,7 +1534,7 @@ public final class DataConnectorsConnectSamples {
"316ec55e-7138-4d63-ab18-90c8a60fd1c8",
new DataConnectorConnectBody()
.withKind(ConnectAuthKind.APIKEY)
- .withApiKey("fakeKeyPlaceholder")
+ .withApiKey("fakeTokenPlaceholder")
.withDataCollectionEndpoint("https://test.eastus.ingest.monitor.azure.com")
.withDataCollectionRuleImmutableId("dcr-34adsj9o7d6f9de204478b9cgb43b631")
.withOutputStream("Custom-MyTableRawData")
@@ -1523,7 +1552,7 @@ public final class DataConnectorsConnectSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/ConnectAPIPolling.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/ConnectAPIPolling.json
*/
/**
* Sample code: Connect an APIPolling data connector.
@@ -1540,7 +1569,7 @@ public final class DataConnectorsConnectSamples {
"316ec55e-7138-4d63-ab18-90c8a60fd1c8",
new DataConnectorConnectBody()
.withKind(ConnectAuthKind.APIKEY)
- .withApiKey("fakeKeyPlaceholder")
+ .withApiKey("fakeTokenPlaceholder")
.withRequestConfigUserInputValues(
Arrays
.asList(
@@ -1615,7 +1644,7 @@ import java.util.Arrays;
/** Samples for DataConnectors CreateOrUpdate. */
public final class DataConnectorsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/CreateOfficeDataConnetor.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/CreateOfficeDataConnetor.json
*/
/**
* Sample code: Creates or updates an Office365 data connector.
@@ -1643,7 +1672,7 @@ public final class DataConnectorsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/CreateOfficePowerBIDataConnector.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/CreateOfficePowerBIDataConnector.json
*/
/**
* Sample code: Creates or updates an Office PowerBI data connector.
@@ -1668,7 +1697,7 @@ public final class DataConnectorsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/CreateThreatIntelligenceTaxiiDataConnector.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/CreateThreatIntelligenceTaxiiDataConnector.json
*/
/**
* Sample code: Creates or updates a Threat Intelligence Taxii data connector.
@@ -1690,7 +1719,7 @@ public final class DataConnectorsCreateOrUpdateSamples {
.withTaxiiServer("https://limo.anomali.com/api/v1/taxii2/feeds")
.withCollectionId("135")
.withUsername("--")
- .withPassword("--")
+ .withPassword("fakeTokenPlaceholder")
.withTaxiiLookbackPeriod(OffsetDateTime.parse("2020-01-01T13:00:30.123Z"))
.withPollingFrequency(PollingFrequency.ONCE_ADAY)
.withDataTypes(
@@ -1702,7 +1731,7 @@ public final class DataConnectorsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/CreateThreatIntelligenceDataConnector.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/CreateThreatIntelligenceDataConnector.json
*/
/**
* Sample code: Creates or updates an Threat Intelligence Platform data connector.
@@ -1727,7 +1756,7 @@ public final class DataConnectorsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/CreateDynamics365DataConnetor.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/CreateDynamics365DataConnetor.json
*/
/**
* Sample code: Creates or updates a Dynamics365 data connector.
@@ -1754,7 +1783,7 @@ public final class DataConnectorsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/CreateGenericUI.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/CreateGenericUI.json
*/
/**
* Sample code: Creates or updates a GenericUI data connector.
@@ -2074,7 +2103,7 @@ public final class DataConnectorsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/CreateOffice365ProjectDataConnetor.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/CreateOffice365ProjectDataConnetor.json
*/
/**
* Sample code: Creates or updates an Office365 Project data connector.
@@ -2099,7 +2128,7 @@ public final class DataConnectorsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/CreateAPIPolling.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/CreateAPIPolling.json
*/
/**
* Sample code: Creates or updates a APIPolling data connector.
@@ -2207,8 +2236,8 @@ public final class DataConnectorsCreateOrUpdateSamples {
.withAuth(
new CodelessConnectorPollingAuthProperties()
.withAuthType("APIKey")
- .withApiKeyName("Authorization")
- .withApiKeyIdentifier("token"))
+ .withApiKeyName("fakeTokenPlaceholder")
+ .withApiKeyIdentifier("fakeTokenPlaceholder"))
.withRequest(
new CodelessConnectorPollingRequestProperties()
.withApiEndpoint("https://api.github.com/organizations/{{placeHolder1}}/audit-log")
@@ -2252,7 +2281,7 @@ 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/2022-09-01-preview/examples/dataConnectors/DeleteOffice365ProjectDataConnetor.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/DeleteOffice365ProjectDataConnetor.json
*/
/**
* Sample code: Delete an Office365 Project data connector.
@@ -2267,7 +2296,7 @@ public final class DataConnectorsDeleteSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/DeleteGenericUI.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/DeleteGenericUI.json
*/
/**
* Sample code: Delete a GenericUI data connector.
@@ -2282,7 +2311,7 @@ public final class DataConnectorsDeleteSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/DeleteOfficeDataConnetor.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/DeleteOfficeDataConnetor.json
*/
/**
* Sample code: Delete an Office365 data connector.
@@ -2297,7 +2326,7 @@ public final class DataConnectorsDeleteSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/DeleteOfficePowerBIDataConnetor.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/DeleteOfficePowerBIDataConnetor.json
*/
/**
* Sample code: Delete an Office PowerBI data connector.
@@ -2312,7 +2341,7 @@ public final class DataConnectorsDeleteSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/DeleteAPIPolling.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/DeleteAPIPolling.json
*/
/**
* Sample code: Delete a APIPolling data connector.
@@ -2336,7 +2365,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/2022-09-01-preview/examples/dataConnectors/DisconnectAPIPolling.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/DisconnectAPIPolling.json
*/
/**
* Sample code: Disconnect an APIPolling data connector.
@@ -2360,7 +2389,7 @@ 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/2022-09-01-preview/examples/dataConnectors/GetOffice365ProjectDataConnetorById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/GetOffice365ProjectDataConnetorById.json
*/
/**
* Sample code: Get an Office365 Project data connector.
@@ -2375,7 +2404,7 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/GetGenericUI.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/GetGenericUI.json
*/
/**
* Sample code: Get a GenericUI data connector.
@@ -2390,7 +2419,7 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/GetOffice365AdvancedThreatProtectionById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/GetOffice365AdvancedThreatProtectionById.json
*/
/**
* Sample code: Get an Office ATP data connector.
@@ -2405,7 +2434,7 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/GetIoTById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/GetIoTById.json
*/
/**
* Sample code: Get a IoT data connector.
@@ -2420,7 +2449,7 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/GetMicrosoftCloudAppSecurityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/GetMicrosoftCloudAppSecurityById.json
*/
/**
* Sample code: Get a MCAS data connector.
@@ -2435,7 +2464,7 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/GetThreatIntelligenceTaxiiById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/GetThreatIntelligenceTaxiiById.json
*/
/**
* Sample code: Get a TI Taxii data connector.
@@ -2450,7 +2479,7 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/GetMicrosoftThreatIntelligenceById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/GetMicrosoftThreatIntelligenceById.json
*/
/**
* Sample code: Get a MicrosoftThreatIntelligence data connector.
@@ -2465,7 +2494,7 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/GetAzureSecurityCenterById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/GetAzureSecurityCenterById.json
*/
/**
* Sample code: Get a ASC data connector.
@@ -2480,7 +2509,7 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/GetThreatIntelligenceById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/GetThreatIntelligenceById.json
*/
/**
* Sample code: Get a TI data connector.
@@ -2494,7 +2523,7 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/GetAmazonWebServicesCloudTrailById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/GetAmazonWebServicesCloudTrailById.json
*/
/**
* Sample code: Get an AwsCloudTrail data connector.
@@ -2509,7 +2538,7 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/GetMicrosoftDefenderAdvancedThreatProtectionById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/GetMicrosoftDefenderAdvancedThreatProtectionById.json
*/
/**
* Sample code: Get a MDATP data connector.
@@ -2524,7 +2553,7 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/GetMicrosoftThreatProtectionById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/GetMicrosoftThreatProtectionById.json
*/
/**
* Sample code: Get a MicrosoftThreatProtection data connector.
@@ -2539,7 +2568,7 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/GetAzureActiveDirectoryById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/GetAzureActiveDirectoryById.json
*/
/**
* Sample code: Get an AAD data connector.
@@ -2554,7 +2583,7 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/GetAzureAdvancedThreatProtectionById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/GetAzureAdvancedThreatProtectionById.json
*/
/**
* Sample code: Get an AATP data connector.
@@ -2569,7 +2598,7 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/GetAPIPolling.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/GetAPIPolling.json
*/
/**
* Sample code: Get a APIPolling data connector.
@@ -2584,7 +2613,7 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/GetMicrosoftInsiderRiskManagementById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/GetMicrosoftInsiderRiskManagementById.json
*/
/**
* Sample code: Get an Office IRM data connector.
@@ -2599,7 +2628,7 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/GetDynamics365DataConnectorById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/GetDynamics365DataConnectorById.json
*/
/**
* Sample code: Get a Dynamics365 data connector.
@@ -2614,7 +2643,7 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/GetOfficeDataConnetorById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/GetOfficeDataConnetorById.json
*/
/**
* Sample code: Get an Office365 data connector.
@@ -2629,7 +2658,7 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/GetAmazonWebServicesS3ById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/GetAmazonWebServicesS3ById.json
*/
/**
* Sample code: Get an Aws S3 data connector.
@@ -2644,7 +2673,7 @@ public final class DataConnectorsGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/GetOfficePowerBIDataConnetorById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/GetOfficePowerBIDataConnetorById.json
*/
/**
* Sample code: Get an Office365 PowerBI data connector.
@@ -2668,7 +2697,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/2022-09-01-preview/examples/dataConnectors/GetDataConnectors.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/GetDataConnectors.json
*/
/**
* Sample code: Get all data connectors.
@@ -2703,7 +2732,7 @@ import com.azure.resourcemanager.securityinsights.models.TiTaxiiCheckRequirement
/** Samples for DataConnectorsCheckRequirementsOperation Post. */
public final class DataConnectorsCheckRequirementsOperationPostSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/CheckRequirementsOfficeATP.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/CheckRequirementsOfficeATP.json
*/
/**
* Sample code: Check requirements for OfficeATP.
@@ -2718,7 +2747,7 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/CheckRequirementsOffice365Project.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/CheckRequirementsOffice365Project.json
*/
/**
* Sample code: Check requirements for Office365Project.
@@ -2733,7 +2762,7 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/CheckRequirementsAzureActiveDirectory.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/CheckRequirementsAzureActiveDirectory.json
*/
/**
* Sample code: Check requirements for AAD.
@@ -2748,7 +2777,7 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/CheckRequirementsMicrosoftCloudAppSecurity.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/CheckRequirementsMicrosoftCloudAppSecurity.json
*/
/**
* Sample code: Check requirements for Mcas.
@@ -2763,7 +2792,7 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/CheckRequirementsIoT.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/CheckRequirementsIoT.json
*/
/**
* Sample code: Check requirements for IoT.
@@ -2782,7 +2811,7 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/CheckRequirementsMdatp.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/CheckRequirementsMdatp.json
*/
/**
* Sample code: Check requirements for Mdatp.
@@ -2797,7 +2826,7 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/CheckRequirementsAzureActiveDirectoryNoAuthorization.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/CheckRequirementsAzureActiveDirectoryNoAuthorization.json
*/
/**
* Sample code: Check requirements for AAD - no authorization.
@@ -2812,7 +2841,7 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/CheckRequirementsAzureSecurityCenter.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/CheckRequirementsAzureSecurityCenter.json
*/
/**
* Sample code: Check requirements for ASC.
@@ -2831,7 +2860,7 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/CheckRequirementsMicrosoftThreatProtection.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/CheckRequirementsMicrosoftThreatProtection.json
*/
/**
* Sample code: Check requirements for MicrosoftThreatProtection.
@@ -2846,7 +2875,7 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/CheckRequirementsThreatIntelligenceTaxii.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/CheckRequirementsThreatIntelligenceTaxii.json
*/
/**
* Sample code: Check requirements for TI Taxii.
@@ -2861,7 +2890,7 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/CheckRequirementsOfficeIRM.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/CheckRequirementsOfficeIRM.json
*/
/**
* Sample code: Check requirements for OfficeIRM.
@@ -2876,7 +2905,7 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/CheckRequirementsMicrosoftThreatIntelligence.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/CheckRequirementsMicrosoftThreatIntelligence.json
*/
/**
* Sample code: Check requirements for MicrosoftThreatIntelligence.
@@ -2891,7 +2920,7 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/CheckRequirementsOfficePowerBI.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/CheckRequirementsOfficePowerBI.json
*/
/**
* Sample code: Check requirements for OfficePowerBI.
@@ -2906,7 +2935,7 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/CheckRequirementsDynamics365.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/CheckRequirementsDynamics365.json
*/
/**
* Sample code: Check requirements for Dynamics365.
@@ -2921,7 +2950,7 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/CheckRequirementsAzureActiveDirectoryNoLicense.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/CheckRequirementsAzureActiveDirectoryNoLicense.json
*/
/**
* Sample code: Check requirements for AAD - no license.
@@ -2936,7 +2965,7 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/dataConnectors/CheckRequirementsThreatIntelligence.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/dataConnectors/CheckRequirementsThreatIntelligence.json
*/
/**
* Sample code: Check requirements for TI.
@@ -2960,7 +2989,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/2022-09-01-preview/examples/enrichment/GetWhoisByDomainName.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/enrichment/GetWhoisByDomainName.json
*/
/**
* Sample code: Get whois information for a single domain name.
@@ -2985,7 +3014,7 @@ import java.util.UUID;
/** Samples for Entities Expand. */
public final class EntitiesExpandSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/entities/expand/PostExpandEntity.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entities/expand/PostExpandEntity.json
*/
/**
* Sample code: Expand an entity.
@@ -3016,7 +3045,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/2022-09-01-preview/examples/entities/GetSubmissionMailEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entities/GetSubmissionMailEntityById.json
*/
/**
* Sample code: Get a submissionMail entity.
@@ -3029,7 +3058,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/entities/GetDnsEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entities/GetDnsEntityById.json
*/
/**
* Sample code: Get a dns entity.
@@ -3041,7 +3070,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/entities/GetFileHashEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entities/GetFileHashEntityById.json
*/
/**
* Sample code: Get a file hash entity.
@@ -3053,7 +3082,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/entities/GetIoTDeviceEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entities/GetIoTDeviceEntityById.json
*/
/**
* Sample code: Get an IoT device entity.
@@ -3066,7 +3095,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/entities/GetRegistryKeyEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entities/GetRegistryKeyEntityById.json
*/
/**
* Sample code: Get a registry key entity.
@@ -3079,7 +3108,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/entities/GetMailboxEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entities/GetMailboxEntityById.json
*/
/**
* Sample code: Get a mailbox entity.
@@ -3091,7 +3120,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/entities/GetMalwareEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entities/GetMalwareEntityById.json
*/
/**
* Sample code: Get a malware entity.
@@ -3103,7 +3132,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/entities/GetSecurityAlertEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entities/GetSecurityAlertEntityById.json
*/
/**
* Sample code: Get a security alert entity.
@@ -3116,7 +3145,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/entities/GetIpEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entities/GetIpEntityById.json
*/
/**
* Sample code: Get an ip entity.
@@ -3128,7 +3157,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/entities/GetAccountEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entities/GetAccountEntityById.json
*/
/**
* Sample code: Get an account entity.
@@ -3140,7 +3169,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/entities/GetCloudApplicationEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entities/GetCloudApplicationEntityById.json
*/
/**
* Sample code: Get a cloud application entity.
@@ -3153,7 +3182,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/entities/GetFileEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entities/GetFileEntityById.json
*/
/**
* Sample code: Get a file entity.
@@ -3165,7 +3194,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/entities/GetRegistryValueEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entities/GetRegistryValueEntityById.json
*/
/**
* Sample code: Get a registry value entity.
@@ -3178,7 +3207,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/entities/GetUrlEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entities/GetUrlEntityById.json
*/
/**
* Sample code: Get a url entity.
@@ -3190,7 +3219,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/entities/GetMailClusterEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entities/GetMailClusterEntityById.json
*/
/**
* Sample code: Get a mailCluster entity.
@@ -3203,7 +3232,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/entities/GetSecurityGroupEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entities/GetSecurityGroupEntityById.json
*/
/**
* Sample code: Get a security group entity.
@@ -3216,7 +3245,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/entities/GetMailMessageEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entities/GetMailMessageEntityById.json
*/
/**
* Sample code: Get a mailMessage entity.
@@ -3229,7 +3258,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/entities/GetAzureResourceEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entities/GetAzureResourceEntityById.json
*/
/**
* Sample code: Get an azure resource entity.
@@ -3242,7 +3271,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/entities/GetHostEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entities/GetHostEntityById.json
*/
/**
* Sample code: Get a host entity.
@@ -3254,7 +3283,7 @@ public final class EntitiesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/entities/GetProcessEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entities/GetProcessEntityById.json
*/
/**
* Sample code: Get a process entity.
@@ -3279,7 +3308,7 @@ import java.util.UUID;
/** Samples for Entities GetInsights. */
public final class EntitiesGetInsightsSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/entities/insights/PostGetInsights.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entities/insights/PostGetInsights.json
*/
/**
* Sample code: Entity Insight.
@@ -3311,7 +3340,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/2022-09-01-preview/examples/entities/GetEntities.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entities/GetEntities.json
*/
/**
* Sample code: Get all entities.
@@ -3333,7 +3362,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/2022-09-01-preview/examples/entities/GetQueries.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entities/GetQueries.json
*/
/**
* Sample code: Get Entity Query.
@@ -3363,7 +3392,7 @@ import java.time.OffsetDateTime;
/** Samples for EntitiesGetTimeline List. */
public final class EntitiesGetTimelineListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/entities/timeline/PostTimelineEntity.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entities/timeline/PostTimelineEntity.json
*/
/**
* Sample code: Entity timeline.
@@ -3394,7 +3423,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/2022-09-01-preview/examples/entities/relations/GetAllEntityRelations.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entities/relations/GetAllEntityRelations.json
*/
/**
* Sample code: Get all relations of an entity.
@@ -3424,7 +3453,7 @@ import java.util.Map;
/** Samples for EntityQueries CreateOrUpdate. */
public final class EntityQueriesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/entityQueries/CreateEntityQueryActivity.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entityQueries/CreateEntityQueryActivity.json
*/
/**
* Sample code: Creates or updates an Activity entity query.
@@ -3518,7 +3547,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/2022-09-01-preview/examples/entityQueries/DeleteEntityQuery.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entityQueries/DeleteEntityQuery.json
*/
/**
* Sample code: Delete an entity query.
@@ -3541,7 +3570,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/2022-09-01-preview/examples/entityQueries/GetActivityEntityQueryById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entityQueries/GetActivityEntityQueryById.json
*/
/**
* Sample code: Get an Activity entity query.
@@ -3556,7 +3585,7 @@ public final class EntityQueriesGetSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/entityQueries/GetExpansionEntityQueryById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entityQueries/GetExpansionEntityQueryById.json
*/
/**
* Sample code: Get an Expansion entity query.
@@ -3581,7 +3610,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/2022-09-01-preview/examples/entityQueries/GetEntityQueries.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entityQueries/GetEntityQueries.json
*/
/**
* Sample code: Get all entity queries.
@@ -3602,7 +3631,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/2022-09-01-preview/examples/entityQueryTemplates/GetActivityEntityQueryTemplateById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entityQueryTemplates/GetActivityEntityQueryTemplateById.json
*/
/**
* Sample code: Get an Activity entity query template.
@@ -3622,12 +3651,12 @@ public final class EntityQueryTemplatesGetSamples {
```java
import com.azure.core.util.Context;
-import com.azure.resourcemanager.securityinsights.models.Constant88;
+import com.azure.resourcemanager.securityinsights.models.Constant93;
/** Samples for EntityQueryTemplates List. */
public final class EntityQueryTemplatesListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/entityQueryTemplates/GetEntityQueryTemplates.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entityQueryTemplates/GetEntityQueryTemplates.json
*/
/**
* Sample code: Get all entity query templates.
@@ -3636,7 +3665,7 @@ public final class EntityQueryTemplatesListSamples {
*/
public static void getAllEntityQueryTemplates(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entityQueryTemplates().list("myRg", "myWorkspace", Constant88.ACTIVITY, Context.NONE);
+ manager.entityQueryTemplates().list("myRg", "myWorkspace", Constant93.ACTIVITY, Context.NONE);
}
}
```
@@ -3649,7 +3678,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/2022-09-01-preview/examples/entities/relations/GetEntityRelationByName.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/entities/relations/GetEntityRelationByName.json
*/
/**
* Sample code: Get an entity relation.
@@ -3680,7 +3709,7 @@ import com.azure.resourcemanager.securityinsights.models.IngestionMode;
/** Samples for FileImports Create. */
public final class FileImportsCreateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/fileImports/CreateFileImport.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/fileImports/CreateFileImport.json
*/
/**
* Sample code: Create a file import.
@@ -3710,7 +3739,7 @@ import com.azure.core.util.Context;
/** Samples for FileImports Delete. */
public final class FileImportsDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/fileImports/DeleteFileImport.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/fileImports/DeleteFileImport.json
*/
/**
* Sample code: Delete a file import.
@@ -3731,7 +3760,7 @@ import com.azure.core.util.Context;
/** Samples for FileImports Get. */
public final class FileImportsGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/fileImports/GetFileImportById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/fileImports/GetFileImportById.json
*/
/**
* Sample code: Get a file import.
@@ -3754,7 +3783,7 @@ import com.azure.core.util.Context;
/** Samples for FileImports List. */
public final class FileImportsListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/fileImports/GetFileImports.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/fileImports/GetFileImports.json
*/
/**
* Sample code: Get all file imports.
@@ -3769,13 +3798,60 @@ public final class FileImportsListSamples {
}
```
+### Get_SingleRecommendation
+
+```java
+import com.azure.core.util.Context;
+import java.util.UUID;
+
+/** Samples for Get SingleRecommendation. */
+public final class GetSingleRecommendationSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/recommendations/GetRecommendation.json
+ */
+ /**
+ * Sample code: Get a recommendation.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void getARecommendation(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .gets()
+ .singleRecommendationWithResponse(
+ "myRg", "myWorkspace", UUID.fromString("6d4b54eb-8684-4aa3-a156-3aa37b8014bc"), Context.NONE);
+ }
+}
+```
+
+### GetRecommendations_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for GetRecommendations List. */
+public final class GetRecommendationsListSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/recommendations/GetRecommendations.json
+ */
+ /**
+ * Sample code: Get Recommendations list.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void getRecommendationsList(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager.getRecommendations().listWithResponse("myRg", "myWorkspace", Context.NONE);
+ }
+}
+```
+
### IncidentComments_CreateOrUpdate
```java
/** Samples for IncidentComments CreateOrUpdate. */
public final class IncidentCommentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/incidents/comments/CreateIncidentComment.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/incidents/comments/CreateIncidentComment.json
*/
/**
* Sample code: Creates or updates an incident comment.
@@ -3802,7 +3878,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/2022-09-01-preview/examples/incidents/comments/DeleteIncidentComment.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/incidents/comments/DeleteIncidentComment.json
*/
/**
* Sample code: Delete the incident comment.
@@ -3831,7 +3907,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/2022-09-01-preview/examples/incidents/comments/GetIncidentCommentById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/incidents/comments/GetIncidentCommentById.json
*/
/**
* Sample code: Get an incident comment.
@@ -3860,7 +3936,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/2022-09-01-preview/examples/incidents/comments/GetAllIncidentComments.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/incidents/comments/GetAllIncidentComments.json
*/
/**
* Sample code: Get all incident comments.
@@ -3885,7 +3961,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/2022-09-01-preview/examples/incidents/relations/CreateIncidentRelation.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/incidents/relations/CreateIncidentRelation.json
*/
/**
* Sample code: Creates or updates an incident relation.
@@ -3917,7 +3993,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/2022-09-01-preview/examples/incidents/relations/DeleteIncidentRelation.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/incidents/relations/DeleteIncidentRelation.json
*/
/**
* Sample code: Delete the incident relation.
@@ -3946,7 +4022,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/2022-09-01-preview/examples/incidents/relations/GetIncidentRelationByName.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/incidents/relations/GetIncidentRelationByName.json
*/
/**
* Sample code: Get an incident relation.
@@ -3975,7 +4051,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/2022-09-01-preview/examples/incidents/relations/GetAllIncidentRelations.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/incidents/relations/GetAllIncidentRelations.json
*/
/**
* Sample code: Get all incident relations.
@@ -4005,7 +4081,7 @@ import java.util.UUID;
/** Samples for Incidents CreateOrUpdate. */
public final class IncidentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/incidents/CreateIncident.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/incidents/CreateIncident.json
*/
/**
* Sample code: Creates or updates an incident.
@@ -4043,7 +4119,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/2022-09-01-preview/examples/incidents/CreateTeam.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/incidents/CreateTeam.json
*/
/**
* Sample code: Creates incident teams group.
@@ -4072,7 +4148,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/2022-09-01-preview/examples/incidents/DeleteIncident.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/incidents/DeleteIncident.json
*/
/**
* Sample code: Delete an incident.
@@ -4095,7 +4171,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/2022-09-01-preview/examples/incidents/GetIncidentById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/incidents/GetIncidentById.json
*/
/**
* Sample code: Get an incident.
@@ -4118,7 +4194,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/2022-09-01-preview/examples/incidents/GetIncidents.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/incidents/GetIncidents.json
*/
/**
* Sample code: Get all incidents.
@@ -4139,7 +4215,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/2022-09-01-preview/examples/incidents/GetAllIncidentAlerts.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/incidents/GetAllIncidentAlerts.json
*/
/**
* Sample code: Get all incident alerts.
@@ -4163,7 +4239,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/2022-09-01-preview/examples/incidents/GetAllIncidentBookmarks.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/incidents/GetAllIncidentBookmarks.json
*/
/**
* Sample code: Get all incident bookmarks.
@@ -4187,7 +4263,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/2022-09-01-preview/examples/incidents/entities/GetAllIncidentEntities.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/incidents/entities/GetAllIncidentEntities.json
*/
/**
* Sample code: Gets all incident related entities.
@@ -4211,7 +4287,7 @@ 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/2022-09-01-preview/examples/manualTrigger/Incidents_RunPlaybook.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/manualTrigger/Incidents_RunPlaybook.json
*/
/**
* Sample code: Incidents_RunPlaybook.
@@ -4235,7 +4311,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/2022-09-01-preview/examples/enrichment/GetGeodataByIp.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/enrichment/GetGeodataByIp.json
*/
/**
* Sample code: Get geodata for a single IP address.
@@ -4267,7 +4343,7 @@ import java.util.Arrays;
/** Samples for Metadata Create. */
public final class MetadataCreateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/metadata/PutMetadata.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/metadata/PutMetadata.json
*/
/**
* Sample code: Create/update full metadata.
@@ -4343,7 +4419,7 @@ public final class MetadataCreateSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/metadata/PutMetadataMinimal.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/metadata/PutMetadataMinimal.json
*/
/**
* Sample code: Create/update minimal metadata.
@@ -4373,7 +4449,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/2022-09-01-preview/examples/metadata/DeleteMetadata.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/metadata/DeleteMetadata.json
*/
/**
* Sample code: Delete metadata.
@@ -4394,7 +4470,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/2022-09-01-preview/examples/metadata/GetMetadata.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/metadata/GetMetadata.json
*/
/**
* Sample code: Get single metadata by name.
@@ -4416,7 +4492,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/2022-09-01-preview/examples/metadata/GetAllMetadata.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/metadata/GetAllMetadata.json
*/
/**
* Sample code: Get all metadata.
@@ -4428,7 +4504,7 @@ public final class MetadataListSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/metadata/GetAllMetadataOData.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/metadata/GetAllMetadataOData.json
*/
/**
* Sample code: Get all metadata with OData filter/orderby/skip/top.
@@ -4452,7 +4528,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/2022-09-01-preview/examples/metadata/PatchMetadata.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/metadata/PatchMetadata.json
*/
/**
* Sample code: Update metadata.
@@ -4478,7 +4554,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/2022-09-01-preview/examples/officeConsents/DeleteOfficeConsents.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/officeConsents/DeleteOfficeConsents.json
*/
/**
* Sample code: Delete an office consent.
@@ -4502,7 +4578,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/2022-09-01-preview/examples/officeConsents/GetOfficeConsentsById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/officeConsents/GetOfficeConsentsById.json
*/
/**
* Sample code: Get an office consent.
@@ -4525,7 +4601,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/2022-09-01-preview/examples/officeConsents/GetOfficeConsents.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/officeConsents/GetOfficeConsents.json
*/
/**
* Sample code: Get all office consents.
@@ -4547,7 +4623,7 @@ import com.azure.core.util.Context;
/** Samples for Operations List. */
public final class OperationsListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/operations/ListOperations.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/operations/ListOperations.json
*/
/**
* Sample code: Get all operations.
@@ -4568,7 +4644,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/2022-09-01-preview/examples/settings/DeleteEyesOnSetting.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/settings/DeleteEyesOnSetting.json
*/
/**
* Sample code: Delete EyesOn settings.
@@ -4590,7 +4666,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/2022-09-01-preview/examples/settings/GetEyesOnSetting.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/settings/GetEyesOnSetting.json
*/
/**
* Sample code: Get EyesOn settings.
@@ -4611,7 +4687,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/2022-09-01-preview/examples/settings/GetAllSettings.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/settings/GetAllSettings.json
*/
/**
* Sample code: Get all settings.
@@ -4633,7 +4709,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/2022-09-01-preview/examples/settings/UpdateEyesOnSetting.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/settings/UpdateEyesOnSetting.json
*/
/**
* Sample code: Update EyesOn settings.
@@ -4672,7 +4748,7 @@ import java.util.UUID;
/** Samples for SecurityMLAnalyticsSettings CreateOrUpdate. */
public final class SecurityMLAnalyticsSettingsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/securityMLAnalyticsSettings/CreateAnomalySecurityMLAnalyticsSetting.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/securityMLAnalyticsSettings/CreateAnomalySecurityMLAnalyticsSetting.json
*/
/**
* Sample code: Creates or updates a Anomaly Security ML Analytics Settings.
@@ -4739,7 +4815,7 @@ import com.azure.core.util.Context;
/** Samples for SecurityMLAnalyticsSettings Delete. */
public final class SecurityMLAnalyticsSettingsDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/securityMLAnalyticsSettings/DeleteSecurityMLAnalyticsSetting.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/securityMLAnalyticsSettings/DeleteSecurityMLAnalyticsSetting.json
*/
/**
* Sample code: Delete a Security ML Analytics Settings.
@@ -4763,7 +4839,7 @@ import com.azure.core.util.Context;
/** Samples for SecurityMLAnalyticsSettings Get. */
public final class SecurityMLAnalyticsSettingsGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/securityMLAnalyticsSettings/GetAnomalySecurityMLAnalyticsSetting.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/securityMLAnalyticsSettings/GetAnomalySecurityMLAnalyticsSetting.json
*/
/**
* Sample code: Get a Anomaly Security ML Analytics Settings.
@@ -4787,7 +4863,7 @@ import com.azure.core.util.Context;
/** Samples for SecurityMLAnalyticsSettings List. */
public final class SecurityMLAnalyticsSettingsListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/securityMLAnalyticsSettings/GetAllSecurityMLAnalyticsSettings.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/securityMLAnalyticsSettings/GetAllSecurityMLAnalyticsSettings.json
*/
/**
* Sample code: Get all Security ML Analytics Settings.
@@ -4807,7 +4883,7 @@ public final class SecurityMLAnalyticsSettingsListSamples {
/** Samples for SentinelOnboardingStates Create. */
public final class SentinelOnboardingStatesCreateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/onboardingStates/CreateSentinelOnboardingState.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/onboardingStates/CreateSentinelOnboardingState.json
*/
/**
* Sample code: Create Sentinel onboarding state.
@@ -4834,7 +4910,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/2022-09-01-preview/examples/onboardingStates/DeleteSentinelOnboardingState.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/onboardingStates/DeleteSentinelOnboardingState.json
*/
/**
* Sample code: Delete Sentinel onboarding state.
@@ -4856,7 +4932,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/2022-09-01-preview/examples/onboardingStates/GetSentinelOnboardingState.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/onboardingStates/GetSentinelOnboardingState.json
*/
/**
* Sample code: Get Sentinel onboarding state.
@@ -4878,7 +4954,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/2022-09-01-preview/examples/onboardingStates/GetAllSentinelOnboardingStates.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/onboardingStates/GetAllSentinelOnboardingStates.json
*/
/**
* Sample code: Get all Sentinel onboarding states.
@@ -4901,7 +4977,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/2022-09-01-preview/examples/repositories/GetRepositories.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/repositories/GetRepositories.json
*/
/**
* Sample code: Get repository list.
@@ -4926,7 +5002,7 @@ import java.util.Arrays;
/** Samples for SourceControlsOperation Create. */
public final class SourceControlsOperationCreateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/sourcecontrols/CreateSourceControl.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/sourcecontrols/CreateSourceControl.json
*/
/**
* Sample code: Creates a source control.
@@ -4971,7 +5047,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/2022-09-01-preview/examples/sourcecontrols/DeleteSourceControl.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/sourcecontrols/DeleteSourceControl.json
*/
/**
* Sample code: Delete a source control.
@@ -4995,7 +5071,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/2022-09-01-preview/examples/sourcecontrols/GetSourceControlById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/sourcecontrols/GetSourceControlById.json
*/
/**
* Sample code: Get a source control.
@@ -5018,7 +5094,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/2022-09-01-preview/examples/sourcecontrols/GetSourceControls.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/sourcecontrols/GetSourceControls.json
*/
/**
* Sample code: Get all source controls.
@@ -5042,7 +5118,7 @@ import java.util.Arrays;
/** Samples for ThreatIntelligenceIndicator AppendTags. */
public final class ThreatIntelligenceIndicatorAppendTagsSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/threatintelligence/AppendTagsThreatIntelligence.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/threatintelligence/AppendTagsThreatIntelligence.json
*/
/**
* Sample code: Append tags to a threat intelligence indicator.
@@ -5073,7 +5149,7 @@ import java.util.Arrays;
/** Samples for ThreatIntelligenceIndicator Create. */
public final class ThreatIntelligenceIndicatorCreateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/threatintelligence/UpdateThreatIntelligence.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/threatintelligence/UpdateThreatIntelligence.json
*/
/**
* Sample code: Update a threat Intelligence indicator.
@@ -5121,7 +5197,7 @@ import java.util.Arrays;
/** Samples for ThreatIntelligenceIndicator CreateIndicator. */
public final class ThreatIntelligenceIndicatorCreateIndicatorSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/threatintelligence/CreateThreatIntelligence.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/threatintelligence/CreateThreatIntelligence.json
*/
/**
* Sample code: Create a new Threat Intelligence.
@@ -5166,7 +5242,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/2022-09-01-preview/examples/threatintelligence/DeleteThreatIntelligence.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/threatintelligence/DeleteThreatIntelligence.json
*/
/**
* Sample code: Delete a threat intelligence indicator.
@@ -5190,7 +5266,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/2022-09-01-preview/examples/threatintelligence/GetThreatIntelligenceById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/threatintelligence/GetThreatIntelligenceById.json
*/
/**
* Sample code: View a threat intelligence indicator by name.
@@ -5218,7 +5294,7 @@ import java.util.Arrays;
/** Samples for ThreatIntelligenceIndicator QueryIndicators. */
public final class ThreatIntelligenceIndicatorQueryIndicatorsSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/threatintelligence/QueryThreatIntelligence.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/threatintelligence/QueryThreatIntelligence.json
*/
/**
* Sample code: Query threat intelligence indicators as per filtering criteria.
@@ -5242,7 +5318,7 @@ public final class ThreatIntelligenceIndicatorQueryIndicatorsSamples {
Arrays
.asList(
new ThreatIntelligenceSortingCriteria()
- .withItemKey("lastUpdatedTimeUtc")
+ .withItemKey("fakeTokenPlaceholder")
.withSortOrder(ThreatIntelligenceSortingCriteriaEnum.DESCENDING)))
.withSources(Arrays.asList("Azure Sentinel")),
Context.NONE);
@@ -5260,7 +5336,7 @@ import java.util.Arrays;
/** Samples for ThreatIntelligenceIndicator ReplaceTags. */
public final class ThreatIntelligenceIndicatorReplaceTagsSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/threatintelligence/ReplaceTagsThreatIntelligence.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/threatintelligence/ReplaceTagsThreatIntelligence.json
*/
/**
* Sample code: Replace tags to a Threat Intelligence.
@@ -5291,7 +5367,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/2022-09-01-preview/examples/threatintelligence/CollectThreatIntelligenceMetrics.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/threatintelligence/CollectThreatIntelligenceMetrics.json
*/
/**
* Sample code: Get threat intelligence indicators metrics.
@@ -5313,7 +5389,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/2022-09-01-preview/examples/threatintelligence/GetThreatIntelligence.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/threatintelligence/GetThreatIntelligence.json
*/
/**
* Sample code: Get all threat intelligence indicators.
@@ -5329,6 +5405,39 @@ public final class ThreatIntelligenceIndicatorsOperationListSamples {
}
```
+### Update_Recommendation
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.securityinsights.models.RecommendationPatch;
+import com.azure.resourcemanager.securityinsights.models.State;
+import java.util.Arrays;
+import java.util.UUID;
+
+/** Samples for Update Recommendation. */
+public final class UpdateRecommendationSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/recommendations/PatchRecommendation.json
+ */
+ /**
+ * Sample code: Creates a recommendation.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void createsARecommendation(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .updates()
+ .recommendation(
+ "myRg",
+ "myWorkspace",
+ UUID.fromString("6d4b54eb-8684-4aa3-a156-3aa37b8014bc"),
+ Arrays.asList(new RecommendationPatch().withState(State.ACTIVE)),
+ Context.NONE);
+ }
+}
+```
+
### WatchlistItems_CreateOrUpdate
```java
@@ -5338,7 +5447,7 @@ import java.util.Map;
/** Samples for WatchlistItems CreateOrUpdate. */
public final class WatchlistItemsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/watchlists/CreateWatchlistItem.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/watchlists/CreateWatchlistItem.json
*/
/**
* Sample code: Creates or updates a watchlist item.
@@ -5390,7 +5499,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/2022-09-01-preview/examples/watchlists/DeleteWatchlistItem.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/watchlists/DeleteWatchlistItem.json
*/
/**
* Sample code: Delete a watchlist Item.
@@ -5415,7 +5524,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/2022-09-01-preview/examples/watchlists/GetWatchlistItemById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/watchlists/GetWatchlistItemById.json
*/
/**
* Sample code: Get a watchlist item.
@@ -5439,7 +5548,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/2022-09-01-preview/examples/watchlists/GetWatchlistItems.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/watchlists/GetWatchlistItems.json
*/
/**
* Sample code: Get all watchlist Items.
@@ -5461,7 +5570,7 @@ import com.azure.resourcemanager.securityinsights.models.SourceType;
/** Samples for Watchlists CreateOrUpdate. */
public final class WatchlistsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/watchlists/CreateWatchlistAndWatchlistItems.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/watchlists/CreateWatchlistAndWatchlistItems.json
*/
/**
* Sample code: Creates or updates a watchlist and bulk creates watchlist items.
@@ -5488,7 +5597,7 @@ public final class WatchlistsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/watchlists/CreateWatchlist.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/watchlists/CreateWatchlist.json
*/
/**
* Sample code: Creates or updates a watchlist.
@@ -5521,7 +5630,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/2022-09-01-preview/examples/watchlists/DeleteWatchlist.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/watchlists/DeleteWatchlist.json
*/
/**
* Sample code: Delete a watchlist.
@@ -5542,7 +5651,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/2022-09-01-preview/examples/watchlists/GetWatchlistByAlias.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-01-preview/examples/watchlists/GetWatchlistByAlias.json
*/
/**
* Sample code: Get a watchlist.
@@ -5563,7 +5672,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/2022-09-01-preview/examples/watchlists/GetWatchlists.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-11-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 29890161efee..550986e5b88e 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-2022-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-2022-11.
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 6868ca4ea727..67ad77344557 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
@@ -41,6 +41,8 @@
import com.azure.resourcemanager.securityinsights.implementation.EntityQueryTemplatesImpl;
import com.azure.resourcemanager.securityinsights.implementation.EntityRelationsImpl;
import com.azure.resourcemanager.securityinsights.implementation.FileImportsImpl;
+import com.azure.resourcemanager.securityinsights.implementation.GetRecommendationsImpl;
+import com.azure.resourcemanager.securityinsights.implementation.GetsImpl;
import com.azure.resourcemanager.securityinsights.implementation.IncidentCommentsImpl;
import com.azure.resourcemanager.securityinsights.implementation.IncidentRelationsImpl;
import com.azure.resourcemanager.securityinsights.implementation.IncidentsImpl;
@@ -57,6 +59,7 @@
import com.azure.resourcemanager.securityinsights.implementation.ThreatIntelligenceIndicatorMetricsImpl;
import com.azure.resourcemanager.securityinsights.implementation.ThreatIntelligenceIndicatorsImpl;
import com.azure.resourcemanager.securityinsights.implementation.ThreatIntelligenceIndicatorsOperationsImpl;
+import com.azure.resourcemanager.securityinsights.implementation.UpdatesImpl;
import com.azure.resourcemanager.securityinsights.implementation.WatchlistItemsImpl;
import com.azure.resourcemanager.securityinsights.implementation.WatchlistsImpl;
import com.azure.resourcemanager.securityinsights.models.Actions;
@@ -76,6 +79,8 @@
import com.azure.resourcemanager.securityinsights.models.EntityQueryTemplates;
import com.azure.resourcemanager.securityinsights.models.EntityRelations;
import com.azure.resourcemanager.securityinsights.models.FileImports;
+import com.azure.resourcemanager.securityinsights.models.GetRecommendations;
+import com.azure.resourcemanager.securityinsights.models.Gets;
import com.azure.resourcemanager.securityinsights.models.IncidentComments;
import com.azure.resourcemanager.securityinsights.models.IncidentRelations;
import com.azure.resourcemanager.securityinsights.models.Incidents;
@@ -91,6 +96,7 @@
import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceIndicatorMetrics;
import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceIndicators;
import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceIndicatorsOperations;
+import com.azure.resourcemanager.securityinsights.models.Updates;
import com.azure.resourcemanager.securityinsights.models.WatchlistItems;
import com.azure.resourcemanager.securityinsights.models.Watchlists;
import java.time.Duration;
@@ -157,6 +163,12 @@ public final class SecurityInsightsManager {
private SourceControlsOperations sourceControlsOperations;
+ private GetRecommendations getRecommendations;
+
+ private Gets gets;
+
+ private Updates updates;
+
private ThreatIntelligenceIndicators threatIntelligenceIndicators;
private ThreatIntelligenceIndicatorsOperations threatIntelligenceIndicatorsOperations;
@@ -338,7 +350,7 @@ public SecurityInsightsManager authenticate(TokenCredential credential, AzurePro
.append("-")
.append("com.azure.resourcemanager.securityinsights")
.append("/")
- .append("1.0.0-beta.4");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -710,6 +722,42 @@ public SourceControlsOperations sourceControlsOperations() {
return sourceControlsOperations;
}
+ /**
+ * Gets the resource collection API of GetRecommendations.
+ *
+ * @return Resource collection API of GetRecommendations.
+ */
+ public GetRecommendations getRecommendations() {
+ if (this.getRecommendations == null) {
+ this.getRecommendations = new GetRecommendationsImpl(clientObject.getGetRecommendations(), this);
+ }
+ return getRecommendations;
+ }
+
+ /**
+ * Gets the resource collection API of Gets.
+ *
+ * @return Resource collection API of Gets.
+ */
+ public Gets gets() {
+ if (this.gets == null) {
+ this.gets = new GetsImpl(clientObject.getGets(), this);
+ }
+ return gets;
+ }
+
+ /**
+ * Gets the resource collection API of Updates.
+ *
+ * @return Resource collection API of Updates.
+ */
+ public Updates updates() {
+ if (this.updates == null) {
+ this.updates = new UpdatesImpl(clientObject.getUpdates(), this);
+ }
+ return updates;
+ }
+
/**
* Gets the resource collection API of ThreatIntelligenceIndicators.
*
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 1679ca2138ad..18cfd50a2431 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
@@ -44,21 +44,6 @@ public interface ActionsClient {
PagedIterable listByAlertRule(
String resourceGroupName, String workspaceName, String ruleId, Context context);
- /**
- * Gets the action of alert rule.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param ruleId Alert rule ID.
- * @param actionId Action ID.
- * @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 action of alert rule.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ActionResponseInner get(String resourceGroupName, String workspaceName, String ruleId, String actionId);
-
/**
* Gets the action of alert rule.
*
@@ -77,21 +62,19 @@ Response getWithResponse(
String resourceGroupName, String workspaceName, String ruleId, String actionId, Context context);
/**
- * Creates or updates the action of alert rule.
+ * Gets the action of alert rule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param ruleId Alert rule ID.
* @param actionId Action ID.
- * @param action The action.
* @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 action for alert rule.
+ * @return the action of alert rule.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ActionResponseInner createOrUpdate(
- String resourceGroupName, String workspaceName, String ruleId, String actionId, ActionRequest action);
+ ActionResponseInner get(String resourceGroupName, String workspaceName, String ruleId, String actionId);
/**
* Creates or updates the action of alert rule.
@@ -117,18 +100,21 @@ Response createOrUpdateWithResponse(
Context context);
/**
- * Delete the action of alert rule.
+ * Creates or updates the action of alert rule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param ruleId Alert rule ID.
* @param actionId Action ID.
+ * @param action The action.
* @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 action for alert rule.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String workspaceName, String ruleId, String actionId);
+ ActionResponseInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String ruleId, String actionId, ActionRequest action);
/**
* Delete the action of alert rule.
@@ -146,4 +132,18 @@ Response createOrUpdateWithResponse(
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
String resourceGroupName, String workspaceName, String ruleId, String actionId, Context context);
+
+ /**
+ * Delete the action of alert rule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param ruleId Alert rule ID.
+ * @param actionId Action ID.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String ruleId, String actionId);
}
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 c568ee0f23fe..1747732b0446 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
@@ -46,13 +46,15 @@ public interface AlertRuleTemplatesClient {
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param alertRuleTemplateId Alert rule template ID.
+ * @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 the alert rule template.
+ * @return the alert rule template along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AlertRuleTemplateInner get(String resourceGroupName, String workspaceName, String alertRuleTemplateId);
+ Response getWithResponse(
+ String resourceGroupName, String workspaceName, String alertRuleTemplateId, Context context);
/**
* Gets the alert rule template.
@@ -60,13 +62,11 @@ public interface AlertRuleTemplatesClient {
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param alertRuleTemplateId Alert rule template ID.
- * @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 the alert rule template along with {@link Response}.
+ * @return the alert rule template.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String workspaceName, String alertRuleTemplateId, Context context);
+ AlertRuleTemplateInner get(String resourceGroupName, String workspaceName, String alertRuleTemplateId);
}
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 d40ca296e5fc..c77a3e9fa2fa 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
@@ -46,13 +46,15 @@ public interface AlertRulesClient {
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param ruleId Alert rule ID.
+ * @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 the alert rule.
+ * @return the alert rule along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AlertRuleInner get(String resourceGroupName, String workspaceName, String ruleId);
+ Response getWithResponse(
+ String resourceGroupName, String workspaceName, String ruleId, Context context);
/**
* Gets the alert rule.
@@ -60,15 +62,13 @@ public interface AlertRulesClient {
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param ruleId Alert rule ID.
- * @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 the alert rule along with {@link Response}.
+ * @return the alert rule.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String workspaceName, String ruleId, Context context);
+ AlertRuleInner get(String resourceGroupName, String workspaceName, String ruleId);
/**
* Creates or updates the alert rule.
@@ -77,14 +77,15 @@ Response getWithResponse(
* @param workspaceName The name of the workspace.
* @param ruleId Alert rule ID.
* @param alertRule The alert 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 alert rule.
+ * @return alert rule along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AlertRuleInner createOrUpdate(
- String resourceGroupName, String workspaceName, String ruleId, AlertRuleInner alertRule);
+ Response createOrUpdateWithResponse(
+ String resourceGroupName, String workspaceName, String ruleId, AlertRuleInner alertRule, Context context);
/**
* Creates or updates the alert rule.
@@ -93,15 +94,14 @@ AlertRuleInner createOrUpdate(
* @param workspaceName The name of the workspace.
* @param ruleId Alert rule ID.
* @param alertRule The alert 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 alert rule along with {@link Response}.
+ * @return alert rule.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String resourceGroupName, String workspaceName, String ruleId, AlertRuleInner alertRule, Context context);
+ AlertRuleInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String ruleId, AlertRuleInner alertRule);
/**
* Delete the alert rule.
@@ -109,12 +109,14 @@ Response createOrUpdateWithResponse(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param ruleId Alert rule ID.
+ * @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 the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String workspaceName, String ruleId);
+ Response deleteWithResponse(String resourceGroupName, String workspaceName, String ruleId, Context context);
/**
* Delete the alert rule.
@@ -122,12 +124,10 @@ Response createOrUpdateWithResponse(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param ruleId Alert rule ID.
- * @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 the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String workspaceName, String ruleId, Context context);
+ void delete(String resourceGroupName, String workspaceName, String ruleId);
}
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 8bdfc546a32d..1e448c15a203 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,20 +13,6 @@
/** An instance of this class provides access to all the operations defined in AutomationRulesClient. */
public interface AutomationRulesClient {
- /**
- * Gets the automation rule.
- *
- * @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.
- * @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 automation rule.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AutomationRuleInner get(String resourceGroupName, String workspaceName, String automationRuleId);
-
/**
* Gets the automation rule.
*
@@ -44,7 +30,7 @@ Response getWithResponse(
String resourceGroupName, String workspaceName, String automationRuleId, Context context);
/**
- * Creates or updates the automation rule.
+ * Gets the automation rule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
@@ -52,10 +38,10 @@ Response getWithResponse(
* @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 response.
+ * @return the automation rule.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AutomationRuleInner createOrUpdate(String resourceGroupName, String workspaceName, String automationRuleId);
+ AutomationRuleInner get(String resourceGroupName, String workspaceName, String automationRuleId);
/**
* Creates or updates the automation rule.
@@ -79,7 +65,7 @@ Response createOrUpdateWithResponse(
Context context);
/**
- * Delete the automation rule.
+ * Creates or updates the automation rule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
@@ -87,10 +73,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.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Object delete(String resourceGroupName, String workspaceName, String automationRuleId);
+ AutomationRuleInner createOrUpdate(String resourceGroupName, String workspaceName, String automationRuleId);
/**
* Delete the automation rule.
@@ -108,6 +94,20 @@ Response createOrUpdateWithResponse(
Response