diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/CHANGELOG.md b/sdk/securityinsights/azure-resourcemanager-securityinsights/CHANGELOG.md
index 51d1f53d44663..6fd7eb3450c00 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 (2023-03-21)
+
+- 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-2023-04. 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 be7cd5eb6b9ee..954941cdea426 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-2023-04. 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 de287165b2a01..e0bf6fc14c787 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/SAMPLE.md
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/SAMPLE.md
@@ -8,6 +8,10 @@
- [Get](#actions_get)
- [ListByAlertRule](#actions_listbyalertrule)
+## AlertRuleOperation
+
+- [TriggerRuleRun](#alertruleoperation_triggerrulerun)
+
## AlertRuleTemplates
- [Get](#alertruletemplates_get)
@@ -45,6 +49,26 @@
- [Get](#bookmarks_get)
- [List](#bookmarks_list)
+## ContentPackageOperation
+
+- [Install](#contentpackageoperation_install)
+- [Uninstall](#contentpackageoperation_uninstall)
+
+## ContentPackages
+
+- [Get](#contentpackages_get)
+- [List](#contentpackages_list)
+
+## ContentTemplateOperation
+
+- [Delete](#contenttemplateoperation_delete)
+- [Get](#contenttemplateoperation_get)
+- [Install](#contenttemplateoperation_install)
+
+## ContentTemplates
+
+- [List](#contenttemplates_list)
+
## DataConnectors
- [Connect](#dataconnectors_connect)
@@ -69,6 +93,7 @@
- [GetInsights](#entities_getinsights)
- [List](#entities_list)
- [Queries](#entities_queries)
+- [RunPlaybook](#entities_runplaybook)
## EntitiesGetTimeline
@@ -101,6 +126,18 @@
- [Get](#fileimports_get)
- [List](#fileimports_list)
+## Get
+
+- [SingleRecommendation](#get_singlerecommendation)
+
+## GetRecommendations
+
+- [List](#getrecommendations_list)
+
+## GetTriggeredAnalyticsRuleRuns
+
+- [List](#gettriggeredanalyticsruleruns_list)
+
## IncidentComments
- [CreateOrUpdate](#incidentcomments_createorupdate)
@@ -115,6 +152,13 @@
- [Get](#incidentrelations_get)
- [List](#incidentrelations_list)
+## IncidentTasks
+
+- [CreateOrUpdate](#incidenttasks_createorupdate)
+- [Delete](#incidenttasks_delete)
+- [Get](#incidenttasks_get)
+- [List](#incidenttasks_list)
+
## Incidents
- [CreateOrUpdate](#incidents_createorupdate)
@@ -149,6 +193,14 @@
- [List](#operations_list)
+## ProductPackageOperation
+
+- [Get](#productpackageoperation_get)
+
+## ProductPackages
+
+- [List](#productpackages_list)
+
## ProductSettings
- [Delete](#productsettings_delete)
@@ -156,6 +208,14 @@
- [List](#productsettings_list)
- [Update](#productsettings_update)
+## ProductTemplateOperation
+
+- [Get](#producttemplateoperation_get)
+
+## ProductTemplates
+
+- [List](#producttemplates_list)
+
## SecurityMLAnalyticsSettings
- [CreateOrUpdate](#securitymlanalyticssettings_createorupdate)
@@ -199,6 +259,14 @@
- [List](#threatintelligenceindicatorsoperation_list)
+## TriggeredAnalyticsRuleRunOperation
+
+- [Get](#triggeredanalyticsrulerunoperation_get)
+
+## Update
+
+- [Recommendation](#update_recommendation)
+
## WatchlistItems
- [CreateOrUpdate](#watchlistitems_createorupdate)
@@ -212,13 +280,27 @@
- [Delete](#watchlists_delete)
- [Get](#watchlists_get)
- [List](#watchlists_list)
+
+## WorkspaceManagerConfigurations
+
+- [CreateOrUpdate](#workspacemanagerconfigurations_createorupdate)
+- [Delete](#workspacemanagerconfigurations_delete)
+- [Get](#workspacemanagerconfigurations_get)
+- [List](#workspacemanagerconfigurations_list)
+
+## WorkspaceManagerMembers
+
+- [CreateOrUpdate](#workspacemanagermembers_createorupdate)
+- [Delete](#workspacemanagermembers_delete)
+- [Get](#workspacemanagermembers_get)
+- [List](#workspacemanagermembers_list)
### Actions_CreateOrUpdate
```java
/** 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/2023-04-01-preview/examples/actions/CreateActionOfAlertRule.json
*/
/**
* Sample code: Creates or updates an action of alert rule.
@@ -244,12 +326,10 @@ public final class ActionsCreateOrUpdateSamples {
### Actions_Delete
```java
-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/2023-04-01-preview/examples/actions/DeleteActionOfAlertRule.json
*/
/**
* Sample code: Delete an action of alert rule.
@@ -265,7 +345,7 @@ public final class ActionsDeleteSamples {
"myWorkspace",
"73e01a99-5cd7-4139-a149-9f2736ff2ab5",
"912bec42-cb66-4c03-ac63-1761b6898c3e",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -273,12 +353,10 @@ public final class ActionsDeleteSamples {
### Actions_Get
```java
-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/2023-04-01-preview/examples/actions/GetActionOfAlertRuleById.json
*/
/**
* Sample code: Get an action of alert rule.
@@ -294,7 +372,7 @@ public final class ActionsGetSamples {
"myWorkspace",
"73e01a99-5cd7-4139-a149-9f2736ff2ab5",
"912bec42-cb66-4c03-ac63-1761b6898c3e",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -302,12 +380,10 @@ public final class ActionsGetSamples {
### Actions_ListByAlertRule
```java
-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/2023-04-01-preview/examples/actions/GetAllActionsByAlertRule.json
*/
/**
* Sample code: Get all actions of alert rule.
@@ -316,20 +392,50 @@ public final class ActionsListByAlertRuleSamples {
*/
public static void getAllActionsOfAlertRule(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.actions().listByAlertRule("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", Context.NONE);
+ manager
+ .actions()
+ .listByAlertRule(
+ "myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", com.azure.core.util.Context.NONE);
}
}
```
-### AlertRuleTemplates_Get
+### AlertRuleOperation_TriggerRuleRun
```java
-import com.azure.core.util.Context;
+import com.azure.resourcemanager.securityinsights.models.AnalyticsRuleRunTrigger;
+import java.time.OffsetDateTime;
+
+/** Samples for AlertRuleOperation TriggerRuleRun. */
+public final class AlertRuleOperationTriggerRuleRunSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/triggeredAnalyticsRuleRuns/triggerRuleRun_Post.json
+ */
+ /**
+ * Sample code: triggerRuleRun_Post.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void triggerRuleRunPost(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .alertRuleOperations()
+ .triggerRuleRun(
+ "myRg",
+ "myWorkspace",
+ "65360bb0-8986-4ade-a89d-af3cf44d28aa",
+ new AnalyticsRuleRunTrigger().withExecutionTimeUtc(OffsetDateTime.parse("2022-12-22T15:37:03.074Z")),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AlertRuleTemplates_Get
+```java
/** 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/2023-04-01-preview/examples/alertRuleTemplates/GetAlertRuleTemplateById.json
*/
/**
* Sample code: Get alert rule template by Id.
@@ -340,7 +446,8 @@ public final class AlertRuleTemplatesGetSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.alertRuleTemplates()
- .getWithResponse("myRg", "myWorkspace", "65360bb0-8986-4ade-a89d-af3cf44d28aa", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "65360bb0-8986-4ade-a89d-af3cf44d28aa", com.azure.core.util.Context.NONE);
}
}
```
@@ -348,12 +455,10 @@ public final class AlertRuleTemplatesGetSamples {
### AlertRuleTemplates_List
```java
-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/2023-04-01-preview/examples/alertRuleTemplates/GetAlertRuleTemplates.json
*/
/**
* Sample code: Get all alert rule templates.
@@ -362,7 +467,7 @@ public final class AlertRuleTemplatesListSamples {
*/
public static void getAllAlertRuleTemplates(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.alertRuleTemplates().list("myRg", "myWorkspace", Context.NONE);
+ manager.alertRuleTemplates().list("myRg", "myWorkspace", com.azure.core.util.Context.NONE);
}
}
```
@@ -370,9 +475,10 @@ public final class AlertRuleTemplatesListSamples {
### AlertRules_CreateOrUpdate
```java
-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 +498,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 +508,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/2023-04-01-preview/examples/alertRules/CreateFusionAlertRule.json
*/
/**
* Sample code: Creates or updates a Fusion alert rule.
@@ -620,11 +727,11 @@ public final class AlertRulesCreateOrUpdateSamples {
.withEnabled(true)
.withSourceSubTypeName("Palo Alto Networks")
.withSeverityFilters(new FusionSubTypeSeverityFilter()))))),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/alertRules/CreateMicrosoftSecurityIncidentCreationAlertRule.json
*/
/**
* Sample code: Creates or updates a MicrosoftSecurityIncidentCreation rule.
@@ -644,11 +751,11 @@ public final class AlertRulesCreateOrUpdateSamples {
.withDisplayName("testing displayname")
.withEnabled(true)
.withProductFilter(MicrosoftSecurityProductName.MICROSOFT_CLOUD_APP_SECURITY),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/alertRules/CreateScheduledAlertRule.json
*/
/**
* Sample code: Creates or updates a Scheduled alert rule.
@@ -716,12 +823,26 @@ public final class AlertRulesCreateOrUpdateSamples {
.withAlertDetailsOverride(
new AlertDetailsOverride()
.withAlertDisplayNameFormat("Alert from {{Computer}}")
- .withAlertDescriptionFormat("Suspicious activity was made by {{ComputerIP}}")),
- Context.NONE);
+ .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"))),
+ com.azure.core.util.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/2023-04-01-preview/examples/alertRules/CreateFusionAlertRuleWithFusionScenarioExclusion.json
*/
/**
* Sample code: Creates or updates a Fusion alert rule with scenario exclusion pattern.
@@ -940,11 +1061,11 @@ public final class AlertRulesCreateOrUpdateSamples {
.withEnabled(true)
.withSourceSubTypeName("Palo Alto Networks")
.withSeverityFilters(new FusionSubTypeSeverityFilter()))))),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/alertRules/CreateNrtAlertRule.json
*/
/**
* Sample code: Creates or updates a Nrt alert rule.
@@ -985,7 +1106,7 @@ public final class AlertRulesCreateOrUpdateSamples {
Arrays.asList(EntityMappingType.HOST, EntityMappingType.ACCOUNT))))
.withEventGroupingSettings(
new EventGroupingSettings().withAggregationKind(EventGroupingAggregationKind.ALERT_PER_RESULT)),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
@SuppressWarnings("unchecked")
@@ -1004,12 +1125,10 @@ public final class AlertRulesCreateOrUpdateSamples {
### AlertRules_Delete
```java
-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/2023-04-01-preview/examples/alertRules/DeleteAlertRule.json
*/
/**
* Sample code: Delete an alert rule.
@@ -1019,7 +1138,8 @@ public final class AlertRulesDeleteSamples {
public static void deleteAnAlertRule(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.alertRules()
- .deleteWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", Context.NONE);
+ .deleteWithResponse(
+ "myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", com.azure.core.util.Context.NONE);
}
}
```
@@ -1027,12 +1147,10 @@ public final class AlertRulesDeleteSamples {
### AlertRules_Get
```java
-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/2023-04-01-preview/examples/alertRules/GetScheduledAlertRule.json
*/
/**
* Sample code: Get a Scheduled alert rule.
@@ -1043,11 +1161,12 @@ public final class AlertRulesGetSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.alertRules()
- .getWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/alertRules/GetNrtAlertRule.json
*/
/**
* Sample code: Get an Nrt alert rule.
@@ -1057,11 +1176,12 @@ public final class AlertRulesGetSamples {
public static void getAnNrtAlertRule(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.alertRules()
- .getWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/alertRules/GetFusionAlertRule.json
*/
/**
* Sample code: Get a Fusion alert rule.
@@ -1069,11 +1189,13 @@ public final class AlertRulesGetSamples {
* @param manager Entry point to SecurityInsightsManager.
*/
public static void getAFusionAlertRule(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.alertRules().getWithResponse("myRg", "myWorkspace", "myFirstFusionRule", Context.NONE);
+ manager
+ .alertRules()
+ .getWithResponse("myRg", "myWorkspace", "myFirstFusionRule", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/alertRules/GetMicrosoftSecurityIncidentCreationAlertRule.json
*/
/**
* Sample code: Get a MicrosoftSecurityIncidentCreation rule.
@@ -1084,7 +1206,11 @@ public final class AlertRulesGetSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.alertRules()
- .getWithResponse("myRg", "myWorkspace", "microsoftSecurityIncidentCreationRuleExample", Context.NONE);
+ .getWithResponse(
+ "myRg",
+ "myWorkspace",
+ "microsoftSecurityIncidentCreationRuleExample",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1092,12 +1218,10 @@ public final class AlertRulesGetSamples {
### AlertRules_List
```java
-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/2023-04-01-preview/examples/alertRules/GetAllAlertRules.json
*/
/**
* Sample code: Get all alert rules.
@@ -1105,7 +1229,7 @@ public final class AlertRulesListSamples {
* @param manager Entry point to SecurityInsightsManager.
*/
public static void getAllAlertRules(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.alertRules().list("myRg", "myWorkspace", Context.NONE);
+ manager.alertRules().list("myRg", "myWorkspace", com.azure.core.util.Context.NONE);
}
}
```
@@ -1120,7 +1244,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/2023-04-01-preview/examples/automationRules/AutomationRules_CreateOrUpdate.json
*/
/**
* Sample code: AutomationRules_CreateOrUpdate.
@@ -1145,12 +1269,10 @@ public final class AutomationRulesCreateOrUpdateSamples {
### AutomationRules_Delete
```java
-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/2023-04-01-preview/examples/automationRules/AutomationRules_Delete.json
*/
/**
* Sample code: AutomationRules_Delete.
@@ -1161,7 +1283,8 @@ public final class AutomationRulesDeleteSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.automationRules()
- .deleteWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", Context.NONE);
+ .deleteWithResponse(
+ "myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", com.azure.core.util.Context.NONE);
}
}
```
@@ -1169,12 +1292,10 @@ public final class AutomationRulesDeleteSamples {
### AutomationRules_Get
```java
-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/2023-04-01-preview/examples/automationRules/AutomationRules_Get.json
*/
/**
* Sample code: AutomationRules_Get.
@@ -1184,7 +1305,8 @@ public final class AutomationRulesGetSamples {
public static void automationRulesGet(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.automationRules()
- .getWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", com.azure.core.util.Context.NONE);
}
}
```
@@ -1192,12 +1314,10 @@ public final class AutomationRulesGetSamples {
### AutomationRules_List
```java
-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/2023-04-01-preview/examples/automationRules/AutomationRules_List.json
*/
/**
* Sample code: AutomationRules_List.
@@ -1205,7 +1325,7 @@ public final class AutomationRulesListSamples {
* @param manager Entry point to SecurityInsightsManager.
*/
public static void automationRulesList(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.automationRules().list("myRg", "myWorkspace", Context.NONE);
+ manager.automationRules().list("myRg", "myWorkspace", com.azure.core.util.Context.NONE);
}
}
```
@@ -1213,7 +1333,6 @@ public final class AutomationRulesListSamples {
### BookmarkOperation_Expand
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.securityinsights.models.BookmarkExpandParameters;
import java.time.OffsetDateTime;
import java.util.UUID;
@@ -1221,7 +1340,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/2023-04-01-preview/examples/bookmarks/expand/PostExpandBookmark.json
*/
/**
* Sample code: Expand an bookmark.
@@ -1239,7 +1358,7 @@ public final class BookmarkOperationExpandSamples {
.withEndTime(OffsetDateTime.parse("2020-01-24T17:21:00.000Z"))
.withExpansionId(UUID.fromString("27f76e63-c41b-480f-bb18-12ad2e011d49"))
.withStartTime(OffsetDateTime.parse("2019-12-25T17:21:00.000Z")),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1250,7 +1369,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/2023-04-01-preview/examples/bookmarks/relations/CreateBookmarkRelation.json
*/
/**
* Sample code: Creates or updates a bookmark relation.
@@ -1273,12 +1392,10 @@ public final class BookmarkRelationsCreateOrUpdateSamples {
### BookmarkRelations_Delete
```java
-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/2023-04-01-preview/examples/bookmarks/relations/DeleteBookmarkRelation.json
*/
/**
* Sample code: Delete the bookmark relation.
@@ -1294,7 +1411,7 @@ public final class BookmarkRelationsDeleteSamples {
"myWorkspace",
"2216d0e1-91e3-4902-89fd-d2df8c535096",
"4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1302,12 +1419,10 @@ public final class BookmarkRelationsDeleteSamples {
### BookmarkRelations_Get
```java
-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/2023-04-01-preview/examples/bookmarks/relations/GetBookmarkRelationByName.json
*/
/**
* Sample code: Get a bookmark relation.
@@ -1323,7 +1438,7 @@ public final class BookmarkRelationsGetSamples {
"myWorkspace",
"2216d0e1-91e3-4902-89fd-d2df8c535096",
"4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1331,12 +1446,10 @@ public final class BookmarkRelationsGetSamples {
### BookmarkRelations_List
```java
-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/2023-04-01-preview/examples/bookmarks/relations/GetAllBookmarkRelations.json
*/
/**
* Sample code: Get all bookmark relations.
@@ -1347,7 +1460,15 @@ public final class BookmarkRelationsListSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.bookmarkRelations()
- .list("myRg", "myWorkspace", "2216d0e1-91e3-4902-89fd-d2df8c535096", null, null, null, null, Context.NONE);
+ .list(
+ "myRg",
+ "myWorkspace",
+ "2216d0e1-91e3-4902-89fd-d2df8c535096",
+ null,
+ null,
+ null,
+ null,
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1366,7 +1487,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/2023-04-01-preview/examples/bookmarks/CreateBookmark.json
*/
/**
* Sample code: Creates or updates a bookmark.
@@ -1410,12 +1531,10 @@ public final class BookmarksCreateOrUpdateSamples {
### Bookmarks_Delete
```java
-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/2023-04-01-preview/examples/bookmarks/DeleteBookmark.json
*/
/**
* Sample code: Delete a bookmark.
@@ -1425,7 +1544,8 @@ public final class BookmarksDeleteSamples {
public static void deleteABookmark(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.bookmarks()
- .deleteWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", Context.NONE);
+ .deleteWithResponse(
+ "myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", com.azure.core.util.Context.NONE);
}
}
```
@@ -1433,12 +1553,10 @@ public final class BookmarksDeleteSamples {
### Bookmarks_Get
```java
-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/2023-04-01-preview/examples/bookmarks/GetBookmarkById.json
*/
/**
* Sample code: Get a bookmark.
@@ -1448,7 +1566,8 @@ public final class BookmarksGetSamples {
public static void getABookmark(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.bookmarks()
- .getWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", com.azure.core.util.Context.NONE);
}
}
```
@@ -1456,12 +1575,10 @@ public final class BookmarksGetSamples {
### Bookmarks_List
```java
-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/2023-04-01-preview/examples/bookmarks/GetBookmarks.json
*/
/**
* Sample code: Get all bookmarks.
@@ -1469,7 +1586,280 @@ public final class BookmarksListSamples {
* @param manager Entry point to SecurityInsightsManager.
*/
public static void getAllBookmarks(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.bookmarks().list("myRg", "myWorkspace", Context.NONE);
+ manager.bookmarks().list("myRg", "myWorkspace", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContentPackageOperation_Install
+
+```java
+import com.azure.resourcemanager.securityinsights.models.PackageKind;
+import com.azure.resourcemanager.securityinsights.models.PackageProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for ContentPackageOperation Install. */
+public final class ContentPackageOperationInstallSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/contentPackages/InstallPackage.json
+ */
+ /**
+ * Sample code: Install a package to the workspace.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void installAPackageToTheWorkspace(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .contentPackageOperations()
+ .define("str.azure-sentinel-solution-str")
+ .withExistingWorkspace("myRg", "myWorkspace")
+ .withTags(mapOf("tag1", "str"))
+ .withProperties(
+ new PackageProperties()
+ .withPackageKind(PackageKind.SOLUTION)
+ .withVersion("2.0.0")
+ .withDisplayName("str"))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ContentPackageOperation_Uninstall
+
+```java
+/** Samples for ContentPackageOperation Uninstall. */
+public final class ContentPackageOperationUninstallSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/contentPackages/UninstallPackage.json
+ */
+ /**
+ * Sample code: Uninstall a package from the workspace.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void uninstallAPackageFromTheWorkspace(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .contentPackageOperations()
+ .uninstallWithResponse(
+ "myRg", "myWorkspace", "str.azure-sentinel-solution-str", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContentPackages_Get
+
+```java
+/** Samples for ContentPackages Get. */
+public final class ContentPackagesGetSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/contentPackages/GetPackageById.json
+ */
+ /**
+ * Sample code: Get all available packages.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void getAllAvailablePackages(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .contentPackages()
+ .getWithResponse(
+ "myRg",
+ "myWorkspace",
+ "str.azure-sentinel-solution-str",
+ null,
+ null,
+ null,
+ null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContentPackages_List
+
+```java
+/** Samples for ContentPackages List. */
+public final class ContentPackagesListSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/contentPackages/GetPackages.json
+ */
+ /**
+ * Sample code: Get all available packages.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void getAllAvailablePackages(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager.contentPackages().list("myRg", "myWorkspace", null, null, null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContentTemplateOperation_Delete
+
+```java
+/** Samples for ContentTemplateOperation Delete. */
+public final class ContentTemplateOperationDeleteSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/contentTemplates/DeleteTemplate.json
+ */
+ /**
+ * Sample code: Delete metadata.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void deleteMetadata(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .contentTemplateOperations()
+ .deleteWithResponse(
+ "myRg", "myWorkspace", "8365ebfe-a381-45b7-ad08-7d818070e11f", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContentTemplateOperation_Get
+
+```java
+/** Samples for ContentTemplateOperation Get. */
+public final class ContentTemplateOperationGetSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/contentTemplates/GetTemplateById.json
+ */
+ /**
+ * Sample code: Get a template.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void getATemplate(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .contentTemplateOperations()
+ .getWithResponse(
+ "myRg", "myWorkspace", "8365ebfe-a381-45b7-ad08-7d818070e11f", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ContentTemplateOperation_Install
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.securityinsights.fluent.models.TemplatePropertiesAutoGenerated;
+import com.azure.resourcemanager.securityinsights.models.Kind;
+import com.azure.resourcemanager.securityinsights.models.MetadataAuthor;
+import com.azure.resourcemanager.securityinsights.models.MetadataSource;
+import com.azure.resourcemanager.securityinsights.models.MetadataSupport;
+import com.azure.resourcemanager.securityinsights.models.PackageKind;
+import com.azure.resourcemanager.securityinsights.models.SourceKind;
+import com.azure.resourcemanager.securityinsights.models.SupportTier;
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for ContentTemplateOperation Install. */
+public final class ContentTemplateOperationInstallSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/contentTemplates/InstallTemplate.json
+ */
+ /**
+ * Sample code: Get a template.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void getATemplate(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager)
+ throws IOException {
+ manager
+ .contentTemplateOperations()
+ .define("str.azure-sentinel-solution-str")
+ .withExistingWorkspace("myRg", "myWorkspace")
+ .withTags(mapOf("tag1", "str"))
+ .withProperties(
+ new TemplatePropertiesAutoGenerated()
+ .withContentId("8365ebfe-a381-45b7-ad08-7d818070e11f")
+ .withVersion("1.0.1")
+ .withDisplayName("API Protection workbook template")
+ .withContentKind(Kind.ANALYTICS_RULE)
+ .withSource(
+ new MetadataSource()
+ .withKind(SourceKind.SOLUTION)
+ .withName("str")
+ .withSourceId("str.azure-sentinel-solution-str"))
+ .withAuthor(new MetadataAuthor().withName("Microsoft").withEmail("support@microsoft.com"))
+ .withSupport(
+ new MetadataSupport()
+ .withTier(SupportTier.MICROSOFT)
+ .withName("Microsoft Corporation")
+ .withEmail("support@microsoft.com")
+ .withLink("https://support.microsoft.com/"))
+ .withPackageId("str.azure-sentinel-solution-str")
+ .withPackageKind(PackageKind.SOLUTION)
+ .withPackageName("str")
+ .withMainTemplate(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"$schema\":\"https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#\",\"contentVersion\":\"1.0.1\",\"resources\":[{\"name\":\"8365ebfe-a381-45b7-ad08-7d818070e11f\",\"type\":\"Microsoft.SecurityInsights/AlertRuleTemplates\",\"apiVersion\":\"2022-04-01-preview\",\"kind\":\"Scheduled\",\"location\":\"[parameters('workspace-location')]\",\"properties\":{\"description\":\"Creates"
+ + " an incident when a large number of Critical/High severity CrowdStrike Falcon"
+ + " sensor detections is triggered by a single user\",\"displayName\":\"Critical or"
+ + " High Severity Detections by"
+ + " User\",\"enabled\":false,\"query\":\"...\",\"queryFrequency\":\"PT1H\",\"queryPeriod\":\"PT1H\",\"severity\":\"High\",\"status\":\"Available\",\"suppressionDuration\":\"PT1H\",\"suppressionEnabled\":false,\"triggerOperator\":\"GreaterThan\",\"triggerThreshold\":0}},{\"name\":\"[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat('AnalyticsRule-',"
+ + " last(split([resourceId('Microsoft.SecurityInsights/AlertRuleTemplates',"
+ + " 8365ebfe-a381-45b7-ad08-7d818070e11f)],'/'))))]\",\"type\":\"Microsoft.OperationalInsights/workspaces/providers/metadata\",\"apiVersion\":\"2022-01-01-preview\",\"properties\":{\"description\":\"CrowdStrike"
+ + " Falcon Endpoint Protection Analytics Rule"
+ + " 1\",\"author\":{\"name\":\"Microsoft\",\"email\":\"support@microsoft.com\"},\"contentId\":\"4465ebde-b381-45f7-ad08-7d818070a11c\",\"kind\":\"AnalyticsRule\",\"parentId\":\"[resourceId('Microsoft.SecurityInsights/AlertRuleTemplates',"
+ + " 8365ebfe-a381-45b7-ad08-7d818070e11f)]\",\"source\":{\"name\":\"str\",\"kind\":\"Solution\",\"sourceId\":\"str.azure-sentinel-solution-str\"},\"support\":{\"name\":\"Microsoft"
+ + " Corporation\",\"email\":\"support@microsoft.com\",\"link\":\"https://support.microsoft.com/\",\"tier\":\"Microsoft\"},\"version\":\"1.0.0\"}}]}",
+ Object.class,
+ SerializerEncoding.JSON)))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ContentTemplates_List
+
+```java
+/** Samples for ContentTemplates List. */
+public final class ContentTemplatesListSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/contentTemplates/GetTemplates.json
+ */
+ /**
+ * Sample code: Get all installed templates.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void getAllInstalledTemplates(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .contentTemplates()
+ .list("myRg", "myWorkspace", null, null, null, null, com.azure.core.util.Context.NONE);
}
}
```
@@ -1478,7 +1868,6 @@ public final class BookmarksListSamples {
```java
import com.azure.core.management.serializer.SerializerFactory;
-import com.azure.core.util.Context;
import com.azure.core.util.serializer.SerializerEncoding;
import com.azure.resourcemanager.securityinsights.models.ConnectAuthKind;
import com.azure.resourcemanager.securityinsights.models.DataConnectorConnectBody;
@@ -1488,7 +1877,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/2023-04-01-preview/examples/dataConnectors/ConnectAPIPollingV2Logs.json
*/
/**
* Sample code: Connect an APIPolling V2 logs data connector.
@@ -1505,7 +1894,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")
@@ -1519,11 +1908,11 @@ public final class DataConnectorsConnectSamples {
+ " Name\",\"placeHolderName\":\"{{placeHolder1}}\",\"placeHolderValue\":\"somePlaceHolderValue\",\"requestObjectKey\":\"apiEndpoint\"}",
Object.class,
SerializerEncoding.JSON))),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/ConnectAPIPolling.json
*/
/**
* Sample code: Connect an APIPolling data connector.
@@ -1540,7 +1929,7 @@ public final class DataConnectorsConnectSamples {
"316ec55e-7138-4d63-ab18-90c8a60fd1c8",
new DataConnectorConnectBody()
.withKind(ConnectAuthKind.APIKEY)
- .withApiKey("fakeKeyPlaceholder")
+ .withApiKey("fakeTokenPlaceholder")
.withRequestConfigUserInputValues(
Arrays
.asList(
@@ -1551,7 +1940,7 @@ public final class DataConnectorsConnectSamples {
+ " Name\",\"placeHolderName\":\"{{placeHolder1}}\",\"placeHolderValue\":\"somePlaceHolderValue\",\"requestObjectKey\":\"apiEndpoint\"}",
Object.class,
SerializerEncoding.JSON))),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1560,7 +1949,6 @@ public final class DataConnectorsConnectSamples {
```java
import com.azure.core.management.serializer.SerializerFactory;
-import com.azure.core.util.Context;
import com.azure.core.util.serializer.SerializerEncoding;
import com.azure.resourcemanager.securityinsights.models.Availability;
import com.azure.resourcemanager.securityinsights.models.AvailabilityStatus;
@@ -1583,6 +1971,18 @@ import com.azure.resourcemanager.securityinsights.models.Dynamics365DataConnecto
import com.azure.resourcemanager.securityinsights.models.Dynamics365DataConnectorDataTypes;
import com.azure.resourcemanager.securityinsights.models.Dynamics365DataConnectorDataTypesDynamics365CdsActivities;
import com.azure.resourcemanager.securityinsights.models.InstructionStepsInstructionsItem;
+import com.azure.resourcemanager.securityinsights.models.MicrosoftPurviewInformationProtectionConnectorDataTypes;
+import com.azure.resourcemanager.securityinsights.models.MicrosoftPurviewInformationProtectionConnectorDataTypesLogs;
+import com.azure.resourcemanager.securityinsights.models.MicrosoftPurviewInformationProtectionDataConnector;
+import com.azure.resourcemanager.securityinsights.models.MstiDataConnector;
+import com.azure.resourcemanager.securityinsights.models.MstiDataConnectorDataTypes;
+import com.azure.resourcemanager.securityinsights.models.MstiDataConnectorDataTypesMicrosoftEmergingThreatFeed;
+import com.azure.resourcemanager.securityinsights.models.MtpDataConnector;
+import com.azure.resourcemanager.securityinsights.models.MtpDataConnectorDataTypes;
+import com.azure.resourcemanager.securityinsights.models.MtpDataConnectorDataTypesAlerts;
+import com.azure.resourcemanager.securityinsights.models.MtpDataConnectorDataTypesIncidents;
+import com.azure.resourcemanager.securityinsights.models.MtpFilteredProviders;
+import com.azure.resourcemanager.securityinsights.models.MtpProvider;
import com.azure.resourcemanager.securityinsights.models.Office365ProjectConnectorDataTypes;
import com.azure.resourcemanager.securityinsights.models.Office365ProjectConnectorDataTypesLogs;
import com.azure.resourcemanager.securityinsights.models.Office365ProjectDataConnector;
@@ -1615,14 +2015,14 @@ 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/2023-04-01-preview/examples/dataConnectors/CreateMicrosoftPurviewInformationProtectionDataConnetor.json
*/
/**
- * Sample code: Creates or updates an Office365 data connector.
+ * Sample code: Creates or updates an MicrosoftPurviewInformationProtection data connector.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void createsOrUpdatesAnOffice365DataConnector(
+ public static void createsOrUpdatesAnMicrosoftPurviewInformationProtectionDataConnector(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectors()
@@ -1630,20 +2030,76 @@ public final class DataConnectorsCreateOrUpdateSamples {
"myRg",
"myWorkspace",
"73e01a99-5cd7-4139-a149-9f2736ff2ab5",
- new OfficeDataConnector()
+ new MicrosoftPurviewInformationProtectionDataConnector()
.withEtag("\"0300bf09-0000-0000-0000-5c37296e0000\"")
.withDataTypes(
- new OfficeDataConnectorDataTypes()
- .withExchange(new OfficeDataConnectorDataTypesExchange().withState(DataTypeState.ENABLED))
- .withSharePoint(
- new OfficeDataConnectorDataTypesSharePoint().withState(DataTypeState.ENABLED))
+ new MicrosoftPurviewInformationProtectionConnectorDataTypes()
+ .withLogs(
+ new MicrosoftPurviewInformationProtectionConnectorDataTypesLogs()
+ .withState(DataTypeState.ENABLED)))
+ .withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/dataConnectors/CreateOfficeDataConnetor.json
+ */
+ /**
+ * Sample code: Creates or updates an Office365 data connector.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void createsOrUpdatesAnOffice365DataConnector(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .dataConnectors()
+ .createOrUpdateWithResponse(
+ "myRg",
+ "myWorkspace",
+ "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
+ new OfficeDataConnector()
+ .withEtag("\"0300bf09-0000-0000-0000-5c37296e0000\"")
+ .withDataTypes(
+ new OfficeDataConnectorDataTypes()
+ .withExchange(new OfficeDataConnectorDataTypesExchange().withState(DataTypeState.ENABLED))
+ .withSharePoint(
+ new OfficeDataConnectorDataTypesSharePoint().withState(DataTypeState.ENABLED))
.withTeams(new OfficeDataConnectorDataTypesTeams().withState(DataTypeState.ENABLED)))
.withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/dataConnectors/CreateMicrosoftThreatProtectionDataConnetor.json
+ */
+ /**
+ * Sample code: Creates or updates a MicrosoftThreatProtection data connector.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void createsOrUpdatesAMicrosoftThreatProtectionDataConnector(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .dataConnectors()
+ .createOrUpdateWithResponse(
+ "myRg",
+ "myWorkspace",
+ "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
+ new MtpDataConnector()
+ .withEtag("\"0300bf09-0000-0000-0000-5c37296e0000\"")
+ .withDataTypes(
+ new MtpDataConnectorDataTypes()
+ .withIncidents(new MtpDataConnectorDataTypesIncidents().withState(DataTypeState.DISABLED))
+ .withAlerts(new MtpDataConnectorDataTypesAlerts().withState(DataTypeState.ENABLED)))
+ .withFilteredProviders(
+ new MtpFilteredProviders()
+ .withAlerts(Arrays.asList(MtpProvider.MICROSOFT_DEFENDER_FOR_CLOUD_APPS)))
+ .withTenantId("178265c4-3136-4ff6-8ed1-b5b62b4cb5f5"),
+ com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/CreateOfficePowerBIDataConnector.json
*/
/**
* Sample code: Creates or updates an Office PowerBI data connector.
@@ -1664,11 +2120,11 @@ public final class DataConnectorsCreateOrUpdateSamples {
new OfficePowerBIConnectorDataTypes()
.withLogs(new OfficePowerBIConnectorDataTypesLogs().withState(DataTypeState.ENABLED)))
.withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/CreateThreatIntelligenceTaxiiDataConnector.json
*/
/**
* Sample code: Creates or updates a Threat Intelligence Taxii data connector.
@@ -1690,7 +2146,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(
@@ -1698,11 +2154,11 @@ public final class DataConnectorsCreateOrUpdateSamples {
.withTaxiiClient(
new TiTaxiiDataConnectorDataTypesTaxiiClient().withState(DataTypeState.ENABLED)))
.withTenantId("06b3ccb8-1384-4bcc-aec7-852f6d57161b"),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/CreateThreatIntelligenceDataConnector.json
*/
/**
* Sample code: Creates or updates an Threat Intelligence Platform data connector.
@@ -1723,11 +2179,11 @@ public final class DataConnectorsCreateOrUpdateSamples {
new TIDataConnectorDataTypes()
.withIndicators(new TIDataConnectorDataTypesIndicators().withState(DataTypeState.ENABLED)))
.withTenantId("06b3ccb8-1384-4bcc-aec7-852f6d57161b"),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/CreateDynamics365DataConnetor.json
*/
/**
* Sample code: Creates or updates a Dynamics365 data connector.
@@ -1750,11 +2206,11 @@ public final class DataConnectorsCreateOrUpdateSamples {
new Dynamics365DataConnectorDataTypesDynamics365CdsActivities()
.withState(DataTypeState.ENABLED)))
.withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/CreateGenericUI.json
*/
/**
* Sample code: Creates or updates a GenericUI data connector.
@@ -2070,11 +2526,11 @@ public final class DataConnectorsCreateOrUpdateSamples {
+ "> NOTE: If a longer timeout duration is required, consider"
+ " upgrading to an [App Service"
+ " Plan](https://docs.microsoft.com/azure/azure-functions/functions-scale#timeout)")))),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/CreateOffice365ProjectDataConnetor.json
*/
/**
* Sample code: Creates or updates an Office365 Project data connector.
@@ -2095,11 +2551,38 @@ public final class DataConnectorsCreateOrUpdateSamples {
new Office365ProjectConnectorDataTypes()
.withLogs(new Office365ProjectConnectorDataTypesLogs().withState(DataTypeState.ENABLED)))
.withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/dataConnectors/CreateMicrosoftThreatIntelligenceDataConnector.json
+ */
+ /**
+ * Sample code: Creates or updates a Microsoft Threat Intelligence data connector.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void createsOrUpdatesAMicrosoftThreatIntelligenceDataConnector(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .dataConnectors()
+ .createOrUpdateWithResponse(
+ "myRg",
+ "myWorkspace",
+ "c345bf40-8509-4ed2-b947-50cb773aaf04",
+ new MstiDataConnector()
+ .withDataTypes(
+ new MstiDataConnectorDataTypes()
+ .withMicrosoftEmergingThreatFeed(
+ new MstiDataConnectorDataTypesMicrosoftEmergingThreatFeed()
+ .withState(DataTypeState.ENABLED)
+ .withLookbackPeriod("1970-01-01T00:00:00.000Z")))
+ .withTenantId("06b3ccb8-1384-4bcc-aec7-852f6d57161b"),
+ com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/CreateAPIPolling.json
*/
/**
* Sample code: Creates or updates a APIPolling data connector.
@@ -2207,8 +2690,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")
@@ -2239,7 +2722,7 @@ public final class DataConnectorsCreateOrUpdateSamples {
.withResponse(
new CodelessConnectorPollingResponseProperties()
.withEventsJsonPaths(Arrays.asList("$")))),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -2247,12 +2730,10 @@ public final class DataConnectorsCreateOrUpdateSamples {
### DataConnectors_Delete
```java
-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/2023-04-01-preview/examples/dataConnectors/DeleteOffice365ProjectDataConnetor.json
*/
/**
* Sample code: Delete an Office365 Project data connector.
@@ -2263,11 +2744,28 @@ public final class DataConnectorsDeleteSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectors()
- .deleteWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", Context.NONE);
+ .deleteWithResponse(
+ "myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/dataConnectors/DeleteMicrosoftPurviewInformationProtectionDataConnetor.json
+ */
+ /**
+ * Sample code: Delete an MicrosoftPurviewInformationProtection data connector.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void deleteAnMicrosoftPurviewInformationProtectionDataConnector(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .dataConnectors()
+ .deleteWithResponse(
+ "myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/DeleteGenericUI.json
*/
/**
* Sample code: Delete a GenericUI data connector.
@@ -2278,11 +2776,12 @@ public final class DataConnectorsDeleteSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectors()
- .deleteWithResponse("myRg", "myWorkspace", "316ec55e-7138-4d63-ab18-90c8a60fd1c8", Context.NONE);
+ .deleteWithResponse(
+ "myRg", "myWorkspace", "316ec55e-7138-4d63-ab18-90c8a60fd1c8", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/DeleteOfficeDataConnetor.json
*/
/**
* Sample code: Delete an Office365 data connector.
@@ -2293,11 +2792,12 @@ public final class DataConnectorsDeleteSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectors()
- .deleteWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", Context.NONE);
+ .deleteWithResponse(
+ "myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/DeleteOfficePowerBIDataConnetor.json
*/
/**
* Sample code: Delete an Office PowerBI data connector.
@@ -2308,11 +2808,12 @@ public final class DataConnectorsDeleteSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectors()
- .deleteWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", Context.NONE);
+ .deleteWithResponse(
+ "myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/DeleteAPIPolling.json
*/
/**
* Sample code: Delete a APIPolling data connector.
@@ -2323,7 +2824,24 @@ public final class DataConnectorsDeleteSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectors()
- .deleteWithResponse("myRg", "myWorkspace", "316ec55e-7138-4d63-ab18-90c8a60fd1c8", Context.NONE);
+ .deleteWithResponse(
+ "myRg", "myWorkspace", "316ec55e-7138-4d63-ab18-90c8a60fd1c8", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/dataConnectors/DeleteMicrosoftThreatIntelligenceDataConnector.json
+ */
+ /**
+ * Sample code: Delete an MicrosoftThreatIntelligence data connector.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void deleteAnMicrosoftThreatIntelligenceDataConnector(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .dataConnectors()
+ .deleteWithResponse(
+ "myRg", "myWorkspace", "c345bf40-8509-4ed2-b947-50cb773aaf04", com.azure.core.util.Context.NONE);
}
}
```
@@ -2331,12 +2849,10 @@ public final class DataConnectorsDeleteSamples {
### DataConnectors_Disconnect
```java
-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/2023-04-01-preview/examples/dataConnectors/DisconnectAPIPolling.json
*/
/**
* Sample code: Disconnect an APIPolling data connector.
@@ -2347,7 +2863,8 @@ public final class DataConnectorsDisconnectSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectors()
- .disconnectWithResponse("myRg", "myWorkspace", "316ec55e-7138-4d63-ab18-90c8a60fd1c8", Context.NONE);
+ .disconnectWithResponse(
+ "myRg", "myWorkspace", "316ec55e-7138-4d63-ab18-90c8a60fd1c8", com.azure.core.util.Context.NONE);
}
}
```
@@ -2355,12 +2872,26 @@ public final class DataConnectorsDisconnectSamples {
### DataConnectors_Get
```java
-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/2023-04-01-preview/examples/dataConnectors/GetAzureActiveDirectoryById.json
+ */
+ /**
+ * Sample code: Get an AADIP (Azure Active Directory Identity Protection) data connector.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void getAnAADIPAzureActiveDirectoryIdentityProtectionDataConnector(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .dataConnectors()
+ .getWithResponse(
+ "myRg", "myWorkspace", "f0cd27d2-5f03-4c06-ba31-d2dc82dcb51d", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/dataConnectors/GetOffice365ProjectDataConnetorById.json
*/
/**
* Sample code: Get an Office365 Project data connector.
@@ -2371,11 +2902,12 @@ public final class DataConnectorsGetSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/GetGenericUI.json
*/
/**
* Sample code: Get a GenericUI data connector.
@@ -2386,11 +2918,12 @@ public final class DataConnectorsGetSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "316ec55e-7138-4d63-ab18-90c8a60fd1c8", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "316ec55e-7138-4d63-ab18-90c8a60fd1c8", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/GetOffice365AdvancedThreatProtectionById.json
*/
/**
* Sample code: Get an Office ATP data connector.
@@ -2401,11 +2934,12 @@ public final class DataConnectorsGetSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "3d3e955e-33eb-401d-89a7-251c81ddd660", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "3d3e955e-33eb-401d-89a7-251c81ddd660", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/GetIoTById.json
*/
/**
* Sample code: Get a IoT data connector.
@@ -2416,11 +2950,12 @@ public final class DataConnectorsGetSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "d2e5dc7a-f3a2-429d-954b-939fa8c2932e", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "d2e5dc7a-f3a2-429d-954b-939fa8c2932e", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/GetMicrosoftCloudAppSecurityById.json
*/
/**
* Sample code: Get a MCAS data connector.
@@ -2431,11 +2966,12 @@ public final class DataConnectorsGetSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "b96d014d-b5c2-4a01-9aba-a8058f629d42", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "b96d014d-b5c2-4a01-9aba-a8058f629d42", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/GetThreatIntelligenceTaxiiById.json
*/
/**
* Sample code: Get a TI Taxii data connector.
@@ -2446,11 +2982,12 @@ public final class DataConnectorsGetSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "c39bb458-02a7-4b3f-b0c8-71a1d2692652", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "c39bb458-02a7-4b3f-b0c8-71a1d2692652", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/GetMicrosoftThreatIntelligenceById.json
*/
/**
* Sample code: Get a MicrosoftThreatIntelligence data connector.
@@ -2461,11 +2998,12 @@ public final class DataConnectorsGetSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "c345bf40-8509-4ed2-b947-50cb773aaf04", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "c345bf40-8509-4ed2-b947-50cb773aaf04", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/GetAzureSecurityCenterById.json
*/
/**
* Sample code: Get a ASC data connector.
@@ -2476,11 +3014,12 @@ public final class DataConnectorsGetSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "763f9fa1-c2d3-4fa2-93e9-bccd4899aa12", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "763f9fa1-c2d3-4fa2-93e9-bccd4899aa12", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/GetThreatIntelligenceById.json
*/
/**
* Sample code: Get a TI data connector.
@@ -2490,11 +3029,12 @@ public final class DataConnectorsGetSamples {
public static void getATIDataConnector(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "c345bf40-8509-4ed2-b947-50cb773aaf04", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "c345bf40-8509-4ed2-b947-50cb773aaf04", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/GetAmazonWebServicesCloudTrailById.json
*/
/**
* Sample code: Get an AwsCloudTrail data connector.
@@ -2505,11 +3045,12 @@ public final class DataConnectorsGetSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "c345bf40-8509-4ed2-b947-50cb773aaf04", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "c345bf40-8509-4ed2-b947-50cb773aaf04", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/GetMicrosoftDefenderAdvancedThreatProtectionById.json
*/
/**
* Sample code: Get a MDATP data connector.
@@ -2520,11 +3061,12 @@ public final class DataConnectorsGetSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "06b3ccb8-1384-4bcc-aec7-852f6d57161b", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "06b3ccb8-1384-4bcc-aec7-852f6d57161b", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/GetMicrosoftThreatProtectionById.json
*/
/**
* Sample code: Get a MicrosoftThreatProtection data connector.
@@ -2535,26 +3077,28 @@ public final class DataConnectorsGetSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "c345bf40-8509-4ed2-b947-50cb773aaf04", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "c345bf40-8509-4ed2-b947-50cb773aaf04", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/GetMicrosoftPurviewInformationProtectionDataConnetorById.json
*/
/**
- * Sample code: Get an AAD data connector.
+ * Sample code: Get a MicrosoftPurviewInformationProtection data connector.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void getAnAADDataConnector(
+ public static void getAMicrosoftPurviewInformationProtectionDataConnector(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "f0cd27d2-5f03-4c06-ba31-d2dc82dcb51d", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/GetAzureAdvancedThreatProtectionById.json
*/
/**
* Sample code: Get an AATP data connector.
@@ -2565,11 +3109,12 @@ public final class DataConnectorsGetSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "07e42cb3-e658-4e90-801c-efa0f29d3d44", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "07e42cb3-e658-4e90-801c-efa0f29d3d44", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/GetAPIPolling.json
*/
/**
* Sample code: Get a APIPolling data connector.
@@ -2580,11 +3125,12 @@ public final class DataConnectorsGetSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "316ec55e-7138-4d63-ab18-90c8a60fd1c8", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "316ec55e-7138-4d63-ab18-90c8a60fd1c8", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/GetMicrosoftInsiderRiskManagementById.json
*/
/**
* Sample code: Get an Office IRM data connector.
@@ -2595,11 +3141,12 @@ public final class DataConnectorsGetSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "3d3e955e-33eb-401d-89a7-251c81ddd660", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "3d3e955e-33eb-401d-89a7-251c81ddd660", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/GetDynamics365DataConnectorById.json
*/
/**
* Sample code: Get a Dynamics365 data connector.
@@ -2610,11 +3157,12 @@ public final class DataConnectorsGetSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "c2541efb-c9a6-47fe-9501-87d1017d1512", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "c2541efb-c9a6-47fe-9501-87d1017d1512", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/GetOfficeDataConnetorById.json
*/
/**
* Sample code: Get an Office365 data connector.
@@ -2625,11 +3173,12 @@ public final class DataConnectorsGetSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/GetAmazonWebServicesS3ById.json
*/
/**
* Sample code: Get an Aws S3 data connector.
@@ -2640,11 +3189,12 @@ public final class DataConnectorsGetSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "afef3743-0c88-469c-84ff-ca2e87dc1e48", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "afef3743-0c88-469c-84ff-ca2e87dc1e48", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/GetOfficePowerBIDataConnetorById.json
*/
/**
* Sample code: Get an Office365 PowerBI data connector.
@@ -2655,7 +3205,8 @@ public final class DataConnectorsGetSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectors()
- .getWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", com.azure.core.util.Context.NONE);
}
}
```
@@ -2663,12 +3214,10 @@ public final class DataConnectorsGetSamples {
### DataConnectors_List
```java
-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/2023-04-01-preview/examples/dataConnectors/GetDataConnectors.json
*/
/**
* Sample code: Get all data connectors.
@@ -2677,7 +3226,7 @@ public final class DataConnectorsListSamples {
*/
public static void getAllDataConnectors(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.dataConnectors().list("myRg", "myWorkspace", Context.NONE);
+ manager.dataConnectors().list("myRg", "myWorkspace", com.azure.core.util.Context.NONE);
}
}
```
@@ -2685,12 +3234,12 @@ public final class DataConnectorsListSamples {
### DataConnectorsCheckRequirementsOperation_Post
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.securityinsights.models.AadCheckRequirements;
import com.azure.resourcemanager.securityinsights.models.AscCheckRequirements;
import com.azure.resourcemanager.securityinsights.models.Dynamics365CheckRequirements;
import com.azure.resourcemanager.securityinsights.models.IoTCheckRequirements;
import com.azure.resourcemanager.securityinsights.models.McasCheckRequirements;
+import com.azure.resourcemanager.securityinsights.models.MicrosoftPurviewInformationProtectionCheckRequirements;
import com.azure.resourcemanager.securityinsights.models.MstiCheckRequirements;
import com.azure.resourcemanager.securityinsights.models.MtpCheckRequirements;
import com.azure.resourcemanager.securityinsights.models.Office365ProjectCheckRequirements;
@@ -2703,7 +3252,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/2023-04-01-preview/examples/dataConnectors/CheckRequirementsOfficeATP.json
*/
/**
* Sample code: Check requirements for OfficeATP.
@@ -2714,11 +3263,15 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectorsCheckRequirementsOperations()
- .postWithResponse("myRg", "myWorkspace", new OfficeAtpCheckRequirements(), Context.NONE);
+ .postWithResponse(
+ "myRg",
+ "myWorkspace",
+ new OfficeAtpCheckRequirements().withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
+ com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/CheckRequirementsOffice365Project.json
*/
/**
* Sample code: Check requirements for Office365Project.
@@ -2729,26 +3282,34 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectorsCheckRequirementsOperations()
- .postWithResponse("myRg", "myWorkspace", new Office365ProjectCheckRequirements(), Context.NONE);
+ .postWithResponse(
+ "myRg",
+ "myWorkspace",
+ new Office365ProjectCheckRequirements().withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
+ com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/CheckRequirementsAzureActiveDirectoryNoAuthorization.json
*/
/**
- * Sample code: Check requirements for AAD.
+ * Sample code: Check requirements for AADIP (Azure Active Directory Identity Protection) - no authorization.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void checkRequirementsForAAD(
+ public static void checkRequirementsForAADIPAzureActiveDirectoryIdentityProtectionNoAuthorization(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectorsCheckRequirementsOperations()
- .postWithResponse("myRg", "myWorkspace", new AadCheckRequirements(), Context.NONE);
+ .postWithResponse(
+ "myRg",
+ "myWorkspace",
+ new AadCheckRequirements().withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
+ com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/CheckRequirementsMicrosoftCloudAppSecurity.json
*/
/**
* Sample code: Check requirements for Mcas.
@@ -2759,11 +3320,15 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectorsCheckRequirementsOperations()
- .postWithResponse("myRg", "myWorkspace", new McasCheckRequirements(), Context.NONE);
+ .postWithResponse(
+ "myRg",
+ "myWorkspace",
+ new McasCheckRequirements().withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
+ com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/CheckRequirementsIoT.json
*/
/**
* Sample code: Check requirements for IoT.
@@ -2778,11 +3343,11 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
"myRg",
"myWorkspace",
new IoTCheckRequirements().withSubscriptionId("c0688291-89d7-4bed-87a2-a7b1bff43f4c"),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/CheckRequirementsMdatp.json
*/
/**
* Sample code: Check requirements for Mdatp.
@@ -2793,45 +3358,54 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectorsCheckRequirementsOperations()
- .postWithResponse("myRg", "myWorkspace", new McasCheckRequirements(), Context.NONE);
+ .postWithResponse(
+ "myRg",
+ "myWorkspace",
+ new McasCheckRequirements().withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
+ com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/CheckRequirementsAzureSecurityCenter.json
*/
/**
- * Sample code: Check requirements for AAD - no authorization.
+ * Sample code: Check requirements for ASC.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void checkRequirementsForAADNoAuthorization(
+ public static void checkRequirementsForASC(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectorsCheckRequirementsOperations()
- .postWithResponse("myRg", "myWorkspace", new AadCheckRequirements(), Context.NONE);
+ .postWithResponse(
+ "myRg",
+ "myWorkspace",
+ new AscCheckRequirements().withSubscriptionId("c0688291-89d7-4bed-87a2-a7b1bff43f4c"),
+ com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/CheckRequirementsMicrosoftPurviewInformationProtection.json
*/
/**
- * Sample code: Check requirements for ASC.
+ * Sample code: Check requirements for MicrosoftPurviewInformationProtection.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void checkRequirementsForASC(
+ public static void checkRequirementsForMicrosoftPurviewInformationProtection(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectorsCheckRequirementsOperations()
.postWithResponse(
"myRg",
"myWorkspace",
- new AscCheckRequirements().withSubscriptionId("c0688291-89d7-4bed-87a2-a7b1bff43f4c"),
- Context.NONE);
+ new MicrosoftPurviewInformationProtectionCheckRequirements()
+ .withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
+ com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/CheckRequirementsMicrosoftThreatProtection.json
*/
/**
* Sample code: Check requirements for MicrosoftThreatProtection.
@@ -2842,11 +3416,15 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectorsCheckRequirementsOperations()
- .postWithResponse("myRg", "myWorkspace", new MtpCheckRequirements(), Context.NONE);
+ .postWithResponse(
+ "myRg",
+ "myWorkspace",
+ new MtpCheckRequirements().withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
+ com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/CheckRequirementsThreatIntelligenceTaxii.json
*/
/**
* Sample code: Check requirements for TI Taxii.
@@ -2857,11 +3435,15 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectorsCheckRequirementsOperations()
- .postWithResponse("myRg", "myWorkspace", new TiTaxiiCheckRequirements(), Context.NONE);
+ .postWithResponse(
+ "myRg",
+ "myWorkspace",
+ new TiTaxiiCheckRequirements().withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
+ com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/CheckRequirementsOfficeIRM.json
*/
/**
* Sample code: Check requirements for OfficeIRM.
@@ -2872,11 +3454,15 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectorsCheckRequirementsOperations()
- .postWithResponse("myRg", "myWorkspace", new OfficeIrmCheckRequirements(), Context.NONE);
+ .postWithResponse(
+ "myRg",
+ "myWorkspace",
+ new OfficeIrmCheckRequirements().withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
+ com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/CheckRequirementsMicrosoftThreatIntelligence.json
*/
/**
* Sample code: Check requirements for MicrosoftThreatIntelligence.
@@ -2887,11 +3473,34 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectorsCheckRequirementsOperations()
- .postWithResponse("myRg", "myWorkspace", new MstiCheckRequirements(), Context.NONE);
+ .postWithResponse(
+ "myRg",
+ "myWorkspace",
+ new MstiCheckRequirements().withTenantId("06b3ccb8-1384-4bcc-aec7-852f6d57161b"),
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/dataConnectors/CheckRequirementsAzureActiveDirectory.json
+ */
+ /**
+ * Sample code: Check requirements for AADIP (Azure Active Directory Identity Protection).
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void checkRequirementsForAADIPAzureActiveDirectoryIdentityProtection(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .dataConnectorsCheckRequirementsOperations()
+ .postWithResponse(
+ "myRg",
+ "myWorkspace",
+ new AadCheckRequirements().withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
+ com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/CheckRequirementsOfficePowerBI.json
*/
/**
* Sample code: Check requirements for OfficePowerBI.
@@ -2902,11 +3511,15 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectorsCheckRequirementsOperations()
- .postWithResponse("myRg", "myWorkspace", new OfficePowerBICheckRequirements(), Context.NONE);
+ .postWithResponse(
+ "myRg",
+ "myWorkspace",
+ new OfficePowerBICheckRequirements().withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
+ com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/CheckRequirementsDynamics365.json
*/
/**
* Sample code: Check requirements for Dynamics365.
@@ -2917,26 +3530,34 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectorsCheckRequirementsOperations()
- .postWithResponse("myRg", "myWorkspace", new Dynamics365CheckRequirements(), Context.NONE);
+ .postWithResponse(
+ "myRg",
+ "myWorkspace",
+ new Dynamics365CheckRequirements().withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
+ com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/CheckRequirementsAzureActiveDirectoryNoLicense.json
*/
/**
- * Sample code: Check requirements for AAD - no license.
+ * Sample code: Check requirements for AADIP (Azure Active Directory Identity Protection) - no license.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void checkRequirementsForAADNoLicense(
+ public static void checkRequirementsForAADIPAzureActiveDirectoryIdentityProtectionNoLicense(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectorsCheckRequirementsOperations()
- .postWithResponse("myRg", "myWorkspace", new AadCheckRequirements(), Context.NONE);
+ .postWithResponse(
+ "myRg",
+ "myWorkspace",
+ new AadCheckRequirements().withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
+ com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/dataConnectors/CheckRequirementsThreatIntelligence.json
*/
/**
* Sample code: Check requirements for TI.
@@ -2947,7 +3568,11 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.dataConnectorsCheckRequirementsOperations()
- .postWithResponse("myRg", "myWorkspace", new TICheckRequirements(), Context.NONE);
+ .postWithResponse(
+ "myRg",
+ "myWorkspace",
+ new TICheckRequirements().withTenantId("2070ecc9-b4d5-4ae4-adaa-936fa1954fa8"),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -2955,12 +3580,10 @@ public final class DataConnectorsCheckRequirementsOperationPostSamples {
### DomainWhois_Get
```java
-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/2023-04-01-preview/examples/enrichment/GetWhoisByDomainName.json
*/
/**
* Sample code: Get whois information for a single domain name.
@@ -2969,7 +3592,7 @@ public final class DomainWhoisGetSamples {
*/
public static void getWhoisInformationForASingleDomainName(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.domainWhois().getWithResponse("myRg", "microsoft.com", Context.NONE);
+ manager.domainWhois().getWithResponse("myRg", "microsoft.com", com.azure.core.util.Context.NONE);
}
}
```
@@ -2977,7 +3600,6 @@ public final class DomainWhoisGetSamples {
### Entities_Expand
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.securityinsights.models.EntityExpandParameters;
import java.time.OffsetDateTime;
import java.util.UUID;
@@ -2985,7 +3607,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/2023-04-01-preview/examples/entities/expand/PostExpandEntity.json
*/
/**
* Sample code: Expand an entity.
@@ -3003,7 +3625,7 @@ public final class EntitiesExpandSamples {
.withEndTime(OffsetDateTime.parse("2019-05-26T00:00:00.000Z"))
.withExpansionId(UUID.fromString("a77992f3-25e9-4d01-99a4-5ff606cc410a"))
.withStartTime(OffsetDateTime.parse("2019-04-25T00:00:00.000Z")),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -3011,12 +3633,10 @@ public final class EntitiesExpandSamples {
### Entities_Get
```java
-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/2023-04-01-preview/examples/entities/GetSubmissionMailEntityById.json
*/
/**
* Sample code: Get a submissionMail entity.
@@ -3025,11 +3645,14 @@ public final class EntitiesGetSamples {
*/
public static void getASubmissionMailEntity(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities().getWithResponse("myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1", Context.NONE);
+ manager
+ .entities()
+ .getWithResponse(
+ "myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/entities/GetDnsEntityById.json
*/
/**
* Sample code: Get a dns entity.
@@ -3037,11 +3660,14 @@ public final class EntitiesGetSamples {
* @param manager Entry point to SecurityInsightsManager.
*/
public static void getADnsEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities().getWithResponse("myRg", "myWorkspace", "f4e74920-f2c0-4412-a45f-66d94fdf01f8", Context.NONE);
+ manager
+ .entities()
+ .getWithResponse(
+ "myRg", "myWorkspace", "f4e74920-f2c0-4412-a45f-66d94fdf01f8", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/entities/GetFileHashEntityById.json
*/
/**
* Sample code: Get a file hash entity.
@@ -3049,11 +3675,14 @@ public final class EntitiesGetSamples {
* @param manager Entry point to SecurityInsightsManager.
*/
public static void getAFileHashEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities().getWithResponse("myRg", "myWorkspace", "ea359fa6-c1e5-f878-e105-6344f3e399a1", Context.NONE);
+ manager
+ .entities()
+ .getWithResponse(
+ "myRg", "myWorkspace", "ea359fa6-c1e5-f878-e105-6344f3e399a1", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/entities/GetIoTDeviceEntityById.json
*/
/**
* Sample code: Get an IoT device entity.
@@ -3062,11 +3691,14 @@ public final class EntitiesGetSamples {
*/
public static void getAnIoTDeviceEntity(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities().getWithResponse("myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1", Context.NONE);
+ manager
+ .entities()
+ .getWithResponse(
+ "myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/entities/GetRegistryKeyEntityById.json
*/
/**
* Sample code: Get a registry key entity.
@@ -3075,11 +3707,14 @@ public final class EntitiesGetSamples {
*/
public static void getARegistryKeyEntity(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities().getWithResponse("myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1", Context.NONE);
+ manager
+ .entities()
+ .getWithResponse(
+ "myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/entities/GetMailboxEntityById.json
*/
/**
* Sample code: Get a mailbox entity.
@@ -3087,11 +3722,14 @@ public final class EntitiesGetSamples {
* @param manager Entry point to SecurityInsightsManager.
*/
public static void getAMailboxEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities().getWithResponse("myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1", Context.NONE);
+ manager
+ .entities()
+ .getWithResponse(
+ "myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/entities/GetMalwareEntityById.json
*/
/**
* Sample code: Get a malware entity.
@@ -3099,11 +3737,14 @@ public final class EntitiesGetSamples {
* @param manager Entry point to SecurityInsightsManager.
*/
public static void getAMalwareEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities().getWithResponse("myRg", "myWorkspace", "af378b21-b4aa-4fe7-bc70-13f8621a322f", Context.NONE);
+ manager
+ .entities()
+ .getWithResponse(
+ "myRg", "myWorkspace", "af378b21-b4aa-4fe7-bc70-13f8621a322f", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/entities/GetSecurityAlertEntityById.json
*/
/**
* Sample code: Get a security alert entity.
@@ -3112,11 +3753,14 @@ public final class EntitiesGetSamples {
*/
public static void getASecurityAlertEntity(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities().getWithResponse("myRg", "myWorkspace", "4aa486e0-6f85-41af-99ea-7acdce7be6c8", Context.NONE);
+ manager
+ .entities()
+ .getWithResponse(
+ "myRg", "myWorkspace", "4aa486e0-6f85-41af-99ea-7acdce7be6c8", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/entities/GetIpEntityById.json
*/
/**
* Sample code: Get an ip entity.
@@ -3124,11 +3768,14 @@ public final class EntitiesGetSamples {
* @param manager Entry point to SecurityInsightsManager.
*/
public static void getAnIpEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities().getWithResponse("myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1", Context.NONE);
+ manager
+ .entities()
+ .getWithResponse(
+ "myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/entities/GetAccountEntityById.json
*/
/**
* Sample code: Get an account entity.
@@ -3136,11 +3783,14 @@ public final class EntitiesGetSamples {
* @param manager Entry point to SecurityInsightsManager.
*/
public static void getAnAccountEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities().getWithResponse("myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1", Context.NONE);
+ manager
+ .entities()
+ .getWithResponse(
+ "myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/entities/GetCloudApplicationEntityById.json
*/
/**
* Sample code: Get a cloud application entity.
@@ -3149,11 +3799,14 @@ public final class EntitiesGetSamples {
*/
public static void getACloudApplicationEntity(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities().getWithResponse("myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1", Context.NONE);
+ manager
+ .entities()
+ .getWithResponse(
+ "myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/entities/GetFileEntityById.json
*/
/**
* Sample code: Get a file entity.
@@ -3161,11 +3814,14 @@ public final class EntitiesGetSamples {
* @param manager Entry point to SecurityInsightsManager.
*/
public static void getAFileEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities().getWithResponse("myRg", "myWorkspace", "af378b21-b4aa-4fe7-bc70-13f8621a322f", Context.NONE);
+ manager
+ .entities()
+ .getWithResponse(
+ "myRg", "myWorkspace", "af378b21-b4aa-4fe7-bc70-13f8621a322f", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/entities/GetRegistryValueEntityById.json
*/
/**
* Sample code: Get a registry value entity.
@@ -3174,11 +3830,14 @@ public final class EntitiesGetSamples {
*/
public static void getARegistryValueEntity(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities().getWithResponse("myRg", "myWorkspace", "dc44bd11-b348-4d76-ad29-37bf7aa41356", Context.NONE);
+ manager
+ .entities()
+ .getWithResponse(
+ "myRg", "myWorkspace", "dc44bd11-b348-4d76-ad29-37bf7aa41356", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/entities/GetUrlEntityById.json
*/
/**
* Sample code: Get a url entity.
@@ -3186,11 +3845,14 @@ public final class EntitiesGetSamples {
* @param manager Entry point to SecurityInsightsManager.
*/
public static void getAUrlEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities().getWithResponse("myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1", Context.NONE);
+ manager
+ .entities()
+ .getWithResponse(
+ "myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/entities/GetMailClusterEntityById.json
*/
/**
* Sample code: Get a mailCluster entity.
@@ -3199,11 +3861,14 @@ public final class EntitiesGetSamples {
*/
public static void getAMailClusterEntity(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities().getWithResponse("myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1", Context.NONE);
+ manager
+ .entities()
+ .getWithResponse(
+ "myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/entities/GetSecurityGroupEntityById.json
*/
/**
* Sample code: Get a security group entity.
@@ -3212,11 +3877,14 @@ public final class EntitiesGetSamples {
*/
public static void getASecurityGroupEntity(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities().getWithResponse("myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1", Context.NONE);
+ manager
+ .entities()
+ .getWithResponse(
+ "myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/entities/GetMailMessageEntityById.json
*/
/**
* Sample code: Get a mailMessage entity.
@@ -3225,11 +3893,14 @@ public final class EntitiesGetSamples {
*/
public static void getAMailMessageEntity(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities().getWithResponse("myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1", Context.NONE);
+ manager
+ .entities()
+ .getWithResponse(
+ "myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/entities/GetAzureResourceEntityById.json
*/
/**
* Sample code: Get an azure resource entity.
@@ -3238,11 +3909,14 @@ public final class EntitiesGetSamples {
*/
public static void getAnAzureResourceEntity(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities().getWithResponse("myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1", Context.NONE);
+ manager
+ .entities()
+ .getWithResponse(
+ "myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/entities/GetHostEntityById.json
*/
/**
* Sample code: Get a host entity.
@@ -3250,11 +3924,14 @@ public final class EntitiesGetSamples {
* @param manager Entry point to SecurityInsightsManager.
*/
public static void getAHostEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities().getWithResponse("myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1", Context.NONE);
+ manager
+ .entities()
+ .getWithResponse(
+ "myRg", "myWorkspace", "e1d3d618-e11f-478b-98e3-bb381539a8e1", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/entities/GetProcessEntityById.json
*/
/**
* Sample code: Get a process entity.
@@ -3262,7 +3939,10 @@ public final class EntitiesGetSamples {
* @param manager Entry point to SecurityInsightsManager.
*/
public static void getAProcessEntity(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities().getWithResponse("myRg", "myWorkspace", "7264685c-038c-42c6-948c-38e14ef1fb98", Context.NONE);
+ manager
+ .entities()
+ .getWithResponse(
+ "myRg", "myWorkspace", "7264685c-038c-42c6-948c-38e14ef1fb98", com.azure.core.util.Context.NONE);
}
}
```
@@ -3270,7 +3950,6 @@ public final class EntitiesGetSamples {
### Entities_GetInsights
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.securityinsights.models.EntityGetInsightsParameters;
import java.time.OffsetDateTime;
import java.util.Arrays;
@@ -3279,7 +3958,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/2023-04-01-preview/examples/entities/insights/PostGetInsights.json
*/
/**
* Sample code: Entity Insight.
@@ -3298,7 +3977,7 @@ public final class EntitiesGetInsightsSamples {
.withEndTime(OffsetDateTime.parse("2021-10-01T00:00:00.000Z"))
.withAddDefaultExtendedTimeRange(false)
.withInsightQueryIds(Arrays.asList(UUID.fromString("cae8d0aa-aa45-4d53-8d88-17dd64ffd4e4"))),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -3306,12 +3985,10 @@ public final class EntitiesGetInsightsSamples {
### Entities_List
```java
-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/2023-04-01-preview/examples/entities/GetEntities.json
*/
/**
* Sample code: Get all entities.
@@ -3319,7 +3996,7 @@ public final class EntitiesListSamples {
* @param manager Entry point to SecurityInsightsManager.
*/
public static void getAllEntities(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entities().list("myRg", "myWorkspace", Context.NONE);
+ manager.entities().list("myRg", "myWorkspace", com.azure.core.util.Context.NONE);
}
}
```
@@ -3327,13 +4004,12 @@ public final class EntitiesListSamples {
### Entities_Queries
```java
-import com.azure.core.util.Context;
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/2023-04-01-preview/examples/entities/GetQueries.json
*/
/**
* Sample code: Get Entity Query.
@@ -3348,22 +4024,43 @@ public final class EntitiesQueriesSamples {
"myWorkspace",
"e1d3d618-e11f-478b-98e3-bb381539a8e1",
EntityItemQueryKind.INSIGHT,
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
-### EntitiesGetTimeline_List
+### Entities_RunPlaybook
```java
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.securityinsights.models.EntityTimelineParameters;
-import java.time.OffsetDateTime;
-
-/** Samples for EntitiesGetTimeline List. */
-public final class EntitiesGetTimelineListSamples {
+/** Samples for Entities RunPlaybook. */
+public final class EntitiesRunPlaybookSamples {
/*
- * 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/2023-04-01-preview/examples/manualTrigger/Entities_RunPlaybook.json
+ */
+ /**
+ * Sample code: Entities_RunPlaybook.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void entitiesRunPlaybook(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .entities()
+ .runPlaybookWithResponse(
+ "myRg", "myWorkspace", "72e01a22-5cd2-4139-a149-9f2736ff2ar2", null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EntitiesGetTimeline_List
+
+```java
+import com.azure.resourcemanager.securityinsights.models.EntityTimelineParameters;
+import java.time.OffsetDateTime;
+
+/** Samples for EntitiesGetTimeline List. */
+public final class EntitiesGetTimelineListSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/entities/timeline/PostTimelineEntity.json
*/
/**
* Sample code: Entity timeline.
@@ -3381,7 +4078,7 @@ public final class EntitiesGetTimelineListSamples {
.withStartTime(OffsetDateTime.parse("2021-09-01T00:00:00.000Z"))
.withEndTime(OffsetDateTime.parse("2021-10-01T00:00:00.000Z"))
.withNumberOfBucket(4),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -3389,12 +4086,10 @@ public final class EntitiesGetTimelineListSamples {
### EntitiesRelations_List
```java
-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/2023-04-01-preview/examples/entities/relations/GetAllEntityRelations.json
*/
/**
* Sample code: Get all relations of an entity.
@@ -3405,7 +4100,15 @@ public final class EntitiesRelationsListSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.entitiesRelations()
- .list("myRg", "myWorkspace", "afbd324f-6c48-459c-8710-8d1e1cd03812", null, null, null, null, Context.NONE);
+ .list(
+ "myRg",
+ "myWorkspace",
+ "afbd324f-6c48-459c-8710-8d1e1cd03812",
+ null,
+ null,
+ null,
+ null,
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -3413,7 +4116,6 @@ public final class EntitiesRelationsListSamples {
### EntityQueries_CreateOrUpdate
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.securityinsights.models.ActivityCustomEntityQuery;
import com.azure.resourcemanager.securityinsights.models.ActivityEntityQueriesPropertiesQueryDefinitions;
import com.azure.resourcemanager.securityinsights.models.EntityType;
@@ -3424,7 +4126,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/2023-04-01-preview/examples/entityQueries/CreateEntityQueryActivity.json
*/
/**
* Sample code: Creates or updates an Activity entity query.
@@ -3494,7 +4196,7 @@ public final class EntityQueriesCreateOrUpdateSamples {
Arrays.asList("Host_OMSAgentID")))
.withEntitiesFilter(mapOf("Host_OsFamily", Arrays.asList("Windows")))
.withEnabled(true),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
@SuppressWarnings("unchecked")
@@ -3513,12 +4215,10 @@ public final class EntityQueriesCreateOrUpdateSamples {
### EntityQueries_Delete
```java
-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/2023-04-01-preview/examples/entityQueries/DeleteEntityQuery.json
*/
/**
* Sample code: Delete an entity query.
@@ -3528,7 +4228,8 @@ public final class EntityQueriesDeleteSamples {
public static void deleteAnEntityQuery(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.entityQueries()
- .deleteWithResponse("myRg", "myWorkspace", "07da3cc8-c8ad-4710-a44e-334cdcb7882b", Context.NONE);
+ .deleteWithResponse(
+ "myRg", "myWorkspace", "07da3cc8-c8ad-4710-a44e-334cdcb7882b", com.azure.core.util.Context.NONE);
}
}
```
@@ -3536,12 +4237,10 @@ public final class EntityQueriesDeleteSamples {
### EntityQueries_Get
```java
-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/2023-04-01-preview/examples/entityQueries/GetActivityEntityQueryById.json
*/
/**
* Sample code: Get an Activity entity query.
@@ -3552,11 +4251,12 @@ public final class EntityQueriesGetSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.entityQueries()
- .getWithResponse("myRg", "myWorkspace", "07da3cc8-c8ad-4710-a44e-334cdcb7882b", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "07da3cc8-c8ad-4710-a44e-334cdcb7882b", com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/entityQueries/GetExpansionEntityQueryById.json
*/
/**
* Sample code: Get an Expansion entity query.
@@ -3567,7 +4267,8 @@ public final class EntityQueriesGetSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.entityQueries()
- .getWithResponse("myRg", "myWorkspace", "07da3cc8-c8ad-4710-a44e-334cdcb7882b", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "07da3cc8-c8ad-4710-a44e-334cdcb7882b", com.azure.core.util.Context.NONE);
}
}
```
@@ -3575,13 +4276,12 @@ public final class EntityQueriesGetSamples {
### EntityQueries_List
```java
-import com.azure.core.util.Context;
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/2023-04-01-preview/examples/entityQueries/GetEntityQueries.json
*/
/**
* Sample code: Get all entity queries.
@@ -3589,7 +4289,9 @@ public final class EntityQueriesListSamples {
* @param manager Entry point to SecurityInsightsManager.
*/
public static void getAllEntityQueries(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entityQueries().list("myRg", "myWorkspace", EntityQueriesKind.EXPANSION, Context.NONE);
+ manager
+ .entityQueries()
+ .list("myRg", "myWorkspace", EntityQueriesKind.EXPANSION, com.azure.core.util.Context.NONE);
}
}
```
@@ -3597,12 +4299,10 @@ public final class EntityQueriesListSamples {
### EntityQueryTemplates_Get
```java
-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/2023-04-01-preview/examples/entityQueryTemplates/GetActivityEntityQueryTemplateById.json
*/
/**
* Sample code: Get an Activity entity query template.
@@ -3613,7 +4313,8 @@ public final class EntityQueryTemplatesGetSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.entityQueryTemplates()
- .getWithResponse("myRg", "myWorkspace", "07da3cc8-c8ad-4710-a44e-334cdcb7882b", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "07da3cc8-c8ad-4710-a44e-334cdcb7882b", com.azure.core.util.Context.NONE);
}
}
```
@@ -3621,13 +4322,12 @@ public final class EntityQueryTemplatesGetSamples {
### EntityQueryTemplates_List
```java
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.securityinsights.models.Constant88;
+import com.azure.resourcemanager.securityinsights.models.Constant99;
/** 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/2023-04-01-preview/examples/entityQueryTemplates/GetEntityQueryTemplates.json
*/
/**
* Sample code: Get all entity query templates.
@@ -3636,7 +4336,9 @@ 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", Constant99.ACTIVITY, com.azure.core.util.Context.NONE);
}
}
```
@@ -3644,12 +4346,10 @@ public final class EntityQueryTemplatesListSamples {
### EntityRelations_GetRelation
```java
-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/2023-04-01-preview/examples/entities/relations/GetEntityRelationByName.json
*/
/**
* Sample code: Get an entity relation.
@@ -3664,7 +4364,7 @@ public final class EntityRelationsGetRelationSamples {
"myWorkspace",
"afbd324f-6c48-459c-8710-8d1e1cd03812",
"4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -3680,7 +4380,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/2023-04-01-preview/examples/fileImports/CreateFileImport.json
*/
/**
* Sample code: Create a file import.
@@ -3705,12 +4405,10 @@ public final class FileImportsCreateSamples {
### FileImports_Delete
```java
-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/2023-04-01-preview/examples/fileImports/DeleteFileImport.json
*/
/**
* Sample code: Delete a file import.
@@ -3718,7 +4416,9 @@ public final class FileImportsDeleteSamples {
* @param manager Entry point to SecurityInsightsManager.
*/
public static void deleteAFileImport(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.fileImports().delete("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", Context.NONE);
+ manager
+ .fileImports()
+ .delete("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", com.azure.core.util.Context.NONE);
}
}
```
@@ -3726,12 +4426,10 @@ public final class FileImportsDeleteSamples {
### FileImports_Get
```java
-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/2023-04-01-preview/examples/fileImports/GetFileImportById.json
*/
/**
* Sample code: Get a file import.
@@ -3741,7 +4439,8 @@ public final class FileImportsGetSamples {
public static void getAFileImport(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.fileImports()
- .getWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", com.azure.core.util.Context.NONE);
}
}
```
@@ -3749,12 +4448,10 @@ public final class FileImportsGetSamples {
### FileImports_List
```java
-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/2023-04-01-preview/examples/fileImports/GetFileImports.json
*/
/**
* Sample code: Get all file imports.
@@ -3764,7 +4461,81 @@ public final class FileImportsListSamples {
public static void getAllFileImports(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.fileImports()
- .list("myRg", "myWorkspace", null, "properties/createdTimeUtc desc", 1, null, Context.NONE);
+ .list(
+ "myRg",
+ "myWorkspace",
+ null,
+ "properties/createdTimeUtc desc",
+ 1,
+ null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Get_SingleRecommendation
+
+```java
+import java.util.UUID;
+
+/** Samples for Get SingleRecommendation. */
+public final class GetSingleRecommendationSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-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"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### GetRecommendations_List
+
+```java
+/** Samples for GetRecommendations List. */
+public final class GetRecommendationsListSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-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", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### GetTriggeredAnalyticsRuleRuns_List
+
+```java
+/** Samples for GetTriggeredAnalyticsRuleRuns List. */
+public final class GetTriggeredAnalyticsRuleRunsListSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/triggeredAnalyticsRuleRuns/triggeredAnalyticsRuleRuns_Get.json
+ */
+ /**
+ * Sample code: triggeredAnalyticsRuleRuns_Get.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void triggeredAnalyticsRuleRunsGet(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager.getTriggeredAnalyticsRuleRuns().list("myRg", "myWorkspace", com.azure.core.util.Context.NONE);
}
}
```
@@ -3775,14 +4546,14 @@ public final class FileImportsListSamples {
/** 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/2023-04-01-preview/examples/incidents/IncidentComments/IncidentComments_CreateOrUpdate.json
*/
/**
- * Sample code: Creates or updates an incident comment.
+ * Sample code: IncidentComments_CreateOrUpdate.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void createsOrUpdatesAnIncidentComment(
+ public static void incidentCommentsCreateOrUpdate(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.incidentComments()
@@ -3797,19 +4568,17 @@ public final class IncidentCommentsCreateOrUpdateSamples {
### IncidentComments_Delete
```java
-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/2023-04-01-preview/examples/incidents/IncidentComments/IncidentComments_Delete.json
*/
/**
- * Sample code: Delete the incident comment.
+ * Sample code: IncidentComments_Delete.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void deleteTheIncidentComment(
+ public static void incidentCommentsDelete(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.incidentComments()
@@ -3818,7 +4587,7 @@ public final class IncidentCommentsDeleteSamples {
"myWorkspace",
"73e01a99-5cd7-4139-a149-9f2736ff2ab5",
"4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -3826,20 +4595,17 @@ public final class IncidentCommentsDeleteSamples {
### IncidentComments_Get
```java
-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/2023-04-01-preview/examples/incidents/IncidentComments/IncidentComments_Get.json
*/
/**
- * Sample code: Get an incident comment.
+ * Sample code: IncidentComments_Get.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void getAnIncidentComment(
- com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ public static void incidentCommentsGet(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.incidentComments()
.getWithResponse(
@@ -3847,7 +4613,7 @@ public final class IncidentCommentsGetSamples {
"myWorkspace",
"73e01a99-5cd7-4139-a149-9f2736ff2ab5",
"4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -3855,23 +4621,29 @@ public final class IncidentCommentsGetSamples {
### IncidentComments_List
```java
-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/2023-04-01-preview/examples/incidents/IncidentComments/IncidentComments_List.json
*/
/**
- * Sample code: Get all incident comments.
+ * Sample code: IncidentComments_List.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void getAllIncidentComments(
+ public static void incidentCommentsList(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.incidentComments()
- .list("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", null, null, null, null, Context.NONE);
+ .list(
+ "myRg",
+ "myWorkspace",
+ "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
+ null,
+ null,
+ null,
+ null,
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -3879,13 +4651,12 @@ public final class IncidentCommentsListSamples {
### IncidentRelations_CreateOrUpdate
```java
-import com.azure.core.util.Context;
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/2023-04-01-preview/examples/incidents/relations/CreateIncidentRelation.json
*/
/**
* Sample code: Creates or updates an incident relation.
@@ -3904,7 +4675,7 @@ public final class IncidentRelationsCreateOrUpdateSamples {
new RelationInner()
.withRelatedResourceId(
"/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/bookmarks/2216d0e1-91e3-4902-89fd-d2df8c535096"),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -3912,12 +4683,10 @@ public final class IncidentRelationsCreateOrUpdateSamples {
### IncidentRelations_Delete
```java
-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/2023-04-01-preview/examples/incidents/relations/DeleteIncidentRelation.json
*/
/**
* Sample code: Delete the incident relation.
@@ -3933,7 +4702,7 @@ public final class IncidentRelationsDeleteSamples {
"myWorkspace",
"afbd324f-6c48-459c-8710-8d1e1cd03812",
"4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -3941,12 +4710,10 @@ public final class IncidentRelationsDeleteSamples {
### IncidentRelations_Get
```java
-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/2023-04-01-preview/examples/incidents/relations/GetIncidentRelationByName.json
*/
/**
* Sample code: Get an incident relation.
@@ -3962,7 +4729,7 @@ public final class IncidentRelationsGetSamples {
"myWorkspace",
"afbd324f-6c48-459c-8710-8d1e1cd03812",
"4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -3970,12 +4737,10 @@ public final class IncidentRelationsGetSamples {
### IncidentRelations_List
```java
-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/2023-04-01-preview/examples/incidents/relations/GetAllIncidentRelations.json
*/
/**
* Sample code: Get all incident relations.
@@ -3986,7 +4751,117 @@ public final class IncidentRelationsListSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.incidentRelations()
- .list("myRg", "myWorkspace", "afbd324f-6c48-459c-8710-8d1e1cd03812", null, null, null, null, Context.NONE);
+ .list(
+ "myRg",
+ "myWorkspace",
+ "afbd324f-6c48-459c-8710-8d1e1cd03812",
+ null,
+ null,
+ null,
+ null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### IncidentTasks_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.securityinsights.models.IncidentTaskStatus;
+
+/** Samples for IncidentTasks CreateOrUpdate. */
+public final class IncidentTasksCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/incidents/IncidentTasks/IncidentTasks_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: IncidentTasks_CreateOrUpdate.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void incidentTasksCreateOrUpdate(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .incidentTasks()
+ .define("4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014")
+ .withExistingIncident("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5")
+ .withTitle("Task title")
+ .withStatus(IncidentTaskStatus.NEW)
+ .withDescription("Task description")
+ .create();
+ }
+}
+```
+
+### IncidentTasks_Delete
+
+```java
+/** Samples for IncidentTasks Delete. */
+public final class IncidentTasksDeleteSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/incidents/IncidentTasks/IncidentTasks_Delete.json
+ */
+ /**
+ * Sample code: IncidentTasks_Delete.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void incidentTasksDelete(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .incidentTasks()
+ .deleteWithResponse(
+ "myRg",
+ "myWorkspace",
+ "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
+ "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### IncidentTasks_Get
+
+```java
+/** Samples for IncidentTasks Get. */
+public final class IncidentTasksGetSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/incidents/IncidentTasks/IncidentTasks_Get.json
+ */
+ /**
+ * Sample code: IncidentTasks_Get.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void incidentTasksGet(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .incidentTasks()
+ .getWithResponse(
+ "myRg",
+ "myWorkspace",
+ "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
+ "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### IncidentTasks_List
+
+```java
+/** Samples for IncidentTasks List. */
+public final class IncidentTasksListSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/incidents/IncidentTasks/IncidentTasks_List.json
+ */
+ /**
+ * Sample code: IncidentTasks_List.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void incidentTasksList(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .incidentTasks()
+ .list("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", com.azure.core.util.Context.NONE);
}
}
```
@@ -4005,30 +4880,30 @@ 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/2023-04-01-preview/examples/incidents/Incidents_CreateOrUpdate.json
*/
/**
- * Sample code: Creates or updates an incident.
+ * Sample code: Incidents_CreateOrUpdate.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void createsOrUpdatesAnIncident(
+ public static void incidentsCreateOrUpdate(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.incidents()
.define("73e01a99-5cd7-4139-a149-9f2736ff2ab5")
.withExistingWorkspace("myRg", "myWorkspace")
.withEtag("\"0300bf09-0000-0000-0000-5c37296e0000\"")
+ .withTitle("My incident")
+ .withDescription("This is a demo incident")
+ .withSeverity(IncidentSeverity.HIGH)
+ .withStatus(IncidentStatus.CLOSED)
.withClassification(IncidentClassification.FALSE_POSITIVE)
+ .withClassificationReason(IncidentClassificationReason.INACCURATE_DATA)
.withClassificationComment("Not a malicious activity")
- .withClassificationReason(IncidentClassificationReason.INCORRECT_ALERT_LOGIC)
- .withDescription("This is a demo incident")
+ .withOwner(new IncidentOwnerInfo().withObjectId(UUID.fromString("2046feea-040d-4a46-9e2b-91c2941bfa70")))
.withFirstActivityTimeUtc(OffsetDateTime.parse("2019-01-01T13:00:30Z"))
.withLastActivityTimeUtc(OffsetDateTime.parse("2019-01-01T13:05:30Z"))
- .withOwner(new IncidentOwnerInfo().withObjectId(UUID.fromString("2046feea-040d-4a46-9e2b-91c2941bfa70")))
- .withSeverity(IncidentSeverity.HIGH)
- .withStatus(IncidentStatus.CLOSED)
- .withTitle("My incident")
.create();
}
}
@@ -4037,29 +4912,27 @@ public final class IncidentsCreateOrUpdateSamples {
### Incidents_CreateTeam
```java
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.securityinsights.models.TeamProperties;
+import com.azure.resourcemanager.securityinsights.fluent.models.TeamInformationInner;
/** 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/2023-04-01-preview/examples/incidents/IncidentTeam/Incidents_CreateTeam.json
*/
/**
- * Sample code: Creates incident teams group.
+ * Sample code: Incidents_CreateTeam.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void createsIncidentTeamsGroup(
- com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ public static void incidentsCreateTeam(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.incidents()
.createTeamWithResponse(
- "ambawolvese5resourcegroup",
- "AmbaE5WestCentralUS",
+ "myRg",
+ "myWorkspace",
"69a30280-6a4c-4aa7-9af0-5d63f335d600",
- new TeamProperties().withTeamName("Team name").withTeamDescription("Team description"),
- Context.NONE);
+ new TeamInformationInner(),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -4067,22 +4940,21 @@ public final class IncidentsCreateTeamSamples {
### Incidents_Delete
```java
-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/2023-04-01-preview/examples/incidents/Incidents_Delete.json
*/
/**
- * Sample code: Delete an incident.
+ * Sample code: Incidents_Delete.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void deleteAnIncident(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ public static void incidentsDelete(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.incidents()
- .deleteWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", Context.NONE);
+ .deleteWithResponse(
+ "myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", com.azure.core.util.Context.NONE);
}
}
```
@@ -4090,22 +4962,21 @@ public final class IncidentsDeleteSamples {
### Incidents_Get
```java
-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/2023-04-01-preview/examples/incidents/Incidents_Get.json
*/
/**
- * Sample code: Get an incident.
+ * Sample code: Incidents_Get.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void getAnIncident(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ public static void incidentsGet(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.incidents()
- .getWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", com.azure.core.util.Context.NONE);
}
}
```
@@ -4113,20 +4984,27 @@ public final class IncidentsGetSamples {
### Incidents_List
```java
-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/2023-04-01-preview/examples/incidents/Incidents_List.json
*/
/**
- * Sample code: Get all incidents.
+ * Sample code: Incidents_List.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void getAllIncidents(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.incidents().list("myRg", "myWorkspace", null, "properties/createdTimeUtc desc", 1, null, Context.NONE);
+ public static void incidentsList(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .incidents()
+ .list(
+ "myRg",
+ "myWorkspace",
+ null,
+ "properties/createdTimeUtc desc",
+ 1,
+ null,
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -4134,23 +5012,21 @@ public final class IncidentsListSamples {
### Incidents_ListAlerts
```java
-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/2023-04-01-preview/examples/incidents/IncidentAlerts/Incidents_ListAlerts.json
*/
/**
- * Sample code: Get all incident alerts.
+ * Sample code: Incidents_ListAlerts.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void getAllIncidentAlerts(
- com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ public static void incidentsListAlerts(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.incidents()
- .listAlertsWithResponse("myRg", "myWorkspace", "afbd324f-6c48-459c-8710-8d1e1cd03812", Context.NONE);
+ .listAlertsWithResponse(
+ "myRg", "myWorkspace", "69a30280-6a4c-4aa7-9af0-5d63f335d600", com.azure.core.util.Context.NONE);
}
}
```
@@ -4158,23 +5034,22 @@ public final class IncidentsListAlertsSamples {
### Incidents_ListBookmarks
```java
-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/2023-04-01-preview/examples/incidents/IncidentBookmarks/Incidents_ListBookmarks.json
*/
/**
- * Sample code: Get all incident bookmarks.
+ * Sample code: Incidents_ListBookmarks.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void getAllIncidentBookmarks(
+ public static void incidentsListBookmarks(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.incidents()
- .listBookmarksWithResponse("myRg", "myWorkspace", "afbd324f-6c48-459c-8710-8d1e1cd03812", Context.NONE);
+ .listBookmarksWithResponse(
+ "myRg", "myWorkspace", "69a30280-6a4c-4aa7-9af0-5d63f335d600", com.azure.core.util.Context.NONE);
}
}
```
@@ -4182,23 +5057,22 @@ public final class IncidentsListBookmarksSamples {
### Incidents_ListEntities
```java
-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/2023-04-01-preview/examples/incidents/IncidentEntities/Incidents_ListEntities.json
*/
/**
- * Sample code: Gets all incident related entities.
+ * Sample code: Incidents_ListEntities.
*
* @param manager Entry point to SecurityInsightsManager.
*/
- public static void getsAllIncidentRelatedEntities(
+ public static void incidentsListEntities(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.incidents()
- .listEntitiesWithResponse("myRg", "myWorkspace", "afbd324f-6c48-459c-8710-8d1e1cd03812", Context.NONE);
+ .listEntitiesWithResponse(
+ "myRg", "myWorkspace", "69a30280-6a4c-4aa7-9af0-5d63f335d600", com.azure.core.util.Context.NONE);
}
}
```
@@ -4206,12 +5080,10 @@ public final class IncidentsListEntitiesSamples {
### Incidents_RunPlaybook
```java
-import com.azure.core.util.Context;
-
/** Samples for Incidents RunPlaybook. */
public final class IncidentsRunPlaybookSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/manualTrigger/Incidents_RunPlaybook.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/manualTrigger/Incidents_RunPlaybook.json
*/
/**
* Sample code: Incidents_RunPlaybook.
@@ -4222,7 +5094,8 @@ public final class IncidentsRunPlaybookSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.incidents()
- .runPlaybookWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ar4", null, Context.NONE);
+ .runPlaybookWithResponse(
+ "myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ar4", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -4230,12 +5103,10 @@ public final class IncidentsRunPlaybookSamples {
### IpGeodata_Get
```java
-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/2023-04-01-preview/examples/enrichment/GetGeodataByIp.json
*/
/**
* Sample code: Get geodata for a single IP address.
@@ -4244,7 +5115,7 @@ public final class IpGeodataGetSamples {
*/
public static void getGeodataForASingleIPAddress(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.ipGeodatas().getWithResponse("myRg", "1.2.3.4", Context.NONE);
+ manager.ipGeodatas().getWithResponse("myRg", "1.2.3.4", com.azure.core.util.Context.NONE);
}
}
```
@@ -4252,10 +5123,9 @@ public final class IpGeodataGetSamples {
### Metadata_Create
```java
-import com.azure.resourcemanager.securityinsights.models.Kind;
import com.azure.resourcemanager.securityinsights.models.MetadataAuthor;
import com.azure.resourcemanager.securityinsights.models.MetadataCategories;
-import com.azure.resourcemanager.securityinsights.models.MetadataDependencies;
+import com.azure.resourcemanager.securityinsights.models.MetadataDependenciesAutoGenerated;
import com.azure.resourcemanager.securityinsights.models.MetadataSource;
import com.azure.resourcemanager.securityinsights.models.MetadataSupport;
import com.azure.resourcemanager.securityinsights.models.Operator;
@@ -4267,7 +5137,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/2023-04-01-preview/examples/metadata/PutMetadata.json
*/
/**
* Sample code: Create/update full metadata.
@@ -4284,7 +5154,7 @@ public final class MetadataCreateSamples {
.withParentId(
"/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/ruleName")
.withVersion("1.0.0.0")
- .withKind(Kind.ANALYTICS_RULE)
+ .withKind("AnalyticsRule")
.withSource(
new MetadataSource()
.withKind(SourceKind.SOLUTION)
@@ -4298,34 +5168,34 @@ public final class MetadataCreateSamples {
.withEmail("support@microsoft.com")
.withLink("https://support.microsoft.com/"))
.withDependencies(
- new MetadataDependencies()
+ new MetadataDependenciesAutoGenerated()
.withOperator(Operator.AND)
.withCriteria(
Arrays
.asList(
- new MetadataDependencies()
+ new MetadataDependenciesAutoGenerated()
.withOperator(Operator.OR)
.withCriteria(
Arrays
.asList(
- new MetadataDependencies()
+ new MetadataDependenciesAutoGenerated()
.withContentId("045d06d0-ee72-4794-aba4-cf5646e4c756")
- .withKind(Kind.DATA_CONNECTOR)
+ .withKind("DataConnector")
.withName("Microsoft Defender for Endpoint"),
- new MetadataDependencies()
+ new MetadataDependenciesAutoGenerated()
.withContentId("dbfcb2cc-d782-40ef-8d94-fe7af58a6f2d")
- .withKind(Kind.DATA_CONNECTOR),
- new MetadataDependencies()
+ .withKind("DataConnector"),
+ new MetadataDependenciesAutoGenerated()
.withContentId("de4dca9b-eb37-47d6-a56f-b8b06b261593")
- .withKind(Kind.DATA_CONNECTOR)
+ .withKind("DataConnector")
.withVersion("2.0"))),
- new MetadataDependencies()
+ new MetadataDependenciesAutoGenerated()
.withContentId("31ee11cc-9989-4de8-b176-5e0ef5c4dbab")
- .withKind(Kind.PLAYBOOK)
+ .withKind("Playbook")
.withVersion("1.0"),
- new MetadataDependencies()
+ new MetadataDependenciesAutoGenerated()
.withContentId("21ba424a-9438-4444-953a-7059539a7a1b")
- .withKind(Kind.PARSER))))
+ .withKind("Parser"))))
.withCategories(
new MetadataCategories()
.withDomains(Arrays.asList("Application", "Security – Insider Threat"))
@@ -4343,7 +5213,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/2023-04-01-preview/examples/metadata/PutMetadataMinimal.json
*/
/**
* Sample code: Create/update minimal metadata.
@@ -4359,7 +5229,7 @@ public final class MetadataCreateSamples {
.withContentId("c00ee137-7475-47c8-9cce-ec6f0f1bedd0")
.withParentId(
"/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/ruleName")
- .withKind(Kind.ANALYTICS_RULE)
+ .withKind("AnalyticsRule")
.create();
}
}
@@ -4368,12 +5238,10 @@ public final class MetadataCreateSamples {
### Metadata_Delete
```java
-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/2023-04-01-preview/examples/metadata/DeleteMetadata.json
*/
/**
* Sample code: Delete metadata.
@@ -4381,7 +5249,7 @@ public final class MetadataDeleteSamples {
* @param manager Entry point to SecurityInsightsManager.
*/
public static void deleteMetadata(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.metadatas().deleteWithResponse("myRg", "myWorkspace", "metadataName", Context.NONE);
+ manager.metadatas().deleteWithResponse("myRg", "myWorkspace", "metadataName", com.azure.core.util.Context.NONE);
}
}
```
@@ -4389,12 +5257,10 @@ public final class MetadataDeleteSamples {
### Metadata_Get
```java
-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/2023-04-01-preview/examples/metadata/GetMetadata.json
*/
/**
* Sample code: Get single metadata by name.
@@ -4403,7 +5269,7 @@ public final class MetadataGetSamples {
*/
public static void getSingleMetadataByName(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.metadatas().getWithResponse("myRg", "myWorkspace", "metadataName", Context.NONE);
+ manager.metadatas().getWithResponse("myRg", "myWorkspace", "metadataName", com.azure.core.util.Context.NONE);
}
}
```
@@ -4411,12 +5277,10 @@ public final class MetadataGetSamples {
### Metadata_List
```java
-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/2023-04-01-preview/examples/metadata/GetAllMetadata.json
*/
/**
* Sample code: Get all metadata.
@@ -4424,11 +5288,11 @@ public final class MetadataListSamples {
* @param manager Entry point to SecurityInsightsManager.
*/
public static void getAllMetadata(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.metadatas().list("myRg", "myWorkspace", null, null, null, null, Context.NONE);
+ manager.metadatas().list("myRg", "myWorkspace", null, null, null, null, com.azure.core.util.Context.NONE);
}
/*
- * 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/2023-04-01-preview/examples/metadata/GetAllMetadataOData.json
*/
/**
* Sample code: Get all metadata with OData filter/orderby/skip/top.
@@ -4437,7 +5301,7 @@ public final class MetadataListSamples {
*/
public static void getAllMetadataWithODataFilterOrderbySkipTop(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.metadatas().list("myRg", "myWorkspace", null, null, null, null, Context.NONE);
+ manager.metadatas().list("myRg", "myWorkspace", null, null, null, null, com.azure.core.util.Context.NONE);
}
}
```
@@ -4445,14 +5309,13 @@ public final class MetadataListSamples {
### Metadata_Update
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.securityinsights.models.MetadataAuthor;
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/2023-04-01-preview/examples/metadata/PatchMetadata.json
*/
/**
* Sample code: Update metadata.
@@ -4461,7 +5324,10 @@ public final class MetadataUpdateSamples {
*/
public static void updateMetadata(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
MetadataModel resource =
- manager.metadatas().getWithResponse("myRg", "myWorkspace", "metadataName", Context.NONE).getValue();
+ manager
+ .metadatas()
+ .getWithResponse("myRg", "myWorkspace", "metadataName", com.azure.core.util.Context.NONE)
+ .getValue();
resource
.update()
.withAuthor(new MetadataAuthor().withName("User Name").withEmail("email@microsoft.com"))
@@ -4473,12 +5339,10 @@ public final class MetadataUpdateSamples {
### OfficeConsents_Delete
```java
-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/2023-04-01-preview/examples/officeConsents/DeleteOfficeConsents.json
*/
/**
* Sample code: Delete an office consent.
@@ -4489,7 +5353,8 @@ public final class OfficeConsentsDeleteSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.officeConsents()
- .deleteWithResponse("myRg", "myWorkspace", "04e5fd05-ff86-4b97-b8d2-1c20933cb46c", Context.NONE);
+ .deleteWithResponse(
+ "myRg", "myWorkspace", "04e5fd05-ff86-4b97-b8d2-1c20933cb46c", com.azure.core.util.Context.NONE);
}
}
```
@@ -4497,12 +5362,10 @@ public final class OfficeConsentsDeleteSamples {
### OfficeConsents_Get
```java
-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/2023-04-01-preview/examples/officeConsents/GetOfficeConsentsById.json
*/
/**
* Sample code: Get an office consent.
@@ -4512,7 +5375,8 @@ public final class OfficeConsentsGetSamples {
public static void getAnOfficeConsent(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.officeConsents()
- .getWithResponse("myRg", "myWorkspace", "04e5fd05-ff86-4b97-b8d2-1c20933cb46c", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "04e5fd05-ff86-4b97-b8d2-1c20933cb46c", com.azure.core.util.Context.NONE);
}
}
```
@@ -4520,12 +5384,10 @@ public final class OfficeConsentsGetSamples {
### OfficeConsents_List
```java
-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/2023-04-01-preview/examples/officeConsents/GetOfficeConsents.json
*/
/**
* Sample code: Get all office consents.
@@ -4534,7 +5396,7 @@ public final class OfficeConsentsListSamples {
*/
public static void getAllOfficeConsents(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.officeConsents().list("myRg", "myWorkspace", Context.NONE);
+ manager.officeConsents().list("myRg", "myWorkspace", com.azure.core.util.Context.NONE);
}
}
```
@@ -4542,12 +5404,10 @@ public final class OfficeConsentsListSamples {
### Operations_List
```java
-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/2023-04-01-preview/examples/operations/ListOperations.json
*/
/**
* Sample code: Get all operations.
@@ -4555,20 +5415,60 @@ public final class OperationsListSamples {
* @param manager Entry point to SecurityInsightsManager.
*/
public static void getAllOperations(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.operations().list(Context.NONE);
+ manager.operations().list(com.azure.core.util.Context.NONE);
}
}
```
-### ProductSettings_Delete
+### ProductPackageOperation_Get
```java
-import com.azure.core.util.Context;
+/** Samples for ProductPackageOperation Get. */
+public final class ProductPackageOperationGetSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/contentPackages/GetProductPackageById.json
+ */
+ /**
+ * Sample code: Get a package.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void getAPackage(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .productPackageOperations()
+ .getWithResponse(
+ "myRg", "myWorkspace", "str.azure-sentinel-solution-str", com.azure.core.util.Context.NONE);
+ }
+}
+```
+### ProductPackages_List
+
+```java
+/** Samples for ProductPackages List. */
+public final class ProductPackagesListSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/contentPackages/GetProductPackages.json
+ */
+ /**
+ * Sample code: Get all available packages.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void getAllAvailablePackages(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager.productPackages().list("myRg", "myWorkspace", null, null, null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ProductSettings_Delete
+
+```java
/** 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/2023-04-01-preview/examples/settings/DeleteEyesOnSetting.json
*/
/**
* Sample code: Delete EyesOn settings.
@@ -4577,7 +5477,7 @@ public final class ProductSettingsDeleteSamples {
*/
public static void deleteEyesOnSettings(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.productSettings().deleteWithResponse("myRg", "myWorkspace", "EyesOn", Context.NONE);
+ manager.productSettings().deleteWithResponse("myRg", "myWorkspace", "EyesOn", com.azure.core.util.Context.NONE);
}
}
```
@@ -4585,12 +5485,10 @@ public final class ProductSettingsDeleteSamples {
### ProductSettings_Get
```java
-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/2023-04-01-preview/examples/settings/GetEyesOnSetting.json
*/
/**
* Sample code: Get EyesOn settings.
@@ -4598,7 +5496,7 @@ public final class ProductSettingsGetSamples {
* @param manager Entry point to SecurityInsightsManager.
*/
public static void getEyesOnSettings(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.productSettings().getWithResponse("myRg", "myWorkspace", "EyesOn", Context.NONE);
+ manager.productSettings().getWithResponse("myRg", "myWorkspace", "EyesOn", com.azure.core.util.Context.NONE);
}
}
```
@@ -4606,12 +5504,10 @@ public final class ProductSettingsGetSamples {
### ProductSettings_List
```java
-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/2023-04-01-preview/examples/settings/GetAllSettings.json
*/
/**
* Sample code: Get all settings.
@@ -4619,7 +5515,7 @@ public final class ProductSettingsListSamples {
* @param manager Entry point to SecurityInsightsManager.
*/
public static void getAllSettings(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.productSettings().listWithResponse("myRg", "myWorkspace", Context.NONE);
+ manager.productSettings().listWithResponse("myRg", "myWorkspace", com.azure.core.util.Context.NONE);
}
}
```
@@ -4627,13 +5523,12 @@ public final class ProductSettingsListSamples {
### ProductSettings_Update
```java
-import com.azure.core.util.Context;
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/2023-04-01-preview/examples/settings/UpdateEyesOnSetting.json
*/
/**
* Sample code: Update EyesOn settings.
@@ -4649,7 +5544,51 @@ public final class ProductSettingsUpdateSamples {
"myWorkspace",
"EyesOn",
new EyesOn().withEtag("\"0300bf09-0000-0000-0000-5c37296e0000\""),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ProductTemplateOperation_Get
+
+```java
+/** Samples for ProductTemplateOperation Get. */
+public final class ProductTemplateOperationGetSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/contentTemplates/GetProductTemplateById.json
+ */
+ /**
+ * Sample code: Get a template.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void getATemplate(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .productTemplateOperations()
+ .getWithResponse(
+ "myRg", "myWorkspace", "8365ebfe-a381-45b7-ad08-7d818070e11f", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ProductTemplates_List
+
+```java
+/** Samples for ProductTemplates List. */
+public final class ProductTemplatesListSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/contentTemplates/GetProductTemplates.json
+ */
+ /**
+ * Sample code: Get all installed templates.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void getAllInstalledTemplates(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .productTemplates()
+ .list("myRg", "myWorkspace", null, null, null, null, com.azure.core.util.Context.NONE);
}
}
```
@@ -4658,7 +5597,6 @@ public final class ProductSettingsUpdateSamples {
```java
import com.azure.core.management.serializer.SerializerFactory;
-import com.azure.core.util.Context;
import com.azure.core.util.serializer.SerializerEncoding;
import com.azure.resourcemanager.securityinsights.models.AnomalySecurityMLAnalyticsSettings;
import com.azure.resourcemanager.securityinsights.models.AttackTactic;
@@ -4672,7 +5610,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/2023-04-01-preview/examples/securityMLAnalyticsSettings/CreateAnomalySecurityMLAnalyticsSetting.json
*/
/**
* Sample code: Creates or updates a Anomaly Security ML Analytics Settings.
@@ -4726,7 +5664,7 @@ public final class SecurityMLAnalyticsSettingsCreateOrUpdateSamples {
.withIsDefaultSettings(true)
.withAnomalySettingsVersion(0)
.withSettingsDefinitionId(UUID.fromString("f209187f-1d17-4431-94af-c141bf5f23db")),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -4734,12 +5672,10 @@ public final class SecurityMLAnalyticsSettingsCreateOrUpdateSamples {
### SecurityMLAnalyticsSettings_Delete
```java
-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/2023-04-01-preview/examples/securityMLAnalyticsSettings/DeleteSecurityMLAnalyticsSetting.json
*/
/**
* Sample code: Delete a Security ML Analytics Settings.
@@ -4750,7 +5686,8 @@ public final class SecurityMLAnalyticsSettingsDeleteSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.securityMLAnalyticsSettings()
- .deleteWithResponse("myRg", "myWorkspace", "f209187f-1d17-4431-94af-c141bf5f23db", Context.NONE);
+ .deleteWithResponse(
+ "myRg", "myWorkspace", "f209187f-1d17-4431-94af-c141bf5f23db", com.azure.core.util.Context.NONE);
}
}
```
@@ -4758,12 +5695,10 @@ public final class SecurityMLAnalyticsSettingsDeleteSamples {
### SecurityMLAnalyticsSettings_Get
```java
-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/2023-04-01-preview/examples/securityMLAnalyticsSettings/GetAnomalySecurityMLAnalyticsSetting.json
*/
/**
* Sample code: Get a Anomaly Security ML Analytics Settings.
@@ -4774,7 +5709,7 @@ public final class SecurityMLAnalyticsSettingsGetSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.securityMLAnalyticsSettings()
- .getWithResponse("myRg", "myWorkspace", "myFirstAnomalySettings", Context.NONE);
+ .getWithResponse("myRg", "myWorkspace", "myFirstAnomalySettings", com.azure.core.util.Context.NONE);
}
}
```
@@ -4782,12 +5717,10 @@ public final class SecurityMLAnalyticsSettingsGetSamples {
### SecurityMLAnalyticsSettings_List
```java
-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/2023-04-01-preview/examples/securityMLAnalyticsSettings/GetAllSecurityMLAnalyticsSettings.json
*/
/**
* Sample code: Get all Security ML Analytics Settings.
@@ -4796,7 +5729,7 @@ public final class SecurityMLAnalyticsSettingsListSamples {
*/
public static void getAllSecurityMLAnalyticsSettings(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.securityMLAnalyticsSettings().list("myRg", "myWorkspace", Context.NONE);
+ manager.securityMLAnalyticsSettings().list("myRg", "myWorkspace", com.azure.core.util.Context.NONE);
}
}
```
@@ -4807,7 +5740,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/2023-04-01-preview/examples/onboardingStates/CreateSentinelOnboardingState.json
*/
/**
* Sample code: Create Sentinel onboarding state.
@@ -4829,12 +5762,10 @@ public final class SentinelOnboardingStatesCreateSamples {
### SentinelOnboardingStates_Delete
```java
-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/2023-04-01-preview/examples/onboardingStates/DeleteSentinelOnboardingState.json
*/
/**
* Sample code: Delete Sentinel onboarding state.
@@ -4843,7 +5774,9 @@ public final class SentinelOnboardingStatesDeleteSamples {
*/
public static void deleteSentinelOnboardingState(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.sentinelOnboardingStates().deleteWithResponse("myRg", "myWorkspace", "default", Context.NONE);
+ manager
+ .sentinelOnboardingStates()
+ .deleteWithResponse("myRg", "myWorkspace", "default", com.azure.core.util.Context.NONE);
}
}
```
@@ -4851,12 +5784,10 @@ public final class SentinelOnboardingStatesDeleteSamples {
### SentinelOnboardingStates_Get
```java
-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/2023-04-01-preview/examples/onboardingStates/GetSentinelOnboardingState.json
*/
/**
* Sample code: Get Sentinel onboarding state.
@@ -4865,7 +5796,9 @@ public final class SentinelOnboardingStatesGetSamples {
*/
public static void getSentinelOnboardingState(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.sentinelOnboardingStates().getWithResponse("myRg", "myWorkspace", "default", Context.NONE);
+ manager
+ .sentinelOnboardingStates()
+ .getWithResponse("myRg", "myWorkspace", "default", com.azure.core.util.Context.NONE);
}
}
```
@@ -4873,12 +5806,10 @@ public final class SentinelOnboardingStatesGetSamples {
### SentinelOnboardingStates_List
```java
-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/2023-04-01-preview/examples/onboardingStates/GetAllSentinelOnboardingStates.json
*/
/**
* Sample code: Get all Sentinel onboarding states.
@@ -4887,7 +5818,7 @@ public final class SentinelOnboardingStatesListSamples {
*/
public static void getAllSentinelOnboardingStates(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.sentinelOnboardingStates().listWithResponse("myRg", "myWorkspace", Context.NONE);
+ manager.sentinelOnboardingStates().listWithResponse("myRg", "myWorkspace", com.azure.core.util.Context.NONE);
}
}
```
@@ -4895,13 +5826,12 @@ public final class SentinelOnboardingStatesListSamples {
### SourceControl_ListRepositories
```java
-import com.azure.core.util.Context;
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/2023-04-01-preview/examples/repositories/GetRepositories.json
*/
/**
* Sample code: Get repository list.
@@ -4909,7 +5839,9 @@ public final class SourceControlListRepositoriesSamples {
* @param manager Entry point to SecurityInsightsManager.
*/
public static void getRepositoryList(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.sourceControls().listRepositories("myRg", "myWorkspace", RepoType.GITHUB, Context.NONE);
+ manager
+ .sourceControls()
+ .listRepositories("myRg", "myWorkspace", RepoType.GITHUB, com.azure.core.util.Context.NONE);
}
}
```
@@ -4926,7 +5858,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/2023-04-01-preview/examples/sourcecontrols/CreateSourceControl.json
*/
/**
* Sample code: Creates a source control.
@@ -4966,12 +5898,10 @@ public final class SourceControlsOperationCreateSamples {
### SourceControlsOperation_Delete
```java
-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/2023-04-01-preview/examples/sourcecontrols/DeleteSourceControl.json
*/
/**
* Sample code: Delete a source control.
@@ -4982,7 +5912,8 @@ public final class SourceControlsOperationDeleteSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.sourceControlsOperations()
- .deleteWithResponse("myRg", "myWorkspace", "789e0c1f-4a3d-43ad-809c-e713b677b04a", Context.NONE);
+ .deleteWithResponse(
+ "myRg", "myWorkspace", "789e0c1f-4a3d-43ad-809c-e713b677b04a", com.azure.core.util.Context.NONE);
}
}
```
@@ -4990,12 +5921,10 @@ public final class SourceControlsOperationDeleteSamples {
### SourceControlsOperation_Get
```java
-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/2023-04-01-preview/examples/sourcecontrols/GetSourceControlById.json
*/
/**
* Sample code: Get a source control.
@@ -5005,7 +5934,8 @@ public final class SourceControlsOperationGetSamples {
public static void getASourceControl(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.sourceControlsOperations()
- .getWithResponse("myRg", "myWorkspace", "789e0c1f-4a3d-43ad-809c-e713b677b04a", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "789e0c1f-4a3d-43ad-809c-e713b677b04a", com.azure.core.util.Context.NONE);
}
}
```
@@ -5013,12 +5943,10 @@ public final class SourceControlsOperationGetSamples {
### SourceControlsOperation_List
```java
-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/2023-04-01-preview/examples/sourcecontrols/GetSourceControls.json
*/
/**
* Sample code: Get all source controls.
@@ -5027,7 +5955,7 @@ public final class SourceControlsOperationListSamples {
*/
public static void getAllSourceControls(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.sourceControlsOperations().list("myRg", "myWorkspace", Context.NONE);
+ manager.sourceControlsOperations().list("myRg", "myWorkspace", com.azure.core.util.Context.NONE);
}
}
```
@@ -5035,14 +5963,13 @@ public final class SourceControlsOperationListSamples {
### ThreatIntelligenceIndicator_AppendTags
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceAppendTags;
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/2023-04-01-preview/examples/threatintelligence/AppendTagsThreatIntelligence.json
*/
/**
* Sample code: Append tags to a threat intelligence indicator.
@@ -5058,7 +5985,7 @@ public final class ThreatIntelligenceIndicatorAppendTagsSamples {
"myWorkspace",
"d9cd6f0b-96b9-3984-17cd-a779d1e15a93",
new ThreatIntelligenceAppendTags().withThreatIntelligenceTags(Arrays.asList("tag1", "tag2")),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -5066,14 +5993,13 @@ public final class ThreatIntelligenceIndicatorAppendTagsSamples {
### ThreatIntelligenceIndicator_Create
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceIndicatorModel;
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/2023-04-01-preview/examples/threatintelligence/UpdateThreatIntelligence.json
*/
/**
* Sample code: Update a threat Intelligence indicator.
@@ -5106,7 +6032,7 @@ public final class ThreatIntelligenceIndicatorCreateSamples {
.withValidFrom("2020-04-15T17:44:00.114052Z")
.withValidUntil("")
.withModified(""),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -5114,14 +6040,13 @@ public final class ThreatIntelligenceIndicatorCreateSamples {
### ThreatIntelligenceIndicator_CreateIndicator
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceIndicatorModel;
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/2023-04-01-preview/examples/threatintelligence/CreateThreatIntelligence.json
*/
/**
* Sample code: Create a new Threat Intelligence.
@@ -5153,7 +6078,7 @@ public final class ThreatIntelligenceIndicatorCreateIndicatorSamples {
.withValidFrom("2021-09-15T17:44:00.114052Z")
.withValidUntil("")
.withModified(""),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -5161,12 +6086,10 @@ public final class ThreatIntelligenceIndicatorCreateIndicatorSamples {
### ThreatIntelligenceIndicator_Delete
```java
-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/2023-04-01-preview/examples/threatintelligence/DeleteThreatIntelligence.json
*/
/**
* Sample code: Delete a threat intelligence indicator.
@@ -5177,7 +6100,8 @@ public final class ThreatIntelligenceIndicatorDeleteSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.threatIntelligenceIndicators()
- .deleteWithResponse("myRg", "myWorkspace", "d9cd6f0b-96b9-3984-17cd-a779d1e15a93", Context.NONE);
+ .deleteWithResponse(
+ "myRg", "myWorkspace", "d9cd6f0b-96b9-3984-17cd-a779d1e15a93", com.azure.core.util.Context.NONE);
}
}
```
@@ -5185,12 +6109,10 @@ public final class ThreatIntelligenceIndicatorDeleteSamples {
### ThreatIntelligenceIndicator_Get
```java
-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/2023-04-01-preview/examples/threatintelligence/GetThreatIntelligenceById.json
*/
/**
* Sample code: View a threat intelligence indicator by name.
@@ -5201,7 +6123,8 @@ public final class ThreatIntelligenceIndicatorGetSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.threatIntelligenceIndicators()
- .getWithResponse("myRg", "myWorkspace", "e16ef847-962e-d7b6-9c8b-a33e4bd30e47", Context.NONE);
+ .getWithResponse(
+ "myRg", "myWorkspace", "e16ef847-962e-d7b6-9c8b-a33e4bd30e47", com.azure.core.util.Context.NONE);
}
}
```
@@ -5209,7 +6132,6 @@ public final class ThreatIntelligenceIndicatorGetSamples {
### ThreatIntelligenceIndicator_QueryIndicators
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceFilteringCriteria;
import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceSortingCriteria;
import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceSortingCriteriaEnum;
@@ -5218,7 +6140,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/2023-04-01-preview/examples/threatintelligence/QueryThreatIntelligence.json
*/
/**
* Sample code: Query threat intelligence indicators as per filtering criteria.
@@ -5242,10 +6164,10 @@ public final class ThreatIntelligenceIndicatorQueryIndicatorsSamples {
Arrays
.asList(
new ThreatIntelligenceSortingCriteria()
- .withItemKey("lastUpdatedTimeUtc")
+ .withItemKey("fakeTokenPlaceholder")
.withSortOrder(ThreatIntelligenceSortingCriteriaEnum.DESCENDING)))
.withSources(Arrays.asList("Azure Sentinel")),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -5253,14 +6175,13 @@ public final class ThreatIntelligenceIndicatorQueryIndicatorsSamples {
### ThreatIntelligenceIndicator_ReplaceTags
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceIndicatorModel;
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/2023-04-01-preview/examples/threatintelligence/ReplaceTagsThreatIntelligence.json
*/
/**
* Sample code: Replace tags to a Threat Intelligence.
@@ -5278,7 +6199,7 @@ public final class ThreatIntelligenceIndicatorReplaceTagsSamples {
new ThreatIntelligenceIndicatorModel()
.withEtag("\"0000262c-0000-0800-0000-5e9767060000\"")
.withThreatIntelligenceTags(Arrays.asList("patching tags")),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -5286,12 +6207,10 @@ public final class ThreatIntelligenceIndicatorReplaceTagsSamples {
### ThreatIntelligenceIndicatorMetrics_List
```java
-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/2023-04-01-preview/examples/threatintelligence/CollectThreatIntelligenceMetrics.json
*/
/**
* Sample code: Get threat intelligence indicators metrics.
@@ -5300,7 +6219,9 @@ public final class ThreatIntelligenceIndicatorMetricsListSamples {
*/
public static void getThreatIntelligenceIndicatorsMetrics(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.threatIntelligenceIndicatorMetrics().listWithResponse("myRg", "myWorkspace", Context.NONE);
+ manager
+ .threatIntelligenceIndicatorMetrics()
+ .listWithResponse("myRg", "myWorkspace", com.azure.core.util.Context.NONE);
}
}
```
@@ -5308,12 +6229,10 @@ public final class ThreatIntelligenceIndicatorMetricsListSamples {
### ThreatIntelligenceIndicatorsOperation_List
```java
-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/2023-04-01-preview/examples/threatintelligence/GetThreatIntelligence.json
*/
/**
* Sample code: Get all threat intelligence indicators.
@@ -5324,7 +6243,62 @@ public final class ThreatIntelligenceIndicatorsOperationListSamples {
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
manager
.threatIntelligenceIndicatorsOperations()
- .list("myRg", "myWorkspace", null, null, null, null, Context.NONE);
+ .list("myRg", "myWorkspace", null, null, null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### TriggeredAnalyticsRuleRunOperation_Get
+
+```java
+/** Samples for TriggeredAnalyticsRuleRunOperation Get. */
+public final class TriggeredAnalyticsRuleRunOperationGetSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/triggeredAnalyticsRuleRuns/triggeredAnalyticsRuleRun_Get.json
+ */
+ /**
+ * Sample code: triggeredAnalyticsRuleRun_Get.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void triggeredAnalyticsRuleRunGet(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .triggeredAnalyticsRuleRunOperations()
+ .getWithResponse(
+ "myRg", "myWorkspace", "65360bb0-8986-4ade-a89d-af3cf44d28aa", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Update_Recommendation
+
+```java
+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/2023-04-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)),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -5338,7 +6312,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/2023-04-01-preview/examples/watchlists/CreateWatchlistItem.json
*/
/**
* Sample code: Creates or updates a watchlist item.
@@ -5385,12 +6359,10 @@ public final class WatchlistItemsCreateOrUpdateSamples {
### WatchlistItems_Delete
```java
-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/2023-04-01-preview/examples/watchlists/DeleteWatchlistItem.json
*/
/**
* Sample code: Delete a watchlist Item.
@@ -5402,7 +6374,11 @@ public final class WatchlistItemsDeleteSamples {
manager
.watchlistItems()
.deleteWithResponse(
- "myRg", "myWorkspace", "highValueAsset", "4008512e-1d30-48b2-9ee2-d3612ed9d3ea", Context.NONE);
+ "myRg",
+ "myWorkspace",
+ "highValueAsset",
+ "4008512e-1d30-48b2-9ee2-d3612ed9d3ea",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -5410,12 +6386,10 @@ public final class WatchlistItemsDeleteSamples {
### WatchlistItems_Get
```java
-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/2023-04-01-preview/examples/watchlists/GetWatchlistItemById.json
*/
/**
* Sample code: Get a watchlist item.
@@ -5426,7 +6400,11 @@ public final class WatchlistItemsGetSamples {
manager
.watchlistItems()
.getWithResponse(
- "myRg", "myWorkspace", "highValueAsset", "3f8901fe-63d9-4875-9ad5-9fb3b8105797", Context.NONE);
+ "myRg",
+ "myWorkspace",
+ "highValueAsset",
+ "3f8901fe-63d9-4875-9ad5-9fb3b8105797",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -5434,12 +6412,10 @@ public final class WatchlistItemsGetSamples {
### WatchlistItems_List
```java
-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/2023-04-01-preview/examples/watchlists/GetWatchlistItems.json
*/
/**
* Sample code: Get all watchlist Items.
@@ -5448,7 +6424,7 @@ public final class WatchlistItemsListSamples {
*/
public static void getAllWatchlistItems(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.watchlistItems().list("myRg", "myWorkspace", "highValueAsset", null, Context.NONE);
+ manager.watchlistItems().list("myRg", "myWorkspace", "highValueAsset", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -5461,7 +6437,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/2023-04-01-preview/examples/watchlists/CreateWatchlistAndWatchlistItems.json
*/
/**
* Sample code: Creates or updates a watchlist and bulk creates watchlist items.
@@ -5488,7 +6464,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/2023-04-01-preview/examples/watchlists/CreateWatchlist.json
*/
/**
* Sample code: Creates or updates a watchlist.
@@ -5516,12 +6492,10 @@ public final class WatchlistsCreateOrUpdateSamples {
### Watchlists_Delete
```java
-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/2023-04-01-preview/examples/watchlists/DeleteWatchlist.json
*/
/**
* Sample code: Delete a watchlist.
@@ -5529,7 +6503,9 @@ public final class WatchlistsDeleteSamples {
* @param manager Entry point to SecurityInsightsManager.
*/
public static void deleteAWatchlist(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.watchlists().deleteWithResponse("myRg", "myWorkspace", "highValueAsset", Context.NONE);
+ manager
+ .watchlists()
+ .deleteWithResponse("myRg", "myWorkspace", "highValueAsset", com.azure.core.util.Context.NONE);
}
}
```
@@ -5537,12 +6513,10 @@ public final class WatchlistsDeleteSamples {
### Watchlists_Get
```java
-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/2023-04-01-preview/examples/watchlists/GetWatchlistByAlias.json
*/
/**
* Sample code: Get a watchlist.
@@ -5550,7 +6524,7 @@ public final class WatchlistsGetSamples {
* @param manager Entry point to SecurityInsightsManager.
*/
public static void getAWatchlist(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.watchlists().getWithResponse("myRg", "myWorkspace", "highValueAsset", Context.NONE);
+ manager.watchlists().getWithResponse("myRg", "myWorkspace", "highValueAsset", com.azure.core.util.Context.NONE);
}
}
```
@@ -5558,12 +6532,10 @@ public final class WatchlistsGetSamples {
### Watchlists_List
```java
-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/2023-04-01-preview/examples/watchlists/GetWatchlists.json
*/
/**
* Sample code: Get all watchlists.
@@ -5571,7 +6543,195 @@ public final class WatchlistsListSamples {
* @param manager Entry point to SecurityInsightsManager.
*/
public static void getAllWatchlists(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.watchlists().list("myRg", "myWorkspace", null, Context.NONE);
+ manager.watchlists().list("myRg", "myWorkspace", null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkspaceManagerConfigurations_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.securityinsights.models.Mode;
+
+/** Samples for WorkspaceManagerConfigurations CreateOrUpdate. */
+public final class WorkspaceManagerConfigurationsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/workspaceManagerConfigurations/CreateOrUpdateWorkspaceManagerConfiguration.json
+ */
+ /**
+ * Sample code: Create or Update a workspace manager Configuration.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void createOrUpdateAWorkspaceManagerConfiguration(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .workspaceManagerConfigurations()
+ .define("default")
+ .withExistingWorkspace("myRg", "myWorkspace")
+ .withMode(Mode.ENABLED)
+ .create();
+ }
+}
+```
+
+### WorkspaceManagerConfigurations_Delete
+
+```java
+/** Samples for WorkspaceManagerConfigurations Delete. */
+public final class WorkspaceManagerConfigurationsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/workspaceManagerConfigurations/DeleteWorkspaceManagerConfiguration.json
+ */
+ /**
+ * Sample code: Delete a workspace manager configuration.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void deleteAWorkspaceManagerConfiguration(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .workspaceManagerConfigurations()
+ .deleteWithResponse("myRg", "myWorkspace", "default", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkspaceManagerConfigurations_Get
+
+```java
+/** Samples for WorkspaceManagerConfigurations Get. */
+public final class WorkspaceManagerConfigurationsGetSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/workspaceManagerConfigurations/GetWorkspaceManagerConfiguration.json
+ */
+ /**
+ * Sample code: Get a workspace manager configuration.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void getAWorkspaceManagerConfiguration(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .workspaceManagerConfigurations()
+ .getWithResponse("myRg", "myWorkspace", "default", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkspaceManagerConfigurations_List
+
+```java
+/** Samples for WorkspaceManagerConfigurations List. */
+public final class WorkspaceManagerConfigurationsListSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/workspaceManagerConfigurations/GetAllWorkspaceManagerConfigurations.json
+ */
+ /**
+ * Sample code: Get all workspace manager configurations for a Sentinel workspace.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void getAllWorkspaceManagerConfigurationsForASentinelWorkspace(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .workspaceManagerConfigurations()
+ .list("myRg", "myWorkspace", null, null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkspaceManagerMembers_CreateOrUpdate
+
+```java
+/** Samples for WorkspaceManagerMembers CreateOrUpdate. */
+public final class WorkspaceManagerMembersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/workspaceManagerMembers/CreateOrUpdateWorkspaceManagerMember.json
+ */
+ /**
+ * Sample code: Create or Update a workspace manager member.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void createOrUpdateAWorkspaceManagerMember(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .workspaceManagerMembers()
+ .define("afbd324f-6c48-459c-8710-8d1e1cd03812")
+ .withExistingWorkspace("myRg", "myWorkspace")
+ .withTargetWorkspaceId(
+ "/subscriptions/7aef9d48-814f-45ad-b644-b0343316e174/resourceGroups/otherRg/providers/Microsoft.OperationalInsights/workspaces/Example_Workspace")
+ .withTargetWorkspaceTenantId("f676d436-8d16-42db-81b7-ab578e110ccd")
+ .create();
+ }
+}
+```
+
+### WorkspaceManagerMembers_Delete
+
+```java
+/** Samples for WorkspaceManagerMembers Delete. */
+public final class WorkspaceManagerMembersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/workspaceManagerMembers/DeleteWorkspaceManagerMember.json
+ */
+ /**
+ * Sample code: Delete a workspace manager member.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void deleteAWorkspaceManagerMember(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .workspaceManagerMembers()
+ .deleteWithResponse(
+ "myRg", "myWorkspace", "afbd324f-6c48-459c-8710-8d1e1cd03812", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkspaceManagerMembers_Get
+
+```java
+/** Samples for WorkspaceManagerMembers Get. */
+public final class WorkspaceManagerMembersGetSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/workspaceManagerMembers/GetWorkspaceManagerMember.json
+ */
+ /**
+ * Sample code: Get a workspace manager member.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void getAWorkspaceManagerMember(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .workspaceManagerMembers()
+ .getWithResponse(
+ "myRg", "myWorkspace", "afbd324f-6c48-459c-8710-8d1e1cd03812", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### WorkspaceManagerMembers_List
+
+```java
+/** Samples for WorkspaceManagerMembers List. */
+public final class WorkspaceManagerMembersListSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2023-04-01-preview/examples/workspaceManagerMembers/GetAllWorkspaceManagerMembers.json
+ */
+ /**
+ * Sample code: Get all workspace manager members.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void getAllWorkspaceManagerMembers(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .workspaceManagerMembers()
+ .list("myRg", "myWorkspace", null, null, null, com.azure.core.util.Context.NONE);
}
}
```
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/pom.xml b/sdk/securityinsights/azure-resourcemanager-securityinsights/pom.xml
index 2626b0f74cc40..0fa63c41fb6dd 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/pom.xml
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/pom.xml
@@ -1,3 +1,8 @@
+
4.0.0
@@ -13,7 +18,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-2023-04.
https://github.com/Azure/azure-sdk-for-java
@@ -38,7 +43,8 @@
UTF-8
- true
+ 0
+ 0
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 6868ca4ea727a..dd1730bc5b3db 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
@@ -25,12 +25,17 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.securityinsights.fluent.SecurityInsights;
import com.azure.resourcemanager.securityinsights.implementation.ActionsImpl;
+import com.azure.resourcemanager.securityinsights.implementation.AlertRuleOperationsImpl;
import com.azure.resourcemanager.securityinsights.implementation.AlertRuleTemplatesImpl;
import com.azure.resourcemanager.securityinsights.implementation.AlertRulesImpl;
import com.azure.resourcemanager.securityinsights.implementation.AutomationRulesImpl;
import com.azure.resourcemanager.securityinsights.implementation.BookmarkOperationsImpl;
import com.azure.resourcemanager.securityinsights.implementation.BookmarkRelationsImpl;
import com.azure.resourcemanager.securityinsights.implementation.BookmarksImpl;
+import com.azure.resourcemanager.securityinsights.implementation.ContentPackageOperationsImpl;
+import com.azure.resourcemanager.securityinsights.implementation.ContentPackagesImpl;
+import com.azure.resourcemanager.securityinsights.implementation.ContentTemplateOperationsImpl;
+import com.azure.resourcemanager.securityinsights.implementation.ContentTemplatesImpl;
import com.azure.resourcemanager.securityinsights.implementation.DataConnectorsCheckRequirementsOperationsImpl;
import com.azure.resourcemanager.securityinsights.implementation.DataConnectorsImpl;
import com.azure.resourcemanager.securityinsights.implementation.DomainWhoisImpl;
@@ -41,14 +46,22 @@
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.GetTriggeredAnalyticsRuleRunsImpl;
+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.IncidentTasksImpl;
import com.azure.resourcemanager.securityinsights.implementation.IncidentsImpl;
import com.azure.resourcemanager.securityinsights.implementation.IpGeodatasImpl;
import com.azure.resourcemanager.securityinsights.implementation.MetadatasImpl;
import com.azure.resourcemanager.securityinsights.implementation.OfficeConsentsImpl;
import com.azure.resourcemanager.securityinsights.implementation.OperationsImpl;
+import com.azure.resourcemanager.securityinsights.implementation.ProductPackageOperationsImpl;
+import com.azure.resourcemanager.securityinsights.implementation.ProductPackagesImpl;
import com.azure.resourcemanager.securityinsights.implementation.ProductSettingsImpl;
+import com.azure.resourcemanager.securityinsights.implementation.ProductTemplateOperationsImpl;
+import com.azure.resourcemanager.securityinsights.implementation.ProductTemplatesImpl;
import com.azure.resourcemanager.securityinsights.implementation.SecurityInsightsBuilder;
import com.azure.resourcemanager.securityinsights.implementation.SecurityMLAnalyticsSettingsImpl;
import com.azure.resourcemanager.securityinsights.implementation.SentinelOnboardingStatesImpl;
@@ -57,15 +70,24 @@
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.TriggeredAnalyticsRuleRunOperationsImpl;
+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.implementation.WorkspaceManagerConfigurationsImpl;
+import com.azure.resourcemanager.securityinsights.implementation.WorkspaceManagerMembersImpl;
import com.azure.resourcemanager.securityinsights.models.Actions;
+import com.azure.resourcemanager.securityinsights.models.AlertRuleOperations;
import com.azure.resourcemanager.securityinsights.models.AlertRuleTemplates;
import com.azure.resourcemanager.securityinsights.models.AlertRules;
import com.azure.resourcemanager.securityinsights.models.AutomationRules;
import com.azure.resourcemanager.securityinsights.models.BookmarkOperations;
import com.azure.resourcemanager.securityinsights.models.BookmarkRelations;
import com.azure.resourcemanager.securityinsights.models.Bookmarks;
+import com.azure.resourcemanager.securityinsights.models.ContentPackageOperations;
+import com.azure.resourcemanager.securityinsights.models.ContentPackages;
+import com.azure.resourcemanager.securityinsights.models.ContentTemplateOperations;
+import com.azure.resourcemanager.securityinsights.models.ContentTemplates;
import com.azure.resourcemanager.securityinsights.models.DataConnectors;
import com.azure.resourcemanager.securityinsights.models.DataConnectorsCheckRequirementsOperations;
import com.azure.resourcemanager.securityinsights.models.DomainWhois;
@@ -76,14 +98,22 @@
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.GetTriggeredAnalyticsRuleRuns;
+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.IncidentTasks;
import com.azure.resourcemanager.securityinsights.models.Incidents;
import com.azure.resourcemanager.securityinsights.models.IpGeodatas;
import com.azure.resourcemanager.securityinsights.models.Metadatas;
import com.azure.resourcemanager.securityinsights.models.OfficeConsents;
import com.azure.resourcemanager.securityinsights.models.Operations;
+import com.azure.resourcemanager.securityinsights.models.ProductPackageOperations;
+import com.azure.resourcemanager.securityinsights.models.ProductPackages;
import com.azure.resourcemanager.securityinsights.models.ProductSettings;
+import com.azure.resourcemanager.securityinsights.models.ProductTemplateOperations;
+import com.azure.resourcemanager.securityinsights.models.ProductTemplates;
import com.azure.resourcemanager.securityinsights.models.SecurityMLAnalyticsSettings;
import com.azure.resourcemanager.securityinsights.models.SentinelOnboardingStates;
import com.azure.resourcemanager.securityinsights.models.SourceControls;
@@ -91,8 +121,12 @@
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.TriggeredAnalyticsRuleRunOperations;
+import com.azure.resourcemanager.securityinsights.models.Updates;
import com.azure.resourcemanager.securityinsights.models.WatchlistItems;
import com.azure.resourcemanager.securityinsights.models.Watchlists;
+import com.azure.resourcemanager.securityinsights.models.WorkspaceManagerConfigurations;
+import com.azure.resourcemanager.securityinsights.models.WorkspaceManagerMembers;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
@@ -113,6 +147,8 @@ public final class SecurityInsightsManager {
private AutomationRules automationRules;
+ private Entities entities;
+
private Incidents incidents;
private Bookmarks bookmarks;
@@ -121,12 +157,26 @@ public final class SecurityInsightsManager {
private BookmarkOperations bookmarkOperations;
+ private ContentPackages contentPackages;
+
+ private ContentPackageOperations contentPackageOperations;
+
+ private ProductPackages productPackages;
+
+ private ProductPackageOperations productPackageOperations;
+
+ private ProductTemplates productTemplates;
+
+ private ProductTemplateOperations productTemplateOperations;
+
+ private ContentTemplates contentTemplates;
+
+ private ContentTemplateOperations contentTemplateOperations;
+
private IpGeodatas ipGeodatas;
private DomainWhois domainWhois;
- private Entities entities;
-
private EntitiesGetTimelines entitiesGetTimelines;
private EntitiesRelations entitiesRelations;
@@ -143,12 +193,20 @@ public final class SecurityInsightsManager {
private IncidentRelations incidentRelations;
+ private IncidentTasks incidentTasks;
+
private Metadatas metadatas;
private OfficeConsents officeConsents;
private SentinelOnboardingStates sentinelOnboardingStates;
+ private GetRecommendations getRecommendations;
+
+ private Gets gets;
+
+ private Updates updates;
+
private SecurityMLAnalyticsSettings securityMLAnalyticsSettings;
private ProductSettings productSettings;
@@ -163,10 +221,20 @@ public final class SecurityInsightsManager {
private ThreatIntelligenceIndicatorMetrics threatIntelligenceIndicatorMetrics;
+ private TriggeredAnalyticsRuleRunOperations triggeredAnalyticsRuleRunOperations;
+
+ private GetTriggeredAnalyticsRuleRuns getTriggeredAnalyticsRuleRuns;
+
+ private AlertRuleOperations alertRuleOperations;
+
private Watchlists watchlists;
private WatchlistItems watchlistItems;
+ private WorkspaceManagerConfigurations workspaceManagerConfigurations;
+
+ private WorkspaceManagerMembers workspaceManagerMembers;
+
private DataConnectors dataConnectors;
private DataConnectorsCheckRequirementsOperations dataConnectorsCheckRequirementsOperations;
@@ -338,7 +406,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(" (")
@@ -443,6 +511,18 @@ public AutomationRules automationRules() {
return automationRules;
}
+ /**
+ * Gets the resource collection API of Entities.
+ *
+ * @return Resource collection API of Entities.
+ */
+ public Entities entities() {
+ if (this.entities == null) {
+ this.entities = new EntitiesImpl(clientObject.getEntities(), this);
+ }
+ return entities;
+ }
+
/**
* Gets the resource collection API of Incidents. It manages Incident.
*
@@ -491,6 +571,106 @@ public BookmarkOperations bookmarkOperations() {
return bookmarkOperations;
}
+ /**
+ * Gets the resource collection API of ContentPackages.
+ *
+ * @return Resource collection API of ContentPackages.
+ */
+ public ContentPackages contentPackages() {
+ if (this.contentPackages == null) {
+ this.contentPackages = new ContentPackagesImpl(clientObject.getContentPackages(), this);
+ }
+ return contentPackages;
+ }
+
+ /**
+ * Gets the resource collection API of ContentPackageOperations. It manages PackageModel.
+ *
+ * @return Resource collection API of ContentPackageOperations.
+ */
+ public ContentPackageOperations contentPackageOperations() {
+ if (this.contentPackageOperations == null) {
+ this.contentPackageOperations =
+ new ContentPackageOperationsImpl(clientObject.getContentPackageOperations(), this);
+ }
+ return contentPackageOperations;
+ }
+
+ /**
+ * Gets the resource collection API of ProductPackages.
+ *
+ * @return Resource collection API of ProductPackages.
+ */
+ public ProductPackages productPackages() {
+ if (this.productPackages == null) {
+ this.productPackages = new ProductPackagesImpl(clientObject.getProductPackages(), this);
+ }
+ return productPackages;
+ }
+
+ /**
+ * Gets the resource collection API of ProductPackageOperations.
+ *
+ * @return Resource collection API of ProductPackageOperations.
+ */
+ public ProductPackageOperations productPackageOperations() {
+ if (this.productPackageOperations == null) {
+ this.productPackageOperations =
+ new ProductPackageOperationsImpl(clientObject.getProductPackageOperations(), this);
+ }
+ return productPackageOperations;
+ }
+
+ /**
+ * Gets the resource collection API of ProductTemplates.
+ *
+ * @return Resource collection API of ProductTemplates.
+ */
+ public ProductTemplates productTemplates() {
+ if (this.productTemplates == null) {
+ this.productTemplates = new ProductTemplatesImpl(clientObject.getProductTemplates(), this);
+ }
+ return productTemplates;
+ }
+
+ /**
+ * Gets the resource collection API of ProductTemplateOperations.
+ *
+ * @return Resource collection API of ProductTemplateOperations.
+ */
+ public ProductTemplateOperations productTemplateOperations() {
+ if (this.productTemplateOperations == null) {
+ this.productTemplateOperations =
+ new ProductTemplateOperationsImpl(clientObject.getProductTemplateOperations(), this);
+ }
+ return productTemplateOperations;
+ }
+
+ /**
+ * Gets the resource collection API of ContentTemplates.
+ *
+ * @return Resource collection API of ContentTemplates.
+ */
+ public ContentTemplates contentTemplates() {
+ if (this.contentTemplates == null) {
+ this.contentTemplates = new ContentTemplatesImpl(clientObject.getContentTemplates(), this);
+ }
+ return contentTemplates;
+ }
+
+ /**
+ * Gets the resource collection API of ContentTemplateOperations. It manages TemplateModelAutoGenerated.
+ *
+ * @return Resource collection API of ContentTemplateOperations.
+ */
+ public ContentTemplateOperations contentTemplateOperations() {
+ if (this.contentTemplateOperations == null) {
+ this.contentTemplateOperations =
+ new ContentTemplateOperationsImpl(clientObject.getContentTemplateOperations(), this);
+ }
+ return contentTemplateOperations;
+ }
+
/**
* Gets the resource collection API of IpGeodatas.
*
@@ -515,18 +695,6 @@ public DomainWhois domainWhois() {
return domainWhois;
}
- /**
- * Gets the resource collection API of Entities.
- *
- * @return Resource collection API of Entities.
- */
- public Entities entities() {
- if (this.entities == null) {
- this.entities = new EntitiesImpl(clientObject.getEntities(), this);
- }
- return entities;
- }
-
/**
* Gets the resource collection API of EntitiesGetTimelines.
*
@@ -623,6 +791,18 @@ public IncidentRelations incidentRelations() {
return incidentRelations;
}
+ /**
+ * Gets the resource collection API of IncidentTasks. It manages IncidentTask.
+ *
+ * @return Resource collection API of IncidentTasks.
+ */
+ public IncidentTasks incidentTasks() {
+ if (this.incidentTasks == null) {
+ this.incidentTasks = new IncidentTasksImpl(clientObject.getIncidentTasks(), this);
+ }
+ return incidentTasks;
+ }
+
/**
* Gets the resource collection API of Metadatas. It manages MetadataModel.
*
@@ -660,6 +840,42 @@ public SentinelOnboardingStates sentinelOnboardingStates() {
return sentinelOnboardingStates;
}
+ /**
+ * 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 SecurityMLAnalyticsSettings.
*
@@ -750,6 +966,45 @@ public ThreatIntelligenceIndicatorMetrics threatIntelligenceIndicatorMetrics() {
return threatIntelligenceIndicatorMetrics;
}
+ /**
+ * Gets the resource collection API of TriggeredAnalyticsRuleRunOperations.
+ *
+ * @return Resource collection API of TriggeredAnalyticsRuleRunOperations.
+ */
+ public TriggeredAnalyticsRuleRunOperations triggeredAnalyticsRuleRunOperations() {
+ if (this.triggeredAnalyticsRuleRunOperations == null) {
+ this.triggeredAnalyticsRuleRunOperations =
+ new TriggeredAnalyticsRuleRunOperationsImpl(
+ clientObject.getTriggeredAnalyticsRuleRunOperations(), this);
+ }
+ return triggeredAnalyticsRuleRunOperations;
+ }
+
+ /**
+ * Gets the resource collection API of GetTriggeredAnalyticsRuleRuns.
+ *
+ * @return Resource collection API of GetTriggeredAnalyticsRuleRuns.
+ */
+ public GetTriggeredAnalyticsRuleRuns getTriggeredAnalyticsRuleRuns() {
+ if (this.getTriggeredAnalyticsRuleRuns == null) {
+ this.getTriggeredAnalyticsRuleRuns =
+ new GetTriggeredAnalyticsRuleRunsImpl(clientObject.getGetTriggeredAnalyticsRuleRuns(), this);
+ }
+ return getTriggeredAnalyticsRuleRuns;
+ }
+
+ /**
+ * Gets the resource collection API of AlertRuleOperations.
+ *
+ * @return Resource collection API of AlertRuleOperations.
+ */
+ public AlertRuleOperations alertRuleOperations() {
+ if (this.alertRuleOperations == null) {
+ this.alertRuleOperations = new AlertRuleOperationsImpl(clientObject.getAlertRuleOperations(), this);
+ }
+ return alertRuleOperations;
+ }
+
/**
* Gets the resource collection API of Watchlists. It manages Watchlist.
*
@@ -774,6 +1029,32 @@ public WatchlistItems watchlistItems() {
return watchlistItems;
}
+ /**
+ * Gets the resource collection API of WorkspaceManagerConfigurations. It manages WorkspaceManagerConfiguration.
+ *
+ * @return Resource collection API of WorkspaceManagerConfigurations.
+ */
+ public WorkspaceManagerConfigurations workspaceManagerConfigurations() {
+ if (this.workspaceManagerConfigurations == null) {
+ this.workspaceManagerConfigurations =
+ new WorkspaceManagerConfigurationsImpl(clientObject.getWorkspaceManagerConfigurations(), this);
+ }
+ return workspaceManagerConfigurations;
+ }
+
+ /**
+ * Gets the resource collection API of WorkspaceManagerMembers. It manages WorkspaceManagerMember.
+ *
+ * @return Resource collection API of WorkspaceManagerMembers.
+ */
+ public WorkspaceManagerMembers workspaceManagerMembers() {
+ if (this.workspaceManagerMembers == null) {
+ this.workspaceManagerMembers =
+ new WorkspaceManagerMembersImpl(clientObject.getWorkspaceManagerMembers(), this);
+ }
+ return workspaceManagerMembers;
+ }
+
/**
* Gets the resource collection API of DataConnectors.
*
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 1679ca2138ad0..18cfd50a24315 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/AlertRuleOperationsClient.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/AlertRuleOperationsClient.java
new file mode 100644
index 0000000000000..7cd2bdbeb6c94
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/AlertRuleOperationsClient.java
@@ -0,0 +1,93 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.securityinsights.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.securityinsights.models.AnalyticsRuleRunTrigger;
+
+/** An instance of this class provides access to all the operations defined in AlertRuleOperationsClient. */
+public interface AlertRuleOperationsClient {
+ /**
+ * triggers analytics rule run.
+ *
+ * @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 analyticsRuleRunTriggerParameter The Analytics Rule Run Trigger parameter.
+ * @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 SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginTriggerRuleRun(
+ String resourceGroupName,
+ String workspaceName,
+ String ruleId,
+ AnalyticsRuleRunTrigger analyticsRuleRunTriggerParameter);
+
+ /**
+ * triggers analytics rule run.
+ *
+ * @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 analyticsRuleRunTriggerParameter The Analytics Rule Run Trigger parameter.
+ * @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 SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginTriggerRuleRun(
+ String resourceGroupName,
+ String workspaceName,
+ String ruleId,
+ AnalyticsRuleRunTrigger analyticsRuleRunTriggerParameter,
+ Context context);
+
+ /**
+ * triggers analytics rule run.
+ *
+ * @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 analyticsRuleRunTriggerParameter The Analytics Rule Run Trigger parameter.
+ * @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 triggerRuleRun(
+ String resourceGroupName,
+ String workspaceName,
+ String ruleId,
+ AnalyticsRuleRunTrigger analyticsRuleRunTriggerParameter);
+
+ /**
+ * triggers analytics rule run.
+ *
+ * @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 analyticsRuleRunTriggerParameter The Analytics Rule Run Trigger parameter.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void triggerRuleRun(
+ String resourceGroupName,
+ String workspaceName,
+ String ruleId,
+ AnalyticsRuleRunTrigger analyticsRuleRunTriggerParameter,
+ Context context);
+}
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 c568ee0f23feb..1747732b0446d 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 d40ca296e5fc6..c77a3e9fa2fa2 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 8bdfc546a32d2..1e448c15a2037 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