diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/ActionsOperations.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/ActionsOperations.cs
index 8c0055f2654db..44c5dc6e767ae 100644
--- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/ActionsOperations.cs
+++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/ActionsOperations.cs
@@ -54,8 +54,7 @@ internal ActionsOperations(SecurityInsightsClient client)
/// Gets all actions of alert rule.
///
///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -69,7 +68,7 @@ internal ActionsOperations(SecurityInsightsClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -86,15 +85,26 @@ internal ActionsOperations(SecurityInsightsClient client)
///
public async Task>> ListByAlertRuleWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string ruleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.ApiVersion != null)
+ {
+ if (Client.ApiVersion.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
+ }
+ }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
if (Client.SubscriptionId != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(Client.SubscriptionId, "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$"))
+ if (Client.SubscriptionId.Length < 1)
{
- throw new ValidationException(ValidationRules.Pattern, "Client.SubscriptionId", "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$");
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
}
}
if (resourceGroupName == null)
@@ -111,10 +121,6 @@ internal ActionsOperations(SecurityInsightsClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (workspaceName == null)
{
@@ -220,14 +226,13 @@ internal ActionsOperations(SecurityInsightsClient client)
string _responseContent = null;
if ((int)_statusCode != 200)
{
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
@@ -237,10 +242,6 @@ internal ActionsOperations(SecurityInsightsClient client)
}
ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
if (_shouldTrace)
{
ServiceClientTracing.Error(_invocationId, ex);
@@ -289,8 +290,7 @@ internal ActionsOperations(SecurityInsightsClient client)
/// Gets the action of alert rule.
///
///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -307,7 +307,7 @@ internal ActionsOperations(SecurityInsightsClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -324,15 +324,26 @@ internal ActionsOperations(SecurityInsightsClient client)
///
public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string ruleId, string actionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.ApiVersion != null)
+ {
+ if (Client.ApiVersion.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
+ }
+ }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
if (Client.SubscriptionId != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(Client.SubscriptionId, "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$"))
+ if (Client.SubscriptionId.Length < 1)
{
- throw new ValidationException(ValidationRules.Pattern, "Client.SubscriptionId", "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$");
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
}
}
if (resourceGroupName == null)
@@ -349,10 +360,6 @@ internal ActionsOperations(SecurityInsightsClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (workspaceName == null)
{
@@ -464,14 +471,13 @@ internal ActionsOperations(SecurityInsightsClient client)
string _responseContent = null;
if ((int)_statusCode != 200)
{
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
@@ -481,10 +487,6 @@ internal ActionsOperations(SecurityInsightsClient client)
}
ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
if (_shouldTrace)
{
ServiceClientTracing.Error(_invocationId, ex);
@@ -533,8 +535,7 @@ internal ActionsOperations(SecurityInsightsClient client)
/// Creates or updates the action of alert rule.
///
///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -554,7 +555,7 @@ internal ActionsOperations(SecurityInsightsClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -571,15 +572,26 @@ internal ActionsOperations(SecurityInsightsClient client)
///
public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string ruleId, string actionId, ActionRequest action, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.ApiVersion != null)
+ {
+ if (Client.ApiVersion.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
+ }
+ }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
if (Client.SubscriptionId != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(Client.SubscriptionId, "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$"))
+ if (Client.SubscriptionId.Length < 1)
{
- throw new ValidationException(ValidationRules.Pattern, "Client.SubscriptionId", "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$");
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
}
}
if (resourceGroupName == null)
@@ -596,10 +608,6 @@ internal ActionsOperations(SecurityInsightsClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (workspaceName == null)
{
@@ -726,14 +734,13 @@ internal ActionsOperations(SecurityInsightsClient client)
string _responseContent = null;
if ((int)_statusCode != 200 && (int)_statusCode != 201)
{
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
@@ -743,10 +750,6 @@ internal ActionsOperations(SecurityInsightsClient client)
}
ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
if (_shouldTrace)
{
ServiceClientTracing.Error(_invocationId, ex);
@@ -813,8 +816,7 @@ internal ActionsOperations(SecurityInsightsClient client)
/// Delete the action of alert rule.
///
///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -831,7 +833,7 @@ internal ActionsOperations(SecurityInsightsClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -845,15 +847,26 @@ internal ActionsOperations(SecurityInsightsClient client)
///
public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string ruleId, string actionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.ApiVersion != null)
+ {
+ if (Client.ApiVersion.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
+ }
+ }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
if (Client.SubscriptionId != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(Client.SubscriptionId, "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$"))
+ if (Client.SubscriptionId.Length < 1)
{
- throw new ValidationException(ValidationRules.Pattern, "Client.SubscriptionId", "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$");
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
}
}
if (resourceGroupName == null)
@@ -870,10 +883,6 @@ internal ActionsOperations(SecurityInsightsClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (workspaceName == null)
{
@@ -985,14 +994,13 @@ internal ActionsOperations(SecurityInsightsClient client)
string _responseContent = null;
if ((int)_statusCode != 200 && (int)_statusCode != 204)
{
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
@@ -1002,10 +1010,6 @@ internal ActionsOperations(SecurityInsightsClient client)
}
ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
if (_shouldTrace)
{
ServiceClientTracing.Error(_invocationId, ex);
@@ -1044,7 +1048,7 @@ internal ActionsOperations(SecurityInsightsClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -1140,14 +1144,13 @@ internal ActionsOperations(SecurityInsightsClient client)
string _responseContent = null;
if ((int)_statusCode != 200)
{
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
@@ -1157,10 +1160,6 @@ internal ActionsOperations(SecurityInsightsClient client)
}
ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
if (_shouldTrace)
{
ServiceClientTracing.Error(_invocationId, ex);
diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/ActionsOperationsExtensions.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/ActionsOperationsExtensions.cs
index 2d58d876af271..acea07a714f04 100644
--- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/ActionsOperationsExtensions.cs
+++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/ActionsOperationsExtensions.cs
@@ -28,8 +28,7 @@ public static partial class ActionsOperationsExtensions
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -49,8 +48,7 @@ public static IPage ListByAlertRule(this IActionsOperations oper
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -76,8 +74,7 @@ public static IPage ListByAlertRule(this IActionsOperations oper
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -100,8 +97,7 @@ public static ActionResponse Get(this IActionsOperations operations, string reso
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -130,8 +126,7 @@ public static ActionResponse Get(this IActionsOperations operations, string reso
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -157,8 +152,7 @@ public static ActionResponse CreateOrUpdate(this IActionsOperations operations,
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -190,8 +184,7 @@ public static ActionResponse CreateOrUpdate(this IActionsOperations operations,
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -214,8 +207,7 @@ public static void Delete(this IActionsOperations operations, string resourceGro
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/AlertRuleTemplatesOperations.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/AlertRuleTemplatesOperations.cs
index f7c4e5f1d8e1e..79826efb27b97 100644
--- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/AlertRuleTemplatesOperations.cs
+++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/AlertRuleTemplatesOperations.cs
@@ -54,8 +54,7 @@ internal AlertRuleTemplatesOperations(SecurityInsightsClient client)
/// Gets all alert rule templates.
///
///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -66,7 +65,7 @@ internal AlertRuleTemplatesOperations(SecurityInsightsClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -83,15 +82,26 @@ internal AlertRuleTemplatesOperations(SecurityInsightsClient client)
///
public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, string workspaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.ApiVersion != null)
+ {
+ if (Client.ApiVersion.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
+ }
+ }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
if (Client.SubscriptionId != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(Client.SubscriptionId, "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$"))
+ if (Client.SubscriptionId.Length < 1)
{
- throw new ValidationException(ValidationRules.Pattern, "Client.SubscriptionId", "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$");
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
}
}
if (resourceGroupName == null)
@@ -108,10 +118,6 @@ internal AlertRuleTemplatesOperations(SecurityInsightsClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (workspaceName == null)
{
@@ -211,14 +217,13 @@ internal AlertRuleTemplatesOperations(SecurityInsightsClient client)
string _responseContent = null;
if ((int)_statusCode != 200)
{
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
@@ -228,10 +233,6 @@ internal AlertRuleTemplatesOperations(SecurityInsightsClient client)
}
ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
if (_shouldTrace)
{
ServiceClientTracing.Error(_invocationId, ex);
@@ -280,8 +281,7 @@ internal AlertRuleTemplatesOperations(SecurityInsightsClient client)
/// Gets the alert rule template.
///
///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -295,7 +295,7 @@ internal AlertRuleTemplatesOperations(SecurityInsightsClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -312,15 +312,26 @@ internal AlertRuleTemplatesOperations(SecurityInsightsClient client)
///
public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string alertRuleTemplateId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.ApiVersion != null)
+ {
+ if (Client.ApiVersion.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
+ }
+ }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
if (Client.SubscriptionId != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(Client.SubscriptionId, "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$"))
+ if (Client.SubscriptionId.Length < 1)
{
- throw new ValidationException(ValidationRules.Pattern, "Client.SubscriptionId", "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$");
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
}
}
if (resourceGroupName == null)
@@ -337,10 +348,6 @@ internal AlertRuleTemplatesOperations(SecurityInsightsClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (workspaceName == null)
{
@@ -446,14 +453,13 @@ internal AlertRuleTemplatesOperations(SecurityInsightsClient client)
string _responseContent = null;
if ((int)_statusCode != 200)
{
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
@@ -463,10 +469,6 @@ internal AlertRuleTemplatesOperations(SecurityInsightsClient client)
}
ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
if (_shouldTrace)
{
ServiceClientTracing.Error(_invocationId, ex);
@@ -523,7 +525,7 @@ internal AlertRuleTemplatesOperations(SecurityInsightsClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -619,14 +621,13 @@ internal AlertRuleTemplatesOperations(SecurityInsightsClient client)
string _responseContent = null;
if ((int)_statusCode != 200)
{
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
@@ -636,10 +637,6 @@ internal AlertRuleTemplatesOperations(SecurityInsightsClient client)
}
ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
if (_shouldTrace)
{
ServiceClientTracing.Error(_invocationId, ex);
diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/AlertRuleTemplatesOperationsExtensions.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/AlertRuleTemplatesOperationsExtensions.cs
index 8db2e5377500c..fdd5d9d5f7e8c 100644
--- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/AlertRuleTemplatesOperationsExtensions.cs
+++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/AlertRuleTemplatesOperationsExtensions.cs
@@ -28,8 +28,7 @@ public static partial class AlertRuleTemplatesOperationsExtensions
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -46,8 +45,7 @@ public static IPage List(this IAlertRuleTemplatesOperations o
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -70,8 +68,7 @@ public static IPage List(this IAlertRuleTemplatesOperations o
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -91,8 +88,7 @@ public static AlertRuleTemplate Get(this IAlertRuleTemplatesOperations operation
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/AlertRulesOperations.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/AlertRulesOperations.cs
index 81b3fcd83e961..6847fc261f900 100644
--- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/AlertRulesOperations.cs
+++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/AlertRulesOperations.cs
@@ -54,8 +54,7 @@ internal AlertRulesOperations(SecurityInsightsClient client)
/// Gets all alert rules.
///
///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -66,7 +65,7 @@ internal AlertRulesOperations(SecurityInsightsClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -83,15 +82,26 @@ internal AlertRulesOperations(SecurityInsightsClient client)
///
public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, string workspaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.ApiVersion != null)
+ {
+ if (Client.ApiVersion.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
+ }
+ }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
if (Client.SubscriptionId != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(Client.SubscriptionId, "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$"))
+ if (Client.SubscriptionId.Length < 1)
{
- throw new ValidationException(ValidationRules.Pattern, "Client.SubscriptionId", "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$");
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
}
}
if (resourceGroupName == null)
@@ -108,10 +118,6 @@ internal AlertRulesOperations(SecurityInsightsClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (workspaceName == null)
{
@@ -211,14 +217,13 @@ internal AlertRulesOperations(SecurityInsightsClient client)
string _responseContent = null;
if ((int)_statusCode != 200)
{
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
@@ -228,10 +233,6 @@ internal AlertRulesOperations(SecurityInsightsClient client)
}
ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
if (_shouldTrace)
{
ServiceClientTracing.Error(_invocationId, ex);
@@ -280,8 +281,7 @@ internal AlertRulesOperations(SecurityInsightsClient client)
/// Gets the alert rule.
///
///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -295,7 +295,7 @@ internal AlertRulesOperations(SecurityInsightsClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -312,15 +312,26 @@ internal AlertRulesOperations(SecurityInsightsClient client)
///
public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string ruleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.ApiVersion != null)
+ {
+ if (Client.ApiVersion.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
+ }
+ }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
if (Client.SubscriptionId != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(Client.SubscriptionId, "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$"))
+ if (Client.SubscriptionId.Length < 1)
{
- throw new ValidationException(ValidationRules.Pattern, "Client.SubscriptionId", "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$");
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
}
}
if (resourceGroupName == null)
@@ -337,10 +348,6 @@ internal AlertRulesOperations(SecurityInsightsClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (workspaceName == null)
{
@@ -446,14 +453,13 @@ internal AlertRulesOperations(SecurityInsightsClient client)
string _responseContent = null;
if ((int)_statusCode != 200)
{
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
@@ -463,10 +469,6 @@ internal AlertRulesOperations(SecurityInsightsClient client)
}
ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
if (_shouldTrace)
{
ServiceClientTracing.Error(_invocationId, ex);
@@ -515,8 +517,7 @@ internal AlertRulesOperations(SecurityInsightsClient client)
/// Creates or updates the alert rule.
///
///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -533,7 +534,7 @@ internal AlertRulesOperations(SecurityInsightsClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -550,15 +551,26 @@ internal AlertRulesOperations(SecurityInsightsClient client)
///
public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string ruleId, AlertRule alertRule, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.ApiVersion != null)
+ {
+ if (Client.ApiVersion.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
+ }
+ }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
if (Client.SubscriptionId != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(Client.SubscriptionId, "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$"))
+ if (Client.SubscriptionId.Length < 1)
{
- throw new ValidationException(ValidationRules.Pattern, "Client.SubscriptionId", "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$");
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
}
}
if (resourceGroupName == null)
@@ -575,10 +587,6 @@ internal AlertRulesOperations(SecurityInsightsClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (workspaceName == null)
{
@@ -695,14 +703,13 @@ internal AlertRulesOperations(SecurityInsightsClient client)
string _responseContent = null;
if ((int)_statusCode != 200 && (int)_statusCode != 201)
{
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
@@ -712,10 +719,6 @@ internal AlertRulesOperations(SecurityInsightsClient client)
}
ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
if (_shouldTrace)
{
ServiceClientTracing.Error(_invocationId, ex);
@@ -782,8 +785,7 @@ internal AlertRulesOperations(SecurityInsightsClient client)
/// Delete the alert rule.
///
///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -797,7 +799,7 @@ internal AlertRulesOperations(SecurityInsightsClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -811,15 +813,26 @@ internal AlertRulesOperations(SecurityInsightsClient client)
///
public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string ruleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.ApiVersion != null)
+ {
+ if (Client.ApiVersion.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
+ }
+ }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
if (Client.SubscriptionId != null)
{
- if (!System.Text.RegularExpressions.Regex.IsMatch(Client.SubscriptionId, "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$"))
+ if (Client.SubscriptionId.Length < 1)
{
- throw new ValidationException(ValidationRules.Pattern, "Client.SubscriptionId", "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$");
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
}
}
if (resourceGroupName == null)
@@ -836,10 +849,6 @@ internal AlertRulesOperations(SecurityInsightsClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (workspaceName == null)
{
@@ -945,14 +954,13 @@ internal AlertRulesOperations(SecurityInsightsClient client)
string _responseContent = null;
if ((int)_statusCode != 200 && (int)_statusCode != 204)
{
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
@@ -962,10 +970,6 @@ internal AlertRulesOperations(SecurityInsightsClient client)
}
ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
if (_shouldTrace)
{
ServiceClientTracing.Error(_invocationId, ex);
@@ -1004,7 +1008,7 @@ internal AlertRulesOperations(SecurityInsightsClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -1100,14 +1104,13 @@ internal AlertRulesOperations(SecurityInsightsClient client)
string _responseContent = null;
if ((int)_statusCode != 200)
{
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
@@ -1117,10 +1120,6 @@ internal AlertRulesOperations(SecurityInsightsClient client)
}
ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
if (_shouldTrace)
{
ServiceClientTracing.Error(_invocationId, ex);
diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/AlertRulesOperationsExtensions.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/AlertRulesOperationsExtensions.cs
index 9aa94cc42f9dd..a6cb51c14cabe 100644
--- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/AlertRulesOperationsExtensions.cs
+++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/AlertRulesOperationsExtensions.cs
@@ -28,8 +28,7 @@ public static partial class AlertRulesOperationsExtensions
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -46,8 +45,7 @@ public static IPage List(this IAlertRulesOperations operations, strin
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -70,8 +68,7 @@ public static IPage List(this IAlertRulesOperations operations, strin
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -91,8 +88,7 @@ public static AlertRule Get(this IAlertRulesOperations operations, string resour
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -118,8 +114,7 @@ public static AlertRule Get(this IAlertRulesOperations operations, string resour
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -142,8 +137,7 @@ public static AlertRule CreateOrUpdate(this IAlertRulesOperations operations, st
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -172,8 +166,7 @@ public static AlertRule CreateOrUpdate(this IAlertRulesOperations operations, st
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -193,8 +186,7 @@ public static void Delete(this IAlertRulesOperations operations, string resource
/// The operations group for this extension method.
///
///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/BookmarksOperationsExtensions.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/BookmarksOperationsExtensions.cs
deleted file mode 100644
index 00b4bf29cc5ad..0000000000000
--- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/BookmarksOperationsExtensions.cs
+++ /dev/null
@@ -1,248 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.SecurityInsights
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// Extension methods for BookmarksOperations.
- ///
- public static partial class BookmarksOperationsExtensions
- {
- ///
- /// Gets all bookmarks.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
- ///
- ///
- /// The name of the workspace.
- ///
- public static IPage List(this IBookmarksOperations operations, string resourceGroupName, string workspaceName)
- {
- return operations.ListAsync(resourceGroupName, workspaceName).GetAwaiter().GetResult();
- }
-
- ///
- /// Gets all bookmarks.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
- ///
- ///
- /// The name of the workspace.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> ListAsync(this IBookmarksOperations operations, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, workspaceName, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// Gets a bookmark.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
- ///
- ///
- /// The name of the workspace.
- ///
- ///
- /// Bookmark ID
- ///
- public static Bookmark Get(this IBookmarksOperations operations, string resourceGroupName, string workspaceName, string bookmarkId)
- {
- return operations.GetAsync(resourceGroupName, workspaceName, bookmarkId).GetAwaiter().GetResult();
- }
-
- ///
- /// Gets a bookmark.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
- ///
- ///
- /// The name of the workspace.
- ///
- ///
- /// Bookmark ID
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task GetAsync(this IBookmarksOperations operations, string resourceGroupName, string workspaceName, string bookmarkId, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, workspaceName, bookmarkId, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// Creates or updates the bookmark.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
- ///
- ///
- /// The name of the workspace.
- ///
- ///
- /// Bookmark ID
- ///
- ///
- /// The bookmark
- ///
- public static Bookmark CreateOrUpdate(this IBookmarksOperations operations, string resourceGroupName, string workspaceName, string bookmarkId, Bookmark bookmark)
- {
- return operations.CreateOrUpdateAsync(resourceGroupName, workspaceName, bookmarkId, bookmark).GetAwaiter().GetResult();
- }
-
- ///
- /// Creates or updates the bookmark.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
- ///
- ///
- /// The name of the workspace.
- ///
- ///
- /// Bookmark ID
- ///
- ///
- /// The bookmark
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task CreateOrUpdateAsync(this IBookmarksOperations operations, string resourceGroupName, string workspaceName, string bookmarkId, Bookmark bookmark, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, workspaceName, bookmarkId, bookmark, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// Delete the bookmark.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
- ///
- ///
- /// The name of the workspace.
- ///
- ///
- /// Bookmark ID
- ///
- public static void Delete(this IBookmarksOperations operations, string resourceGroupName, string workspaceName, string bookmarkId)
- {
- operations.DeleteAsync(resourceGroupName, workspaceName, bookmarkId).GetAwaiter().GetResult();
- }
-
- ///
- /// Delete the bookmark.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
- ///
- ///
- /// The name of the workspace.
- ///
- ///
- /// Bookmark ID
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task DeleteAsync(this IBookmarksOperations operations, string resourceGroupName, string workspaceName, string bookmarkId, CancellationToken cancellationToken = default(CancellationToken))
- {
- (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, workspaceName, bookmarkId, null, cancellationToken).ConfigureAwait(false)).Dispose();
- }
-
- ///
- /// Gets all bookmarks.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- public static IPage ListNext(this IBookmarksOperations operations, string nextPageLink)
- {
- return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult();
- }
-
- ///
- /// Gets all bookmarks.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> ListNextAsync(this IBookmarksOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- }
-}
diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/DataConnectorsOperationsExtensions.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/DataConnectorsOperationsExtensions.cs
deleted file mode 100644
index 63790d1dae244..0000000000000
--- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/DataConnectorsOperationsExtensions.cs
+++ /dev/null
@@ -1,248 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.SecurityInsights
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// Extension methods for DataConnectorsOperations.
- ///
- public static partial class DataConnectorsOperationsExtensions
- {
- ///
- /// Gets all data connectors.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
- ///
- ///
- /// The name of the workspace.
- ///
- public static IPage List(this IDataConnectorsOperations operations, string resourceGroupName, string workspaceName)
- {
- return operations.ListAsync(resourceGroupName, workspaceName).GetAwaiter().GetResult();
- }
-
- ///
- /// Gets all data connectors.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
- ///
- ///
- /// The name of the workspace.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> ListAsync(this IDataConnectorsOperations operations, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, workspaceName, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// Gets a data connector.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
- ///
- ///
- /// The name of the workspace.
- ///
- ///
- /// Connector ID
- ///
- public static DataConnector Get(this IDataConnectorsOperations operations, string resourceGroupName, string workspaceName, string dataConnectorId)
- {
- return operations.GetAsync(resourceGroupName, workspaceName, dataConnectorId).GetAwaiter().GetResult();
- }
-
- ///
- /// Gets a data connector.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
- ///
- ///
- /// The name of the workspace.
- ///
- ///
- /// Connector ID
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task GetAsync(this IDataConnectorsOperations operations, string resourceGroupName, string workspaceName, string dataConnectorId, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, workspaceName, dataConnectorId, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// Creates or updates the data connector.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
- ///
- ///
- /// The name of the workspace.
- ///
- ///
- /// Connector ID
- ///
- ///
- /// The data connector
- ///
- public static DataConnector CreateOrUpdate(this IDataConnectorsOperations operations, string resourceGroupName, string workspaceName, string dataConnectorId, DataConnector dataConnector)
- {
- return operations.CreateOrUpdateAsync(resourceGroupName, workspaceName, dataConnectorId, dataConnector).GetAwaiter().GetResult();
- }
-
- ///
- /// Creates or updates the data connector.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
- ///
- ///
- /// The name of the workspace.
- ///
- ///
- /// Connector ID
- ///
- ///
- /// The data connector
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task CreateOrUpdateAsync(this IDataConnectorsOperations operations, string resourceGroupName, string workspaceName, string dataConnectorId, DataConnector dataConnector, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, workspaceName, dataConnectorId, dataConnector, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// Delete the data connector.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
- ///
- ///
- /// The name of the workspace.
- ///
- ///
- /// Connector ID
- ///
- public static void Delete(this IDataConnectorsOperations operations, string resourceGroupName, string workspaceName, string dataConnectorId)
- {
- operations.DeleteAsync(resourceGroupName, workspaceName, dataConnectorId).GetAwaiter().GetResult();
- }
-
- ///
- /// Delete the data connector.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
- ///
- ///
- /// The name of the workspace.
- ///
- ///
- /// Connector ID
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task DeleteAsync(this IDataConnectorsOperations operations, string resourceGroupName, string workspaceName, string dataConnectorId, CancellationToken cancellationToken = default(CancellationToken))
- {
- (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, workspaceName, dataConnectorId, null, cancellationToken).ConfigureAwait(false)).Dispose();
- }
-
- ///
- /// Gets all data connectors.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- public static IPage ListNext(this IDataConnectorsOperations operations, string nextPageLink)
- {
- return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult();
- }
-
- ///
- /// Gets all data connectors.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> ListNextAsync(this IDataConnectorsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- }
-}
diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IActionsOperations.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IActionsOperations.cs
index f42d11eaf67f9..600f56ce88f51 100644
--- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IActionsOperations.cs
+++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IActionsOperations.cs
@@ -27,8 +27,7 @@ public partial interface IActionsOperations
/// Gets all actions of alert rule.
///
///
- /// The name of the resource group within the user's subscription. The
- /// name is case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -42,7 +41,7 @@ public partial interface IActionsOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -56,8 +55,7 @@ public partial interface IActionsOperations
/// Gets the action of alert rule.
///
///
- /// The name of the resource group within the user's subscription. The
- /// name is case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -74,7 +72,7 @@ public partial interface IActionsOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -88,8 +86,7 @@ public partial interface IActionsOperations
/// Creates or updates the action of alert rule.
///
///
- /// The name of the resource group within the user's subscription. The
- /// name is case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -109,7 +106,7 @@ public partial interface IActionsOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -123,8 +120,7 @@ public partial interface IActionsOperations
/// Delete the action of alert rule.
///
///
- /// The name of the resource group within the user's subscription. The
- /// name is case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -141,7 +137,7 @@ public partial interface IActionsOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -160,7 +156,7 @@ public partial interface IActionsOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IAlertRuleTemplatesOperations.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IAlertRuleTemplatesOperations.cs
index 0ad2eb676cff9..51aa9a0d54484 100644
--- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IAlertRuleTemplatesOperations.cs
+++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IAlertRuleTemplatesOperations.cs
@@ -27,8 +27,7 @@ public partial interface IAlertRuleTemplatesOperations
/// Gets all alert rule templates.
///
///
- /// The name of the resource group within the user's subscription. The
- /// name is case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -39,7 +38,7 @@ public partial interface IAlertRuleTemplatesOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -53,8 +52,7 @@ public partial interface IAlertRuleTemplatesOperations
/// Gets the alert rule template.
///
///
- /// The name of the resource group within the user's subscription. The
- /// name is case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -68,7 +66,7 @@ public partial interface IAlertRuleTemplatesOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -90,7 +88,7 @@ public partial interface IAlertRuleTemplatesOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IAlertRulesOperations.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IAlertRulesOperations.cs
index cf07ca8d976fa..43ed4229a82c4 100644
--- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IAlertRulesOperations.cs
+++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IAlertRulesOperations.cs
@@ -27,8 +27,7 @@ public partial interface IAlertRulesOperations
/// Gets all alert rules.
///
///
- /// The name of the resource group within the user's subscription. The
- /// name is case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -39,7 +38,7 @@ public partial interface IAlertRulesOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -53,8 +52,7 @@ public partial interface IAlertRulesOperations
/// Gets the alert rule.
///
///
- /// The name of the resource group within the user's subscription. The
- /// name is case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -68,7 +66,7 @@ public partial interface IAlertRulesOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -82,8 +80,7 @@ public partial interface IAlertRulesOperations
/// Creates or updates the alert rule.
///
///
- /// The name of the resource group within the user's subscription. The
- /// name is case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -100,7 +97,7 @@ public partial interface IAlertRulesOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -114,8 +111,7 @@ public partial interface IAlertRulesOperations
/// Delete the alert rule.
///
///
- /// The name of the resource group within the user's subscription. The
- /// name is case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -129,7 +125,7 @@ public partial interface IAlertRulesOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -148,7 +144,7 @@ public partial interface IAlertRulesOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IIncidentCommentsOperations.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IIncidentCommentsOperations.cs
index b631e37547e1e..e858d5a733985 100644
--- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IIncidentCommentsOperations.cs
+++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IIncidentCommentsOperations.cs
@@ -25,11 +25,10 @@ namespace Microsoft.Azure.Management.SecurityInsights
public partial interface IIncidentCommentsOperations
{
///
- /// Gets all incident comments.
+ /// Gets all comments for a given incident.
///
///
- /// The name of the resource group within the user's subscription. The
- /// name is case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -53,7 +52,7 @@ public partial interface IIncidentCommentsOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -64,11 +63,10 @@ public partial interface IIncidentCommentsOperations
///
Task>> ListByIncidentWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string incidentId, ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets an incident comment.
+ /// Gets a comment for a given incident.
///
///
- /// The name of the resource group within the user's subscription. The
- /// name is case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -85,7 +83,7 @@ public partial interface IIncidentCommentsOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -96,11 +94,10 @@ public partial interface IIncidentCommentsOperations
///
Task> GetWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string incidentId, string incidentCommentId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Creates the incident comment.
+ /// Creates or updates a comment for a given incident.
///
///
- /// The name of the resource group within the user's subscription. The
- /// name is case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -114,13 +111,16 @@ public partial interface IIncidentCommentsOperations
///
/// The comment message
///
+ ///
+ /// Etag of the azure resource
+ ///
///
/// The headers that will be added to request.
///
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -129,9 +129,37 @@ public partial interface IIncidentCommentsOperations
///
/// Thrown when a required parameter is null
///
- Task> CreateCommentWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string incidentId, string incidentCommentId, string message, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> CreateCommentWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string incidentId, string incidentCommentId, string message, string etag = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Deletes a comment for a given incident.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the workspace.
+ ///
+ ///
+ /// Incident ID
+ ///
+ ///
+ /// Incident comment ID
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task DeleteCommentWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string incidentId, string incidentCommentId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets all incident comments.
+ /// Gets all comments for a given incident.
///
///
/// The NextLink from the previous successful call to List operation.
@@ -142,7 +170,7 @@ public partial interface IIncidentCommentsOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IBookmarksOperations.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IIncidentRelationsOperations.cs
similarity index 58%
rename from sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IBookmarksOperations.cs
rename to sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IIncidentRelationsOperations.cs
index 13d1d9379a05e..439674e147faa 100644
--- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IBookmarksOperations.cs
+++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IIncidentRelationsOperations.cs
@@ -12,6 +12,7 @@ namespace Microsoft.Azure.Management.SecurityInsights
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
+ using Microsoft.Rest.Azure.OData;
using Models;
using System.Collections;
using System.Collections.Generic;
@@ -19,27 +20,39 @@ namespace Microsoft.Azure.Management.SecurityInsights
using System.Threading.Tasks;
///
- /// BookmarksOperations operations.
+ /// IncidentRelationsOperations operations.
///
- public partial interface IBookmarksOperations
+ public partial interface IIncidentRelationsOperations
{
///
- /// Gets all bookmarks.
+ /// Gets all relations for a given incident.
///
///
- /// The name of the resource group within the user's subscription. The
- /// name is case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
///
+ ///
+ /// Incident ID
+ ///
+ ///
+ /// OData parameters to apply to the operation.
+ ///
+ ///
+ /// 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.
+ ///
///
/// The headers that will be added to request.
///
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -48,19 +61,21 @@ public partial interface IBookmarksOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListWithHttpMessagesAsync(string resourceGroupName, string workspaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string incidentId, ODataQuery odataQuery = default(ODataQuery), string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets a bookmark.
+ /// Gets a relation for a given incident.
///
///
- /// The name of the resource group within the user's subscription. The
- /// name is case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
///
- ///
- /// Bookmark ID
+ ///
+ /// Incident ID
+ ///
+ ///
+ /// Relation Name
///
///
/// The headers that will be added to request.
@@ -68,7 +83,7 @@ public partial interface IBookmarksOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -77,22 +92,27 @@ public partial interface IBookmarksOperations
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string bookmarkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetRelationWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string incidentId, string relationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Creates or updates the bookmark.
+ /// Creates or updates a relation for a given incident.
///
///
- /// The name of the resource group within the user's subscription. The
- /// name is case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
///
- ///
- /// Bookmark ID
+ ///
+ /// Incident ID
///
- ///
- /// The bookmark
+ ///
+ /// Relation Name
+ ///
+ ///
+ /// The resource ID of the related resource
+ ///
+ ///
+ /// Etag of the azure resource
///
///
/// The headers that will be added to request.
@@ -100,7 +120,7 @@ public partial interface IBookmarksOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -109,19 +129,21 @@ public partial interface IBookmarksOperations
///
/// Thrown when a required parameter is null
///
- Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string bookmarkId, Bookmark bookmark, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> CreateOrUpdateRelationWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string incidentId, string relationName, string relatedResourceId, string etag = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Delete the bookmark.
+ /// Deletes a relation for a given incident.
///
///
- /// The name of the resource group within the user's subscription. The
- /// name is case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
///
- ///
- /// Bookmark ID
+ ///
+ /// Incident ID
+ ///
+ ///
+ /// Relation Name
///
///
/// The headers that will be added to request.
@@ -129,15 +151,15 @@ public partial interface IBookmarksOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
/// Thrown when a required parameter is null
///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string bookmarkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task DeleteRelationWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string incidentId, string relationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets all bookmarks.
+ /// Gets all relations for a given incident.
///
///
/// The NextLink from the previous successful call to List operation.
@@ -148,7 +170,7 @@ public partial interface IBookmarksOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -157,6 +179,6 @@ public partial interface IBookmarksOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IIncidentsOperations.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IIncidentsOperations.cs
index ff001b53476e0..86fb696847f16 100644
--- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IIncidentsOperations.cs
+++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IIncidentsOperations.cs
@@ -27,8 +27,7 @@ public partial interface IIncidentsOperations
/// Gets all incidents.
///
///
- /// The name of the resource group within the user's subscription. The
- /// name is case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -55,7 +54,7 @@ public partial interface IIncidentsOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -66,11 +65,10 @@ public partial interface IIncidentsOperations
///
Task>> ListWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string filter = default(string), string orderby = default(string), int? top = default(int?), string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets an incident.
+ /// Gets a given incident.
///
///
- /// The name of the resource group within the user's subscription. The
- /// name is case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -84,7 +82,7 @@ public partial interface IIncidentsOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -95,11 +93,10 @@ public partial interface IIncidentsOperations
///
Task> GetWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string incidentId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Creates or updates the incident.
+ /// Creates or updates an incident.
///
///
- /// The name of the resource group within the user's subscription. The
- /// name is case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -116,7 +113,7 @@ public partial interface IIncidentsOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -127,11 +124,10 @@ public partial interface IIncidentsOperations
///
Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string incidentId, Incident incident, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Delete the incident.
+ /// Deletes a given incident.
///
///
- /// The name of the resource group within the user's subscription. The
- /// name is case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -145,7 +141,7 @@ public partial interface IIncidentsOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -153,6 +149,90 @@ public partial interface IIncidentsOperations
///
Task DeleteWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string incidentId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Gets all alerts for an incident.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the workspace.
+ ///
+ ///
+ /// Incident ID
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> ListOfAlertsWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string incidentId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets all bookmarks for an incident.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the workspace.
+ ///
+ ///
+ /// Incident ID
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> ListOfBookmarksWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string incidentId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets all entities for an incident.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the workspace.
+ ///
+ ///
+ /// Incident ID
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> ListOfEntitiesWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string incidentId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Gets all incidents.
///
///
@@ -164,7 +244,7 @@ public partial interface IIncidentsOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IOperations.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IOperations.cs
index 9ab3684610fda..0a2f9899d822a 100644
--- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IOperations.cs
+++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IOperations.cs
@@ -33,7 +33,7 @@ public partial interface IOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -56,7 +56,7 @@ public partial interface IOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/ISecurityInsightsClient.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/ISecurityInsightsClient.cs
index 5b212079b6286..1e9da93ccc1e1 100644
--- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/ISecurityInsightsClient.cs
+++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/ISecurityInsightsClient.cs
@@ -42,14 +42,14 @@ public partial interface ISecurityInsightsClient : System.IDisposable
ServiceClientCredentials Credentials { get; }
///
- /// API version for the operation
+ /// The ID of the target subscription.
///
- string ApiVersion { get; }
+ string SubscriptionId { get; set; }
///
- /// Azure subscription ID
+ /// The API version to use for this operation.
///
- string SubscriptionId { get; set; }
+ string ApiVersion { get; }
///
/// The preferred language for the response.
@@ -71,44 +71,64 @@ public partial interface ISecurityInsightsClient : System.IDisposable
///
- /// Gets the IOperations.
+ /// Gets the IIncidentsOperations.
///
- IOperations Operations { get; }
+ IIncidentsOperations Incidents { get; }
///
- /// Gets the IAlertRulesOperations.
+ /// Gets the IIncidentCommentsOperations.
///
- IAlertRulesOperations AlertRules { get; }
+ IIncidentCommentsOperations IncidentComments { get; }
///
- /// Gets the IActionsOperations.
+ /// Gets the IIncidentRelationsOperations.
///
- IActionsOperations Actions { get; }
+ IIncidentRelationsOperations IncidentRelations { get; }
///
- /// Gets the IAlertRuleTemplatesOperations.
+ /// Gets the IThreatIntelligenceIndicatorOperations.
///
- IAlertRuleTemplatesOperations AlertRuleTemplates { get; }
+ IThreatIntelligenceIndicatorOperations ThreatIntelligenceIndicator { get; }
///
- /// Gets the IBookmarksOperations.
+ /// Gets the IThreatIntelligenceIndicatorsOperations.
///
- IBookmarksOperations Bookmarks { get; }
+ IThreatIntelligenceIndicatorsOperations ThreatIntelligenceIndicators { get; }
///
- /// Gets the IDataConnectorsOperations.
+ /// Gets the IThreatIntelligenceIndicatorMetricsOperations.
///
- IDataConnectorsOperations DataConnectors { get; }
+ IThreatIntelligenceIndicatorMetricsOperations ThreatIntelligenceIndicatorMetrics { get; }
///
- /// Gets the IIncidentsOperations.
+ /// Gets the IWatchlistsOperations.
///
- IIncidentsOperations Incidents { get; }
+ IWatchlistsOperations Watchlists { get; }
///
- /// Gets the IIncidentCommentsOperations.
+ /// Gets the IWatchlistItemsOperations.
///
- IIncidentCommentsOperations IncidentComments { get; }
+ IWatchlistItemsOperations WatchlistItems { get; }
+
+ ///
+ /// Gets the IOperations.
+ ///
+ IOperations Operations { get; }
+
+ ///
+ /// Gets the IAlertRulesOperations.
+ ///
+ IAlertRulesOperations AlertRules { get; }
+
+ ///
+ /// Gets the IActionsOperations.
+ ///
+ IActionsOperations Actions { get; }
+
+ ///
+ /// Gets the IAlertRuleTemplatesOperations.
+ ///
+ IAlertRuleTemplatesOperations AlertRuleTemplates { get; }
}
}
diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IThreatIntelligenceIndicatorMetricsOperations.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IThreatIntelligenceIndicatorMetricsOperations.cs
new file mode 100644
index 0000000000000..d8ed64f46c3c0
--- /dev/null
+++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IThreatIntelligenceIndicatorMetricsOperations.cs
@@ -0,0 +1,57 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.SecurityInsights
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// ThreatIntelligenceIndicatorMetricsOperations operations.
+ ///
+ public partial interface IThreatIntelligenceIndicatorMetricsOperations
+ {
+ ///
+ /// Get threat intelligence indicators metrics (Indicators counts by
+ /// Type, Threat Type, Source).
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The namespace of workspaces resource provider-
+ /// Microsoft.OperationalInsights.
+ ///
+ ///
+ /// The name of the workspace.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> ListWithHttpMessagesAsync(string resourceGroupName, string operationalInsightsResourceProvider, string workspaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IThreatIntelligenceIndicatorOperations.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IThreatIntelligenceIndicatorOperations.cs
new file mode 100644
index 0000000000000..dd78235326e08
--- /dev/null
+++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IThreatIntelligenceIndicatorOperations.cs
@@ -0,0 +1,276 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.SecurityInsights
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// ThreatIntelligenceIndicatorOperations operations.
+ ///
+ public partial interface IThreatIntelligenceIndicatorOperations
+ {
+ ///
+ /// Create a new threat intelligence indicator.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The namespace of workspaces resource provider-
+ /// Microsoft.OperationalInsights.
+ ///
+ ///
+ /// The name of the workspace.
+ ///
+ ///
+ /// Properties of threat intelligence indicators to create and update.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> CreateIndicatorWithHttpMessagesAsync(string resourceGroupName, string operationalInsightsResourceProvider, string workspaceName, ThreatIntelligenceIndicatorModelForRequestBody threatIntelligenceProperties, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// View a threat intelligence indicator by name.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The namespace of workspaces resource provider-
+ /// Microsoft.OperationalInsights.
+ ///
+ ///
+ /// The name of the workspace.
+ ///
+ ///
+ /// Threat intelligence indicator name field.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string operationalInsightsResourceProvider, string workspaceName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Update a threat Intelligence indicator.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The namespace of workspaces resource provider-
+ /// Microsoft.OperationalInsights.
+ ///
+ ///
+ /// The name of the workspace.
+ ///
+ ///
+ /// Threat intelligence indicator name field.
+ ///
+ ///
+ /// Properties of threat intelligence indicators to create and update.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> CreateWithHttpMessagesAsync(string resourceGroupName, string operationalInsightsResourceProvider, string workspaceName, string name, ThreatIntelligenceIndicatorModelForRequestBody threatIntelligenceProperties, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Delete a threat intelligence indicator.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The namespace of workspaces resource provider-
+ /// Microsoft.OperationalInsights.
+ ///
+ ///
+ /// The name of the workspace.
+ ///
+ ///
+ /// Threat intelligence indicator name field.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task DeleteWithHttpMessagesAsync(string resourceGroupName, string operationalInsightsResourceProvider, string workspaceName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Query threat intelligence indicators as per filtering criteria.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The namespace of workspaces resource provider-
+ /// Microsoft.OperationalInsights.
+ ///
+ ///
+ /// The name of the workspace.
+ ///
+ ///
+ /// Filtering criteria for querying threat intelligence indicators.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> QueryIndicatorsWithHttpMessagesAsync(string resourceGroupName, string operationalInsightsResourceProvider, string workspaceName, ThreatIntelligenceFilteringCriteria threatIntelligenceFilteringCriteria, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Append tags to a threat intelligence indicator.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The namespace of workspaces resource provider-
+ /// Microsoft.OperationalInsights.
+ ///
+ ///
+ /// The name of the workspace.
+ ///
+ ///
+ /// Threat intelligence indicator name field.
+ ///
+ ///
+ /// List of tags to be appended.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task AppendTagsWithHttpMessagesAsync(string resourceGroupName, string operationalInsightsResourceProvider, string workspaceName, string name, IList threatIntelligenceTags = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Replace tags added to a threat intelligence indicator.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The namespace of workspaces resource provider-
+ /// Microsoft.OperationalInsights.
+ ///
+ ///
+ /// The name of the workspace.
+ ///
+ ///
+ /// Threat intelligence indicator name field.
+ ///
+ ///
+ /// Tags in the threat intelligence indicator to be replaced.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> ReplaceTagsWithHttpMessagesAsync(string resourceGroupName, string operationalInsightsResourceProvider, string workspaceName, string name, ThreatIntelligenceIndicatorModelForRequestBody threatIntelligenceReplaceTags, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Query threat intelligence indicators as per filtering criteria.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> QueryIndicatorsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IThreatIntelligenceIndicatorsOperations.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IThreatIntelligenceIndicatorsOperations.cs
new file mode 100644
index 0000000000000..57a6f6ad2245d
--- /dev/null
+++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IThreatIntelligenceIndicatorsOperations.cs
@@ -0,0 +1,94 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.SecurityInsights
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// ThreatIntelligenceIndicatorsOperations operations.
+ ///
+ public partial interface IThreatIntelligenceIndicatorsOperations
+ {
+ ///
+ /// Get all threat intelligence indicators.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The namespace of workspaces resource provider-
+ /// Microsoft.OperationalInsights.
+ ///
+ ///
+ /// The name of the workspace.
+ ///
+ ///
+ /// Filters the results, based on a Boolean condition. Optional.
+ ///
+ ///
+ /// Returns only the first n results. Optional.
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ /// Sorts the results. Optional.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListWithHttpMessagesAsync(string resourceGroupName, string operationalInsightsResourceProvider, string workspaceName, string filter = default(string), int? top = default(int?), string skipToken = default(string), string orderby = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Get all threat intelligence indicators.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IDataConnectorsOperations.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IWatchlistItemsOperations.cs
similarity index 54%
rename from sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IDataConnectorsOperations.cs
rename to sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IWatchlistItemsOperations.cs
index 22ae7053616e8..58791d6504813 100644
--- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IDataConnectorsOperations.cs
+++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IWatchlistItemsOperations.cs
@@ -19,27 +19,40 @@ namespace Microsoft.Azure.Management.SecurityInsights
using System.Threading.Tasks;
///
- /// DataConnectorsOperations operations.
+ /// WatchlistItemsOperations operations.
///
- public partial interface IDataConnectorsOperations
+ public partial interface IWatchlistItemsOperations
{
///
- /// Gets all data connectors.
+ /// Get all watchlist Items.
///
///
- /// The name of the resource group within the user's subscription. The
- /// name is case insensitive.
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The namespace of workspaces resource provider-
+ /// Microsoft.OperationalInsights.
///
///
/// The name of the workspace.
///
+ ///
+ /// The watchlist alias
+ ///
+ ///
+ /// 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.
+ ///
///
/// The headers that will be added to request.
///
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -48,19 +61,25 @@ public partial interface IDataConnectorsOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListWithHttpMessagesAsync(string resourceGroupName, string workspaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListWithHttpMessagesAsync(string resourceGroupName, string operationalInsightsResourceProvider, string workspaceName, string watchlistAlias, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets a data connector.
+ /// Get a watchlist item.
///
///
- /// The name of the resource group within the user's subscription. The
- /// name is case insensitive.
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The namespace of workspaces resource provider-
+ /// Microsoft.OperationalInsights.
///
///
/// The name of the workspace.
///
- ///
- /// Connector ID
+ ///
+ /// The watchlist alias
+ ///
+ ///
+ /// The watchlist item id (GUID)
///
///
/// The headers that will be added to request.
@@ -68,7 +87,7 @@ public partial interface IDataConnectorsOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -77,22 +96,25 @@ public partial interface IDataConnectorsOperations
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string dataConnectorId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string operationalInsightsResourceProvider, string workspaceName, string watchlistAlias, string watchlistItemId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Creates or updates the data connector.
+ /// Delete a watchlist item.
///
///
- /// The name of the resource group within the user's subscription. The
- /// name is case insensitive.
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The namespace of workspaces resource provider-
+ /// Microsoft.OperationalInsights.
///
///
/// The name of the workspace.
///
- ///
- /// Connector ID
+ ///
+ /// The watchlist alias
///
- ///
- /// The data connector
+ ///
+ /// The watchlist item id (GUID)
///
///
/// The headers that will be added to request.
@@ -100,28 +122,34 @@ public partial interface IDataConnectorsOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
///
/// Thrown when a required parameter is null
///
- Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string dataConnectorId, DataConnector dataConnector, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task DeleteWithHttpMessagesAsync(string resourceGroupName, string operationalInsightsResourceProvider, string workspaceName, string watchlistAlias, string watchlistItemId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Delete the data connector.
+ /// Create or update a watchlist item.
///
///
- /// The name of the resource group within the user's subscription. The
- /// name is case insensitive.
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The namespace of workspaces resource provider-
+ /// Microsoft.OperationalInsights.
///
///
/// The name of the workspace.
///
- ///
- /// Connector ID
+ ///
+ /// The watchlist alias
+ ///
+ ///
+ /// The watchlist item id (GUID)
+ ///
+ ///
+ /// The watchlist item
///
///
/// The headers that will be added to request.
@@ -129,15 +157,18 @@ public partial interface IDataConnectorsOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string dataConnectorId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string operationalInsightsResourceProvider, string workspaceName, string watchlistAlias, string watchlistItemId, WatchlistItem watchlistItem, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets all data connectors.
+ /// Get all watchlist Items.
///
///
/// The NextLink from the previous successful call to List operation.
@@ -148,7 +179,7 @@ public partial interface IDataConnectorsOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -157,6 +188,6 @@ public partial interface IDataConnectorsOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IWatchlistsOperations.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IWatchlistsOperations.cs
new file mode 100644
index 0000000000000..543f804052359
--- /dev/null
+++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IWatchlistsOperations.cs
@@ -0,0 +1,184 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.SecurityInsights
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// WatchlistsOperations operations.
+ ///
+ public partial interface IWatchlistsOperations
+ {
+ ///
+ /// Get all watchlists, without watchlist items.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The namespace of workspaces resource provider-
+ /// Microsoft.OperationalInsights.
+ ///
+ ///
+ /// The name of the workspace.
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListWithHttpMessagesAsync(string resourceGroupName, string operationalInsightsResourceProvider, string workspaceName, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Get a watchlist, without its watchlist items.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The namespace of workspaces resource provider-
+ /// Microsoft.OperationalInsights.
+ ///
+ ///
+ /// The name of the workspace.
+ ///
+ ///
+ /// The watchlist alias
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string operationalInsightsResourceProvider, string workspaceName, string watchlistAlias, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Delete a watchlist.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The namespace of workspaces resource provider-
+ /// Microsoft.OperationalInsights.
+ ///
+ ///
+ /// The name of the workspace.
+ ///
+ ///
+ /// The watchlist alias
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task DeleteWithHttpMessagesAsync(string resourceGroupName, string operationalInsightsResourceProvider, string workspaceName, string watchlistAlias, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Create or update a Watchlist and its Watchlist Items (bulk
+ /// creation, e.g. through text/csv content type). To create a
+ /// Watchlist and its Items, we should call this endpoint with
+ /// rawContent and contentType properties.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The namespace of workspaces resource provider-
+ /// Microsoft.OperationalInsights.
+ ///
+ ///
+ /// The name of the workspace.
+ ///
+ ///
+ /// The watchlist alias
+ ///
+ ///
+ /// The watchlist
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string operationalInsightsResourceProvider, string workspaceName, string watchlistAlias, Watchlist watchlist, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Get all watchlists, without watchlist items.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IncidentCommentsOperations.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IncidentCommentsOperations.cs
index f41d71bf75ab6..fd7f4a3c5d64b 100644
--- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IncidentCommentsOperations.cs
+++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/IncidentCommentsOperations.cs
@@ -52,11 +52,10 @@ internal IncidentCommentsOperations(SecurityInsightsClient client)
public SecurityInsightsClient Client { get; private set; }
///
- /// Gets all incident comments.
+ /// Gets all comments for a given incident.
///
///
- /// The name of the resource group within the user's subscription. The name is
- /// case insensitive.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the workspace.
@@ -79,7 +78,7 @@ internal IncidentCommentsOperations(SecurityInsightsClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -96,15 +95,26 @@ internal IncidentCommentsOperations(SecurityInsightsClient client)
///
public async Task