scopes = new ArrayList<>();
private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
private Duration defaultPollInterval;
private Configurable() {
@@ -268,6 +292,19 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
return this;
}
+ /**
+ * Sets the retry options for the HTTP pipeline retry policy.
+ *
+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * @param retryOptions the retry options for the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
/**
* Sets the default poll interval, used when service does not provide "Retry-After" header.
*
@@ -301,7 +338,7 @@ public SecurityInsightsManager authenticate(TokenCredential credential, AzurePro
.append("-")
.append("com.azure.resourcemanager.securityinsights")
.append("/")
- .append("1.0.0-beta.2");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -319,10 +356,15 @@ public SecurityInsightsManager authenticate(TokenCredential credential, AzurePro
scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
}
if (retryPolicy == null) {
- retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
}
List policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new AddHeadersFromContextPolicy());
policies.add(new RequestIdPolicy());
policies
.addAll(
@@ -481,6 +523,14 @@ public EntityQueryTemplates entityQueryTemplates() {
return entityQueryTemplates;
}
+ /** @return Resource collection API of FileImports. */
+ public FileImports fileImports() {
+ if (this.fileImports == null) {
+ this.fileImports = new FileImportsImpl(clientObject.getFileImports(), this);
+ }
+ return fileImports;
+ }
+
/** @return Resource collection API of IncidentComments. */
public IncidentComments incidentComments() {
if (this.incidentComments == null) {
@@ -522,6 +572,15 @@ public SentinelOnboardingStates sentinelOnboardingStates() {
return sentinelOnboardingStates;
}
+ /** @return Resource collection API of SecurityMLAnalyticsSettings. */
+ public SecurityMLAnalyticsSettings securityMLAnalyticsSettings() {
+ if (this.securityMLAnalyticsSettings == null) {
+ this.securityMLAnalyticsSettings =
+ new SecurityMLAnalyticsSettingsImpl(clientObject.getSecurityMLAnalyticsSettings(), this);
+ }
+ return securityMLAnalyticsSettings;
+ }
+
/** @return Resource collection API of ProductSettings. */
public ProductSettings productSettings() {
if (this.productSettings == null) {
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/EntityQueryTemplatesClient.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/EntityQueryTemplatesClient.java
index 4055a8c63c4b6..25e68f00b5f17 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/EntityQueryTemplatesClient.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/EntityQueryTemplatesClient.java
@@ -10,7 +10,7 @@
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.securityinsights.fluent.models.EntityQueryTemplateInner;
-import com.azure.resourcemanager.securityinsights.models.Constant74;
+import com.azure.resourcemanager.securityinsights.models.Constant81;
/** An instance of this class provides access to all the operations defined in EntityQueryTemplatesClient. */
public interface EntityQueryTemplatesClient {
@@ -41,7 +41,7 @@ public interface EntityQueryTemplatesClient {
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
- String resourceGroupName, String workspaceName, Constant74 kind, Context context);
+ String resourceGroupName, String workspaceName, Constant81 kind, Context context);
/**
* Gets an entity query.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/FileImportsClient.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/FileImportsClient.java
new file mode 100644
index 0000000000000..5d8dda9e272fc
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/FileImportsClient.java
@@ -0,0 +1,184 @@
+// 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.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+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.fluent.models.FileImportInner;
+
+/** An instance of this class provides access to all the operations defined in FileImportsClient. */
+public interface FileImportsClient {
+ /**
+ * Gets all file imports.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all file imports as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName);
+
+ /**
+ * Gets all file imports.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param filter Filters the results, based on a Boolean condition. Optional.
+ * @param orderby Sorts the results. Optional.
+ * @param top Returns only the first n results. Optional.
+ * @param skipToken Skiptoken is only used if a previous operation returned a partial result. If a previous response
+ * contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that
+ * specifies a starting point to use for subsequent calls. Optional.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all file imports as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName,
+ String workspaceName,
+ String filter,
+ String orderby,
+ Integer top,
+ String skipToken,
+ Context context);
+
+ /**
+ * Gets a file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import 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 a file import.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FileImportInner get(String resourceGroupName, String workspaceName, String fileImportId);
+
+ /**
+ * Gets a file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import 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 a file import along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String workspaceName, String fileImportId, Context context);
+
+ /**
+ * Creates the file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import ID.
+ * @param fileImport The file import.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a file import in Azure Security Insights.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FileImportInner create(
+ String resourceGroupName, String workspaceName, String fileImportId, FileImportInner fileImport);
+
+ /**
+ * Creates the file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import ID.
+ * @param fileImport The file import.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a file import in Azure Security Insights along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String fileImportId,
+ FileImportInner fileImport,
+ Context context);
+
+ /**
+ * Delete the file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import 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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FileImportInner> beginDelete(
+ String resourceGroupName, String workspaceName, String fileImportId);
+
+ /**
+ * Delete the file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import 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 SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FileImportInner> beginDelete(
+ String resourceGroupName, String workspaceName, String fileImportId, Context context);
+
+ /**
+ * Delete the file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import 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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FileImportInner delete(String resourceGroupName, String workspaceName, String fileImportId);
+
+ /**
+ * Delete the file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import 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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FileImportInner delete(String resourceGroupName, String workspaceName, String fileImportId, Context context);
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/SecurityInsights.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/SecurityInsights.java
index 89469568f9bbe..4d9c0b816c820 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/SecurityInsights.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/SecurityInsights.java
@@ -156,6 +156,13 @@ public interface SecurityInsights {
*/
EntityQueryTemplatesClient getEntityQueryTemplates();
+ /**
+ * Gets the FileImportsClient object to access its operations.
+ *
+ * @return the FileImportsClient object.
+ */
+ FileImportsClient getFileImports();
+
/**
* Gets the IncidentCommentsClient object to access its operations.
*
@@ -191,6 +198,13 @@ public interface SecurityInsights {
*/
SentinelOnboardingStatesClient getSentinelOnboardingStates();
+ /**
+ * Gets the SecurityMLAnalyticsSettingsClient object to access its operations.
+ *
+ * @return the SecurityMLAnalyticsSettingsClient object.
+ */
+ SecurityMLAnalyticsSettingsClient getSecurityMLAnalyticsSettings();
+
/**
* Gets the ProductSettingsClient object to access its operations.
*
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/SecurityMLAnalyticsSettingsClient.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/SecurityMLAnalyticsSettingsClient.java
new file mode 100644
index 0000000000000..421b464275887
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/SecurityMLAnalyticsSettingsClient.java
@@ -0,0 +1,142 @@
+// 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.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.securityinsights.fluent.models.SecurityMLAnalyticsSettingInner;
+
+/** An instance of this class provides access to all the operations defined in SecurityMLAnalyticsSettingsClient. */
+public interface SecurityMLAnalyticsSettingsClient {
+ /**
+ * Gets all Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all Security ML Analytics Settings as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName);
+
+ /**
+ * Gets all Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all Security ML Analytics Settings as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String workspaceName, Context context);
+
+ /**
+ * Gets the Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param settingsResourceName Security ML Analytics Settings resource name.
+ * @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 Security ML Analytics Settings.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SecurityMLAnalyticsSettingInner get(String resourceGroupName, String workspaceName, String settingsResourceName);
+
+ /**
+ * Gets the Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param settingsResourceName Security ML Analytics Settings resource name.
+ * @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 Security ML Analytics Settings along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String workspaceName, String settingsResourceName, Context context);
+
+ /**
+ * Creates or updates the Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param settingsResourceName Security ML Analytics Settings resource name.
+ * @param securityMLAnalyticsSetting The security ML Analytics setting.
+ * @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 security ML Analytics Setting.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SecurityMLAnalyticsSettingInner createOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String settingsResourceName,
+ SecurityMLAnalyticsSettingInner securityMLAnalyticsSetting);
+
+ /**
+ * Creates or updates the Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param settingsResourceName Security ML Analytics Settings resource name.
+ * @param securityMLAnalyticsSetting The security ML Analytics setting.
+ * @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 security ML Analytics Setting along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String settingsResourceName,
+ SecurityMLAnalyticsSettingInner securityMLAnalyticsSetting,
+ Context context);
+
+ /**
+ * Delete the Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param settingsResourceName Security ML Analytics Settings resource name.
+ * @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 settingsResourceName);
+
+ /**
+ * Delete the Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param settingsResourceName Security ML Analytics Settings resource name.
+ * @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 settingsResourceName, Context context);
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/models/AnomalySecurityMLAnalyticsSettingsProperties.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/models/AnomalySecurityMLAnalyticsSettingsProperties.java
new file mode 100644
index 0000000000000..aec24c0f4be20
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/models/AnomalySecurityMLAnalyticsSettingsProperties.java
@@ -0,0 +1,422 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.securityinsights.models.AttackTactic;
+import com.azure.resourcemanager.securityinsights.models.SecurityMLAnalyticsSettingsDataSource;
+import com.azure.resourcemanager.securityinsights.models.SettingsStatus;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.Duration;
+import java.time.OffsetDateTime;
+import java.util.List;
+import java.util.UUID;
+
+/** AnomalySecurityMLAnalytics settings base property bag. */
+@Fluent
+public final class AnomalySecurityMLAnalyticsSettingsProperties {
+ /*
+ * The description of the SecurityMLAnalyticsSettings.
+ */
+ @JsonProperty(value = "description")
+ private String description;
+
+ /*
+ * The display name for settings created by this
+ * SecurityMLAnalyticsSettings.
+ */
+ @JsonProperty(value = "displayName", required = true)
+ private String displayName;
+
+ /*
+ * Determines whether this settings is enabled or disabled.
+ */
+ @JsonProperty(value = "enabled", required = true)
+ private boolean enabled;
+
+ /*
+ * The last time that this SecurityMLAnalyticsSettings has been modified.
+ */
+ @JsonProperty(value = "lastModifiedUtc", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime lastModifiedUtc;
+
+ /*
+ * The required data sources for this SecurityMLAnalyticsSettings
+ */
+ @JsonProperty(value = "requiredDataConnectors")
+ private List requiredDataConnectors;
+
+ /*
+ * The tactics of the SecurityMLAnalyticsSettings
+ */
+ @JsonProperty(value = "tactics")
+ private List tactics;
+
+ /*
+ * The techniques of the SecurityMLAnalyticsSettings
+ */
+ @JsonProperty(value = "techniques")
+ private List techniques;
+
+ /*
+ * The anomaly version of the AnomalySecurityMLAnalyticsSettings.
+ */
+ @JsonProperty(value = "anomalyVersion", required = true)
+ private String anomalyVersion;
+
+ /*
+ * The customizable observations of the AnomalySecurityMLAnalyticsSettings.
+ */
+ @JsonProperty(value = "customizableObservations")
+ private Object customizableObservations;
+
+ /*
+ * The frequency that this SecurityMLAnalyticsSettings will be run.
+ */
+ @JsonProperty(value = "frequency", required = true)
+ private Duration frequency;
+
+ /*
+ * The anomaly SecurityMLAnalyticsSettings status
+ */
+ @JsonProperty(value = "settingsStatus", required = true)
+ private SettingsStatus settingsStatus;
+
+ /*
+ * Determines whether this anomaly security ml analytics settings is a
+ * default settings
+ */
+ @JsonProperty(value = "isDefaultSettings", required = true)
+ private boolean isDefaultSettings;
+
+ /*
+ * The anomaly settings version of the Anomaly security ml analytics
+ * settings that dictates whether job version gets updated or not.
+ */
+ @JsonProperty(value = "anomalySettingsVersion")
+ private Integer anomalySettingsVersion;
+
+ /*
+ * The anomaly settings definition Id
+ */
+ @JsonProperty(value = "settingsDefinitionId")
+ private UUID settingsDefinitionId;
+
+ /**
+ * Get the description property: The description of the SecurityMLAnalyticsSettings.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description property: The description of the SecurityMLAnalyticsSettings.
+ *
+ * @param description the description value to set.
+ * @return the AnomalySecurityMLAnalyticsSettingsProperties object itself.
+ */
+ public AnomalySecurityMLAnalyticsSettingsProperties withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get the displayName property: The display name for settings created by this SecurityMLAnalyticsSettings.
+ *
+ * @return the displayName value.
+ */
+ public String displayName() {
+ return this.displayName;
+ }
+
+ /**
+ * Set the displayName property: The display name for settings created by this SecurityMLAnalyticsSettings.
+ *
+ * @param displayName the displayName value to set.
+ * @return the AnomalySecurityMLAnalyticsSettingsProperties object itself.
+ */
+ public AnomalySecurityMLAnalyticsSettingsProperties withDisplayName(String displayName) {
+ this.displayName = displayName;
+ return this;
+ }
+
+ /**
+ * Get the enabled property: Determines whether this settings is enabled or disabled.
+ *
+ * @return the enabled value.
+ */
+ public boolean enabled() {
+ return this.enabled;
+ }
+
+ /**
+ * Set the enabled property: Determines whether this settings is enabled or disabled.
+ *
+ * @param enabled the enabled value to set.
+ * @return the AnomalySecurityMLAnalyticsSettingsProperties object itself.
+ */
+ public AnomalySecurityMLAnalyticsSettingsProperties withEnabled(boolean enabled) {
+ this.enabled = enabled;
+ return this;
+ }
+
+ /**
+ * Get the lastModifiedUtc property: The last time that this SecurityMLAnalyticsSettings has been modified.
+ *
+ * @return the lastModifiedUtc value.
+ */
+ public OffsetDateTime lastModifiedUtc() {
+ return this.lastModifiedUtc;
+ }
+
+ /**
+ * Get the requiredDataConnectors property: The required data sources for this SecurityMLAnalyticsSettings.
+ *
+ * @return the requiredDataConnectors value.
+ */
+ public List requiredDataConnectors() {
+ return this.requiredDataConnectors;
+ }
+
+ /**
+ * Set the requiredDataConnectors property: The required data sources for this SecurityMLAnalyticsSettings.
+ *
+ * @param requiredDataConnectors the requiredDataConnectors value to set.
+ * @return the AnomalySecurityMLAnalyticsSettingsProperties object itself.
+ */
+ public AnomalySecurityMLAnalyticsSettingsProperties withRequiredDataConnectors(
+ List requiredDataConnectors) {
+ this.requiredDataConnectors = requiredDataConnectors;
+ return this;
+ }
+
+ /**
+ * Get the tactics property: The tactics of the SecurityMLAnalyticsSettings.
+ *
+ * @return the tactics value.
+ */
+ public List tactics() {
+ return this.tactics;
+ }
+
+ /**
+ * Set the tactics property: The tactics of the SecurityMLAnalyticsSettings.
+ *
+ * @param tactics the tactics value to set.
+ * @return the AnomalySecurityMLAnalyticsSettingsProperties object itself.
+ */
+ public AnomalySecurityMLAnalyticsSettingsProperties withTactics(List tactics) {
+ this.tactics = tactics;
+ return this;
+ }
+
+ /**
+ * Get the techniques property: The techniques of the SecurityMLAnalyticsSettings.
+ *
+ * @return the techniques value.
+ */
+ public List techniques() {
+ return this.techniques;
+ }
+
+ /**
+ * Set the techniques property: The techniques of the SecurityMLAnalyticsSettings.
+ *
+ * @param techniques the techniques value to set.
+ * @return the AnomalySecurityMLAnalyticsSettingsProperties object itself.
+ */
+ public AnomalySecurityMLAnalyticsSettingsProperties withTechniques(List techniques) {
+ this.techniques = techniques;
+ return this;
+ }
+
+ /**
+ * Get the anomalyVersion property: The anomaly version of the AnomalySecurityMLAnalyticsSettings.
+ *
+ * @return the anomalyVersion value.
+ */
+ public String anomalyVersion() {
+ return this.anomalyVersion;
+ }
+
+ /**
+ * Set the anomalyVersion property: The anomaly version of the AnomalySecurityMLAnalyticsSettings.
+ *
+ * @param anomalyVersion the anomalyVersion value to set.
+ * @return the AnomalySecurityMLAnalyticsSettingsProperties object itself.
+ */
+ public AnomalySecurityMLAnalyticsSettingsProperties withAnomalyVersion(String anomalyVersion) {
+ this.anomalyVersion = anomalyVersion;
+ return this;
+ }
+
+ /**
+ * Get the customizableObservations property: The customizable observations of the
+ * AnomalySecurityMLAnalyticsSettings.
+ *
+ * @return the customizableObservations value.
+ */
+ public Object customizableObservations() {
+ return this.customizableObservations;
+ }
+
+ /**
+ * Set the customizableObservations property: The customizable observations of the
+ * AnomalySecurityMLAnalyticsSettings.
+ *
+ * @param customizableObservations the customizableObservations value to set.
+ * @return the AnomalySecurityMLAnalyticsSettingsProperties object itself.
+ */
+ public AnomalySecurityMLAnalyticsSettingsProperties withCustomizableObservations(Object customizableObservations) {
+ this.customizableObservations = customizableObservations;
+ return this;
+ }
+
+ /**
+ * Get the frequency property: The frequency that this SecurityMLAnalyticsSettings will be run.
+ *
+ * @return the frequency value.
+ */
+ public Duration frequency() {
+ return this.frequency;
+ }
+
+ /**
+ * Set the frequency property: The frequency that this SecurityMLAnalyticsSettings will be run.
+ *
+ * @param frequency the frequency value to set.
+ * @return the AnomalySecurityMLAnalyticsSettingsProperties object itself.
+ */
+ public AnomalySecurityMLAnalyticsSettingsProperties withFrequency(Duration frequency) {
+ this.frequency = frequency;
+ return this;
+ }
+
+ /**
+ * Get the settingsStatus property: The anomaly SecurityMLAnalyticsSettings status.
+ *
+ * @return the settingsStatus value.
+ */
+ public SettingsStatus settingsStatus() {
+ return this.settingsStatus;
+ }
+
+ /**
+ * Set the settingsStatus property: The anomaly SecurityMLAnalyticsSettings status.
+ *
+ * @param settingsStatus the settingsStatus value to set.
+ * @return the AnomalySecurityMLAnalyticsSettingsProperties object itself.
+ */
+ public AnomalySecurityMLAnalyticsSettingsProperties withSettingsStatus(SettingsStatus settingsStatus) {
+ this.settingsStatus = settingsStatus;
+ return this;
+ }
+
+ /**
+ * Get the isDefaultSettings property: Determines whether this anomaly security ml analytics settings is a default
+ * settings.
+ *
+ * @return the isDefaultSettings value.
+ */
+ public boolean isDefaultSettings() {
+ return this.isDefaultSettings;
+ }
+
+ /**
+ * Set the isDefaultSettings property: Determines whether this anomaly security ml analytics settings is a default
+ * settings.
+ *
+ * @param isDefaultSettings the isDefaultSettings value to set.
+ * @return the AnomalySecurityMLAnalyticsSettingsProperties object itself.
+ */
+ public AnomalySecurityMLAnalyticsSettingsProperties withIsDefaultSettings(boolean isDefaultSettings) {
+ this.isDefaultSettings = isDefaultSettings;
+ return this;
+ }
+
+ /**
+ * Get the anomalySettingsVersion property: The anomaly settings version of the Anomaly security ml analytics
+ * settings that dictates whether job version gets updated or not.
+ *
+ * @return the anomalySettingsVersion value.
+ */
+ public Integer anomalySettingsVersion() {
+ return this.anomalySettingsVersion;
+ }
+
+ /**
+ * Set the anomalySettingsVersion property: The anomaly settings version of the Anomaly security ml analytics
+ * settings that dictates whether job version gets updated or not.
+ *
+ * @param anomalySettingsVersion the anomalySettingsVersion value to set.
+ * @return the AnomalySecurityMLAnalyticsSettingsProperties object itself.
+ */
+ public AnomalySecurityMLAnalyticsSettingsProperties withAnomalySettingsVersion(Integer anomalySettingsVersion) {
+ this.anomalySettingsVersion = anomalySettingsVersion;
+ return this;
+ }
+
+ /**
+ * Get the settingsDefinitionId property: The anomaly settings definition Id.
+ *
+ * @return the settingsDefinitionId value.
+ */
+ public UUID settingsDefinitionId() {
+ return this.settingsDefinitionId;
+ }
+
+ /**
+ * Set the settingsDefinitionId property: The anomaly settings definition Id.
+ *
+ * @param settingsDefinitionId the settingsDefinitionId value to set.
+ * @return the AnomalySecurityMLAnalyticsSettingsProperties object itself.
+ */
+ public AnomalySecurityMLAnalyticsSettingsProperties withSettingsDefinitionId(UUID settingsDefinitionId) {
+ this.settingsDefinitionId = settingsDefinitionId;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (displayName() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property displayName in model AnomalySecurityMLAnalyticsSettingsProperties"));
+ }
+ if (requiredDataConnectors() != null) {
+ requiredDataConnectors().forEach(e -> e.validate());
+ }
+ if (anomalyVersion() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property anomalyVersion in model"
+ + " AnomalySecurityMLAnalyticsSettingsProperties"));
+ }
+ if (frequency() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property frequency in model AnomalySecurityMLAnalyticsSettingsProperties"));
+ }
+ if (settingsStatus() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property settingsStatus in model"
+ + " AnomalySecurityMLAnalyticsSettingsProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(AnomalySecurityMLAnalyticsSettingsProperties.class);
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/models/EntityAnalyticsProperties.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/models/EntityAnalyticsProperties.java
index 0007076e3666a..286aa9d87ccc6 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/models/EntityAnalyticsProperties.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/models/EntityAnalyticsProperties.java
@@ -4,25 +4,38 @@
package com.azure.resourcemanager.securityinsights.fluent.models;
-import com.azure.core.annotation.Immutable;
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.securityinsights.models.EntityProviders;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
/** EntityAnalytics property bag. */
-@Immutable
+@Fluent
public final class EntityAnalyticsProperties {
/*
- * Determines whether the setting is enable or disabled.
+ * The relevant entity providers that are synced
*/
- @JsonProperty(value = "isEnabled", access = JsonProperty.Access.WRITE_ONLY)
- private Boolean isEnabled;
+ @JsonProperty(value = "entityProviders")
+ private List entityProviders;
/**
- * Get the isEnabled property: Determines whether the setting is enable or disabled.
+ * Get the entityProviders property: The relevant entity providers that are synced.
*
- * @return the isEnabled value.
+ * @return the entityProviders value.
*/
- public Boolean isEnabled() {
- return this.isEnabled;
+ public List entityProviders() {
+ return this.entityProviders;
+ }
+
+ /**
+ * Set the entityProviders property: The relevant entity providers that are synced.
+ *
+ * @param entityProviders the entityProviders value to set.
+ * @return the EntityAnalyticsProperties object itself.
+ */
+ public EntityAnalyticsProperties withEntityProviders(List entityProviders) {
+ this.entityProviders = entityProviders;
+ return this;
}
/**
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/models/FileImportInner.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/models/FileImportInner.java
new file mode 100644
index 0000000000000..6fe58bc41b573
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/models/FileImportInner.java
@@ -0,0 +1,239 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.securityinsights.models.FileImportContentType;
+import com.azure.resourcemanager.securityinsights.models.FileImportState;
+import com.azure.resourcemanager.securityinsights.models.FileMetadata;
+import com.azure.resourcemanager.securityinsights.models.IngestionMode;
+import com.azure.resourcemanager.securityinsights.models.ValidationError;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+
+/** Represents a file import in Azure Security Insights. */
+@Fluent
+public final class FileImportInner extends ProxyResource {
+ /*
+ * File import properties
+ */
+ @JsonProperty(value = "properties")
+ private FileImportProperties innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy
+ * information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the innerProperties property: File import properties.
+ *
+ * @return the innerProperties value.
+ */
+ private FileImportProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the ingestionMode property: Describes how to ingest the records in the file.
+ *
+ * @return the ingestionMode value.
+ */
+ public IngestionMode ingestionMode() {
+ return this.innerProperties() == null ? null : this.innerProperties().ingestionMode();
+ }
+
+ /**
+ * Set the ingestionMode property: Describes how to ingest the records in the file.
+ *
+ * @param ingestionMode the ingestionMode value to set.
+ * @return the FileImportInner object itself.
+ */
+ public FileImportInner withIngestionMode(IngestionMode ingestionMode) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new FileImportProperties();
+ }
+ this.innerProperties().withIngestionMode(ingestionMode);
+ return this;
+ }
+
+ /**
+ * Get the contentType property: The content type of this file.
+ *
+ * @return the contentType value.
+ */
+ public FileImportContentType contentType() {
+ return this.innerProperties() == null ? null : this.innerProperties().contentType();
+ }
+
+ /**
+ * Set the contentType property: The content type of this file.
+ *
+ * @param contentType the contentType value to set.
+ * @return the FileImportInner object itself.
+ */
+ public FileImportInner withContentType(FileImportContentType contentType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new FileImportProperties();
+ }
+ this.innerProperties().withContentType(contentType);
+ return this;
+ }
+
+ /**
+ * Get the createdTimeUtc property: The time the file was imported.
+ *
+ * @return the createdTimeUtc value.
+ */
+ public OffsetDateTime createdTimeUtc() {
+ return this.innerProperties() == null ? null : this.innerProperties().createdTimeUtc();
+ }
+
+ /**
+ * Get the errorFile property: Represents the error file (if the import was ingested with errors or failed the
+ * validation).
+ *
+ * @return the errorFile value.
+ */
+ public FileMetadata errorFile() {
+ return this.innerProperties() == null ? null : this.innerProperties().errorFile();
+ }
+
+ /**
+ * Get the errorsPreview property: An ordered list of some of the errors that were encountered during validation.
+ *
+ * @return the errorsPreview value.
+ */
+ public List errorsPreview() {
+ return this.innerProperties() == null ? null : this.innerProperties().errorsPreview();
+ }
+
+ /**
+ * Get the importFile property: Represents the imported file.
+ *
+ * @return the importFile value.
+ */
+ public FileMetadata importFile() {
+ return this.innerProperties() == null ? null : this.innerProperties().importFile();
+ }
+
+ /**
+ * Set the importFile property: Represents the imported file.
+ *
+ * @param importFile the importFile value to set.
+ * @return the FileImportInner object itself.
+ */
+ public FileImportInner withImportFile(FileMetadata importFile) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new FileImportProperties();
+ }
+ this.innerProperties().withImportFile(importFile);
+ return this;
+ }
+
+ /**
+ * Get the ingestedRecordCount property: The number of records that have been successfully ingested.
+ *
+ * @return the ingestedRecordCount value.
+ */
+ public Integer ingestedRecordCount() {
+ return this.innerProperties() == null ? null : this.innerProperties().ingestedRecordCount();
+ }
+
+ /**
+ * Get the source property: The source for the data in the file.
+ *
+ * @return the source value.
+ */
+ public String source() {
+ return this.innerProperties() == null ? null : this.innerProperties().source();
+ }
+
+ /**
+ * Set the source property: The source for the data in the file.
+ *
+ * @param source the source value to set.
+ * @return the FileImportInner object itself.
+ */
+ public FileImportInner withSource(String source) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new FileImportProperties();
+ }
+ this.innerProperties().withSource(source);
+ return this;
+ }
+
+ /**
+ * Get the state property: The state of the file import.
+ *
+ * @return the state value.
+ */
+ public FileImportState state() {
+ return this.innerProperties() == null ? null : this.innerProperties().state();
+ }
+
+ /**
+ * Get the totalRecordCount property: The number of records in the file.
+ *
+ * @return the totalRecordCount value.
+ */
+ public Integer totalRecordCount() {
+ return this.innerProperties() == null ? null : this.innerProperties().totalRecordCount();
+ }
+
+ /**
+ * Get the validRecordCount property: The number of records that have passed validation.
+ *
+ * @return the validRecordCount value.
+ */
+ public Integer validRecordCount() {
+ return this.innerProperties() == null ? null : this.innerProperties().validRecordCount();
+ }
+
+ /**
+ * Get the filesValidUntilTimeUtc property: The time the files associated with this import are deleted from the
+ * storage account.
+ *
+ * @return the filesValidUntilTimeUtc value.
+ */
+ public OffsetDateTime filesValidUntilTimeUtc() {
+ return this.innerProperties() == null ? null : this.innerProperties().filesValidUntilTimeUtc();
+ }
+
+ /**
+ * Get the importValidUntilTimeUtc property: The time the file import record is soft deleted from the database and
+ * history.
+ *
+ * @return the importValidUntilTimeUtc value.
+ */
+ public OffsetDateTime importValidUntilTimeUtc() {
+ return this.innerProperties() == null ? null : this.innerProperties().importValidUntilTimeUtc();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/models/FileImportProperties.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/models/FileImportProperties.java
new file mode 100644
index 0000000000000..27260cf9a3db6
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/models/FileImportProperties.java
@@ -0,0 +1,306 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.securityinsights.models.FileImportContentType;
+import com.azure.resourcemanager.securityinsights.models.FileImportState;
+import com.azure.resourcemanager.securityinsights.models.FileMetadata;
+import com.azure.resourcemanager.securityinsights.models.IngestionMode;
+import com.azure.resourcemanager.securityinsights.models.ValidationError;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+
+/** Describes the FileImport's properties. */
+@Fluent
+public final class FileImportProperties {
+ /*
+ * Describes how to ingest the records in the file.
+ */
+ @JsonProperty(value = "ingestionMode", required = true)
+ private IngestionMode ingestionMode;
+
+ /*
+ * The content type of this file.
+ */
+ @JsonProperty(value = "contentType", required = true)
+ private FileImportContentType contentType;
+
+ /*
+ * The time the file was imported.
+ */
+ @JsonProperty(value = "createdTimeUTC", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime createdTimeUtc;
+
+ /*
+ * Represents the error file (if the import was ingested with errors or
+ * failed the validation).
+ */
+ @JsonProperty(value = "errorFile", access = JsonProperty.Access.WRITE_ONLY)
+ private FileMetadata errorFile;
+
+ /*
+ * An ordered list of some of the errors that were encountered during
+ * validation.
+ */
+ @JsonProperty(value = "errorsPreview", access = JsonProperty.Access.WRITE_ONLY)
+ private List errorsPreview;
+
+ /*
+ * Represents the imported file.
+ */
+ @JsonProperty(value = "importFile", required = true)
+ private FileMetadata importFile;
+
+ /*
+ * The number of records that have been successfully ingested.
+ */
+ @JsonProperty(value = "ingestedRecordCount", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer ingestedRecordCount;
+
+ /*
+ * The source for the data in the file.
+ */
+ @JsonProperty(value = "source", required = true)
+ private String source;
+
+ /*
+ * The state of the file import.
+ */
+ @JsonProperty(value = "state", access = JsonProperty.Access.WRITE_ONLY)
+ private FileImportState state;
+
+ /*
+ * The number of records in the file.
+ */
+ @JsonProperty(value = "totalRecordCount", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer totalRecordCount;
+
+ /*
+ * The number of records that have passed validation.
+ */
+ @JsonProperty(value = "validRecordCount", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer validRecordCount;
+
+ /*
+ * The time the files associated with this import are deleted from the
+ * storage account.
+ */
+ @JsonProperty(value = "filesValidUntilTimeUTC", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime filesValidUntilTimeUtc;
+
+ /*
+ * The time the file import record is soft deleted from the database and
+ * history.
+ */
+ @JsonProperty(value = "importValidUntilTimeUTC", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime importValidUntilTimeUtc;
+
+ /**
+ * Get the ingestionMode property: Describes how to ingest the records in the file.
+ *
+ * @return the ingestionMode value.
+ */
+ public IngestionMode ingestionMode() {
+ return this.ingestionMode;
+ }
+
+ /**
+ * Set the ingestionMode property: Describes how to ingest the records in the file.
+ *
+ * @param ingestionMode the ingestionMode value to set.
+ * @return the FileImportProperties object itself.
+ */
+ public FileImportProperties withIngestionMode(IngestionMode ingestionMode) {
+ this.ingestionMode = ingestionMode;
+ return this;
+ }
+
+ /**
+ * Get the contentType property: The content type of this file.
+ *
+ * @return the contentType value.
+ */
+ public FileImportContentType contentType() {
+ return this.contentType;
+ }
+
+ /**
+ * Set the contentType property: The content type of this file.
+ *
+ * @param contentType the contentType value to set.
+ * @return the FileImportProperties object itself.
+ */
+ public FileImportProperties withContentType(FileImportContentType contentType) {
+ this.contentType = contentType;
+ return this;
+ }
+
+ /**
+ * Get the createdTimeUtc property: The time the file was imported.
+ *
+ * @return the createdTimeUtc value.
+ */
+ public OffsetDateTime createdTimeUtc() {
+ return this.createdTimeUtc;
+ }
+
+ /**
+ * Get the errorFile property: Represents the error file (if the import was ingested with errors or failed the
+ * validation).
+ *
+ * @return the errorFile value.
+ */
+ public FileMetadata errorFile() {
+ return this.errorFile;
+ }
+
+ /**
+ * Get the errorsPreview property: An ordered list of some of the errors that were encountered during validation.
+ *
+ * @return the errorsPreview value.
+ */
+ public List errorsPreview() {
+ return this.errorsPreview;
+ }
+
+ /**
+ * Get the importFile property: Represents the imported file.
+ *
+ * @return the importFile value.
+ */
+ public FileMetadata importFile() {
+ return this.importFile;
+ }
+
+ /**
+ * Set the importFile property: Represents the imported file.
+ *
+ * @param importFile the importFile value to set.
+ * @return the FileImportProperties object itself.
+ */
+ public FileImportProperties withImportFile(FileMetadata importFile) {
+ this.importFile = importFile;
+ return this;
+ }
+
+ /**
+ * Get the ingestedRecordCount property: The number of records that have been successfully ingested.
+ *
+ * @return the ingestedRecordCount value.
+ */
+ public Integer ingestedRecordCount() {
+ return this.ingestedRecordCount;
+ }
+
+ /**
+ * Get the source property: The source for the data in the file.
+ *
+ * @return the source value.
+ */
+ public String source() {
+ return this.source;
+ }
+
+ /**
+ * Set the source property: The source for the data in the file.
+ *
+ * @param source the source value to set.
+ * @return the FileImportProperties object itself.
+ */
+ public FileImportProperties withSource(String source) {
+ this.source = source;
+ return this;
+ }
+
+ /**
+ * Get the state property: The state of the file import.
+ *
+ * @return the state value.
+ */
+ public FileImportState state() {
+ return this.state;
+ }
+
+ /**
+ * Get the totalRecordCount property: The number of records in the file.
+ *
+ * @return the totalRecordCount value.
+ */
+ public Integer totalRecordCount() {
+ return this.totalRecordCount;
+ }
+
+ /**
+ * Get the validRecordCount property: The number of records that have passed validation.
+ *
+ * @return the validRecordCount value.
+ */
+ public Integer validRecordCount() {
+ return this.validRecordCount;
+ }
+
+ /**
+ * Get the filesValidUntilTimeUtc property: The time the files associated with this import are deleted from the
+ * storage account.
+ *
+ * @return the filesValidUntilTimeUtc value.
+ */
+ public OffsetDateTime filesValidUntilTimeUtc() {
+ return this.filesValidUntilTimeUtc;
+ }
+
+ /**
+ * Get the importValidUntilTimeUtc property: The time the file import record is soft deleted from the database and
+ * history.
+ *
+ * @return the importValidUntilTimeUtc value.
+ */
+ public OffsetDateTime importValidUntilTimeUtc() {
+ return this.importValidUntilTimeUtc;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (ingestionMode() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property ingestionMode in model FileImportProperties"));
+ }
+ if (contentType() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property contentType in model FileImportProperties"));
+ }
+ if (errorFile() != null) {
+ errorFile().validate();
+ }
+ if (errorsPreview() != null) {
+ errorsPreview().forEach(e -> e.validate());
+ }
+ if (importFile() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property importFile in model FileImportProperties"));
+ } else {
+ importFile().validate();
+ }
+ if (source() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property source in model FileImportProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(FileImportProperties.class);
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/models/SecurityMLAnalyticsSettingInner.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/models/SecurityMLAnalyticsSettingInner.java
new file mode 100644
index 0000000000000..8bf08cc6714d7
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/models/SecurityMLAnalyticsSettingInner.java
@@ -0,0 +1,40 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.securityinsights.models.AnomalySecurityMLAnalyticsSettings;
+import com.azure.resourcemanager.securityinsights.models.ResourceWithEtag;
+import com.fasterxml.jackson.annotation.JsonSubTypes;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/** Security ML Analytics Setting. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.PROPERTY,
+ property = "kind",
+ defaultImpl = SecurityMLAnalyticsSettingInner.class)
+@JsonTypeName("SecurityMLAnalyticsSetting")
+@JsonSubTypes({@JsonSubTypes.Type(name = "Anomaly", value = AnomalySecurityMLAnalyticsSettings.class)})
+@Fluent
+public class SecurityMLAnalyticsSettingInner extends ResourceWithEtag {
+ /** {@inheritDoc} */
+ @Override
+ public SecurityMLAnalyticsSettingInner withEtag(String etag) {
+ super.withEtag(etag);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ }
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/models/WatchlistInner.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/models/WatchlistInner.java
index 1a1d86a973b6e..14c1ca299bc28 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/models/WatchlistInner.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/models/WatchlistInner.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.securityinsights.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.resourcemanager.securityinsights.models.ProvisioningState;
import com.azure.resourcemanager.securityinsights.models.ResourceWithEtag;
import com.azure.resourcemanager.securityinsights.models.SourceType;
import com.azure.resourcemanager.securityinsights.models.UserInfo;
@@ -455,31 +454,6 @@ public WatchlistInner withRawContent(String rawContent) {
return this;
}
- /**
- * Get the sasUri property: The Shared Access Signature (SAS) URI under which the large csv watchlist file is
- * located and from which the watchlist and its items will be created.
- *
- * @return the sasUri value.
- */
- public String sasUri() {
- return this.innerProperties() == null ? null : this.innerProperties().sasUri();
- }
-
- /**
- * Set the sasUri property: The Shared Access Signature (SAS) URI under which the large csv watchlist file is
- * located and from which the watchlist and its items will be created.
- *
- * @param sasUri the sasUri value to set.
- * @return the WatchlistInner object itself.
- */
- public WatchlistInner withSasUri(String sasUri) {
- if (this.innerProperties() == null) {
- this.innerProperties = new WatchlistProperties();
- }
- this.innerProperties().withSasUri(sasUri);
- return this;
- }
-
/**
* Get the itemsSearchKey property: The search key is used to optimize query performance when using watchlists for
* joins with other data. For example, enable a column with IP addresses to be the designated SearchKey field, then
@@ -555,15 +529,6 @@ public WatchlistInner withUploadStatus(String uploadStatus) {
return this;
}
- /**
- * Get the provisioningState property: The provisioning state of the watchlist resource.
- *
- * @return the provisioningState value.
- */
- public ProvisioningState provisioningState() {
- return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
- }
-
/**
* Validates the instance.
*
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/models/WatchlistProperties.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/models/WatchlistProperties.java
index 70c0d4ef92995..1d8ba4dd9aa85 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/models/WatchlistProperties.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/models/WatchlistProperties.java
@@ -6,7 +6,6 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.securityinsights.models.ProvisioningState;
import com.azure.resourcemanager.securityinsights.models.SourceType;
import com.azure.resourcemanager.securityinsights.models.UserInfo;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -127,14 +126,6 @@ public final class WatchlistProperties {
@JsonProperty(value = "rawContent")
private String rawContent;
- /*
- * The Shared Access Signature (SAS) URI under which the large csv
- * watchlist file is located and from which the watchlist and its items
- * will be created
- */
- @JsonProperty(value = "sasUri")
- private String sasUri;
-
/*
* The search key is used to optimize query performance when using
* watchlists for joins with other data. For example, enable a column with
@@ -158,12 +149,6 @@ public final class WatchlistProperties {
@JsonProperty(value = "uploadStatus")
private String uploadStatus;
- /*
- * The provisioning state of the watchlist resource.
- */
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
- private ProvisioningState provisioningState;
-
/**
* Get the watchlistId property: The id (a Guid) of the watchlist.
*
@@ -526,28 +511,6 @@ public WatchlistProperties withRawContent(String rawContent) {
return this;
}
- /**
- * Get the sasUri property: The Shared Access Signature (SAS) URI under which the large csv watchlist file is
- * located and from which the watchlist and its items will be created.
- *
- * @return the sasUri value.
- */
- public String sasUri() {
- return this.sasUri;
- }
-
- /**
- * Set the sasUri property: The Shared Access Signature (SAS) URI under which the large csv watchlist file is
- * located and from which the watchlist and its items will be created.
- *
- * @param sasUri the sasUri value to set.
- * @return the WatchlistProperties object itself.
- */
- public WatchlistProperties withSasUri(String sasUri) {
- this.sasUri = sasUri;
- return this;
- }
-
/**
* Get the itemsSearchKey property: The search key is used to optimize query performance when using watchlists for
* joins with other data. For example, enable a column with IP addresses to be the designated SearchKey field, then
@@ -614,15 +577,6 @@ public WatchlistProperties withUploadStatus(String uploadStatus) {
return this;
}
- /**
- * Get the provisioningState property: The provisioning state of the watchlist resource.
- *
- * @return the provisioningState value.
- */
- public ProvisioningState provisioningState() {
- return this.provisioningState;
- }
-
/**
* Validates the instance.
*
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/EntityQueryTemplatesClientImpl.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/EntityQueryTemplatesClientImpl.java
index 7abfb8cb688fe..1f1c17765c8d4 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/EntityQueryTemplatesClientImpl.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/EntityQueryTemplatesClientImpl.java
@@ -27,7 +27,7 @@
import com.azure.core.util.FluxUtil;
import com.azure.resourcemanager.securityinsights.fluent.EntityQueryTemplatesClient;
import com.azure.resourcemanager.securityinsights.fluent.models.EntityQueryTemplateInner;
-import com.azure.resourcemanager.securityinsights.models.Constant74;
+import com.azure.resourcemanager.securityinsights.models.Constant81;
import com.azure.resourcemanager.securityinsights.models.EntityQueryTemplateList;
import reactor.core.publisher.Mono;
@@ -66,7 +66,7 @@ private interface EntityQueryTemplatesService {
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> list(
@HostParam("$host") String endpoint,
- @QueryParam("kind") Constant74 kind,
+ @QueryParam("kind") Constant81 kind,
@QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@@ -115,7 +115,7 @@ Mono> listNext(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
- String resourceGroupName, String workspaceName, Constant74 kind) {
+ String resourceGroupName, String workspaceName, Constant81 kind) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -175,7 +175,7 @@ private Mono> listSinglePageAsync(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
- String resourceGroupName, String workspaceName, Constant74 kind, Context context) {
+ String resourceGroupName, String workspaceName, Constant81 kind, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -231,7 +231,7 @@ private Mono> listSinglePageAsync(
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(
- String resourceGroupName, String workspaceName, Constant74 kind) {
+ String resourceGroupName, String workspaceName, Constant81 kind) {
return new PagedFlux<>(
() -> listSinglePageAsync(resourceGroupName, workspaceName, kind),
nextLink -> listNextSinglePageAsync(nextLink));
@@ -249,7 +249,7 @@ private PagedFlux listAsync(
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(String resourceGroupName, String workspaceName) {
- final Constant74 kind = null;
+ final Constant81 kind = null;
return new PagedFlux<>(
() -> listSinglePageAsync(resourceGroupName, workspaceName, kind),
nextLink -> listNextSinglePageAsync(nextLink));
@@ -269,7 +269,7 @@ private PagedFlux listAsync(String resourceGroupName,
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(
- String resourceGroupName, String workspaceName, Constant74 kind, Context context) {
+ String resourceGroupName, String workspaceName, Constant81 kind, Context context) {
return new PagedFlux<>(
() -> listSinglePageAsync(resourceGroupName, workspaceName, kind, context),
nextLink -> listNextSinglePageAsync(nextLink, context));
@@ -287,7 +287,7 @@ private PagedFlux listAsync(
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(String resourceGroupName, String workspaceName) {
- final Constant74 kind = null;
+ final Constant81 kind = null;
return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, kind));
}
@@ -305,7 +305,7 @@ public PagedIterable list(String resourceGroupName, St
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(
- String resourceGroupName, String workspaceName, Constant74 kind, Context context) {
+ String resourceGroupName, String workspaceName, Constant81 kind, Context context) {
return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, kind, context));
}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/EntityQueryTemplatesImpl.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/EntityQueryTemplatesImpl.java
index d7edf7585936d..1a8427ad5ffce 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/EntityQueryTemplatesImpl.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/EntityQueryTemplatesImpl.java
@@ -11,7 +11,7 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.securityinsights.fluent.EntityQueryTemplatesClient;
import com.azure.resourcemanager.securityinsights.fluent.models.EntityQueryTemplateInner;
-import com.azure.resourcemanager.securityinsights.models.Constant74;
+import com.azure.resourcemanager.securityinsights.models.Constant81;
import com.azure.resourcemanager.securityinsights.models.EntityQueryTemplate;
import com.azure.resourcemanager.securityinsights.models.EntityQueryTemplates;
@@ -35,7 +35,7 @@ public PagedIterable list(String resourceGroupName, String
}
public PagedIterable list(
- String resourceGroupName, String workspaceName, Constant74 kind, Context context) {
+ String resourceGroupName, String workspaceName, Constant81 kind, Context context) {
PagedIterable inner =
this.serviceClient().list(resourceGroupName, workspaceName, kind, context);
return Utils.mapPage(inner, inner1 -> new EntityQueryTemplateImpl(inner1, this.manager()));
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/FileImportImpl.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/FileImportImpl.java
new file mode 100644
index 0000000000000..370082d593758
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/FileImportImpl.java
@@ -0,0 +1,190 @@
+// 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.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.securityinsights.fluent.models.FileImportInner;
+import com.azure.resourcemanager.securityinsights.models.FileImport;
+import com.azure.resourcemanager.securityinsights.models.FileImportContentType;
+import com.azure.resourcemanager.securityinsights.models.FileImportState;
+import com.azure.resourcemanager.securityinsights.models.FileMetadata;
+import com.azure.resourcemanager.securityinsights.models.IngestionMode;
+import com.azure.resourcemanager.securityinsights.models.ValidationError;
+import java.time.OffsetDateTime;
+import java.util.Collections;
+import java.util.List;
+
+public final class FileImportImpl implements FileImport, FileImport.Definition {
+ private FileImportInner innerObject;
+
+ private final com.azure.resourcemanager.securityinsights.SecurityInsightsManager serviceManager;
+
+ FileImportImpl(
+ FileImportInner innerObject,
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public IngestionMode ingestionMode() {
+ return this.innerModel().ingestionMode();
+ }
+
+ public FileImportContentType contentType() {
+ return this.innerModel().contentType();
+ }
+
+ public OffsetDateTime createdTimeUtc() {
+ return this.innerModel().createdTimeUtc();
+ }
+
+ public FileMetadata errorFile() {
+ return this.innerModel().errorFile();
+ }
+
+ public List errorsPreview() {
+ List inner = this.innerModel().errorsPreview();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public FileMetadata importFile() {
+ return this.innerModel().importFile();
+ }
+
+ public Integer ingestedRecordCount() {
+ return this.innerModel().ingestedRecordCount();
+ }
+
+ public String source() {
+ return this.innerModel().source();
+ }
+
+ public FileImportState state() {
+ return this.innerModel().state();
+ }
+
+ public Integer totalRecordCount() {
+ return this.innerModel().totalRecordCount();
+ }
+
+ public Integer validRecordCount() {
+ return this.innerModel().validRecordCount();
+ }
+
+ public OffsetDateTime filesValidUntilTimeUtc() {
+ return this.innerModel().filesValidUntilTimeUtc();
+ }
+
+ public OffsetDateTime importValidUntilTimeUtc() {
+ return this.innerModel().importValidUntilTimeUtc();
+ }
+
+ public FileImportInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String workspaceName;
+
+ private String fileImportId;
+
+ public FileImportImpl withExistingWorkspace(String resourceGroupName, String workspaceName) {
+ this.resourceGroupName = resourceGroupName;
+ this.workspaceName = workspaceName;
+ return this;
+ }
+
+ public FileImport create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getFileImports()
+ .createWithResponse(resourceGroupName, workspaceName, fileImportId, this.innerModel(), Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public FileImport create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getFileImports()
+ .createWithResponse(resourceGroupName, workspaceName, fileImportId, this.innerModel(), context)
+ .getValue();
+ return this;
+ }
+
+ FileImportImpl(String name, com.azure.resourcemanager.securityinsights.SecurityInsightsManager serviceManager) {
+ this.innerObject = new FileImportInner();
+ this.serviceManager = serviceManager;
+ this.fileImportId = name;
+ }
+
+ public FileImport refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getFileImports()
+ .getWithResponse(resourceGroupName, workspaceName, fileImportId, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public FileImport refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getFileImports()
+ .getWithResponse(resourceGroupName, workspaceName, fileImportId, context)
+ .getValue();
+ return this;
+ }
+
+ public FileImportImpl withIngestionMode(IngestionMode ingestionMode) {
+ this.innerModel().withIngestionMode(ingestionMode);
+ return this;
+ }
+
+ public FileImportImpl withContentType(FileImportContentType contentType) {
+ this.innerModel().withContentType(contentType);
+ return this;
+ }
+
+ public FileImportImpl withImportFile(FileMetadata importFile) {
+ this.innerModel().withImportFile(importFile);
+ return this;
+ }
+
+ public FileImportImpl withSource(String source) {
+ this.innerModel().withSource(source);
+ return this;
+ }
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/FileImportsClientImpl.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/FileImportsClientImpl.java
new file mode 100644
index 0000000000000..18ccf0534be03
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/FileImportsClientImpl.java
@@ -0,0 +1,1092 @@
+// 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.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.securityinsights.fluent.FileImportsClient;
+import com.azure.resourcemanager.securityinsights.fluent.models.FileImportInner;
+import com.azure.resourcemanager.securityinsights.models.FileImportList;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in FileImportsClient. */
+public final class FileImportsClientImpl implements FileImportsClient {
+ /** The proxy service used to perform REST calls. */
+ private final FileImportsService service;
+
+ /** The service client containing this operation class. */
+ private final SecurityInsightsImpl client;
+
+ /**
+ * Initializes an instance of FileImportsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ FileImportsClientImpl(SecurityInsightsImpl client) {
+ this.service =
+ RestProxy.create(FileImportsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for SecurityInsightsFileImports to be used by the proxy service to
+ * perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "SecurityInsightsFile")
+ private interface FileImportsService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
+ + "/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/fileImports")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("workspaceName") String workspaceName,
+ @QueryParam("$filter") String filter,
+ @QueryParam("$orderby") String orderby,
+ @QueryParam("$top") Integer top,
+ @QueryParam("$skipToken") String skipToken,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
+ + "/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/fileImports/{fileImportId}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("workspaceName") String workspaceName,
+ @PathParam("fileImportId") String fileImportId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
+ + "/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/fileImports/{fileImportId}")
+ @ExpectedResponses({201})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> create(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("workspaceName") String workspaceName,
+ @PathParam("fileImportId") String fileImportId,
+ @BodyParam("application/json") FileImportInner fileImport,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
+ + "/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/fileImports/{fileImportId}")
+ @ExpectedResponses({200, 202, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("workspaceName") String workspaceName,
+ @PathParam("fileImportId") String fileImportId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Gets all file imports.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param filter Filters the results, based on a Boolean condition. Optional.
+ * @param orderby Sorts the results. Optional.
+ * @param top Returns only the first n results. Optional.
+ * @param skipToken Skiptoken is only used if a previous operation returned a partial result. If a previous response
+ * contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that
+ * specifies a starting point to use for subsequent calls. Optional.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all file imports along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String workspaceName, String filter, String orderby, Integer top, String skipToken) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (workspaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ filter,
+ orderby,
+ top,
+ skipToken,
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets all file imports.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param filter Filters the results, based on a Boolean condition. Optional.
+ * @param orderby Sorts the results. Optional.
+ * @param top Returns only the first n results. Optional.
+ * @param skipToken Skiptoken is only used if a previous operation returned a partial result. If a previous response
+ * contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that
+ * specifies a starting point to use for subsequent calls. Optional.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all file imports along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName,
+ String workspaceName,
+ String filter,
+ String orderby,
+ Integer top,
+ String skipToken,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (workspaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ filter,
+ orderby,
+ top,
+ skipToken,
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Gets all file imports.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param filter Filters the results, based on a Boolean condition. Optional.
+ * @param orderby Sorts the results. Optional.
+ * @param top Returns only the first n results. Optional.
+ * @param skipToken Skiptoken is only used if a previous operation returned a partial result. If a previous response
+ * contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that
+ * specifies a starting point to use for subsequent calls. Optional.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all file imports as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(
+ String resourceGroupName, String workspaceName, String filter, String orderby, Integer top, String skipToken) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, workspaceName, filter, orderby, top, skipToken),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Gets all file imports.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all file imports as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String workspaceName) {
+ final String filter = null;
+ final String orderby = null;
+ final Integer top = null;
+ final String skipToken = null;
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, workspaceName, filter, orderby, top, skipToken),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Gets all file imports.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param filter Filters the results, based on a Boolean condition. Optional.
+ * @param orderby Sorts the results. Optional.
+ * @param top Returns only the first n results. Optional.
+ * @param skipToken Skiptoken is only used if a previous operation returned a partial result. If a previous response
+ * contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that
+ * specifies a starting point to use for subsequent calls. Optional.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all file imports as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(
+ String resourceGroupName,
+ String workspaceName,
+ String filter,
+ String orderby,
+ Integer top,
+ String skipToken,
+ Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, workspaceName, filter, orderby, top, skipToken, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Gets all file imports.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all file imports as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String workspaceName) {
+ final String filter = null;
+ final String orderby = null;
+ final Integer top = null;
+ final String skipToken = null;
+ return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, filter, orderby, top, skipToken));
+ }
+
+ /**
+ * Gets all file imports.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param filter Filters the results, based on a Boolean condition. Optional.
+ * @param orderby Sorts the results. Optional.
+ * @param top Returns only the first n results. Optional.
+ * @param skipToken Skiptoken is only used if a previous operation returned a partial result. If a previous response
+ * contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that
+ * specifies a starting point to use for subsequent calls. Optional.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all file imports as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(
+ String resourceGroupName,
+ String workspaceName,
+ String filter,
+ String orderby,
+ Integer top,
+ String skipToken,
+ Context context) {
+ return new PagedIterable<>(
+ listAsync(resourceGroupName, workspaceName, filter, orderby, top, skipToken, context));
+ }
+
+ /**
+ * Gets a file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a file import along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String workspaceName, String fileImportId) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (workspaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
+ }
+ if (fileImportId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter fileImportId is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ fileImportId,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets a file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import ID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a file import along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String workspaceName, String fileImportId, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (workspaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
+ }
+ if (fileImportId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter fileImportId is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ fileImportId,
+ accept,
+ context);
+ }
+
+ /**
+ * Gets a file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a file import on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String resourceGroupName, String workspaceName, String fileImportId) {
+ return getWithResponseAsync(resourceGroupName, workspaceName, fileImportId)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Gets a file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a file import.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public FileImportInner get(String resourceGroupName, String workspaceName, String fileImportId) {
+ return getAsync(resourceGroupName, workspaceName, fileImportId).block();
+ }
+
+ /**
+ * Gets a file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import ID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a file import along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String resourceGroupName, String workspaceName, String fileImportId, Context context) {
+ return getWithResponseAsync(resourceGroupName, workspaceName, fileImportId, context).block();
+ }
+
+ /**
+ * Creates the file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import ID.
+ * @param fileImport The file import.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a file import in Azure Security Insights along with {@link Response} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createWithResponseAsync(
+ String resourceGroupName, String workspaceName, String fileImportId, FileImportInner fileImport) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (workspaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
+ }
+ if (fileImportId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter fileImportId is required and cannot be null."));
+ }
+ if (fileImport == null) {
+ return Mono.error(new IllegalArgumentException("Parameter fileImport is required and cannot be null."));
+ } else {
+ fileImport.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .create(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ fileImportId,
+ fileImport,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Creates the file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import ID.
+ * @param fileImport The file import.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a file import in Azure Security Insights along with {@link Response} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createWithResponseAsync(
+ String resourceGroupName,
+ String workspaceName,
+ String fileImportId,
+ FileImportInner fileImport,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (workspaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
+ }
+ if (fileImportId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter fileImportId is required and cannot be null."));
+ }
+ if (fileImport == null) {
+ return Mono.error(new IllegalArgumentException("Parameter fileImport is required and cannot be null."));
+ } else {
+ fileImport.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .create(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ fileImportId,
+ fileImport,
+ accept,
+ context);
+ }
+
+ /**
+ * Creates the file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import ID.
+ * @param fileImport The file import.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a file import in Azure Security Insights on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createAsync(
+ String resourceGroupName, String workspaceName, String fileImportId, FileImportInner fileImport) {
+ return createWithResponseAsync(resourceGroupName, workspaceName, fileImportId, fileImport)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Creates the file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import ID.
+ * @param fileImport The file import.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a file import in Azure Security Insights.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public FileImportInner create(
+ String resourceGroupName, String workspaceName, String fileImportId, FileImportInner fileImport) {
+ return createAsync(resourceGroupName, workspaceName, fileImportId, fileImport).block();
+ }
+
+ /**
+ * Creates the file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import ID.
+ * @param fileImport The file import.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a file import in Azure Security Insights along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response createWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String fileImportId,
+ FileImportInner fileImport,
+ Context context) {
+ return createWithResponseAsync(resourceGroupName, workspaceName, fileImportId, fileImport, context).block();
+ }
+
+ /**
+ * Delete the file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 body along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(
+ String resourceGroupName, String workspaceName, String fileImportId) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (workspaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
+ }
+ if (fileImportId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter fileImportId is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ fileImportId,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete the file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import ID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 body along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(
+ String resourceGroupName, String workspaceName, String fileImportId, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (workspaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
+ }
+ if (fileImportId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter fileImportId is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ fileImportId,
+ accept,
+ context);
+ }
+
+ /**
+ * Delete the file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, FileImportInner> beginDeleteAsync(
+ String resourceGroupName, String workspaceName, String fileImportId) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, workspaceName, fileImportId);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ FileImportInner.class,
+ FileImportInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Delete the file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import ID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, FileImportInner> beginDeleteAsync(
+ String resourceGroupName, String workspaceName, String fileImportId, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ deleteWithResponseAsync(resourceGroupName, workspaceName, fileImportId, context);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), FileImportInner.class, FileImportInner.class, context);
+ }
+
+ /**
+ * Delete the file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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)
+ public SyncPoller, FileImportInner> beginDelete(
+ String resourceGroupName, String workspaceName, String fileImportId) {
+ return beginDeleteAsync(resourceGroupName, workspaceName, fileImportId).getSyncPoller();
+ }
+
+ /**
+ * Delete the file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import ID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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)
+ public SyncPoller, FileImportInner> beginDelete(
+ String resourceGroupName, String workspaceName, String fileImportId, Context context) {
+ return beginDeleteAsync(resourceGroupName, workspaceName, fileImportId, context).getSyncPoller();
+ }
+
+ /**
+ * Delete the file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 body on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String workspaceName, String fileImportId) {
+ return beginDeleteAsync(resourceGroupName, workspaceName, fileImportId)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete the file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import ID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 body on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(
+ String resourceGroupName, String workspaceName, String fileImportId, Context context) {
+ return beginDeleteAsync(resourceGroupName, workspaceName, fileImportId, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete the file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public FileImportInner delete(String resourceGroupName, String workspaceName, String fileImportId) {
+ return deleteAsync(resourceGroupName, workspaceName, fileImportId).block();
+ }
+
+ /**
+ * Delete the file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import ID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public FileImportInner delete(
+ String resourceGroupName, String workspaceName, String fileImportId, Context context) {
+ return deleteAsync(resourceGroupName, workspaceName, fileImportId, context).block();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list all the file imports along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list all the file imports along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/FileImportsImpl.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/FileImportsImpl.java
new file mode 100644
index 0000000000000..05175bc230d31
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/FileImportsImpl.java
@@ -0,0 +1,206 @@
+// 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.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.securityinsights.fluent.FileImportsClient;
+import com.azure.resourcemanager.securityinsights.fluent.models.FileImportInner;
+import com.azure.resourcemanager.securityinsights.models.FileImport;
+import com.azure.resourcemanager.securityinsights.models.FileImports;
+
+public final class FileImportsImpl implements FileImports {
+ private static final ClientLogger LOGGER = new ClientLogger(FileImportsImpl.class);
+
+ private final FileImportsClient innerClient;
+
+ private final com.azure.resourcemanager.securityinsights.SecurityInsightsManager serviceManager;
+
+ public FileImportsImpl(
+ FileImportsClient innerClient,
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list(String resourceGroupName, String workspaceName) {
+ PagedIterable inner = this.serviceClient().list(resourceGroupName, workspaceName);
+ return Utils.mapPage(inner, inner1 -> new FileImportImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(
+ String resourceGroupName,
+ String workspaceName,
+ String filter,
+ String orderby,
+ Integer top,
+ String skipToken,
+ Context context) {
+ PagedIterable inner =
+ this.serviceClient().list(resourceGroupName, workspaceName, filter, orderby, top, skipToken, context);
+ return Utils.mapPage(inner, inner1 -> new FileImportImpl(inner1, this.manager()));
+ }
+
+ public FileImport get(String resourceGroupName, String workspaceName, String fileImportId) {
+ FileImportInner inner = this.serviceClient().get(resourceGroupName, workspaceName, fileImportId);
+ if (inner != null) {
+ return new FileImportImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response getWithResponse(
+ String resourceGroupName, String workspaceName, String fileImportId, Context context) {
+ Response inner =
+ this.serviceClient().getWithResponse(resourceGroupName, workspaceName, fileImportId, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new FileImportImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public FileImport delete(String resourceGroupName, String workspaceName, String fileImportId) {
+ FileImportInner inner = this.serviceClient().delete(resourceGroupName, workspaceName, fileImportId);
+ if (inner != null) {
+ return new FileImportImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public FileImport delete(String resourceGroupName, String workspaceName, String fileImportId, Context context) {
+ FileImportInner inner = this.serviceClient().delete(resourceGroupName, workspaceName, fileImportId, context);
+ if (inner != null) {
+ return new FileImportImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public FileImport getById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
+ if (workspaceName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
+ }
+ String fileImportId = Utils.getValueFromIdByName(id, "fileImports");
+ if (fileImportId == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'fileImports'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, workspaceName, fileImportId, Context.NONE).getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
+ if (workspaceName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
+ }
+ String fileImportId = Utils.getValueFromIdByName(id, "fileImports");
+ if (fileImportId == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'fileImports'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, workspaceName, fileImportId, context);
+ }
+
+ public FileImport deleteById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
+ if (workspaceName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
+ }
+ String fileImportId = Utils.getValueFromIdByName(id, "fileImports");
+ if (fileImportId == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'fileImports'.", id)));
+ }
+ return this.delete(resourceGroupName, workspaceName, fileImportId, Context.NONE);
+ }
+
+ public FileImport deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String workspaceName = Utils.getValueFromIdByName(id, "workspaces");
+ if (workspaceName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
+ }
+ String fileImportId = Utils.getValueFromIdByName(id, "fileImports");
+ if (fileImportId == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'fileImports'.", id)));
+ }
+ return this.delete(resourceGroupName, workspaceName, fileImportId, context);
+ }
+
+ private FileImportsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager() {
+ return this.serviceManager;
+ }
+
+ public FileImportImpl define(String name) {
+ return new FileImportImpl(name, this.manager());
+ }
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/SecurityInsightsBuilder.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/SecurityInsightsBuilder.java
index d35970b7c328b..45c7c900b85b3 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/SecurityInsightsBuilder.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/SecurityInsightsBuilder.java
@@ -7,7 +7,6 @@
import com.azure.core.annotation.ServiceClientBuilder;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpPipelineBuilder;
-import com.azure.core.http.policy.CookiePolicy;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
import com.azure.core.management.AzureEnvironment;
@@ -67,34 +66,34 @@ public SecurityInsightsBuilder environment(AzureEnvironment environment) {
}
/*
- * The default poll interval for long-running operation
+ * The HTTP pipeline to send requests through
*/
- private Duration defaultPollInterval;
+ private HttpPipeline pipeline;
/**
- * Sets The default poll interval for long-running operation.
+ * Sets The HTTP pipeline to send requests through.
*
- * @param defaultPollInterval the defaultPollInterval value.
+ * @param pipeline the pipeline value.
* @return the SecurityInsightsBuilder.
*/
- public SecurityInsightsBuilder defaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval = defaultPollInterval;
+ public SecurityInsightsBuilder pipeline(HttpPipeline pipeline) {
+ this.pipeline = pipeline;
return this;
}
/*
- * The HTTP pipeline to send requests through
+ * The default poll interval for long-running operation
*/
- private HttpPipeline pipeline;
+ private Duration defaultPollInterval;
/**
- * Sets The HTTP pipeline to send requests through.
+ * Sets The default poll interval for long-running operation.
*
- * @param pipeline the pipeline value.
+ * @param defaultPollInterval the defaultPollInterval value.
* @return the SecurityInsightsBuilder.
*/
- public SecurityInsightsBuilder pipeline(HttpPipeline pipeline) {
- this.pipeline = pipeline;
+ public SecurityInsightsBuilder defaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = defaultPollInterval;
return this;
}
@@ -120,21 +119,21 @@ public SecurityInsightsBuilder serializerAdapter(SerializerAdapter serializerAda
* @return an instance of SecurityInsightsImpl.
*/
public SecurityInsightsImpl buildClient() {
+ if (pipeline == null) {
+ this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ }
if (endpoint == null) {
this.endpoint = "https://management.azure.com";
}
if (environment == null) {
this.environment = AzureEnvironment.AZURE;
}
+ if (pipeline == null) {
+ this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ }
if (defaultPollInterval == null) {
this.defaultPollInterval = Duration.ofSeconds(30);
}
- if (pipeline == null) {
- this.pipeline =
- new HttpPipelineBuilder()
- .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy())
- .build();
- }
if (serializerAdapter == null) {
this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter();
}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/SecurityInsightsImpl.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/SecurityInsightsImpl.java
index 261e4748510dc..31f3b1c4f332b 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/SecurityInsightsImpl.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/SecurityInsightsImpl.java
@@ -37,6 +37,7 @@
import com.azure.resourcemanager.securityinsights.fluent.EntityQueriesClient;
import com.azure.resourcemanager.securityinsights.fluent.EntityQueryTemplatesClient;
import com.azure.resourcemanager.securityinsights.fluent.EntityRelationsClient;
+import com.azure.resourcemanager.securityinsights.fluent.FileImportsClient;
import com.azure.resourcemanager.securityinsights.fluent.IncidentCommentsClient;
import com.azure.resourcemanager.securityinsights.fluent.IncidentRelationsClient;
import com.azure.resourcemanager.securityinsights.fluent.IncidentsClient;
@@ -46,6 +47,7 @@
import com.azure.resourcemanager.securityinsights.fluent.OperationsClient;
import com.azure.resourcemanager.securityinsights.fluent.ProductSettingsClient;
import com.azure.resourcemanager.securityinsights.fluent.SecurityInsights;
+import com.azure.resourcemanager.securityinsights.fluent.SecurityMLAnalyticsSettingsClient;
import com.azure.resourcemanager.securityinsights.fluent.SentinelOnboardingStatesClient;
import com.azure.resourcemanager.securityinsights.fluent.SourceControlsClient;
import com.azure.resourcemanager.securityinsights.fluent.SourceControlsOperationsClient;
@@ -331,6 +333,18 @@ public EntityQueryTemplatesClient getEntityQueryTemplates() {
return this.entityQueryTemplates;
}
+ /** The FileImportsClient object to access its operations. */
+ private final FileImportsClient fileImports;
+
+ /**
+ * Gets the FileImportsClient object to access its operations.
+ *
+ * @return the FileImportsClient object.
+ */
+ public FileImportsClient getFileImports() {
+ return this.fileImports;
+ }
+
/** The IncidentCommentsClient object to access its operations. */
private final IncidentCommentsClient incidentComments;
@@ -391,6 +405,18 @@ public SentinelOnboardingStatesClient getSentinelOnboardingStates() {
return this.sentinelOnboardingStates;
}
+ /** The SecurityMLAnalyticsSettingsClient object to access its operations. */
+ private final SecurityMLAnalyticsSettingsClient securityMLAnalyticsSettings;
+
+ /**
+ * Gets the SecurityMLAnalyticsSettingsClient object to access its operations.
+ *
+ * @return the SecurityMLAnalyticsSettingsClient object.
+ */
+ public SecurityMLAnalyticsSettingsClient getSecurityMLAnalyticsSettings() {
+ return this.securityMLAnalyticsSettings;
+ }
+
/** The ProductSettingsClient object to access its operations. */
private final ProductSettingsClient productSettings;
@@ -545,7 +571,7 @@ public OperationsClient getOperations() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2022-01-01-preview";
+ this.apiVersion = "2022-05-01-preview";
this.alertRules = new AlertRulesClientImpl(this);
this.actions = new ActionsClientImpl(this);
this.alertRuleTemplates = new AlertRuleTemplatesClientImpl(this);
@@ -562,11 +588,13 @@ public OperationsClient getOperations() {
this.entityRelations = new EntityRelationsClientImpl(this);
this.entityQueries = new EntityQueriesClientImpl(this);
this.entityQueryTemplates = new EntityQueryTemplatesClientImpl(this);
+ this.fileImports = new FileImportsClientImpl(this);
this.incidentComments = new IncidentCommentsClientImpl(this);
this.incidentRelations = new IncidentRelationsClientImpl(this);
this.metadatas = new MetadatasClientImpl(this);
this.officeConsents = new OfficeConsentsClientImpl(this);
this.sentinelOnboardingStates = new SentinelOnboardingStatesClientImpl(this);
+ this.securityMLAnalyticsSettings = new SecurityMLAnalyticsSettingsClientImpl(this);
this.productSettings = new ProductSettingsClientImpl(this);
this.sourceControls = new SourceControlsClientImpl(this);
this.sourceControlsOperations = new SourceControlsOperationsClientImpl(this);
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/SecurityMLAnalyticsSettingImpl.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/SecurityMLAnalyticsSettingImpl.java
new file mode 100644
index 0000000000000..57be54dbc3bfd
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/SecurityMLAnalyticsSettingImpl.java
@@ -0,0 +1,50 @@
+// 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.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.securityinsights.fluent.models.SecurityMLAnalyticsSettingInner;
+import com.azure.resourcemanager.securityinsights.models.SecurityMLAnalyticsSetting;
+
+public final class SecurityMLAnalyticsSettingImpl implements SecurityMLAnalyticsSetting {
+ private SecurityMLAnalyticsSettingInner innerObject;
+
+ private final com.azure.resourcemanager.securityinsights.SecurityInsightsManager serviceManager;
+
+ SecurityMLAnalyticsSettingImpl(
+ SecurityMLAnalyticsSettingInner innerObject,
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String etag() {
+ return this.innerModel().etag();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public SecurityMLAnalyticsSettingInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/SecurityMLAnalyticsSettingsClientImpl.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/SecurityMLAnalyticsSettingsClientImpl.java
new file mode 100644
index 0000000000000..148bb564a23ec
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/SecurityMLAnalyticsSettingsClientImpl.java
@@ -0,0 +1,928 @@
+// 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.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.securityinsights.fluent.SecurityMLAnalyticsSettingsClient;
+import com.azure.resourcemanager.securityinsights.fluent.models.SecurityMLAnalyticsSettingInner;
+import com.azure.resourcemanager.securityinsights.models.SecurityMLAnalyticsSettingsList;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in SecurityMLAnalyticsSettingsClient. */
+public final class SecurityMLAnalyticsSettingsClientImpl implements SecurityMLAnalyticsSettingsClient {
+ /** The proxy service used to perform REST calls. */
+ private final SecurityMLAnalyticsSettingsService service;
+
+ /** The service client containing this operation class. */
+ private final SecurityInsightsImpl client;
+
+ /**
+ * Initializes an instance of SecurityMLAnalyticsSettingsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ SecurityMLAnalyticsSettingsClientImpl(SecurityInsightsImpl client) {
+ this.service =
+ RestProxy
+ .create(
+ SecurityMLAnalyticsSettingsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for SecurityInsightsSecurityMLAnalyticsSettings to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "SecurityInsightsSecu")
+ private interface SecurityMLAnalyticsSettingsService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
+ + "/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/securityMLAnalyticsSettings")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("workspaceName") String workspaceName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
+ + "/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/securityMLAnalyticsSettings"
+ + "/{settingsResourceName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("workspaceName") String workspaceName,
+ @PathParam("settingsResourceName") String settingsResourceName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
+ + "/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/securityMLAnalyticsSettings"
+ + "/{settingsResourceName}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("workspaceName") String workspaceName,
+ @PathParam("settingsResourceName") String settingsResourceName,
+ @BodyParam("application/json") SecurityMLAnalyticsSettingInner securityMLAnalyticsSetting,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
+ + "/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/securityMLAnalyticsSettings"
+ + "/{settingsResourceName}")
+ @ExpectedResponses({200, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> delete(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("workspaceName") String workspaceName,
+ @PathParam("settingsResourceName") String settingsResourceName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Gets all Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all Security ML Analytics Settings along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String workspaceName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (workspaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets all Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all Security ML Analytics Settings along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String workspaceName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (workspaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Gets all Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all Security ML Analytics Settings as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String workspaceName) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, workspaceName), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Gets all Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all Security ML Analytics Settings as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(
+ String resourceGroupName, String workspaceName, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, workspaceName, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Gets all Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all Security ML Analytics Settings as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String workspaceName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, workspaceName));
+ }
+
+ /**
+ * Gets all Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all Security ML Analytics Settings as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(
+ String resourceGroupName, String workspaceName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, context));
+ }
+
+ /**
+ * Gets the Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param settingsResourceName Security ML Analytics Settings resource name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 Security ML Analytics Settings along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String workspaceName, String settingsResourceName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (workspaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
+ }
+ if (settingsResourceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter settingsResourceName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ settingsResourceName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets the Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param settingsResourceName Security ML Analytics Settings resource name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 Security ML Analytics Settings along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String workspaceName, String settingsResourceName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (workspaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
+ }
+ if (settingsResourceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter settingsResourceName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ settingsResourceName,
+ accept,
+ context);
+ }
+
+ /**
+ * Gets the Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param settingsResourceName Security ML Analytics Settings resource name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 Security ML Analytics Settings on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(
+ String resourceGroupName, String workspaceName, String settingsResourceName) {
+ return getWithResponseAsync(resourceGroupName, workspaceName, settingsResourceName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Gets the Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param settingsResourceName Security ML Analytics Settings resource name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 Security ML Analytics Settings.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SecurityMLAnalyticsSettingInner get(
+ String resourceGroupName, String workspaceName, String settingsResourceName) {
+ return getAsync(resourceGroupName, workspaceName, settingsResourceName).block();
+ }
+
+ /**
+ * Gets the Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param settingsResourceName Security ML Analytics Settings resource name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 Security ML Analytics Settings along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String resourceGroupName, String workspaceName, String settingsResourceName, Context context) {
+ return getWithResponseAsync(resourceGroupName, workspaceName, settingsResourceName, context).block();
+ }
+
+ /**
+ * Creates or updates the Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param settingsResourceName Security ML Analytics Settings resource name.
+ * @param securityMLAnalyticsSetting The security ML Analytics setting.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return security ML Analytics Setting along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String workspaceName,
+ String settingsResourceName,
+ SecurityMLAnalyticsSettingInner securityMLAnalyticsSetting) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (workspaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
+ }
+ if (settingsResourceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter settingsResourceName is required and cannot be null."));
+ }
+ if (securityMLAnalyticsSetting == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter securityMLAnalyticsSetting is required and cannot be null."));
+ } else {
+ securityMLAnalyticsSetting.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ settingsResourceName,
+ securityMLAnalyticsSetting,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Creates or updates the Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param settingsResourceName Security ML Analytics Settings resource name.
+ * @param securityMLAnalyticsSetting The security ML Analytics setting.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return security ML Analytics Setting along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String workspaceName,
+ String settingsResourceName,
+ SecurityMLAnalyticsSettingInner securityMLAnalyticsSetting,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (workspaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
+ }
+ if (settingsResourceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter settingsResourceName is required and cannot be null."));
+ }
+ if (securityMLAnalyticsSetting == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter securityMLAnalyticsSetting is required and cannot be null."));
+ } else {
+ securityMLAnalyticsSetting.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ settingsResourceName,
+ securityMLAnalyticsSetting,
+ accept,
+ context);
+ }
+
+ /**
+ * Creates or updates the Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param settingsResourceName Security ML Analytics Settings resource name.
+ * @param securityMLAnalyticsSetting The security ML Analytics setting.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return security ML Analytics Setting on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String workspaceName,
+ String settingsResourceName,
+ SecurityMLAnalyticsSettingInner securityMLAnalyticsSetting) {
+ return createOrUpdateWithResponseAsync(
+ resourceGroupName, workspaceName, settingsResourceName, securityMLAnalyticsSetting)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Creates or updates the Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param settingsResourceName Security ML Analytics Settings resource name.
+ * @param securityMLAnalyticsSetting The security ML Analytics setting.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return security ML Analytics Setting.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SecurityMLAnalyticsSettingInner createOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String settingsResourceName,
+ SecurityMLAnalyticsSettingInner securityMLAnalyticsSetting) {
+ return createOrUpdateAsync(resourceGroupName, workspaceName, settingsResourceName, securityMLAnalyticsSetting)
+ .block();
+ }
+
+ /**
+ * Creates or updates the Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param settingsResourceName Security ML Analytics Settings resource name.
+ * @param securityMLAnalyticsSetting The security ML Analytics setting.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return security ML Analytics Setting along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String settingsResourceName,
+ SecurityMLAnalyticsSettingInner securityMLAnalyticsSetting,
+ Context context) {
+ return createOrUpdateWithResponseAsync(
+ resourceGroupName, workspaceName, settingsResourceName, securityMLAnalyticsSetting, context)
+ .block();
+ }
+
+ /**
+ * Delete the Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param settingsResourceName Security ML Analytics Settings resource name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteWithResponseAsync(
+ String resourceGroupName, String workspaceName, String settingsResourceName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (workspaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
+ }
+ if (settingsResourceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter settingsResourceName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ settingsResourceName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete the Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param settingsResourceName Security ML Analytics Settings resource name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteWithResponseAsync(
+ String resourceGroupName, String workspaceName, String settingsResourceName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (workspaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
+ }
+ if (settingsResourceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter settingsResourceName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ workspaceName,
+ settingsResourceName,
+ accept,
+ context);
+ }
+
+ /**
+ * Delete the Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param settingsResourceName Security ML Analytics Settings resource name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String workspaceName, String settingsResourceName) {
+ return deleteWithResponseAsync(resourceGroupName, workspaceName, settingsResourceName)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Delete the Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param settingsResourceName Security ML Analytics Settings resource name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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)
+ public void delete(String resourceGroupName, String workspaceName, String settingsResourceName) {
+ deleteAsync(resourceGroupName, workspaceName, settingsResourceName).block();
+ }
+
+ /**
+ * Delete the Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param settingsResourceName Security ML Analytics Settings resource name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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)
+ public Response deleteWithResponse(
+ String resourceGroupName, String workspaceName, String settingsResourceName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, workspaceName, settingsResourceName, context).block();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list all the SecurityMLAnalyticsSettings along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list all the SecurityMLAnalyticsSettings along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(
+ String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/SecurityMLAnalyticsSettingsImpl.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/SecurityMLAnalyticsSettingsImpl.java
new file mode 100644
index 0000000000000..f0d4218f31a30
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/SecurityMLAnalyticsSettingsImpl.java
@@ -0,0 +1,123 @@
+// 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.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.securityinsights.fluent.SecurityMLAnalyticsSettingsClient;
+import com.azure.resourcemanager.securityinsights.fluent.models.SecurityMLAnalyticsSettingInner;
+import com.azure.resourcemanager.securityinsights.models.SecurityMLAnalyticsSetting;
+import com.azure.resourcemanager.securityinsights.models.SecurityMLAnalyticsSettings;
+
+public final class SecurityMLAnalyticsSettingsImpl implements SecurityMLAnalyticsSettings {
+ private static final ClientLogger LOGGER = new ClientLogger(SecurityMLAnalyticsSettingsImpl.class);
+
+ private final SecurityMLAnalyticsSettingsClient innerClient;
+
+ private final com.azure.resourcemanager.securityinsights.SecurityInsightsManager serviceManager;
+
+ public SecurityMLAnalyticsSettingsImpl(
+ SecurityMLAnalyticsSettingsClient innerClient,
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list(String resourceGroupName, String workspaceName) {
+ PagedIterable inner =
+ this.serviceClient().list(resourceGroupName, workspaceName);
+ return Utils.mapPage(inner, inner1 -> new SecurityMLAnalyticsSettingImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(
+ String resourceGroupName, String workspaceName, Context context) {
+ PagedIterable inner =
+ this.serviceClient().list(resourceGroupName, workspaceName, context);
+ return Utils.mapPage(inner, inner1 -> new SecurityMLAnalyticsSettingImpl(inner1, this.manager()));
+ }
+
+ public SecurityMLAnalyticsSetting get(String resourceGroupName, String workspaceName, String settingsResourceName) {
+ SecurityMLAnalyticsSettingInner inner =
+ this.serviceClient().get(resourceGroupName, workspaceName, settingsResourceName);
+ if (inner != null) {
+ return new SecurityMLAnalyticsSettingImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response getWithResponse(
+ String resourceGroupName, String workspaceName, String settingsResourceName, Context context) {
+ Response inner =
+ this.serviceClient().getWithResponse(resourceGroupName, workspaceName, settingsResourceName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new SecurityMLAnalyticsSettingImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public SecurityMLAnalyticsSetting createOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String settingsResourceName,
+ SecurityMLAnalyticsSettingInner securityMLAnalyticsSetting) {
+ SecurityMLAnalyticsSettingInner inner =
+ this
+ .serviceClient()
+ .createOrUpdate(resourceGroupName, workspaceName, settingsResourceName, securityMLAnalyticsSetting);
+ if (inner != null) {
+ return new SecurityMLAnalyticsSettingImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String settingsResourceName,
+ SecurityMLAnalyticsSettingInner securityMLAnalyticsSetting,
+ Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .createOrUpdateWithResponse(
+ resourceGroupName, workspaceName, settingsResourceName, securityMLAnalyticsSetting, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new SecurityMLAnalyticsSettingImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public void delete(String resourceGroupName, String workspaceName, String settingsResourceName) {
+ this.serviceClient().delete(resourceGroupName, workspaceName, settingsResourceName);
+ }
+
+ public Response deleteWithResponse(
+ String resourceGroupName, String workspaceName, String settingsResourceName, Context context) {
+ return this.serviceClient().deleteWithResponse(resourceGroupName, workspaceName, settingsResourceName, context);
+ }
+
+ private SecurityMLAnalyticsSettingsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/WatchlistImpl.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/WatchlistImpl.java
index bd245452626c4..077a857d33e25 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/WatchlistImpl.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/implementation/WatchlistImpl.java
@@ -7,7 +7,6 @@
import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.securityinsights.fluent.models.WatchlistInner;
-import com.azure.resourcemanager.securityinsights.models.ProvisioningState;
import com.azure.resourcemanager.securityinsights.models.SourceType;
import com.azure.resourcemanager.securityinsights.models.UserInfo;
import com.azure.resourcemanager.securityinsights.models.Watchlist;
@@ -118,10 +117,6 @@ public String rawContent() {
return this.innerModel().rawContent();
}
- public String sasUri() {
- return this.innerModel().sasUri();
- }
-
public String itemsSearchKey() {
return this.innerModel().itemsSearchKey();
}
@@ -134,10 +129,6 @@ public String uploadStatus() {
return this.innerModel().uploadStatus();
}
- public ProvisioningState provisioningState() {
- return this.innerModel().provisioningState();
- }
-
public WatchlistInner innerModel() {
return this.innerObject;
}
@@ -336,11 +327,6 @@ public WatchlistImpl withRawContent(String rawContent) {
return this;
}
- public WatchlistImpl withSasUri(String sasUri) {
- this.innerModel().withSasUri(sasUri);
- return this;
- }
-
public WatchlistImpl withItemsSearchKey(String itemsSearchKey) {
this.innerModel().withItemsSearchKey(itemsSearchKey);
return this;
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/AnomalySecurityMLAnalyticsSettings.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/AnomalySecurityMLAnalyticsSettings.java
new file mode 100644
index 0000000000000..3a67f21d0c143
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/AnomalySecurityMLAnalyticsSettings.java
@@ -0,0 +1,372 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.securityinsights.fluent.models.AnomalySecurityMLAnalyticsSettingsProperties;
+import com.azure.resourcemanager.securityinsights.fluent.models.SecurityMLAnalyticsSettingInner;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import java.time.Duration;
+import java.time.OffsetDateTime;
+import java.util.List;
+import java.util.UUID;
+
+/** Represents Anomaly Security ML Analytics Settings. */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind")
+@JsonTypeName("Anomaly")
+@Fluent
+public final class AnomalySecurityMLAnalyticsSettings extends SecurityMLAnalyticsSettingInner {
+ /*
+ * Anomaly Security ML Analytics Settings properties
+ */
+ @JsonProperty(value = "properties")
+ private AnomalySecurityMLAnalyticsSettingsProperties innerProperties;
+
+ /**
+ * Get the innerProperties property: Anomaly Security ML Analytics Settings properties.
+ *
+ * @return the innerProperties value.
+ */
+ private AnomalySecurityMLAnalyticsSettingsProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public AnomalySecurityMLAnalyticsSettings withEtag(String etag) {
+ super.withEtag(etag);
+ return this;
+ }
+
+ /**
+ * Get the description property: The description of the SecurityMLAnalyticsSettings.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.innerProperties() == null ? null : this.innerProperties().description();
+ }
+
+ /**
+ * Set the description property: The description of the SecurityMLAnalyticsSettings.
+ *
+ * @param description the description value to set.
+ * @return the AnomalySecurityMLAnalyticsSettings object itself.
+ */
+ public AnomalySecurityMLAnalyticsSettings withDescription(String description) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AnomalySecurityMLAnalyticsSettingsProperties();
+ }
+ this.innerProperties().withDescription(description);
+ return this;
+ }
+
+ /**
+ * Get the displayName property: The display name for settings created by this SecurityMLAnalyticsSettings.
+ *
+ * @return the displayName value.
+ */
+ public String displayName() {
+ return this.innerProperties() == null ? null : this.innerProperties().displayName();
+ }
+
+ /**
+ * Set the displayName property: The display name for settings created by this SecurityMLAnalyticsSettings.
+ *
+ * @param displayName the displayName value to set.
+ * @return the AnomalySecurityMLAnalyticsSettings object itself.
+ */
+ public AnomalySecurityMLAnalyticsSettings withDisplayName(String displayName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AnomalySecurityMLAnalyticsSettingsProperties();
+ }
+ this.innerProperties().withDisplayName(displayName);
+ return this;
+ }
+
+ /**
+ * Get the enabled property: Determines whether this settings is enabled or disabled.
+ *
+ * @return the enabled value.
+ */
+ public Boolean enabled() {
+ return this.innerProperties() == null ? null : this.innerProperties().enabled();
+ }
+
+ /**
+ * Set the enabled property: Determines whether this settings is enabled or disabled.
+ *
+ * @param enabled the enabled value to set.
+ * @return the AnomalySecurityMLAnalyticsSettings object itself.
+ */
+ public AnomalySecurityMLAnalyticsSettings withEnabled(Boolean enabled) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AnomalySecurityMLAnalyticsSettingsProperties();
+ }
+ this.innerProperties().withEnabled(enabled);
+ return this;
+ }
+
+ /**
+ * Get the lastModifiedUtc property: The last time that this SecurityMLAnalyticsSettings has been modified.
+ *
+ * @return the lastModifiedUtc value.
+ */
+ public OffsetDateTime lastModifiedUtc() {
+ return this.innerProperties() == null ? null : this.innerProperties().lastModifiedUtc();
+ }
+
+ /**
+ * Get the requiredDataConnectors property: The required data sources for this SecurityMLAnalyticsSettings.
+ *
+ * @return the requiredDataConnectors value.
+ */
+ public List requiredDataConnectors() {
+ return this.innerProperties() == null ? null : this.innerProperties().requiredDataConnectors();
+ }
+
+ /**
+ * Set the requiredDataConnectors property: The required data sources for this SecurityMLAnalyticsSettings.
+ *
+ * @param requiredDataConnectors the requiredDataConnectors value to set.
+ * @return the AnomalySecurityMLAnalyticsSettings object itself.
+ */
+ public AnomalySecurityMLAnalyticsSettings withRequiredDataConnectors(
+ List requiredDataConnectors) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AnomalySecurityMLAnalyticsSettingsProperties();
+ }
+ this.innerProperties().withRequiredDataConnectors(requiredDataConnectors);
+ return this;
+ }
+
+ /**
+ * Get the tactics property: The tactics of the SecurityMLAnalyticsSettings.
+ *
+ * @return the tactics value.
+ */
+ public List tactics() {
+ return this.innerProperties() == null ? null : this.innerProperties().tactics();
+ }
+
+ /**
+ * Set the tactics property: The tactics of the SecurityMLAnalyticsSettings.
+ *
+ * @param tactics the tactics value to set.
+ * @return the AnomalySecurityMLAnalyticsSettings object itself.
+ */
+ public AnomalySecurityMLAnalyticsSettings withTactics(List tactics) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AnomalySecurityMLAnalyticsSettingsProperties();
+ }
+ this.innerProperties().withTactics(tactics);
+ return this;
+ }
+
+ /**
+ * Get the techniques property: The techniques of the SecurityMLAnalyticsSettings.
+ *
+ * @return the techniques value.
+ */
+ public List techniques() {
+ return this.innerProperties() == null ? null : this.innerProperties().techniques();
+ }
+
+ /**
+ * Set the techniques property: The techniques of the SecurityMLAnalyticsSettings.
+ *
+ * @param techniques the techniques value to set.
+ * @return the AnomalySecurityMLAnalyticsSettings object itself.
+ */
+ public AnomalySecurityMLAnalyticsSettings withTechniques(List techniques) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AnomalySecurityMLAnalyticsSettingsProperties();
+ }
+ this.innerProperties().withTechniques(techniques);
+ return this;
+ }
+
+ /**
+ * Get the anomalyVersion property: The anomaly version of the AnomalySecurityMLAnalyticsSettings.
+ *
+ * @return the anomalyVersion value.
+ */
+ public String anomalyVersion() {
+ return this.innerProperties() == null ? null : this.innerProperties().anomalyVersion();
+ }
+
+ /**
+ * Set the anomalyVersion property: The anomaly version of the AnomalySecurityMLAnalyticsSettings.
+ *
+ * @param anomalyVersion the anomalyVersion value to set.
+ * @return the AnomalySecurityMLAnalyticsSettings object itself.
+ */
+ public AnomalySecurityMLAnalyticsSettings withAnomalyVersion(String anomalyVersion) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AnomalySecurityMLAnalyticsSettingsProperties();
+ }
+ this.innerProperties().withAnomalyVersion(anomalyVersion);
+ return this;
+ }
+
+ /**
+ * Get the customizableObservations property: The customizable observations of the
+ * AnomalySecurityMLAnalyticsSettings.
+ *
+ * @return the customizableObservations value.
+ */
+ public Object customizableObservations() {
+ return this.innerProperties() == null ? null : this.innerProperties().customizableObservations();
+ }
+
+ /**
+ * Set the customizableObservations property: The customizable observations of the
+ * AnomalySecurityMLAnalyticsSettings.
+ *
+ * @param customizableObservations the customizableObservations value to set.
+ * @return the AnomalySecurityMLAnalyticsSettings object itself.
+ */
+ public AnomalySecurityMLAnalyticsSettings withCustomizableObservations(Object customizableObservations) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AnomalySecurityMLAnalyticsSettingsProperties();
+ }
+ this.innerProperties().withCustomizableObservations(customizableObservations);
+ return this;
+ }
+
+ /**
+ * Get the frequency property: The frequency that this SecurityMLAnalyticsSettings will be run.
+ *
+ * @return the frequency value.
+ */
+ public Duration frequency() {
+ return this.innerProperties() == null ? null : this.innerProperties().frequency();
+ }
+
+ /**
+ * Set the frequency property: The frequency that this SecurityMLAnalyticsSettings will be run.
+ *
+ * @param frequency the frequency value to set.
+ * @return the AnomalySecurityMLAnalyticsSettings object itself.
+ */
+ public AnomalySecurityMLAnalyticsSettings withFrequency(Duration frequency) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AnomalySecurityMLAnalyticsSettingsProperties();
+ }
+ this.innerProperties().withFrequency(frequency);
+ return this;
+ }
+
+ /**
+ * Get the settingsStatus property: The anomaly SecurityMLAnalyticsSettings status.
+ *
+ * @return the settingsStatus value.
+ */
+ public SettingsStatus settingsStatus() {
+ return this.innerProperties() == null ? null : this.innerProperties().settingsStatus();
+ }
+
+ /**
+ * Set the settingsStatus property: The anomaly SecurityMLAnalyticsSettings status.
+ *
+ * @param settingsStatus the settingsStatus value to set.
+ * @return the AnomalySecurityMLAnalyticsSettings object itself.
+ */
+ public AnomalySecurityMLAnalyticsSettings withSettingsStatus(SettingsStatus settingsStatus) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AnomalySecurityMLAnalyticsSettingsProperties();
+ }
+ this.innerProperties().withSettingsStatus(settingsStatus);
+ return this;
+ }
+
+ /**
+ * Get the isDefaultSettings property: Determines whether this anomaly security ml analytics settings is a default
+ * settings.
+ *
+ * @return the isDefaultSettings value.
+ */
+ public Boolean isDefaultSettings() {
+ return this.innerProperties() == null ? null : this.innerProperties().isDefaultSettings();
+ }
+
+ /**
+ * Set the isDefaultSettings property: Determines whether this anomaly security ml analytics settings is a default
+ * settings.
+ *
+ * @param isDefaultSettings the isDefaultSettings value to set.
+ * @return the AnomalySecurityMLAnalyticsSettings object itself.
+ */
+ public AnomalySecurityMLAnalyticsSettings withIsDefaultSettings(Boolean isDefaultSettings) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AnomalySecurityMLAnalyticsSettingsProperties();
+ }
+ this.innerProperties().withIsDefaultSettings(isDefaultSettings);
+ return this;
+ }
+
+ /**
+ * Get the anomalySettingsVersion property: The anomaly settings version of the Anomaly security ml analytics
+ * settings that dictates whether job version gets updated or not.
+ *
+ * @return the anomalySettingsVersion value.
+ */
+ public Integer anomalySettingsVersion() {
+ return this.innerProperties() == null ? null : this.innerProperties().anomalySettingsVersion();
+ }
+
+ /**
+ * Set the anomalySettingsVersion property: The anomaly settings version of the Anomaly security ml analytics
+ * settings that dictates whether job version gets updated or not.
+ *
+ * @param anomalySettingsVersion the anomalySettingsVersion value to set.
+ * @return the AnomalySecurityMLAnalyticsSettings object itself.
+ */
+ public AnomalySecurityMLAnalyticsSettings withAnomalySettingsVersion(Integer anomalySettingsVersion) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AnomalySecurityMLAnalyticsSettingsProperties();
+ }
+ this.innerProperties().withAnomalySettingsVersion(anomalySettingsVersion);
+ return this;
+ }
+
+ /**
+ * Get the settingsDefinitionId property: The anomaly settings definition Id.
+ *
+ * @return the settingsDefinitionId value.
+ */
+ public UUID settingsDefinitionId() {
+ return this.innerProperties() == null ? null : this.innerProperties().settingsDefinitionId();
+ }
+
+ /**
+ * Set the settingsDefinitionId property: The anomaly settings definition Id.
+ *
+ * @param settingsDefinitionId the settingsDefinitionId value to set.
+ * @return the AnomalySecurityMLAnalyticsSettings object itself.
+ */
+ public AnomalySecurityMLAnalyticsSettings withSettingsDefinitionId(UUID settingsDefinitionId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AnomalySecurityMLAnalyticsSettingsProperties();
+ }
+ this.innerProperties().withSettingsDefinitionId(settingsDefinitionId);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/Constant74.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/Constant81.java
similarity index 64%
rename from sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/Constant74.java
rename to sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/Constant81.java
index 088f115f12622..8a9647eebd6af 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/Constant74.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/Constant81.java
@@ -7,28 +7,28 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
-/** Defines values for Constant74. */
-public enum Constant74 {
+/** Defines values for Constant81. */
+public enum Constant81 {
/** Enum value Activity. */
ACTIVITY("Activity");
- /** The actual serialized value for a Constant74 instance. */
+ /** The actual serialized value for a Constant81 instance. */
private final String value;
- Constant74(String value) {
+ Constant81(String value) {
this.value = value;
}
/**
- * Parses a serialized value to a Constant74 instance.
+ * Parses a serialized value to a Constant81 instance.
*
* @param value the serialized value to parse.
- * @return the parsed Constant74 object, or null if unable to parse.
+ * @return the parsed Constant81 object, or null if unable to parse.
*/
@JsonCreator
- public static Constant74 fromString(String value) {
- Constant74[] items = Constant74.values();
- for (Constant74 item : items) {
+ public static Constant81 fromString(String value) {
+ Constant81[] items = Constant81.values();
+ for (Constant81 item : items) {
if (item.toString().equalsIgnoreCase(value)) {
return item;
}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/DeleteStatus.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/DeleteStatus.java
new file mode 100644
index 0000000000000..6696833de422c
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/DeleteStatus.java
@@ -0,0 +1,37 @@
+// 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.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Defines values for DeleteStatus. */
+public final class DeleteStatus extends ExpandableStringEnum {
+ /** Static value Deleted for DeleteStatus. */
+ public static final DeleteStatus DELETED = fromString("Deleted");
+
+ /** Static value NotDeleted for DeleteStatus. */
+ public static final DeleteStatus NOT_DELETED = fromString("NotDeleted");
+
+ /** Static value Unspecified for DeleteStatus. */
+ public static final DeleteStatus UNSPECIFIED = fromString("Unspecified");
+
+ /**
+ * Creates or finds a DeleteStatus from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding DeleteStatus.
+ */
+ @JsonCreator
+ public static DeleteStatus fromString(String name) {
+ return fromString(name, DeleteStatus.class);
+ }
+
+ /** @return known DeleteStatus values. */
+ public static Collection values() {
+ return values(DeleteStatus.class);
+ }
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/EntityAnalytics.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/EntityAnalytics.java
index 8bb1c3f3934d8..7ebdadd6fc3c6 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/EntityAnalytics.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/EntityAnalytics.java
@@ -10,6 +10,7 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
+import java.util.List;
/** Settings with single toggle. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind")
@@ -39,12 +40,26 @@ public EntityAnalytics withEtag(String etag) {
}
/**
- * Get the isEnabled property: Determines whether the setting is enable or disabled.
+ * Get the entityProviders property: The relevant entity providers that are synced.
*
- * @return the isEnabled value.
+ * @return the entityProviders value.
*/
- public Boolean isEnabled() {
- return this.innerProperties() == null ? null : this.innerProperties().isEnabled();
+ public List entityProviders() {
+ return this.innerProperties() == null ? null : this.innerProperties().entityProviders();
+ }
+
+ /**
+ * Set the entityProviders property: The relevant entity providers that are synced.
+ *
+ * @param entityProviders the entityProviders value to set.
+ * @return the EntityAnalytics object itself.
+ */
+ public EntityAnalytics withEntityProviders(List entityProviders) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new EntityAnalyticsProperties();
+ }
+ this.innerProperties().withEntityProviders(entityProviders);
+ return this;
}
/**
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/EntityProviders.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/EntityProviders.java
new file mode 100644
index 0000000000000..711ea50db6e41
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/EntityProviders.java
@@ -0,0 +1,34 @@
+// 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.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Defines values for EntityProviders. */
+public final class EntityProviders extends ExpandableStringEnum {
+ /** Static value ActiveDirectory for EntityProviders. */
+ public static final EntityProviders ACTIVE_DIRECTORY = fromString("ActiveDirectory");
+
+ /** Static value AzureActiveDirectory for EntityProviders. */
+ public static final EntityProviders AZURE_ACTIVE_DIRECTORY = fromString("AzureActiveDirectory");
+
+ /**
+ * Creates or finds a EntityProviders from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding EntityProviders.
+ */
+ @JsonCreator
+ public static EntityProviders fromString(String name) {
+ return fromString(name, EntityProviders.class);
+ }
+
+ /** @return known EntityProviders values. */
+ public static Collection values() {
+ return values(EntityProviders.class);
+ }
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/EntityQueryTemplates.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/EntityQueryTemplates.java
index 16523bcf3e492..02814c85f9fd8 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/EntityQueryTemplates.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/EntityQueryTemplates.java
@@ -35,7 +35,7 @@ public interface EntityQueryTemplates {
* @return all entity query templates as paginated response with {@link PagedIterable}.
*/
PagedIterable list(
- String resourceGroupName, String workspaceName, Constant74 kind, Context context);
+ String resourceGroupName, String workspaceName, Constant81 kind, Context context);
/**
* Gets an entity query.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/FileFormat.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/FileFormat.java
new file mode 100644
index 0000000000000..d40854f99c74f
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/FileFormat.java
@@ -0,0 +1,37 @@
+// 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.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Defines values for FileFormat. */
+public final class FileFormat extends ExpandableStringEnum {
+ /** Static value CSV for FileFormat. */
+ public static final FileFormat CSV = fromString("CSV");
+
+ /** Static value JSON for FileFormat. */
+ public static final FileFormat JSON = fromString("JSON");
+
+ /** Static value Unspecified for FileFormat. */
+ public static final FileFormat UNSPECIFIED = fromString("Unspecified");
+
+ /**
+ * Creates or finds a FileFormat from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding FileFormat.
+ */
+ @JsonCreator
+ public static FileFormat fromString(String name) {
+ return fromString(name, FileFormat.class);
+ }
+
+ /** @return known FileFormat values. */
+ public static Collection values() {
+ return values(FileFormat.class);
+ }
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/FileImport.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/FileImport.java
new file mode 100644
index 0000000000000..eba802fc7782a
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/FileImport.java
@@ -0,0 +1,243 @@
+// 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.models;
+
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.securityinsights.fluent.models.FileImportInner;
+import java.time.OffsetDateTime;
+import java.util.List;
+
+/** An immutable client-side representation of FileImport. */
+public interface FileImport {
+ /**
+ * Gets the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * Gets the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * Gets the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ SystemData systemData();
+
+ /**
+ * Gets the ingestionMode property: Describes how to ingest the records in the file.
+ *
+ * @return the ingestionMode value.
+ */
+ IngestionMode ingestionMode();
+
+ /**
+ * Gets the contentType property: The content type of this file.
+ *
+ * @return the contentType value.
+ */
+ FileImportContentType contentType();
+
+ /**
+ * Gets the createdTimeUtc property: The time the file was imported.
+ *
+ * @return the createdTimeUtc value.
+ */
+ OffsetDateTime createdTimeUtc();
+
+ /**
+ * Gets the errorFile property: Represents the error file (if the import was ingested with errors or failed the
+ * validation).
+ *
+ * @return the errorFile value.
+ */
+ FileMetadata errorFile();
+
+ /**
+ * Gets the errorsPreview property: An ordered list of some of the errors that were encountered during validation.
+ *
+ * @return the errorsPreview value.
+ */
+ List errorsPreview();
+
+ /**
+ * Gets the importFile property: Represents the imported file.
+ *
+ * @return the importFile value.
+ */
+ FileMetadata importFile();
+
+ /**
+ * Gets the ingestedRecordCount property: The number of records that have been successfully ingested.
+ *
+ * @return the ingestedRecordCount value.
+ */
+ Integer ingestedRecordCount();
+
+ /**
+ * Gets the source property: The source for the data in the file.
+ *
+ * @return the source value.
+ */
+ String source();
+
+ /**
+ * Gets the state property: The state of the file import.
+ *
+ * @return the state value.
+ */
+ FileImportState state();
+
+ /**
+ * Gets the totalRecordCount property: The number of records in the file.
+ *
+ * @return the totalRecordCount value.
+ */
+ Integer totalRecordCount();
+
+ /**
+ * Gets the validRecordCount property: The number of records that have passed validation.
+ *
+ * @return the validRecordCount value.
+ */
+ Integer validRecordCount();
+
+ /**
+ * Gets the filesValidUntilTimeUtc property: The time the files associated with this import are deleted from the
+ * storage account.
+ *
+ * @return the filesValidUntilTimeUtc value.
+ */
+ OffsetDateTime filesValidUntilTimeUtc();
+
+ /**
+ * Gets the importValidUntilTimeUtc property: The time the file import record is soft deleted from the database and
+ * history.
+ *
+ * @return the importValidUntilTimeUtc value.
+ */
+ OffsetDateTime importValidUntilTimeUtc();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.securityinsights.fluent.models.FileImportInner object.
+ *
+ * @return the inner object.
+ */
+ FileImportInner innerModel();
+
+ /** The entirety of the FileImport definition. */
+ interface Definition
+ extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
+ }
+ /** The FileImport definition stages. */
+ interface DefinitionStages {
+ /** The first stage of the FileImport definition. */
+ interface Blank extends WithParentResource {
+ }
+ /** The stage of the FileImport definition allowing to specify parent resource. */
+ interface WithParentResource {
+ /**
+ * Specifies resourceGroupName, workspaceName.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @return the next definition stage.
+ */
+ WithCreate withExistingWorkspace(String resourceGroupName, String workspaceName);
+ }
+ /**
+ * The stage of the FileImport definition which contains all the minimum required properties for the resource to
+ * be created, but also allows for any other optional properties to be specified.
+ */
+ interface WithCreate
+ extends DefinitionStages.WithIngestionMode,
+ DefinitionStages.WithContentType,
+ DefinitionStages.WithImportFile,
+ DefinitionStages.WithSource {
+ /**
+ * Executes the create request.
+ *
+ * @return the created resource.
+ */
+ FileImport create();
+
+ /**
+ * Executes the create request.
+ *
+ * @param context The context to associate with this operation.
+ * @return the created resource.
+ */
+ FileImport create(Context context);
+ }
+ /** The stage of the FileImport definition allowing to specify ingestionMode. */
+ interface WithIngestionMode {
+ /**
+ * Specifies the ingestionMode property: Describes how to ingest the records in the file..
+ *
+ * @param ingestionMode Describes how to ingest the records in the file.
+ * @return the next definition stage.
+ */
+ WithCreate withIngestionMode(IngestionMode ingestionMode);
+ }
+ /** The stage of the FileImport definition allowing to specify contentType. */
+ interface WithContentType {
+ /**
+ * Specifies the contentType property: The content type of this file..
+ *
+ * @param contentType The content type of this file.
+ * @return the next definition stage.
+ */
+ WithCreate withContentType(FileImportContentType contentType);
+ }
+ /** The stage of the FileImport definition allowing to specify importFile. */
+ interface WithImportFile {
+ /**
+ * Specifies the importFile property: Represents the imported file..
+ *
+ * @param importFile Represents the imported file.
+ * @return the next definition stage.
+ */
+ WithCreate withImportFile(FileMetadata importFile);
+ }
+ /** The stage of the FileImport definition allowing to specify source. */
+ interface WithSource {
+ /**
+ * Specifies the source property: The source for the data in the file..
+ *
+ * @param source The source for the data in the file.
+ * @return the next definition stage.
+ */
+ WithCreate withSource(String source);
+ }
+ }
+ /**
+ * Refreshes the resource to sync with Azure.
+ *
+ * @return the refreshed resource.
+ */
+ FileImport refresh();
+
+ /**
+ * Refreshes the resource to sync with Azure.
+ *
+ * @param context The context to associate with this operation.
+ * @return the refreshed resource.
+ */
+ FileImport refresh(Context context);
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/FileImportContentType.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/FileImportContentType.java
new file mode 100644
index 0000000000000..97b1dbc7adf39
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/FileImportContentType.java
@@ -0,0 +1,37 @@
+// 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.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Defines values for FileImportContentType. */
+public final class FileImportContentType extends ExpandableStringEnum {
+ /** Static value BasicIndicator for FileImportContentType. */
+ public static final FileImportContentType BASIC_INDICATOR = fromString("BasicIndicator");
+
+ /** Static value StixIndicator for FileImportContentType. */
+ public static final FileImportContentType STIX_INDICATOR = fromString("StixIndicator");
+
+ /** Static value Unspecified for FileImportContentType. */
+ public static final FileImportContentType UNSPECIFIED = fromString("Unspecified");
+
+ /**
+ * Creates or finds a FileImportContentType from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding FileImportContentType.
+ */
+ @JsonCreator
+ public static FileImportContentType fromString(String name) {
+ return fromString(name, FileImportContentType.class);
+ }
+
+ /** @return known FileImportContentType values. */
+ public static Collection values() {
+ return values(FileImportContentType.class);
+ }
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/FileImportList.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/FileImportList.java
new file mode 100644
index 0000000000000..5037750b29573
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/FileImportList.java
@@ -0,0 +1,73 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.securityinsights.fluent.models.FileImportInner;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** List all the file imports. */
+@Fluent
+public final class FileImportList {
+ /*
+ * URL to fetch the next set of file imports.
+ */
+ @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY)
+ private String nextLink;
+
+ /*
+ * Array of file imports.
+ */
+ @JsonProperty(value = "value", required = true)
+ private List value;
+
+ /**
+ * Get the nextLink property: URL to fetch the next set of file imports.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Get the value property: Array of file imports.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: Array of file imports.
+ *
+ * @param value the value value to set.
+ * @return the FileImportList object itself.
+ */
+ public FileImportList withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property value in model FileImportList"));
+ } else {
+ value().forEach(e -> e.validate());
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(FileImportList.class);
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/FileImportState.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/FileImportState.java
new file mode 100644
index 0000000000000..28a43b9c47c99
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/FileImportState.java
@@ -0,0 +1,49 @@
+// 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.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Defines values for FileImportState. */
+public final class FileImportState extends ExpandableStringEnum {
+ /** Static value FatalError for FileImportState. */
+ public static final FileImportState FATAL_ERROR = fromString("FatalError");
+
+ /** Static value Ingested for FileImportState. */
+ public static final FileImportState INGESTED = fromString("Ingested");
+
+ /** Static value IngestedWithErrors for FileImportState. */
+ public static final FileImportState INGESTED_WITH_ERRORS = fromString("IngestedWithErrors");
+
+ /** Static value InProgress for FileImportState. */
+ public static final FileImportState IN_PROGRESS = fromString("InProgress");
+
+ /** Static value Invalid for FileImportState. */
+ public static final FileImportState INVALID = fromString("Invalid");
+
+ /** Static value WaitingForUpload for FileImportState. */
+ public static final FileImportState WAITING_FOR_UPLOAD = fromString("WaitingForUpload");
+
+ /** Static value Unspecified for FileImportState. */
+ public static final FileImportState UNSPECIFIED = fromString("Unspecified");
+
+ /**
+ * Creates or finds a FileImportState from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding FileImportState.
+ */
+ @JsonCreator
+ public static FileImportState fromString(String name) {
+ return fromString(name, FileImportState.class);
+ }
+
+ /** @return known FileImportState values. */
+ public static Collection values() {
+ return values(FileImportState.class);
+ }
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/FileImports.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/FileImports.java
new file mode 100644
index 0000000000000..155eb03540ec0
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/FileImports.java
@@ -0,0 +1,159 @@
+// 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.models;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+
+/** Resource collection API of FileImports. */
+public interface FileImports {
+ /**
+ * Gets all file imports.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all file imports as paginated response with {@link PagedIterable}.
+ */
+ PagedIterable list(String resourceGroupName, String workspaceName);
+
+ /**
+ * Gets all file imports.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param filter Filters the results, based on a Boolean condition. Optional.
+ * @param orderby Sorts the results. Optional.
+ * @param top Returns only the first n results. Optional.
+ * @param skipToken Skiptoken is only used if a previous operation returned a partial result. If a previous response
+ * contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that
+ * specifies a starting point to use for subsequent calls. Optional.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all file imports as paginated response with {@link PagedIterable}.
+ */
+ PagedIterable list(
+ String resourceGroupName,
+ String workspaceName,
+ String filter,
+ String orderby,
+ Integer top,
+ String skipToken,
+ Context context);
+
+ /**
+ * Gets a file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import 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 a file import.
+ */
+ FileImport get(String resourceGroupName, String workspaceName, String fileImportId);
+
+ /**
+ * Gets a file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import 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 a file import along with {@link Response}.
+ */
+ Response getWithResponse(
+ String resourceGroupName, String workspaceName, String fileImportId, Context context);
+
+ /**
+ * Delete the file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import 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 response.
+ */
+ FileImport delete(String resourceGroupName, String workspaceName, String fileImportId);
+
+ /**
+ * Delete the file import.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param fileImportId File import 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 response.
+ */
+ FileImport delete(String resourceGroupName, String workspaceName, String fileImportId, Context context);
+
+ /**
+ * Gets a file import.
+ *
+ * @param id the resource 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 a file import along with {@link Response}.
+ */
+ FileImport getById(String id);
+
+ /**
+ * Gets a file import.
+ *
+ * @param id the resource 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 a file import along with {@link Response}.
+ */
+ Response getByIdWithResponse(String id, Context context);
+
+ /**
+ * Delete the file import.
+ *
+ * @param id the resource 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 response.
+ */
+ FileImport deleteById(String id);
+
+ /**
+ * Delete the file import.
+ *
+ * @param id the resource 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 response.
+ */
+ FileImport deleteByIdWithResponse(String id, Context context);
+
+ /**
+ * Begins definition for a new FileImport resource.
+ *
+ * @param name resource name.
+ * @return the first stage of the new FileImport definition.
+ */
+ FileImport.DefinitionStages.Blank define(String name);
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/FileMetadata.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/FileMetadata.java
new file mode 100644
index 0000000000000..39027c4f608c9
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/FileMetadata.java
@@ -0,0 +1,128 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Represents a file. */
+@Fluent
+public final class FileMetadata {
+ /*
+ * The format of the file
+ */
+ @JsonProperty(value = "fileFormat")
+ private FileFormat fileFormat;
+
+ /*
+ * The name of the file.
+ */
+ @JsonProperty(value = "fileName")
+ private String fileName;
+
+ /*
+ * The size of the file.
+ */
+ @JsonProperty(value = "fileSize")
+ private Integer fileSize;
+
+ /*
+ * A URI with a valid SAS token to allow uploading / downloading the file.
+ */
+ @JsonProperty(value = "fileContentUri", access = JsonProperty.Access.WRITE_ONLY)
+ private String fileContentUri;
+
+ /*
+ * Indicates whether the file was deleted from the storage account.
+ */
+ @JsonProperty(value = "deleteStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private DeleteStatus deleteStatus;
+
+ /**
+ * Get the fileFormat property: The format of the file.
+ *
+ * @return the fileFormat value.
+ */
+ public FileFormat fileFormat() {
+ return this.fileFormat;
+ }
+
+ /**
+ * Set the fileFormat property: The format of the file.
+ *
+ * @param fileFormat the fileFormat value to set.
+ * @return the FileMetadata object itself.
+ */
+ public FileMetadata withFileFormat(FileFormat fileFormat) {
+ this.fileFormat = fileFormat;
+ return this;
+ }
+
+ /**
+ * Get the fileName property: The name of the file.
+ *
+ * @return the fileName value.
+ */
+ public String fileName() {
+ return this.fileName;
+ }
+
+ /**
+ * Set the fileName property: The name of the file.
+ *
+ * @param fileName the fileName value to set.
+ * @return the FileMetadata object itself.
+ */
+ public FileMetadata withFileName(String fileName) {
+ this.fileName = fileName;
+ return this;
+ }
+
+ /**
+ * Get the fileSize property: The size of the file.
+ *
+ * @return the fileSize value.
+ */
+ public Integer fileSize() {
+ return this.fileSize;
+ }
+
+ /**
+ * Set the fileSize property: The size of the file.
+ *
+ * @param fileSize the fileSize value to set.
+ * @return the FileMetadata object itself.
+ */
+ public FileMetadata withFileSize(Integer fileSize) {
+ this.fileSize = fileSize;
+ return this;
+ }
+
+ /**
+ * Get the fileContentUri property: A URI with a valid SAS token to allow uploading / downloading the file.
+ *
+ * @return the fileContentUri value.
+ */
+ public String fileContentUri() {
+ return this.fileContentUri;
+ }
+
+ /**
+ * Get the deleteStatus property: Indicates whether the file was deleted from the storage account.
+ *
+ * @return the deleteStatus value.
+ */
+ public DeleteStatus deleteStatus() {
+ return this.deleteStatus;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/IncidentOwnerInfo.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/IncidentOwnerInfo.java
index ce00702657dfa..dee86cc228605 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/IncidentOwnerInfo.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/IncidentOwnerInfo.java
@@ -38,7 +38,7 @@ public final class IncidentOwnerInfo {
/*
* The type of the owner the incident is assigned to.
*/
- @JsonProperty(value = "ownerType", access = JsonProperty.Access.WRITE_ONLY)
+ @JsonProperty(value = "ownerType")
private OwnerType ownerType;
/**
@@ -130,6 +130,17 @@ public OwnerType ownerType() {
return this.ownerType;
}
+ /**
+ * Set the ownerType property: The type of the owner the incident is assigned to.
+ *
+ * @param ownerType the ownerType value to set.
+ * @return the IncidentOwnerInfo object itself.
+ */
+ public IncidentOwnerInfo withOwnerType(OwnerType ownerType) {
+ this.ownerType = ownerType;
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/IngestionMode.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/IngestionMode.java
new file mode 100644
index 0000000000000..e9b81f126184d
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/IngestionMode.java
@@ -0,0 +1,37 @@
+// 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.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Defines values for IngestionMode. */
+public final class IngestionMode extends ExpandableStringEnum {
+ /** Static value IngestOnlyIfAllAreValid for IngestionMode. */
+ public static final IngestionMode INGEST_ONLY_IF_ALL_ARE_VALID = fromString("IngestOnlyIfAllAreValid");
+
+ /** Static value IngestAnyValidRecords for IngestionMode. */
+ public static final IngestionMode INGEST_ANY_VALID_RECORDS = fromString("IngestAnyValidRecords");
+
+ /** Static value Unspecified for IngestionMode. */
+ public static final IngestionMode UNSPECIFIED = fromString("Unspecified");
+
+ /**
+ * Creates or finds a IngestionMode from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding IngestionMode.
+ */
+ @JsonCreator
+ public static IngestionMode fromString(String name) {
+ return fromString(name, IngestionMode.class);
+ }
+
+ /** @return known IngestionMode values. */
+ public static Collection values() {
+ return values(IngestionMode.class);
+ }
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/ProvisioningState.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/ProvisioningState.java
deleted file mode 100644
index 00d51e590dbff..0000000000000
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/ProvisioningState.java
+++ /dev/null
@@ -1,40 +0,0 @@
-// 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.models;
-
-import com.azure.core.util.ExpandableStringEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import java.util.Collection;
-
-/** Defines values for ProvisioningState. */
-public final class ProvisioningState extends ExpandableStringEnum {
- /** Static value Succeeded for ProvisioningState. */
- public static final ProvisioningState SUCCEEDED = fromString("Succeeded");
-
- /** Static value Failed for ProvisioningState. */
- public static final ProvisioningState FAILED = fromString("Failed");
-
- /** Static value Canceled for ProvisioningState. */
- public static final ProvisioningState CANCELED = fromString("Canceled");
-
- /** Static value InProgress for ProvisioningState. */
- public static final ProvisioningState IN_PROGRESS = fromString("InProgress");
-
- /**
- * Creates or finds a ProvisioningState from its string representation.
- *
- * @param name a name to look for.
- * @return the corresponding ProvisioningState.
- */
- @JsonCreator
- public static ProvisioningState fromString(String name) {
- return fromString(name, ProvisioningState.class);
- }
-
- /** @return known ProvisioningState values. */
- public static Collection values() {
- return values(ProvisioningState.class);
- }
-}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/SecurityMLAnalyticsSetting.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/SecurityMLAnalyticsSetting.java
new file mode 100644
index 0000000000000..e1b83148eb667
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/SecurityMLAnalyticsSetting.java
@@ -0,0 +1,53 @@
+// 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.models;
+
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.securityinsights.fluent.models.SecurityMLAnalyticsSettingInner;
+
+/** An immutable client-side representation of SecurityMLAnalyticsSetting. */
+public interface SecurityMLAnalyticsSetting {
+ /**
+ * Gets the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * Gets the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * Gets the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * Gets the etag property: Etag of the azure resource.
+ *
+ * @return the etag value.
+ */
+ String etag();
+
+ /**
+ * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ SystemData systemData();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.securityinsights.fluent.models.SecurityMLAnalyticsSettingInner object.
+ *
+ * @return the inner object.
+ */
+ SecurityMLAnalyticsSettingInner innerModel();
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/SecurityMLAnalyticsSettings.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/SecurityMLAnalyticsSettings.java
new file mode 100644
index 0000000000000..eb9b7a727ef69
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/SecurityMLAnalyticsSettings.java
@@ -0,0 +1,131 @@
+// 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.models;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.securityinsights.fluent.models.SecurityMLAnalyticsSettingInner;
+
+/** Resource collection API of SecurityMLAnalyticsSettings. */
+public interface SecurityMLAnalyticsSettings {
+ /**
+ * Gets all Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all Security ML Analytics Settings as paginated response with {@link PagedIterable}.
+ */
+ PagedIterable list(String resourceGroupName, String workspaceName);
+
+ /**
+ * Gets all Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all Security ML Analytics Settings as paginated response with {@link PagedIterable}.
+ */
+ PagedIterable list(String resourceGroupName, String workspaceName, Context context);
+
+ /**
+ * Gets the Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param settingsResourceName Security ML Analytics Settings resource name.
+ * @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 Security ML Analytics Settings.
+ */
+ SecurityMLAnalyticsSetting get(String resourceGroupName, String workspaceName, String settingsResourceName);
+
+ /**
+ * Gets the Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param settingsResourceName Security ML Analytics Settings resource name.
+ * @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 Security ML Analytics Settings along with {@link Response}.
+ */
+ Response getWithResponse(
+ String resourceGroupName, String workspaceName, String settingsResourceName, Context context);
+
+ /**
+ * Creates or updates the Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param settingsResourceName Security ML Analytics Settings resource name.
+ * @param securityMLAnalyticsSetting The security ML Analytics setting.
+ * @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 security ML Analytics Setting.
+ */
+ SecurityMLAnalyticsSetting createOrUpdate(
+ String resourceGroupName,
+ String workspaceName,
+ String settingsResourceName,
+ SecurityMLAnalyticsSettingInner securityMLAnalyticsSetting);
+
+ /**
+ * Creates or updates the Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param settingsResourceName Security ML Analytics Settings resource name.
+ * @param securityMLAnalyticsSetting The security ML Analytics setting.
+ * @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 security ML Analytics Setting along with {@link Response}.
+ */
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String settingsResourceName,
+ SecurityMLAnalyticsSettingInner securityMLAnalyticsSetting,
+ Context context);
+
+ /**
+ * Delete the Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param settingsResourceName Security ML Analytics Settings resource name.
+ * @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.
+ */
+ void delete(String resourceGroupName, String workspaceName, String settingsResourceName);
+
+ /**
+ * Delete the Security ML Analytics Settings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param settingsResourceName Security ML Analytics Settings resource name.
+ * @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}.
+ */
+ Response deleteWithResponse(
+ String resourceGroupName, String workspaceName, String settingsResourceName, Context context);
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/SecurityMLAnalyticsSettingsDataSource.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/SecurityMLAnalyticsSettingsDataSource.java
new file mode 100644
index 0000000000000..25eeab69e8b98
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/SecurityMLAnalyticsSettingsDataSource.java
@@ -0,0 +1,73 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** security ml analytics settings data sources. */
+@Fluent
+public final class SecurityMLAnalyticsSettingsDataSource {
+ /*
+ * The connector id that provides the following data types
+ */
+ @JsonProperty(value = "connectorId")
+ private String connectorId;
+
+ /*
+ * The data types used by the security ml analytics settings
+ */
+ @JsonProperty(value = "dataTypes")
+ private List dataTypes;
+
+ /**
+ * Get the connectorId property: The connector id that provides the following data types.
+ *
+ * @return the connectorId value.
+ */
+ public String connectorId() {
+ return this.connectorId;
+ }
+
+ /**
+ * Set the connectorId property: The connector id that provides the following data types.
+ *
+ * @param connectorId the connectorId value to set.
+ * @return the SecurityMLAnalyticsSettingsDataSource object itself.
+ */
+ public SecurityMLAnalyticsSettingsDataSource withConnectorId(String connectorId) {
+ this.connectorId = connectorId;
+ return this;
+ }
+
+ /**
+ * Get the dataTypes property: The data types used by the security ml analytics settings.
+ *
+ * @return the dataTypes value.
+ */
+ public List dataTypes() {
+ return this.dataTypes;
+ }
+
+ /**
+ * Set the dataTypes property: The data types used by the security ml analytics settings.
+ *
+ * @param dataTypes the dataTypes value to set.
+ * @return the SecurityMLAnalyticsSettingsDataSource object itself.
+ */
+ public SecurityMLAnalyticsSettingsDataSource withDataTypes(List dataTypes) {
+ this.dataTypes = dataTypes;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/SecurityMLAnalyticsSettingsKind.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/SecurityMLAnalyticsSettingsKind.java
new file mode 100644
index 0000000000000..e679f343236a9
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/SecurityMLAnalyticsSettingsKind.java
@@ -0,0 +1,31 @@
+// 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.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Defines values for SecurityMLAnalyticsSettingsKind. */
+public final class SecurityMLAnalyticsSettingsKind extends ExpandableStringEnum {
+ /** Static value Anomaly for SecurityMLAnalyticsSettingsKind. */
+ public static final SecurityMLAnalyticsSettingsKind ANOMALY = fromString("Anomaly");
+
+ /**
+ * Creates or finds a SecurityMLAnalyticsSettingsKind from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding SecurityMLAnalyticsSettingsKind.
+ */
+ @JsonCreator
+ public static SecurityMLAnalyticsSettingsKind fromString(String name) {
+ return fromString(name, SecurityMLAnalyticsSettingsKind.class);
+ }
+
+ /** @return known SecurityMLAnalyticsSettingsKind values. */
+ public static Collection values() {
+ return values(SecurityMLAnalyticsSettingsKind.class);
+ }
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/SecurityMLAnalyticsSettingsList.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/SecurityMLAnalyticsSettingsList.java
new file mode 100644
index 0000000000000..8b72b6ba1ce9d
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/SecurityMLAnalyticsSettingsList.java
@@ -0,0 +1,74 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.securityinsights.fluent.models.SecurityMLAnalyticsSettingInner;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** List all the SecurityMLAnalyticsSettings. */
+@Fluent
+public final class SecurityMLAnalyticsSettingsList {
+ /*
+ * URL to fetch the next set of SecurityMLAnalyticsSettings.
+ */
+ @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY)
+ private String nextLink;
+
+ /*
+ * Array of SecurityMLAnalyticsSettings
+ */
+ @JsonProperty(value = "value", required = true)
+ private List value;
+
+ /**
+ * Get the nextLink property: URL to fetch the next set of SecurityMLAnalyticsSettings.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Get the value property: Array of SecurityMLAnalyticsSettings.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: Array of SecurityMLAnalyticsSettings.
+ *
+ * @param value the value value to set.
+ * @return the SecurityMLAnalyticsSettingsList object itself.
+ */
+ public SecurityMLAnalyticsSettingsList withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property value in model SecurityMLAnalyticsSettingsList"));
+ } else {
+ value().forEach(e -> e.validate());
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(SecurityMLAnalyticsSettingsList.class);
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/SettingsStatus.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/SettingsStatus.java
new file mode 100644
index 0000000000000..c8d91c4391d88
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/SettingsStatus.java
@@ -0,0 +1,34 @@
+// 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.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Defines values for SettingsStatus. */
+public final class SettingsStatus extends ExpandableStringEnum {
+ /** Static value Production for SettingsStatus. */
+ public static final SettingsStatus PRODUCTION = fromString("Production");
+
+ /** Static value Flighting for SettingsStatus. */
+ public static final SettingsStatus FLIGHTING = fromString("Flighting");
+
+ /**
+ * Creates or finds a SettingsStatus from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding SettingsStatus.
+ */
+ @JsonCreator
+ public static SettingsStatus fromString(String name) {
+ return fromString(name, SettingsStatus.class);
+ }
+
+ /** @return known SettingsStatus values. */
+ public static Collection values() {
+ return values(SettingsStatus.class);
+ }
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/ValidationError.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/ValidationError.java
new file mode 100644
index 0000000000000..7b74ced2e0681
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/ValidationError.java
@@ -0,0 +1,62 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Describes an error encountered in the file during validation. */
+@Fluent
+public final class ValidationError {
+ /*
+ * The number of the record that has the error.
+ */
+ @JsonProperty(value = "recordIndex")
+ private Integer recordIndex;
+
+ /*
+ * A list of descriptions of the error.
+ */
+ @JsonProperty(value = "errorMessages", access = JsonProperty.Access.WRITE_ONLY)
+ private List errorMessages;
+
+ /**
+ * Get the recordIndex property: The number of the record that has the error.
+ *
+ * @return the recordIndex value.
+ */
+ public Integer recordIndex() {
+ return this.recordIndex;
+ }
+
+ /**
+ * Set the recordIndex property: The number of the record that has the error.
+ *
+ * @param recordIndex the recordIndex value to set.
+ * @return the ValidationError object itself.
+ */
+ public ValidationError withRecordIndex(Integer recordIndex) {
+ this.recordIndex = recordIndex;
+ return this;
+ }
+
+ /**
+ * Get the errorMessages property: A list of descriptions of the error.
+ *
+ * @return the errorMessages value.
+ */
+ public List errorMessages() {
+ return this.errorMessages;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/Watchlist.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/Watchlist.java
index d7964c1fc4dea..1550c5a3ae040 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/Watchlist.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/models/Watchlist.java
@@ -175,14 +175,6 @@ public interface Watchlist {
*/
String rawContent();
- /**
- * Gets the sasUri property: The Shared Access Signature (SAS) URI under which the large csv watchlist file is
- * located and from which the watchlist and its items will be created.
- *
- * @return the sasUri value.
- */
- String sasUri();
-
/**
* Gets the itemsSearchKey property: The search key is used to optimize query performance when using watchlists for
* joins with other data. For example, enable a column with IP addresses to be the designated SearchKey field, then
@@ -207,13 +199,6 @@ public interface Watchlist {
*/
String uploadStatus();
- /**
- * Gets the provisioningState property: The provisioning state of the watchlist resource.
- *
- * @return the provisioningState value.
- */
- ProvisioningState provisioningState();
-
/**
* Gets the inner com.azure.resourcemanager.securityinsights.fluent.models.WatchlistInner object.
*
@@ -265,7 +250,6 @@ interface WithCreate
DefinitionStages.WithTenantId,
DefinitionStages.WithNumberOfLinesToSkip,
DefinitionStages.WithRawContent,
- DefinitionStages.WithSasUri,
DefinitionStages.WithItemsSearchKey,
DefinitionStages.WithContentType,
DefinitionStages.WithUploadStatus {
@@ -478,18 +462,6 @@ interface WithRawContent {
*/
WithCreate withRawContent(String rawContent);
}
- /** The stage of the Watchlist definition allowing to specify sasUri. */
- interface WithSasUri {
- /**
- * Specifies the sasUri property: The Shared Access Signature (SAS) URI under which the large csv watchlist
- * file is located and from which the watchlist and its items will be created.
- *
- * @param sasUri The Shared Access Signature (SAS) URI under which the large csv watchlist file is located
- * and from which the watchlist and its items will be created.
- * @return the next definition stage.
- */
- WithCreate withSasUri(String sasUri);
- }
/** The stage of the Watchlist definition allowing to specify itemsSearchKey. */
interface WithItemsSearchKey {
/**
@@ -555,7 +527,6 @@ interface Update
UpdateStages.WithTenantId,
UpdateStages.WithNumberOfLinesToSkip,
UpdateStages.WithRawContent,
- UpdateStages.WithSasUri,
UpdateStages.WithItemsSearchKey,
UpdateStages.WithContentType,
UpdateStages.WithUploadStatus {
@@ -770,18 +741,6 @@ interface WithRawContent {
*/
Update withRawContent(String rawContent);
}
- /** The stage of the Watchlist update allowing to specify sasUri. */
- interface WithSasUri {
- /**
- * Specifies the sasUri property: The Shared Access Signature (SAS) URI under which the large csv watchlist
- * file is located and from which the watchlist and its items will be created.
- *
- * @param sasUri The Shared Access Signature (SAS) URI under which the large csv watchlist file is located
- * and from which the watchlist and its items will be created.
- * @return the next definition stage.
- */
- Update withSasUri(String sasUri);
- }
/** The stage of the Watchlist update allowing to specify itemsSearchKey. */
interface WithItemsSearchKey {
/**
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ActionsCreateOrUpdateSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ActionsCreateOrUpdateSamples.java
index 9b3b6f9b94a03..524963584e1fa 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ActionsCreateOrUpdateSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ActionsCreateOrUpdateSamples.java
@@ -7,7 +7,7 @@
/** Samples for Actions CreateOrUpdate. */
public final class ActionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/actions/CreateActionOfAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/actions/CreateActionOfAlertRule.json
*/
/**
* Sample code: Creates or updates an action of alert rule.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ActionsDeleteSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ActionsDeleteSamples.java
index 664e59d5f56e2..0d3730f2b147c 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ActionsDeleteSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ActionsDeleteSamples.java
@@ -9,7 +9,7 @@
/** Samples for Actions Delete. */
public final class ActionsDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/actions/DeleteActionOfAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/actions/DeleteActionOfAlertRule.json
*/
/**
* Sample code: Delete an action of alert rule.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ActionsGetSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ActionsGetSamples.java
index aee547a158eb8..c0d351b950444 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ActionsGetSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ActionsGetSamples.java
@@ -9,7 +9,7 @@
/** Samples for Actions Get. */
public final class ActionsGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/actions/GetActionOfAlertRuleById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/actions/GetActionOfAlertRuleById.json
*/
/**
* Sample code: Get an action of alert rule.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ActionsListByAlertRuleSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ActionsListByAlertRuleSamples.java
index 5e7312fe95eed..c67f59a653126 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ActionsListByAlertRuleSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ActionsListByAlertRuleSamples.java
@@ -9,7 +9,7 @@
/** Samples for Actions ListByAlertRule. */
public final class ActionsListByAlertRuleSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/actions/GetAllActionsByAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/actions/GetAllActionsByAlertRule.json
*/
/**
* Sample code: Get all actions of alert rule.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AlertRuleTemplatesGetSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AlertRuleTemplatesGetSamples.java
index 7333e5c10f4a6..072662e9ce2f4 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AlertRuleTemplatesGetSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AlertRuleTemplatesGetSamples.java
@@ -9,7 +9,7 @@
/** Samples for AlertRuleTemplates Get. */
public final class AlertRuleTemplatesGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/alertRuleTemplates/GetAlertRuleTemplateById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/alertRuleTemplates/GetAlertRuleTemplateById.json
*/
/**
* Sample code: Get alert rule template by Id.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AlertRuleTemplatesListSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AlertRuleTemplatesListSamples.java
index 8e2e50df2bf90..04dfd774b5f84 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AlertRuleTemplatesListSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AlertRuleTemplatesListSamples.java
@@ -9,7 +9,7 @@
/** Samples for AlertRuleTemplates List. */
public final class AlertRuleTemplatesListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/alertRuleTemplates/GetAlertRuleTemplates.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/alertRuleTemplates/GetAlertRuleTemplates.json
*/
/**
* Sample code: Get all alert rule templates.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AlertRulesCreateOrUpdateSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AlertRulesCreateOrUpdateSamples.java
index ad16daa915d4a..d69fb4690971a 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AlertRulesCreateOrUpdateSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AlertRulesCreateOrUpdateSamples.java
@@ -35,7 +35,7 @@
/** Samples for AlertRules CreateOrUpdate. */
public final class AlertRulesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/alertRules/CreateFusionAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/alertRules/CreateFusionAlertRule.json
*/
/**
* Sample code: Creates or updates a Fusion alert rule.
@@ -258,7 +258,7 @@ public static void createsOrUpdatesAFusionAlertRule(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/alertRules/CreateMicrosoftSecurityIncidentCreationAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/alertRules/CreateMicrosoftSecurityIncidentCreationAlertRule.json
*/
/**
* Sample code: Creates or updates a MicrosoftSecurityIncidentCreation rule.
@@ -282,7 +282,7 @@ public static void createsOrUpdatesAMicrosoftSecurityIncidentCreationRule(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/alertRules/CreateScheduledAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/alertRules/CreateScheduledAlertRule.json
*/
/**
* Sample code: Creates or updates a Scheduled alert rule.
@@ -355,7 +355,7 @@ public static void createsOrUpdatesAScheduledAlertRule(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/alertRules/CreateFusionAlertRuleWithFusionScenarioExclusion.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/alertRules/CreateFusionAlertRuleWithFusionScenarioExclusion.json
*/
/**
* Sample code: Creates or updates a Fusion alert rule with scenario exclusion pattern.
@@ -578,7 +578,7 @@ public static void createsOrUpdatesAFusionAlertRuleWithScenarioExclusionPattern(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/alertRules/CreateNrtAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/alertRules/CreateNrtAlertRule.json
*/
/**
* Sample code: Creates or updates a Nrt alert rule.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AlertRulesDeleteSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AlertRulesDeleteSamples.java
index e431574c3126d..440ee89d10dd8 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AlertRulesDeleteSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AlertRulesDeleteSamples.java
@@ -9,7 +9,7 @@
/** Samples for AlertRules Delete. */
public final class AlertRulesDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/alertRules/DeleteAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/alertRules/DeleteAlertRule.json
*/
/**
* Sample code: Delete an alert rule.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AlertRulesGetSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AlertRulesGetSamples.java
index 909076889916e..fab77bb12b9da 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AlertRulesGetSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AlertRulesGetSamples.java
@@ -9,7 +9,7 @@
/** Samples for AlertRules Get. */
public final class AlertRulesGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/alertRules/GetScheduledAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/alertRules/GetScheduledAlertRule.json
*/
/**
* Sample code: Get a Scheduled alert rule.
@@ -24,7 +24,7 @@ public static void getAScheduledAlertRule(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/alertRules/GetNrtAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/alertRules/GetNrtAlertRule.json
*/
/**
* Sample code: Get an Nrt alert rule.
@@ -38,7 +38,7 @@ public static void getAnNrtAlertRule(com.azure.resourcemanager.securityinsights.
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/alertRules/GetFusionAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/alertRules/GetFusionAlertRule.json
*/
/**
* Sample code: Get a Fusion alert rule.
@@ -50,7 +50,7 @@ public static void getAFusionAlertRule(com.azure.resourcemanager.securityinsight
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/alertRules/GetMicrosoftSecurityIncidentCreationAlertRule.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/alertRules/GetMicrosoftSecurityIncidentCreationAlertRule.json
*/
/**
* Sample code: Get a MicrosoftSecurityIncidentCreation rule.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AlertRulesListSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AlertRulesListSamples.java
index 33998a96d87a6..9cae32ae6d6fb 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AlertRulesListSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AlertRulesListSamples.java
@@ -9,7 +9,7 @@
/** Samples for AlertRules List. */
public final class AlertRulesListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/alertRules/GetAllAlertRules.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/alertRules/GetAllAlertRules.json
*/
/**
* Sample code: Get all alert rules.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AutomationRulesCreateOrUpdateSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AutomationRulesCreateOrUpdateSamples.java
index a6982841bec34..83e06ed621c01 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AutomationRulesCreateOrUpdateSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AutomationRulesCreateOrUpdateSamples.java
@@ -11,7 +11,7 @@
/** Samples for AutomationRules CreateOrUpdate. */
public final class AutomationRulesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/automationRules/AutomationRules_CreateOrUpdate.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/automationRules/AutomationRules_CreateOrUpdate.json
*/
/**
* Sample code: AutomationRules_CreateOrUpdate.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AutomationRulesDeleteSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AutomationRulesDeleteSamples.java
index c44015208a9fb..494fbd02617e6 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AutomationRulesDeleteSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AutomationRulesDeleteSamples.java
@@ -9,7 +9,7 @@
/** Samples for AutomationRules Delete. */
public final class AutomationRulesDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/automationRules/AutomationRules_Delete.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/automationRules/AutomationRules_Delete.json
*/
/**
* Sample code: AutomationRules_Delete.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AutomationRulesGetSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AutomationRulesGetSamples.java
index c6bd71efc5312..c261e438d557d 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AutomationRulesGetSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AutomationRulesGetSamples.java
@@ -9,7 +9,7 @@
/** Samples for AutomationRules Get. */
public final class AutomationRulesGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/automationRules/AutomationRules_Get.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/automationRules/AutomationRules_Get.json
*/
/**
* Sample code: AutomationRules_Get.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AutomationRulesListSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AutomationRulesListSamples.java
index 8c26f033fc245..549de66c6f7ff 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AutomationRulesListSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/AutomationRulesListSamples.java
@@ -9,7 +9,7 @@
/** Samples for AutomationRules List. */
public final class AutomationRulesListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/automationRules/AutomationRules_List.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/automationRules/AutomationRules_List.json
*/
/**
* Sample code: AutomationRules_List.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarkOperationExpandSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarkOperationExpandSamples.java
index 2ec2050fa5a9d..6de5ca4b85cf3 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarkOperationExpandSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarkOperationExpandSamples.java
@@ -12,7 +12,7 @@
/** Samples for BookmarkOperation Expand. */
public final class BookmarkOperationExpandSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/bookmarks/expand/PostExpandBookmark.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/bookmarks/expand/PostExpandBookmark.json
*/
/**
* Sample code: Expand an bookmark.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarkRelationsCreateOrUpdateSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarkRelationsCreateOrUpdateSamples.java
index d4f54f2c9d7fc..5308e3e37be7f 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarkRelationsCreateOrUpdateSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarkRelationsCreateOrUpdateSamples.java
@@ -7,7 +7,7 @@
/** Samples for BookmarkRelations CreateOrUpdate. */
public final class BookmarkRelationsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/bookmarks/relations/CreateBookmarkRelation.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/bookmarks/relations/CreateBookmarkRelation.json
*/
/**
* Sample code: Creates or updates a bookmark relation.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarkRelationsDeleteSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarkRelationsDeleteSamples.java
index 1a7bcad864abf..5226c8c336bdf 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarkRelationsDeleteSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarkRelationsDeleteSamples.java
@@ -9,7 +9,7 @@
/** Samples for BookmarkRelations Delete. */
public final class BookmarkRelationsDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/bookmarks/relations/DeleteBookmarkRelation.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/bookmarks/relations/DeleteBookmarkRelation.json
*/
/**
* Sample code: Delete the bookmark relation.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarkRelationsGetSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarkRelationsGetSamples.java
index 95b702dc34313..2bc1dfee3d770 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarkRelationsGetSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarkRelationsGetSamples.java
@@ -9,7 +9,7 @@
/** Samples for BookmarkRelations Get. */
public final class BookmarkRelationsGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/bookmarks/relations/GetBookmarkRelationByName.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/bookmarks/relations/GetBookmarkRelationByName.json
*/
/**
* Sample code: Get a bookmark relation.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarkRelationsListSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarkRelationsListSamples.java
index 9c14ed2e45a64..8b66d27306a76 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarkRelationsListSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarkRelationsListSamples.java
@@ -9,7 +9,7 @@
/** Samples for BookmarkRelations List. */
public final class BookmarkRelationsListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/bookmarks/relations/GetAllBookmarkRelations.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/bookmarks/relations/GetAllBookmarkRelations.json
*/
/**
* Sample code: Get all bookmark relations.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarksCreateOrUpdateSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarksCreateOrUpdateSamples.java
index 561a9faf81ad0..b0a5f9a9e39a7 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarksCreateOrUpdateSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarksCreateOrUpdateSamples.java
@@ -15,7 +15,7 @@
/** Samples for Bookmarks CreateOrUpdate. */
public final class BookmarksCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/bookmarks/CreateBookmark.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/bookmarks/CreateBookmark.json
*/
/**
* Sample code: Creates or updates a bookmark.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarksDeleteSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarksDeleteSamples.java
index 8854a9ff16624..91ee6733fe0c2 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarksDeleteSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarksDeleteSamples.java
@@ -9,7 +9,7 @@
/** Samples for Bookmarks Delete. */
public final class BookmarksDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/bookmarks/DeleteBookmark.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/bookmarks/DeleteBookmark.json
*/
/**
* Sample code: Delete a bookmark.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarksGetSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarksGetSamples.java
index ad247f39ec725..2c791867fbef1 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarksGetSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarksGetSamples.java
@@ -9,7 +9,7 @@
/** Samples for Bookmarks Get. */
public final class BookmarksGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/bookmarks/GetBookmarkById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/bookmarks/GetBookmarkById.json
*/
/**
* Sample code: Get a bookmark.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarksListSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarksListSamples.java
index d367e0c771813..ed45fb130eeff 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarksListSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/BookmarksListSamples.java
@@ -9,7 +9,7 @@
/** Samples for Bookmarks List. */
public final class BookmarksListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/bookmarks/GetBookmarks.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/bookmarks/GetBookmarks.json
*/
/**
* Sample code: Get all bookmarks.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DataConnectorsCheckRequirementsOperationPostSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DataConnectorsCheckRequirementsOperationPostSamples.java
index d8f2fefb10fd7..475df339cbccb 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DataConnectorsCheckRequirementsOperationPostSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DataConnectorsCheckRequirementsOperationPostSamples.java
@@ -22,7 +22,7 @@
/** Samples for DataConnectorsCheckRequirementsOperation Post. */
public final class DataConnectorsCheckRequirementsOperationPostSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/CheckRequirementsOfficeATP.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/CheckRequirementsOfficeATP.json
*/
/**
* Sample code: Check requirements for OfficeATP.
@@ -37,7 +37,7 @@ public static void checkRequirementsForOfficeATP(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/CheckRequirementsOffice365Project.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/CheckRequirementsOffice365Project.json
*/
/**
* Sample code: Check requirements for Office365Project.
@@ -52,7 +52,7 @@ public static void checkRequirementsForOffice365Project(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/CheckRequirementsAzureActiveDirectory.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/CheckRequirementsAzureActiveDirectory.json
*/
/**
* Sample code: Check requirements for AAD.
@@ -67,7 +67,7 @@ public static void checkRequirementsForAAD(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/CheckRequirementsMicrosoftCloudAppSecurity.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/CheckRequirementsMicrosoftCloudAppSecurity.json
*/
/**
* Sample code: Check requirements for Mcas.
@@ -82,7 +82,7 @@ public static void checkRequirementsForMcas(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/CheckRequirementsIoT.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/CheckRequirementsIoT.json
*/
/**
* Sample code: Check requirements for IoT.
@@ -101,7 +101,7 @@ public static void checkRequirementsForIoT(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/CheckRequirementsMdatp.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/CheckRequirementsMdatp.json
*/
/**
* Sample code: Check requirements for Mdatp.
@@ -116,7 +116,7 @@ public static void checkRequirementsForMdatp(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/CheckRequirementsAzureActiveDirectoryNoAuthorization.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/CheckRequirementsAzureActiveDirectoryNoAuthorization.json
*/
/**
* Sample code: Check requirements for AAD - no authorization.
@@ -131,7 +131,7 @@ public static void checkRequirementsForAADNoAuthorization(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/CheckRequirementsAzureSecurityCenter.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/CheckRequirementsAzureSecurityCenter.json
*/
/**
* Sample code: Check requirements for ASC.
@@ -150,7 +150,7 @@ public static void checkRequirementsForASC(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/CheckRequirementsMicrosoftThreatProtection.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/CheckRequirementsMicrosoftThreatProtection.json
*/
/**
* Sample code: Check requirements for MicrosoftThreatProtection.
@@ -165,7 +165,7 @@ public static void checkRequirementsForMicrosoftThreatProtection(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/CheckRequirementsThreatIntelligenceTaxii.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/CheckRequirementsThreatIntelligenceTaxii.json
*/
/**
* Sample code: Check requirements for TI Taxii.
@@ -180,7 +180,7 @@ public static void checkRequirementsForTITaxii(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/CheckRequirementsOfficeIRM.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/CheckRequirementsOfficeIRM.json
*/
/**
* Sample code: Check requirements for OfficeIRM.
@@ -195,7 +195,7 @@ public static void checkRequirementsForOfficeIRM(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/CheckRequirementsMicrosoftThreatIntelligence.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/CheckRequirementsMicrosoftThreatIntelligence.json
*/
/**
* Sample code: Check requirements for MicrosoftThreatIntelligence.
@@ -210,7 +210,7 @@ public static void checkRequirementsForMicrosoftThreatIntelligence(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/CheckRequirementsOfficePowerBI.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/CheckRequirementsOfficePowerBI.json
*/
/**
* Sample code: Check requirements for OfficePowerBI.
@@ -225,7 +225,7 @@ public static void checkRequirementsForOfficePowerBI(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/CheckRequirementsDynamics365.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/CheckRequirementsDynamics365.json
*/
/**
* Sample code: Check requirements for Dynamics365.
@@ -240,7 +240,7 @@ public static void checkRequirementsForDynamics365(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/CheckRequirementsAzureActiveDirectoryNoLicense.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/CheckRequirementsAzureActiveDirectoryNoLicense.json
*/
/**
* Sample code: Check requirements for AAD - no license.
@@ -255,7 +255,7 @@ public static void checkRequirementsForAADNoLicense(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/CheckRequirementsThreatIntelligence.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/CheckRequirementsThreatIntelligence.json
*/
/**
* Sample code: Check requirements for TI.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DataConnectorsConnectSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DataConnectorsConnectSamples.java
index dc79db4c403e3..dab7ff65f27ca 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DataConnectorsConnectSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DataConnectorsConnectSamples.java
@@ -15,7 +15,7 @@
/** Samples for DataConnectors Connect. */
public final class DataConnectorsConnectSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/ConnectAPIPolling.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/ConnectAPIPolling.json
*/
/**
* Sample code: Connect an APIPolling data connector.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DataConnectorsCreateOrUpdateSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DataConnectorsCreateOrUpdateSamples.java
index 476d8177c2c0e..0aa5e87c479c0 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DataConnectorsCreateOrUpdateSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DataConnectorsCreateOrUpdateSamples.java
@@ -60,7 +60,7 @@
/** Samples for DataConnectors CreateOrUpdate. */
public final class DataConnectorsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/CreateOfficeDataConnetor.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/CreateOfficeDataConnetor.json
*/
/**
* Sample code: Creates or updates an Office365 data connector.
@@ -88,7 +88,7 @@ public static void createsOrUpdatesAnOffice365DataConnector(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/CreateOfficePowerBIDataConnector.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/CreateOfficePowerBIDataConnector.json
*/
/**
* Sample code: Creates or updates an Office PowerBI data connector.
@@ -113,7 +113,7 @@ public static void createsOrUpdatesAnOfficePowerBIDataConnector(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/CreateThreatIntelligenceTaxiiDataConnector.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/CreateThreatIntelligenceTaxiiDataConnector.json
*/
/**
* Sample code: Creates or updates a Threat Intelligence Taxii data connector.
@@ -147,7 +147,7 @@ public static void createsOrUpdatesAThreatIntelligenceTaxiiDataConnector(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/CreateThreatIntelligenceDataConnector.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/CreateThreatIntelligenceDataConnector.json
*/
/**
* Sample code: Creates or updates an Threat Intelligence Platform data connector.
@@ -172,7 +172,7 @@ public static void createsOrUpdatesAnThreatIntelligencePlatformDataConnector(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/CreateDynamics365DataConnetor.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/CreateDynamics365DataConnetor.json
*/
/**
* Sample code: Creates or updates a Dynamics365 data connector.
@@ -199,7 +199,7 @@ public static void createsOrUpdatesADynamics365DataConnector(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/CreateGenericUI.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/CreateGenericUI.json
*/
/**
* Sample code: Creates or updates a GenericUI data connector.
@@ -519,7 +519,7 @@ public static void createsOrUpdatesAGenericUIDataConnector(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/CreateOffice365ProjectDataConnetor.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/CreateOffice365ProjectDataConnetor.json
*/
/**
* Sample code: Creates or updates an Office365 Project data connector.
@@ -544,7 +544,7 @@ public static void createsOrUpdatesAnOffice365ProjectDataConnector(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/CreateAPIPolling.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/CreateAPIPolling.json
*/
/**
* Sample code: Creates or updates a APIPolling data connector.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DataConnectorsDeleteSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DataConnectorsDeleteSamples.java
index eda55ed89f74f..afcb5a6f935b7 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DataConnectorsDeleteSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DataConnectorsDeleteSamples.java
@@ -9,7 +9,7 @@
/** Samples for DataConnectors Delete. */
public final class DataConnectorsDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/DeleteOffice365ProjectDataConnetor.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/DeleteOffice365ProjectDataConnetor.json
*/
/**
* Sample code: Delete an Office365 Project data connector.
@@ -24,7 +24,7 @@ public static void deleteAnOffice365ProjectDataConnector(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/DeleteGenericUI.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/DeleteGenericUI.json
*/
/**
* Sample code: Delete a GenericUI data connector.
@@ -39,7 +39,7 @@ public static void deleteAGenericUIDataConnector(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/DeleteOfficeDataConnetor.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/DeleteOfficeDataConnetor.json
*/
/**
* Sample code: Delete an Office365 data connector.
@@ -54,7 +54,7 @@ public static void deleteAnOffice365DataConnector(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/DeleteOfficePowerBIDataConnetor.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/DeleteOfficePowerBIDataConnetor.json
*/
/**
* Sample code: Delete an Office PowerBI data connector.
@@ -69,7 +69,7 @@ public static void deleteAnOfficePowerBIDataConnector(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/DeleteAPIPolling.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/DeleteAPIPolling.json
*/
/**
* Sample code: Delete a APIPolling data connector.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DataConnectorsDisconnectSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DataConnectorsDisconnectSamples.java
index c78b8bbcfbf90..3262c787bb827 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DataConnectorsDisconnectSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DataConnectorsDisconnectSamples.java
@@ -9,7 +9,7 @@
/** Samples for DataConnectors Disconnect. */
public final class DataConnectorsDisconnectSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/DisconnectAPIPolling.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/DisconnectAPIPolling.json
*/
/**
* Sample code: Disconnect an APIPolling data connector.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DataConnectorsGetSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DataConnectorsGetSamples.java
index 43d8115babf9f..d8f4839eb33da 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DataConnectorsGetSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DataConnectorsGetSamples.java
@@ -9,7 +9,7 @@
/** Samples for DataConnectors Get. */
public final class DataConnectorsGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/GetOffice365ProjectDataConnetorById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/GetOffice365ProjectDataConnetorById.json
*/
/**
* Sample code: Get an Office365 Project data connector.
@@ -24,7 +24,7 @@ public static void getAnOffice365ProjectDataConnector(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/GetGenericUI.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/GetGenericUI.json
*/
/**
* Sample code: Get a GenericUI data connector.
@@ -39,7 +39,7 @@ public static void getAGenericUIDataConnector(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/GetOffice365AdvancedThreatProtectionById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/GetOffice365AdvancedThreatProtectionById.json
*/
/**
* Sample code: Get an Office ATP data connector.
@@ -54,7 +54,7 @@ public static void getAnOfficeATPDataConnector(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/GetIoTById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/GetIoTById.json
*/
/**
* Sample code: Get a IoT data connector.
@@ -69,7 +69,7 @@ public static void getAIoTDataConnector(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/GetMicrosoftCloudAppSecurityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/GetMicrosoftCloudAppSecurityById.json
*/
/**
* Sample code: Get a MCAS data connector.
@@ -84,7 +84,7 @@ public static void getAMCASDataConnector(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/GetThreatIntelligenceTaxiiById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/GetThreatIntelligenceTaxiiById.json
*/
/**
* Sample code: Get a TI Taxii data connector.
@@ -99,7 +99,7 @@ public static void getATITaxiiDataConnector(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/GetMicrosoftThreatIntelligenceById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/GetMicrosoftThreatIntelligenceById.json
*/
/**
* Sample code: Get a MicrosoftThreatIntelligence data connector.
@@ -114,7 +114,7 @@ public static void getAMicrosoftThreatIntelligenceDataConnector(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/GetAzureSecurityCenterById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/GetAzureSecurityCenterById.json
*/
/**
* Sample code: Get a ASC data connector.
@@ -129,7 +129,7 @@ public static void getAASCDataConnector(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/GetThreatIntelligenceById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/GetThreatIntelligenceById.json
*/
/**
* Sample code: Get a TI data connector.
@@ -143,7 +143,7 @@ public static void getATIDataConnector(com.azure.resourcemanager.securityinsight
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/GetAmazonWebServicesCloudTrailById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/GetAmazonWebServicesCloudTrailById.json
*/
/**
* Sample code: Get an AwsCloudTrail data connector.
@@ -158,7 +158,7 @@ public static void getAnAwsCloudTrailDataConnector(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/GetMicrosoftDefenderAdvancedThreatProtectionById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/GetMicrosoftDefenderAdvancedThreatProtectionById.json
*/
/**
* Sample code: Get a MDATP data connector.
@@ -173,7 +173,7 @@ public static void getAMDATPDataConnector(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/GetMicrosoftThreatProtectionById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/GetMicrosoftThreatProtectionById.json
*/
/**
* Sample code: Get a MicrosoftThreatProtection data connector.
@@ -188,7 +188,7 @@ public static void getAMicrosoftThreatProtectionDataConnector(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/GetAzureActiveDirectoryById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/GetAzureActiveDirectoryById.json
*/
/**
* Sample code: Get an AAD data connector.
@@ -203,7 +203,7 @@ public static void getAnAADDataConnector(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/GetAzureAdvancedThreatProtectionById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/GetAzureAdvancedThreatProtectionById.json
*/
/**
* Sample code: Get an AATP data connector.
@@ -218,7 +218,7 @@ public static void getAnAATPDataConnector(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/GetAPIPolling.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/GetAPIPolling.json
*/
/**
* Sample code: Get a APIPolling data connector.
@@ -233,7 +233,7 @@ public static void getAAPIPollingDataConnector(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/GetMicrosoftInsiderRiskManagementById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/GetMicrosoftInsiderRiskManagementById.json
*/
/**
* Sample code: Get an Office IRM data connector.
@@ -248,7 +248,7 @@ public static void getAnOfficeIRMDataConnector(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/GetDynamics365DataConnectorById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/GetDynamics365DataConnectorById.json
*/
/**
* Sample code: Get a Dynamics365 data connector.
@@ -263,7 +263,7 @@ public static void getADynamics365DataConnector(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/GetOfficeDataConnetorById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/GetOfficeDataConnetorById.json
*/
/**
* Sample code: Get an Office365 data connector.
@@ -278,7 +278,7 @@ public static void getAnOffice365DataConnector(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/GetAmazonWebServicesS3ById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/GetAmazonWebServicesS3ById.json
*/
/**
* Sample code: Get an Aws S3 data connector.
@@ -293,7 +293,7 @@ public static void getAnAwsS3DataConnector(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/GetOfficePowerBIDataConnetorById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/GetOfficePowerBIDataConnetorById.json
*/
/**
* Sample code: Get an Office365 PowerBI data connector.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DataConnectorsListSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DataConnectorsListSamples.java
index fcb8197a8c3c3..696ac8f588507 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DataConnectorsListSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DataConnectorsListSamples.java
@@ -9,7 +9,7 @@
/** Samples for DataConnectors List. */
public final class DataConnectorsListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/dataConnectors/GetDataConnectors.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/dataConnectors/GetDataConnectors.json
*/
/**
* Sample code: Get all data connectors.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DomainWhoisGetSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DomainWhoisGetSamples.java
index 49c61d2fba0ee..df02044686ec3 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DomainWhoisGetSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/DomainWhoisGetSamples.java
@@ -9,7 +9,7 @@
/** Samples for DomainWhois Get. */
public final class DomainWhoisGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/enrichment/GetWhoisByDomainName.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/enrichment/GetWhoisByDomainName.json
*/
/**
* Sample code: Get whois information for a single domain name.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntitiesExpandSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntitiesExpandSamples.java
index cae025be116ed..151e12472e5e9 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntitiesExpandSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntitiesExpandSamples.java
@@ -12,7 +12,7 @@
/** Samples for Entities Expand. */
public final class EntitiesExpandSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entities/expand/PostExpandEntity.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entities/expand/PostExpandEntity.json
*/
/**
* Sample code: Expand an entity.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntitiesGetInsightsSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntitiesGetInsightsSamples.java
index 2ee4be9116f10..dcb63c2ba63d5 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntitiesGetInsightsSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntitiesGetInsightsSamples.java
@@ -13,7 +13,7 @@
/** Samples for Entities GetInsights. */
public final class EntitiesGetInsightsSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entities/insights/PostGetInsights.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entities/insights/PostGetInsights.json
*/
/**
* Sample code: Entity Insight.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntitiesGetSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntitiesGetSamples.java
index 32e99a5435209..c7f5ff294d743 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntitiesGetSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntitiesGetSamples.java
@@ -9,7 +9,7 @@
/** Samples for Entities Get. */
public final class EntitiesGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entities/GetSubmissionMailEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entities/GetSubmissionMailEntityById.json
*/
/**
* Sample code: Get a submissionMail entity.
@@ -22,7 +22,7 @@ public static void getASubmissionMailEntity(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entities/GetDnsEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entities/GetDnsEntityById.json
*/
/**
* Sample code: Get a dns entity.
@@ -34,7 +34,7 @@ public static void getADnsEntity(com.azure.resourcemanager.securityinsights.Secu
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entities/GetFileHashEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entities/GetFileHashEntityById.json
*/
/**
* Sample code: Get a file hash entity.
@@ -46,7 +46,7 @@ public static void getAFileHashEntity(com.azure.resourcemanager.securityinsights
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entities/GetIoTDeviceEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entities/GetIoTDeviceEntityById.json
*/
/**
* Sample code: Get an IoT device entity.
@@ -59,7 +59,7 @@ public static void getAnIoTDeviceEntity(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entities/GetRegistryKeyEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entities/GetRegistryKeyEntityById.json
*/
/**
* Sample code: Get a registry key entity.
@@ -72,7 +72,7 @@ public static void getARegistryKeyEntity(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entities/GetMailboxEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entities/GetMailboxEntityById.json
*/
/**
* Sample code: Get a mailbox entity.
@@ -84,7 +84,7 @@ public static void getAMailboxEntity(com.azure.resourcemanager.securityinsights.
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entities/GetMalwareEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entities/GetMalwareEntityById.json
*/
/**
* Sample code: Get a malware entity.
@@ -96,7 +96,7 @@ public static void getAMalwareEntity(com.azure.resourcemanager.securityinsights.
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entities/GetSecurityAlertEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entities/GetSecurityAlertEntityById.json
*/
/**
* Sample code: Get a security alert entity.
@@ -109,7 +109,7 @@ public static void getASecurityAlertEntity(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entities/GetIpEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entities/GetIpEntityById.json
*/
/**
* Sample code: Get an ip entity.
@@ -121,7 +121,7 @@ public static void getAnIpEntity(com.azure.resourcemanager.securityinsights.Secu
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entities/GetAccountEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entities/GetAccountEntityById.json
*/
/**
* Sample code: Get an account entity.
@@ -133,7 +133,7 @@ public static void getAnAccountEntity(com.azure.resourcemanager.securityinsights
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entities/GetCloudApplicationEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entities/GetCloudApplicationEntityById.json
*/
/**
* Sample code: Get a cloud application entity.
@@ -146,7 +146,7 @@ public static void getACloudApplicationEntity(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entities/GetFileEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entities/GetFileEntityById.json
*/
/**
* Sample code: Get a file entity.
@@ -158,7 +158,7 @@ public static void getAFileEntity(com.azure.resourcemanager.securityinsights.Sec
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entities/GetRegistryValueEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entities/GetRegistryValueEntityById.json
*/
/**
* Sample code: Get a registry value entity.
@@ -171,7 +171,7 @@ public static void getARegistryValueEntity(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entities/GetUrlEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entities/GetUrlEntityById.json
*/
/**
* Sample code: Get a url entity.
@@ -183,7 +183,7 @@ public static void getAUrlEntity(com.azure.resourcemanager.securityinsights.Secu
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entities/GetMailClusterEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entities/GetMailClusterEntityById.json
*/
/**
* Sample code: Get a mailCluster entity.
@@ -196,7 +196,7 @@ public static void getAMailClusterEntity(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entities/GetSecurityGroupEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entities/GetSecurityGroupEntityById.json
*/
/**
* Sample code: Get a security group entity.
@@ -209,7 +209,7 @@ public static void getASecurityGroupEntity(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entities/GetMailMessageEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entities/GetMailMessageEntityById.json
*/
/**
* Sample code: Get a mailMessage entity.
@@ -222,7 +222,7 @@ public static void getAMailMessageEntity(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entities/GetAzureResourceEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entities/GetAzureResourceEntityById.json
*/
/**
* Sample code: Get an azure resource entity.
@@ -235,7 +235,7 @@ public static void getAnAzureResourceEntity(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entities/GetHostEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entities/GetHostEntityById.json
*/
/**
* Sample code: Get a host entity.
@@ -247,7 +247,7 @@ public static void getAHostEntity(com.azure.resourcemanager.securityinsights.Sec
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entities/GetProcessEntityById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entities/GetProcessEntityById.json
*/
/**
* Sample code: Get a process entity.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntitiesGetTimelineListSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntitiesGetTimelineListSamples.java
index b80ff8f36f56b..4d38fa139f032 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntitiesGetTimelineListSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntitiesGetTimelineListSamples.java
@@ -11,7 +11,7 @@
/** Samples for EntitiesGetTimeline List. */
public final class EntitiesGetTimelineListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entities/timeline/PostTimelineEntity.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entities/timeline/PostTimelineEntity.json
*/
/**
* Sample code: Entity timeline.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntitiesListSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntitiesListSamples.java
index 35f906a7b8ddd..0bf391111db14 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntitiesListSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntitiesListSamples.java
@@ -9,7 +9,7 @@
/** Samples for Entities List. */
public final class EntitiesListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entities/GetEntities.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entities/GetEntities.json
*/
/**
* Sample code: Get all entities.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntitiesQueriesSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntitiesQueriesSamples.java
index 83346ff69d589..3985e266357b9 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntitiesQueriesSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntitiesQueriesSamples.java
@@ -10,7 +10,7 @@
/** Samples for Entities Queries. */
public final class EntitiesQueriesSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entities/GetQueries.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entities/GetQueries.json
*/
/**
* Sample code: Get Entity Query.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntitiesRelationsListSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntitiesRelationsListSamples.java
index e31e324573d13..2a35d28e56a1a 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntitiesRelationsListSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntitiesRelationsListSamples.java
@@ -9,7 +9,7 @@
/** Samples for EntitiesRelations List. */
public final class EntitiesRelationsListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entities/relations/GetAllEntityRelations.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entities/relations/GetAllEntityRelations.json
*/
/**
* Sample code: Get all relations of an entity.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntityQueriesCreateOrUpdateSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntityQueriesCreateOrUpdateSamples.java
index 0562e9cfc1d3f..dcbd67442d7d7 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntityQueriesCreateOrUpdateSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntityQueriesCreateOrUpdateSamples.java
@@ -15,7 +15,7 @@
/** Samples for EntityQueries CreateOrUpdate. */
public final class EntityQueriesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entityQueries/CreateEntityQueryActivity.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entityQueries/CreateEntityQueryActivity.json
*/
/**
* Sample code: Creates or updates an Activity entity query.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntityQueriesDeleteSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntityQueriesDeleteSamples.java
index 4baec20eb107e..bf6f68b86277a 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntityQueriesDeleteSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntityQueriesDeleteSamples.java
@@ -9,7 +9,7 @@
/** Samples for EntityQueries Delete. */
public final class EntityQueriesDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entityQueries/DeleteEntityQuery.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entityQueries/DeleteEntityQuery.json
*/
/**
* Sample code: Delete an entity query.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntityQueriesGetSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntityQueriesGetSamples.java
index 91a7de848601e..c73b3c8b8fd21 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntityQueriesGetSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntityQueriesGetSamples.java
@@ -9,7 +9,7 @@
/** Samples for EntityQueries Get. */
public final class EntityQueriesGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entityQueries/GetActivityEntityQueryById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entityQueries/GetActivityEntityQueryById.json
*/
/**
* Sample code: Get an Activity entity query.
@@ -24,7 +24,7 @@ public static void getAnActivityEntityQuery(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entityQueries/GetExpansionEntityQueryById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entityQueries/GetExpansionEntityQueryById.json
*/
/**
* Sample code: Get an Expansion entity query.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntityQueriesListSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntityQueriesListSamples.java
index 4829a401c4f84..df9aedfb9a326 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntityQueriesListSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntityQueriesListSamples.java
@@ -10,7 +10,7 @@
/** Samples for EntityQueries List. */
public final class EntityQueriesListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entityQueries/GetEntityQueries.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entityQueries/GetEntityQueries.json
*/
/**
* Sample code: Get all entity queries.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntityQueryTemplatesGetSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntityQueryTemplatesGetSamples.java
index 41329bae9ce70..8855772973828 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntityQueryTemplatesGetSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntityQueryTemplatesGetSamples.java
@@ -9,7 +9,7 @@
/** Samples for EntityQueryTemplates Get. */
public final class EntityQueryTemplatesGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entityQueryTemplates/GetActivityEntityQueryTemplateById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entityQueryTemplates/GetActivityEntityQueryTemplateById.json
*/
/**
* Sample code: Get an Activity entity query template.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntityQueryTemplatesListSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntityQueryTemplatesListSamples.java
index fff85e2fce47d..dace3f858bef5 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntityQueryTemplatesListSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntityQueryTemplatesListSamples.java
@@ -5,12 +5,12 @@
package com.azure.resourcemanager.securityinsights.generated;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.securityinsights.models.Constant74;
+import com.azure.resourcemanager.securityinsights.models.Constant81;
/** Samples for EntityQueryTemplates List. */
public final class EntityQueryTemplatesListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entityQueryTemplates/GetEntityQueryTemplates.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entityQueryTemplates/GetEntityQueryTemplates.json
*/
/**
* Sample code: Get all entity query templates.
@@ -19,6 +19,6 @@ public final class EntityQueryTemplatesListSamples {
*/
public static void getAllEntityQueryTemplates(
com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager.entityQueryTemplates().list("myRg", "myWorkspace", Constant74.ACTIVITY, Context.NONE);
+ manager.entityQueryTemplates().list("myRg", "myWorkspace", Constant81.ACTIVITY, Context.NONE);
}
}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntityRelationsGetRelationSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntityRelationsGetRelationSamples.java
index 967e2a1f85716..d79095af1035d 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntityRelationsGetRelationSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/EntityRelationsGetRelationSamples.java
@@ -9,7 +9,7 @@
/** Samples for EntityRelations GetRelation. */
public final class EntityRelationsGetRelationSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/entities/relations/GetEntityRelationByName.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/entities/relations/GetEntityRelationByName.json
*/
/**
* Sample code: Get an entity relation.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/FileImportsCreateSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/FileImportsCreateSamples.java
new file mode 100644
index 0000000000000..7facb5ffd7516
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/FileImportsCreateSamples.java
@@ -0,0 +1,34 @@
+// 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.generated;
+
+import com.azure.resourcemanager.securityinsights.models.FileFormat;
+import com.azure.resourcemanager.securityinsights.models.FileImportContentType;
+import com.azure.resourcemanager.securityinsights.models.FileMetadata;
+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-05-01-preview/examples/fileImports/CreateFileImport.json
+ */
+ /**
+ * Sample code: Create a file import.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void createAFileImport(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .fileImports()
+ .define("73e01a99-5cd7-4139-a149-9f2736ff2ab5")
+ .withExistingWorkspace("myRg", "myWorkspace")
+ .withIngestionMode(IngestionMode.INGEST_ANY_VALID_RECORDS)
+ .withContentType(FileImportContentType.STIX_INDICATOR)
+ .withImportFile(
+ new FileMetadata().withFileFormat(FileFormat.JSON).withFileName("myFile.json").withFileSize(4653))
+ .withSource("mySource")
+ .create();
+ }
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/FileImportsDeleteSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/FileImportsDeleteSamples.java
new file mode 100644
index 0000000000000..d8b3078af29ab
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/FileImportsDeleteSamples.java
@@ -0,0 +1,22 @@
+// 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.generated;
+
+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-05-01-preview/examples/fileImports/DeleteFileImport.json
+ */
+ /**
+ * Sample code: Delete a file import.
+ *
+ * @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);
+ }
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/FileImportsGetSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/FileImportsGetSamples.java
new file mode 100644
index 0000000000000..06e4ea906c01a
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/FileImportsGetSamples.java
@@ -0,0 +1,24 @@
+// 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.generated;
+
+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-05-01-preview/examples/fileImports/GetFileImportById.json
+ */
+ /**
+ * Sample code: Get a file import.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void getAFileImport(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .fileImports()
+ .getWithResponse("myRg", "myWorkspace", "73e01a99-5cd7-4139-a149-9f2736ff2ab5", Context.NONE);
+ }
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/FileImportsListSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/FileImportsListSamples.java
new file mode 100644
index 0000000000000..8b17e9296584f
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/FileImportsListSamples.java
@@ -0,0 +1,22 @@
+// 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.generated;
+
+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-05-01-preview/examples/fileImports/GetFileImports.json
+ */
+ /**
+ * Sample code: Get all file imports.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void getAllFileImports(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager.fileImports().list("myRg", "myWorkspace", null, null, null, null, Context.NONE);
+ }
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentCommentsCreateOrUpdateSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentCommentsCreateOrUpdateSamples.java
index dcdc60f0d59c3..d90af30f4f1a8 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentCommentsCreateOrUpdateSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentCommentsCreateOrUpdateSamples.java
@@ -7,7 +7,7 @@
/** Samples for IncidentComments CreateOrUpdate. */
public final class IncidentCommentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/incidents/comments/CreateIncidentComment.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/incidents/comments/CreateIncidentComment.json
*/
/**
* Sample code: Creates or updates an incident comment.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentCommentsDeleteSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentCommentsDeleteSamples.java
index a2c22acddfa3f..6311e53452957 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentCommentsDeleteSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentCommentsDeleteSamples.java
@@ -9,7 +9,7 @@
/** Samples for IncidentComments Delete. */
public final class IncidentCommentsDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/incidents/comments/DeleteIncidentComment.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/incidents/comments/DeleteIncidentComment.json
*/
/**
* Sample code: Delete the incident comment.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentCommentsGetSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentCommentsGetSamples.java
index f92d7671ddd2a..f6a68fe2bea1e 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentCommentsGetSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentCommentsGetSamples.java
@@ -9,7 +9,7 @@
/** Samples for IncidentComments Get. */
public final class IncidentCommentsGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/incidents/comments/GetIncidentCommentById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/incidents/comments/GetIncidentCommentById.json
*/
/**
* Sample code: Get an incident comment.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentCommentsListSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentCommentsListSamples.java
index dd5db23d3b660..54fdd947ea743 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentCommentsListSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentCommentsListSamples.java
@@ -9,7 +9,7 @@
/** Samples for IncidentComments List. */
public final class IncidentCommentsListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/incidents/comments/GetAllIncidentComments.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/incidents/comments/GetAllIncidentComments.json
*/
/**
* Sample code: Get all incident comments.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentRelationsCreateOrUpdateSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentRelationsCreateOrUpdateSamples.java
index e4dbe55e64525..02b1480cb51d1 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentRelationsCreateOrUpdateSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentRelationsCreateOrUpdateSamples.java
@@ -10,7 +10,7 @@
/** Samples for IncidentRelations CreateOrUpdate. */
public final class IncidentRelationsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/incidents/relations/CreateIncidentRelation.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/incidents/relations/CreateIncidentRelation.json
*/
/**
* Sample code: Creates or updates an incident relation.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentRelationsDeleteSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentRelationsDeleteSamples.java
index 0b2685360afbb..5e8907eac3780 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentRelationsDeleteSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentRelationsDeleteSamples.java
@@ -9,7 +9,7 @@
/** Samples for IncidentRelations Delete. */
public final class IncidentRelationsDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/incidents/relations/DeleteIncidentRelation.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/incidents/relations/DeleteIncidentRelation.json
*/
/**
* Sample code: Delete the incident relation.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentRelationsGetSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentRelationsGetSamples.java
index 9a56036b3591c..670b232ec8bb9 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentRelationsGetSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentRelationsGetSamples.java
@@ -9,7 +9,7 @@
/** Samples for IncidentRelations Get. */
public final class IncidentRelationsGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/incidents/relations/GetIncidentRelationByName.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/incidents/relations/GetIncidentRelationByName.json
*/
/**
* Sample code: Get an incident relation.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentRelationsListSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentRelationsListSamples.java
index af1559bca5821..0b79346a390a2 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentRelationsListSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentRelationsListSamples.java
@@ -9,7 +9,7 @@
/** Samples for IncidentRelations List. */
public final class IncidentRelationsListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/incidents/relations/GetAllIncidentRelations.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/incidents/relations/GetAllIncidentRelations.json
*/
/**
* Sample code: Get all incident relations.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsCreateOrUpdateSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsCreateOrUpdateSamples.java
index 1e61c295838c9..a04fa0c799a60 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsCreateOrUpdateSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsCreateOrUpdateSamples.java
@@ -15,7 +15,7 @@
/** Samples for Incidents CreateOrUpdate. */
public final class IncidentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/incidents/CreateIncident.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/incidents/CreateIncident.json
*/
/**
* Sample code: Creates or updates an incident.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsCreateTeamSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsCreateTeamSamples.java
index 9f51ac1f47b85..ca3d989973215 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsCreateTeamSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsCreateTeamSamples.java
@@ -10,7 +10,7 @@
/** Samples for Incidents CreateTeam. */
public final class IncidentsCreateTeamSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/incidents/CreateTeam.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/incidents/CreateTeam.json
*/
/**
* Sample code: Creates incident teams group.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsDeleteSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsDeleteSamples.java
index 352c7fdb00bf2..5a045c8d7ee67 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsDeleteSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsDeleteSamples.java
@@ -9,7 +9,7 @@
/** Samples for Incidents Delete. */
public final class IncidentsDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/incidents/DeleteIncident.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/incidents/DeleteIncident.json
*/
/**
* Sample code: Delete an incident.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsGetSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsGetSamples.java
index 65e0538114ec9..e63aa17e455b2 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsGetSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsGetSamples.java
@@ -9,7 +9,7 @@
/** Samples for Incidents Get. */
public final class IncidentsGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/incidents/GetIncidentById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/incidents/GetIncidentById.json
*/
/**
* Sample code: Get an incident.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsListAlertsSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsListAlertsSamples.java
index f231dada3cfc9..3929d7de00b10 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsListAlertsSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsListAlertsSamples.java
@@ -9,7 +9,7 @@
/** Samples for Incidents ListAlerts. */
public final class IncidentsListAlertsSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/incidents/GetAllIncidentAlerts.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/incidents/GetAllIncidentAlerts.json
*/
/**
* Sample code: Get all incident alerts.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsListBookmarksSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsListBookmarksSamples.java
index 83e761052964f..20beac3c6520e 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsListBookmarksSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsListBookmarksSamples.java
@@ -9,7 +9,7 @@
/** Samples for Incidents ListBookmarks. */
public final class IncidentsListBookmarksSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/incidents/GetAllIncidentBookmarks.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/incidents/GetAllIncidentBookmarks.json
*/
/**
* Sample code: Get all incident bookmarks.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsListEntitiesSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsListEntitiesSamples.java
index 80746978d424b..9492cfe18f5f4 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsListEntitiesSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsListEntitiesSamples.java
@@ -9,7 +9,7 @@
/** Samples for Incidents ListEntities. */
public final class IncidentsListEntitiesSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/incidents/entities/GetAllIncidentEntities.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/incidents/entities/GetAllIncidentEntities.json
*/
/**
* Sample code: Gets all incident related entities.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsListSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsListSamples.java
index 33565f2be12f6..07b8053174360 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsListSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsListSamples.java
@@ -9,7 +9,7 @@
/** Samples for Incidents List. */
public final class IncidentsListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/incidents/GetIncidents.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/incidents/GetIncidents.json
*/
/**
* Sample code: Get all incidents.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsRunPlaybookSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsRunPlaybookSamples.java
index b37626638809e..92c34f9f49e85 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsRunPlaybookSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IncidentsRunPlaybookSamples.java
@@ -9,7 +9,7 @@
/** Samples for Incidents RunPlaybook. */
public final class IncidentsRunPlaybookSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/manualTrigger/AutomationRules_ManualTriggerPlaybook.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/manualTrigger/AutomationRules_ManualTriggerPlaybook.json
*/
/**
* Sample code: AutomationRules_ManualTriggerPlaybook.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IpGeodataGetSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IpGeodataGetSamples.java
index af5231a560af8..9c3f35c4ea842 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IpGeodataGetSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/IpGeodataGetSamples.java
@@ -9,7 +9,7 @@
/** Samples for IpGeodata Get. */
public final class IpGeodataGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/enrichment/GetGeodataByIp.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/enrichment/GetGeodataByIp.json
*/
/**
* Sample code: Get geodata for a single IP address.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/MetadataCreateSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/MetadataCreateSamples.java
index b3d023892ffaa..8c0f07aa70634 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/MetadataCreateSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/MetadataCreateSamples.java
@@ -19,7 +19,7 @@
/** Samples for Metadata Create. */
public final class MetadataCreateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/metadata/PutMetadata.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/metadata/PutMetadata.json
*/
/**
* Sample code: Create/update full metadata.
@@ -95,7 +95,7 @@ public static void createUpdateFullMetadata(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/metadata/PutMetadataMinimal.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/metadata/PutMetadataMinimal.json
*/
/**
* Sample code: Create/update minimal metadata.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/MetadataDeleteSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/MetadataDeleteSamples.java
index e7528c2f90345..639d4e3a83441 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/MetadataDeleteSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/MetadataDeleteSamples.java
@@ -9,7 +9,7 @@
/** Samples for Metadata Delete. */
public final class MetadataDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/metadata/DeleteMetadata.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/metadata/DeleteMetadata.json
*/
/**
* Sample code: Delete metadata.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/MetadataGetSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/MetadataGetSamples.java
index b24c97efb6b80..d7003ed76ffd6 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/MetadataGetSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/MetadataGetSamples.java
@@ -9,7 +9,7 @@
/** Samples for Metadata Get. */
public final class MetadataGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/metadata/GetMetadata.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/metadata/GetMetadata.json
*/
/**
* Sample code: Get single metadata by name.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/MetadataListSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/MetadataListSamples.java
index 803804034850b..dd32e14cbc2e4 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/MetadataListSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/MetadataListSamples.java
@@ -9,7 +9,7 @@
/** Samples for Metadata List. */
public final class MetadataListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/metadata/GetAllMetadata.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/metadata/GetAllMetadata.json
*/
/**
* Sample code: Get all metadata.
@@ -21,7 +21,7 @@ public static void getAllMetadata(com.azure.resourcemanager.securityinsights.Sec
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/metadata/GetAllMetadataOData.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/metadata/GetAllMetadataOData.json
*/
/**
* Sample code: Get all metadata with OData filter/orderby/skip/top.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/MetadataUpdateSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/MetadataUpdateSamples.java
index 32fa0735719ea..11356c60e66eb 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/MetadataUpdateSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/MetadataUpdateSamples.java
@@ -11,7 +11,7 @@
/** Samples for Metadata Update. */
public final class MetadataUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/metadata/PatchMetadata.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/metadata/PatchMetadata.json
*/
/**
* Sample code: Update metadata.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/OfficeConsentsDeleteSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/OfficeConsentsDeleteSamples.java
index 11a9c9492899d..d0c7a5eff04d4 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/OfficeConsentsDeleteSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/OfficeConsentsDeleteSamples.java
@@ -9,7 +9,7 @@
/** Samples for OfficeConsents Delete. */
public final class OfficeConsentsDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/officeConsents/DeleteOfficeConsents.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/officeConsents/DeleteOfficeConsents.json
*/
/**
* Sample code: Delete an office consent.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/OfficeConsentsGetSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/OfficeConsentsGetSamples.java
index d7aed106d4723..2983955f39e16 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/OfficeConsentsGetSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/OfficeConsentsGetSamples.java
@@ -9,7 +9,7 @@
/** Samples for OfficeConsents Get. */
public final class OfficeConsentsGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/officeConsents/GetOfficeConsentsById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/officeConsents/GetOfficeConsentsById.json
*/
/**
* Sample code: Get an office consent.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/OfficeConsentsListSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/OfficeConsentsListSamples.java
index 8e7cbbb5a7ed3..6a1c80e4d154a 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/OfficeConsentsListSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/OfficeConsentsListSamples.java
@@ -9,7 +9,7 @@
/** Samples for OfficeConsents List. */
public final class OfficeConsentsListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/officeConsents/GetOfficeConsents.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/officeConsents/GetOfficeConsents.json
*/
/**
* Sample code: Get all office consents.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/OperationsListSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/OperationsListSamples.java
index bed648054f30b..574d7fc3a43e8 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/OperationsListSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/OperationsListSamples.java
@@ -9,7 +9,7 @@
/** Samples for Operations List. */
public final class OperationsListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/operations/ListOperations.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/operations/ListOperations.json
*/
/**
* Sample code: Get all operations.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ProductSettingsDeleteSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ProductSettingsDeleteSamples.java
index a3787b334bdbf..2cebae0cc1c6a 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ProductSettingsDeleteSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ProductSettingsDeleteSamples.java
@@ -9,7 +9,7 @@
/** Samples for ProductSettings Delete. */
public final class ProductSettingsDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/settings/DeleteEyesOnSetting.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/settings/DeleteEyesOnSetting.json
*/
/**
* Sample code: Delete EyesOn settings.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ProductSettingsGetSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ProductSettingsGetSamples.java
index 27a8fe8489c0f..fca09480dbf09 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ProductSettingsGetSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ProductSettingsGetSamples.java
@@ -9,7 +9,7 @@
/** Samples for ProductSettings Get. */
public final class ProductSettingsGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/settings/GetEyesOnSetting.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/settings/GetEyesOnSetting.json
*/
/**
* Sample code: Get EyesOn settings.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ProductSettingsListSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ProductSettingsListSamples.java
index d7b73a4335912..c2f0a5ddb5ec6 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ProductSettingsListSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ProductSettingsListSamples.java
@@ -9,7 +9,7 @@
/** Samples for ProductSettings List. */
public final class ProductSettingsListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/settings/GetAllSettings.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/settings/GetAllSettings.json
*/
/**
* Sample code: Get all settings.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ProductSettingsUpdateSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ProductSettingsUpdateSamples.java
index b4468a884a732..40076f5264f51 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ProductSettingsUpdateSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ProductSettingsUpdateSamples.java
@@ -10,7 +10,7 @@
/** Samples for ProductSettings Update. */
public final class ProductSettingsUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/settings/UpdateEyesOnSetting.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/settings/UpdateEyesOnSetting.json
*/
/**
* Sample code: Update EyesOn settings.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SecurityMLAnalyticsSettingsCreateOrUpdateSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SecurityMLAnalyticsSettingsCreateOrUpdateSamples.java
new file mode 100644
index 0000000000000..cb88da940102d
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SecurityMLAnalyticsSettingsCreateOrUpdateSamples.java
@@ -0,0 +1,78 @@
+// 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.generated;
+
+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;
+import com.azure.resourcemanager.securityinsights.models.SecurityMLAnalyticsSettingsDataSource;
+import com.azure.resourcemanager.securityinsights.models.SettingsStatus;
+import java.io.IOException;
+import java.time.Duration;
+import java.util.Arrays;
+import java.util.UUID;
+
+/** Samples for SecurityMLAnalyticsSettings CreateOrUpdate. */
+public final class SecurityMLAnalyticsSettingsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/securityMLAnalyticsSettings/CreateAnomalySecurityMLAnalyticsSetting.json
+ */
+ /**
+ * Sample code: Creates or updates a Anomaly Security ML Analytics Settings.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void createsOrUpdatesAAnomalySecurityMLAnalyticsSettings(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) throws IOException {
+ manager
+ .securityMLAnalyticsSettings()
+ .createOrUpdateWithResponse(
+ "myRg",
+ "myWorkspace",
+ "f209187f-1d17-4431-94af-c141bf5f23db",
+ new AnomalySecurityMLAnalyticsSettings()
+ .withEtag("\"260090e2-0000-0d00-0000-5d6fb8670000\"")
+ .withDescription(
+ "When account logs from a source region that has rarely been logged in from during the last 14"
+ + " days, an anomaly is triggered.")
+ .withDisplayName("Login from unusual region")
+ .withEnabled(true)
+ .withRequiredDataConnectors(
+ Arrays
+ .asList(
+ new SecurityMLAnalyticsSettingsDataSource()
+ .withConnectorId("AWS")
+ .withDataTypes(Arrays.asList("AWSCloudTrail"))))
+ .withTactics(Arrays.asList(AttackTactic.EXFILTRATION, AttackTactic.COMMAND_AND_CONTROL))
+ .withTechniques(Arrays.asList("T1037", "T1021"))
+ .withAnomalyVersion("1.0.5")
+ .withCustomizableObservations(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"multiSelectObservations\":null,\"prioritizeExcludeObservations\":null,\"singleSelectObservations\":[{\"name\":\"Device"
+ + " vendor\",\"description\":\"Select device vendor of network connection logs from"
+ + " CommonSecurityLog\",\"rerun\":\"RerunAlways\",\"sequenceNumber\":1,\"supportedValues\":[\"Palo"
+ + " Alto Networks\",\"Fortinet\",\"Check"
+ + " Point\"],\"supportedValuesKql\":null,\"value\":[\"Palo Alto"
+ + " Networks\"],\"valuesKql\":null}],\"singleValueObservations\":null,\"thresholdObservations\":[{\"name\":\"Daily"
+ + " data transfer threshold in MB\",\"description\":\"Suppress anomalies when daily"
+ + " data transfered (in MB) per hour is less than the chosen"
+ + " value\",\"maximum\":\"100\",\"minimum\":\"1\",\"rerun\":\"RerunAlways\",\"sequenceNumber\":1,\"value\":\"25\"},{\"name\":\"Number"
+ + " of standard deviations\",\"description\":\"Triggers anomalies when number of"
+ + " standard deviations is greater than the chosen"
+ + " value\",\"maximum\":\"10\",\"minimum\":\"2\",\"rerun\":\"RerunAlways\",\"sequenceNumber\":2,\"value\":\"3\"}]}",
+ Object.class,
+ SerializerEncoding.JSON))
+ .withFrequency(Duration.parse("PT1H"))
+ .withSettingsStatus(SettingsStatus.PRODUCTION)
+ .withIsDefaultSettings(true)
+ .withAnomalySettingsVersion(0)
+ .withSettingsDefinitionId(UUID.fromString("f209187f-1d17-4431-94af-c141bf5f23db")),
+ Context.NONE);
+ }
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SecurityMLAnalyticsSettingsDeleteSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SecurityMLAnalyticsSettingsDeleteSamples.java
new file mode 100644
index 0000000000000..5d29136a4a4be
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SecurityMLAnalyticsSettingsDeleteSamples.java
@@ -0,0 +1,25 @@
+// 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.generated;
+
+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-05-01-preview/examples/securityMLAnalyticsSettings/DeleteSecurityMLAnalyticsSetting.json
+ */
+ /**
+ * Sample code: Delete a Security ML Analytics Settings.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void deleteASecurityMLAnalyticsSettings(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .securityMLAnalyticsSettings()
+ .deleteWithResponse("myRg", "myWorkspace", "f209187f-1d17-4431-94af-c141bf5f23db", Context.NONE);
+ }
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SecurityMLAnalyticsSettingsGetSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SecurityMLAnalyticsSettingsGetSamples.java
new file mode 100644
index 0000000000000..f0517db3ff7f3
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SecurityMLAnalyticsSettingsGetSamples.java
@@ -0,0 +1,25 @@
+// 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.generated;
+
+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-05-01-preview/examples/securityMLAnalyticsSettings/GetAnomalySecurityMLAnalyticsSetting.json
+ */
+ /**
+ * Sample code: Get a Anomaly Security ML Analytics Settings.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void getAAnomalySecurityMLAnalyticsSettings(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager
+ .securityMLAnalyticsSettings()
+ .getWithResponse("myRg", "myWorkspace", "myFirstAnomalySettings", Context.NONE);
+ }
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SecurityMLAnalyticsSettingsListSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SecurityMLAnalyticsSettingsListSamples.java
new file mode 100644
index 0000000000000..3a9de878cc7f9
--- /dev/null
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SecurityMLAnalyticsSettingsListSamples.java
@@ -0,0 +1,23 @@
+// 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.generated;
+
+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-05-01-preview/examples/securityMLAnalyticsSettings/GetAllSecurityMLAnalyticsSettings.json
+ */
+ /**
+ * Sample code: Get all Security ML Analytics Settings.
+ *
+ * @param manager Entry point to SecurityInsightsManager.
+ */
+ public static void getAllSecurityMLAnalyticsSettings(
+ com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
+ manager.securityMLAnalyticsSettings().list("myRg", "myWorkspace", Context.NONE);
+ }
+}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SentinelOnboardingStatesCreateSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SentinelOnboardingStatesCreateSamples.java
index b9650dcbc4c04..a2ad70e2581c2 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SentinelOnboardingStatesCreateSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SentinelOnboardingStatesCreateSamples.java
@@ -7,7 +7,7 @@
/** Samples for SentinelOnboardingStates Create. */
public final class SentinelOnboardingStatesCreateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/onboardingStates/CreateSentinelOnboardingState.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/onboardingStates/CreateSentinelOnboardingState.json
*/
/**
* Sample code: Create Sentinel onboarding state.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SentinelOnboardingStatesDeleteSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SentinelOnboardingStatesDeleteSamples.java
index c958ffaf69030..0bfca8e724dc6 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SentinelOnboardingStatesDeleteSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SentinelOnboardingStatesDeleteSamples.java
@@ -9,7 +9,7 @@
/** Samples for SentinelOnboardingStates Delete. */
public final class SentinelOnboardingStatesDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/onboardingStates/DeleteSentinelOnboardingState.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/onboardingStates/DeleteSentinelOnboardingState.json
*/
/**
* Sample code: Delete Sentinel onboarding state.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SentinelOnboardingStatesGetSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SentinelOnboardingStatesGetSamples.java
index df3c9c84d0b64..ee20c24457596 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SentinelOnboardingStatesGetSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SentinelOnboardingStatesGetSamples.java
@@ -9,7 +9,7 @@
/** Samples for SentinelOnboardingStates Get. */
public final class SentinelOnboardingStatesGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/onboardingStates/GetSentinelOnboardingState.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/onboardingStates/GetSentinelOnboardingState.json
*/
/**
* Sample code: Get Sentinel onboarding state.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SentinelOnboardingStatesListSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SentinelOnboardingStatesListSamples.java
index 680c0cb4a0117..3969045380d2e 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SentinelOnboardingStatesListSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SentinelOnboardingStatesListSamples.java
@@ -9,7 +9,7 @@
/** Samples for SentinelOnboardingStates List. */
public final class SentinelOnboardingStatesListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/onboardingStates/GetAllSentinelOnboardingStates.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/onboardingStates/GetAllSentinelOnboardingStates.json
*/
/**
* Sample code: Get all Sentinel onboarding states.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SourceControlListRepositoriesSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SourceControlListRepositoriesSamples.java
index c4d993f2e1000..085eec38abbd8 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SourceControlListRepositoriesSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SourceControlListRepositoriesSamples.java
@@ -10,7 +10,7 @@
/** Samples for SourceControl ListRepositories. */
public final class SourceControlListRepositoriesSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/repositories/GetRepositories.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/repositories/GetRepositories.json
*/
/**
* Sample code: Get repository list.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SourceControlsOperationCreateSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SourceControlsOperationCreateSamples.java
index 7adef0fd6e21d..2b1e8a9645a85 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SourceControlsOperationCreateSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SourceControlsOperationCreateSamples.java
@@ -13,7 +13,7 @@
/** Samples for SourceControlsOperation Create. */
public final class SourceControlsOperationCreateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/sourcecontrols/CreateSourceControl.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/sourcecontrols/CreateSourceControl.json
*/
/**
* Sample code: Creates a source control.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SourceControlsOperationDeleteSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SourceControlsOperationDeleteSamples.java
index fc6b52d604531..d7f85e0e73e26 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SourceControlsOperationDeleteSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SourceControlsOperationDeleteSamples.java
@@ -9,7 +9,7 @@
/** Samples for SourceControlsOperation Delete. */
public final class SourceControlsOperationDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/sourcecontrols/DeleteSourceControl.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/sourcecontrols/DeleteSourceControl.json
*/
/**
* Sample code: Delete a source control.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SourceControlsOperationGetSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SourceControlsOperationGetSamples.java
index b3220a447ee0e..71492328c7c02 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SourceControlsOperationGetSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SourceControlsOperationGetSamples.java
@@ -9,7 +9,7 @@
/** Samples for SourceControlsOperation Get. */
public final class SourceControlsOperationGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/sourcecontrols/GetSourceControlById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/sourcecontrols/GetSourceControlById.json
*/
/**
* Sample code: Get a source control.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SourceControlsOperationListSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SourceControlsOperationListSamples.java
index faccc304e42a7..40d417861a619 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SourceControlsOperationListSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/SourceControlsOperationListSamples.java
@@ -9,7 +9,7 @@
/** Samples for SourceControlsOperation List. */
public final class SourceControlsOperationListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/sourcecontrols/GetSourceControls.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/sourcecontrols/GetSourceControls.json
*/
/**
* Sample code: Get all source controls.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorAppendTagsSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorAppendTagsSamples.java
index d10b1d5e0e53b..b3f93ca696513 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorAppendTagsSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorAppendTagsSamples.java
@@ -11,7 +11,7 @@
/** Samples for ThreatIntelligenceIndicator AppendTags. */
public final class ThreatIntelligenceIndicatorAppendTagsSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/threatintelligence/AppendTagsThreatIntelligence.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/threatintelligence/AppendTagsThreatIntelligence.json
*/
/**
* Sample code: Append tags to a threat intelligence indicator.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorCreateIndicatorSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorCreateIndicatorSamples.java
index c5f4eeb864f02..f6da34befb376 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorCreateIndicatorSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorCreateIndicatorSamples.java
@@ -11,7 +11,7 @@
/** Samples for ThreatIntelligenceIndicator CreateIndicator. */
public final class ThreatIntelligenceIndicatorCreateIndicatorSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/threatintelligence/CreateThreatIntelligence.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/threatintelligence/CreateThreatIntelligence.json
*/
/**
* Sample code: Create a new Threat Intelligence.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorCreateSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorCreateSamples.java
index 751cabfd6e8c9..7571b3b500d1f 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorCreateSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorCreateSamples.java
@@ -11,7 +11,7 @@
/** Samples for ThreatIntelligenceIndicator Create. */
public final class ThreatIntelligenceIndicatorCreateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/threatintelligence/UpdateThreatIntelligence.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/threatintelligence/UpdateThreatIntelligence.json
*/
/**
* Sample code: Update a threat Intelligence indicator.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorDeleteSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorDeleteSamples.java
index 3b537f0efa463..7388b2cff113c 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorDeleteSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorDeleteSamples.java
@@ -9,7 +9,7 @@
/** Samples for ThreatIntelligenceIndicator Delete. */
public final class ThreatIntelligenceIndicatorDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/threatintelligence/DeleteThreatIntelligence.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/threatintelligence/DeleteThreatIntelligence.json
*/
/**
* Sample code: Delete a threat intelligence indicator.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorGetSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorGetSamples.java
index 80a6234ee5de0..3122a8aca61f9 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorGetSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorGetSamples.java
@@ -9,7 +9,7 @@
/** Samples for ThreatIntelligenceIndicator Get. */
public final class ThreatIntelligenceIndicatorGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/threatintelligence/GetThreatIntelligenceById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/threatintelligence/GetThreatIntelligenceById.json
*/
/**
* Sample code: View a threat intelligence indicator by name.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorMetricsListSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorMetricsListSamples.java
index e3181145425c5..ad04dfe8b548a 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorMetricsListSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorMetricsListSamples.java
@@ -9,7 +9,7 @@
/** Samples for ThreatIntelligenceIndicatorMetrics List. */
public final class ThreatIntelligenceIndicatorMetricsListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/threatintelligence/CollectThreatIntelligenceMetrics.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/threatintelligence/CollectThreatIntelligenceMetrics.json
*/
/**
* Sample code: Get threat intelligence indicators metrics.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorQueryIndicatorsSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorQueryIndicatorsSamples.java
index 451fbf767a725..5e5a6f282d897 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorQueryIndicatorsSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorQueryIndicatorsSamples.java
@@ -13,7 +13,7 @@
/** Samples for ThreatIntelligenceIndicator QueryIndicators. */
public final class ThreatIntelligenceIndicatorQueryIndicatorsSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/threatintelligence/QueryThreatIntelligence.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/threatintelligence/QueryThreatIntelligence.json
*/
/**
* Sample code: Query threat intelligence indicators as per filtering criteria.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorReplaceTagsSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorReplaceTagsSamples.java
index 2cf5e26d26469..a7a96fa447e43 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorReplaceTagsSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorReplaceTagsSamples.java
@@ -11,7 +11,7 @@
/** Samples for ThreatIntelligenceIndicator ReplaceTags. */
public final class ThreatIntelligenceIndicatorReplaceTagsSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/threatintelligence/ReplaceTagsThreatIntelligence.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/threatintelligence/ReplaceTagsThreatIntelligence.json
*/
/**
* Sample code: Replace tags to a Threat Intelligence.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorsOperationListSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorsOperationListSamples.java
index 6ca8bd43c54de..7d2d010a27828 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorsOperationListSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/ThreatIntelligenceIndicatorsOperationListSamples.java
@@ -9,7 +9,7 @@
/** Samples for ThreatIntelligenceIndicatorsOperation List. */
public final class ThreatIntelligenceIndicatorsOperationListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/threatintelligence/GetThreatIntelligence.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/threatintelligence/GetThreatIntelligence.json
*/
/**
* Sample code: Get all threat intelligence indicators.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistItemsCreateOrUpdateSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistItemsCreateOrUpdateSamples.java
index c343a0732710b..61795175061f4 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistItemsCreateOrUpdateSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistItemsCreateOrUpdateSamples.java
@@ -10,7 +10,7 @@
/** Samples for WatchlistItems CreateOrUpdate. */
public final class WatchlistItemsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/watchlists/CreateWatchlistItem.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/watchlists/CreateWatchlistItem.json
*/
/**
* Sample code: Creates or updates a watchlist item.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistItemsDeleteSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistItemsDeleteSamples.java
index f347da736b8ad..fff09795840bf 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistItemsDeleteSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistItemsDeleteSamples.java
@@ -9,7 +9,7 @@
/** Samples for WatchlistItems Delete. */
public final class WatchlistItemsDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/watchlists/DeleteWatchlistItem.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/watchlists/DeleteWatchlistItem.json
*/
/**
* Sample code: Delete a watchlist Item.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistItemsGetSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistItemsGetSamples.java
index f2dbd09792455..d065bdfdaa59f 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistItemsGetSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistItemsGetSamples.java
@@ -9,7 +9,7 @@
/** Samples for WatchlistItems Get. */
public final class WatchlistItemsGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/watchlists/GetWatchlistItemById.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/watchlists/GetWatchlistItemById.json
*/
/**
* Sample code: Get a watchlist item.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistItemsListSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistItemsListSamples.java
index cb96e8310cacd..82ad1c8c166e1 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistItemsListSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistItemsListSamples.java
@@ -9,7 +9,7 @@
/** Samples for WatchlistItems List. */
public final class WatchlistItemsListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/watchlists/GetWatchlistItems.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/watchlists/GetWatchlistItems.json
*/
/**
* Sample code: Get all watchlist Items.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistsCreateOrUpdateSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistsCreateOrUpdateSamples.java
index ed18b3f3624ed..fc3cf5fd344a7 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistsCreateOrUpdateSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistsCreateOrUpdateSamples.java
@@ -9,7 +9,7 @@
/** Samples for Watchlists CreateOrUpdate. */
public final class WatchlistsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/watchlists/CreateWatchlistAndWatchlistItems.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/watchlists/CreateWatchlistAndWatchlistItems.json
*/
/**
* Sample code: Creates or updates a watchlist and bulk creates watchlist items.
@@ -36,7 +36,7 @@ public static void createsOrUpdatesAWatchlistAndBulkCreatesWatchlistItems(
}
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/watchlists/CreateWatchlist.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/watchlists/CreateWatchlist.json
*/
/**
* Sample code: Creates or updates a watchlist.
@@ -58,30 +58,4 @@ public static void createsOrUpdatesAWatchlist(
.withItemsSearchKey("header1")
.create();
}
-
- /*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/watchlists/CreateWatchlistAndWatchlistItemsFromSasUri.json
- */
- /**
- * Sample code: Create or update a watchlist and bulk creates watchlist items from SAL URI.
- *
- * @param manager Entry point to SecurityInsightsManager.
- */
- public static void createOrUpdateAWatchlistAndBulkCreatesWatchlistItemsFromSALURI(
- com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
- manager
- .watchlists()
- .define("highValueAsset")
- .withExistingWorkspace("myRg", "myWorkspace")
- .withEtag("\"0300bf09-0000-0000-0000-5c37296e0000\"")
- .withDisplayName("High Value Assets Watchlist")
- .withProvider("Microsoft")
- .withSourceType(SourceType.REMOTE_STORAGE)
- .withDescription("Watchlist from a large CSV file under Blob storage")
- .withNumberOfLinesToSkip(1)
- .withSasUri(
- "https://storagesample.blob.core.windows.net/sample-contaier/sampleBlob.csv?sp=r&st=2021-09-24T01:15:52Z&se=2021-10-01T09:15:52Z&spr=https&sv=2020-08-04&sr=b&sig=HRRRMc43ZJz634eBc402X%2FFPxam5sZVPSkLOY14baEd%4Z")
- .withItemsSearchKey("header1")
- .create();
- }
}
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistsDeleteSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistsDeleteSamples.java
index 0da4b6a0ef128..a7a54ef78dec8 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistsDeleteSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistsDeleteSamples.java
@@ -9,7 +9,7 @@
/** Samples for Watchlists Delete. */
public final class WatchlistsDeleteSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/watchlists/DeleteWatchlist.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/watchlists/DeleteWatchlist.json
*/
/**
* Sample code: Delete a watchlist.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistsGetSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistsGetSamples.java
index 62a3c7de6073a..df94386211a4c 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistsGetSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistsGetSamples.java
@@ -9,7 +9,7 @@
/** Samples for Watchlists Get. */
public final class WatchlistsGetSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/watchlists/GetWatchlistByAlias.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/watchlists/GetWatchlistByAlias.json
*/
/**
* Sample code: Get a watchlist.
diff --git a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistsListSamples.java b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistsListSamples.java
index a80168d01c398..4a89a3cbf14fb 100644
--- a/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistsListSamples.java
+++ b/sdk/securityinsights/azure-resourcemanager-securityinsights/src/samples/java/com/azure/resourcemanager/securityinsights/generated/WatchlistsListSamples.java
@@ -9,7 +9,7 @@
/** Samples for Watchlists List. */
public final class WatchlistsListSamples {
/*
- * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/examples/watchlists/GetWatchlists.json
+ * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-05-01-preview/examples/watchlists/GetWatchlists.json
*/
/**
* Sample code: Get all watchlists.