diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/AvailableServiceTiersOperations.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/AvailableServiceTiersOperations.cs
index b861ee097d62..03558adc50df 100644
--- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/AvailableServiceTiersOperations.cs
+++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/AvailableServiceTiersOperations.cs
@@ -107,10 +107,6 @@ internal AvailableServiceTiersOperations(OperationalInsightsManagementClient cli
{
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)
{
diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/ClustersOperations.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/ClustersOperations.cs
index 927177097c59..ad9af4775f53 100644
--- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/ClustersOperations.cs
+++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/ClustersOperations.cs
@@ -93,10 +93,6 @@ internal ClustersOperations(OperationalInsightsManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (Client.SubscriptionId == null)
{
@@ -534,10 +530,6 @@ internal ClustersOperations(OperationalInsightsManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (clusterName == null)
{
@@ -737,10 +729,6 @@ internal ClustersOperations(OperationalInsightsManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (clusterName == null)
{
@@ -962,10 +950,6 @@ internal ClustersOperations(OperationalInsightsManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (Client.SubscriptionId == null)
{
@@ -1218,10 +1202,6 @@ internal ClustersOperations(OperationalInsightsManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (clusterName == null)
{
@@ -1321,7 +1301,7 @@ internal ClustersOperations(OperationalInsightsManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 200 && (int)_statusCode != 204)
+ if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204)
{
var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/DataExportsOperations.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/DataExportsOperations.cs
index 2a83aa892465..27af932a800e 100644
--- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/DataExportsOperations.cs
+++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/DataExportsOperations.cs
@@ -107,10 +107,6 @@ internal DataExportsOperations(OperationalInsightsManagementClient 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)
{
@@ -339,10 +335,6 @@ internal DataExportsOperations(OperationalInsightsManagementClient 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)
{
@@ -622,10 +614,6 @@ internal DataExportsOperations(OperationalInsightsManagementClient 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)
{
@@ -854,10 +842,6 @@ internal DataExportsOperations(OperationalInsightsManagementClient 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)
{
diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/DataSourcesOperations.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/DataSourcesOperations.cs
index b022128adc4f..97787bc75aee 100644
--- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/DataSourcesOperations.cs
+++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/DataSourcesOperations.cs
@@ -103,10 +103,6 @@ internal DataSourcesOperations(OperationalInsightsManagementClient 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)
{
@@ -373,10 +369,6 @@ internal DataSourcesOperations(OperationalInsightsManagementClient 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)
{
@@ -595,10 +587,6 @@ internal DataSourcesOperations(OperationalInsightsManagementClient 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)
{
@@ -843,10 +831,6 @@ internal DataSourcesOperations(OperationalInsightsManagementClient 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)
{
diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/DeletedWorkspacesOperations.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/DeletedWorkspacesOperations.cs
index 35defea6a331..a14d340b0e56 100644
--- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/DeletedWorkspacesOperations.cs
+++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/DeletedWorkspacesOperations.cs
@@ -272,10 +272,6 @@ internal DeletedWorkspacesOperations(OperationalInsightsManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (Client.SubscriptionId == null)
{
diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/GatewaysOperations.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/GatewaysOperations.cs
index 52c8c8a45715..f924b670b9d7 100644
--- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/GatewaysOperations.cs
+++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/GatewaysOperations.cs
@@ -107,10 +107,6 @@ internal GatewaysOperations(OperationalInsightsManagementClient 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)
{
diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/IntelligencePacksOperations.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/IntelligencePacksOperations.cs
index bb01de8e04d2..6565939cc189 100644
--- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/IntelligencePacksOperations.cs
+++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/IntelligencePacksOperations.cs
@@ -96,10 +96,6 @@ internal IntelligencePacksOperations(OperationalInsightsManagementClient 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)
{
@@ -315,10 +311,6 @@ internal IntelligencePacksOperations(OperationalInsightsManagementClient 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)
{
@@ -535,10 +527,6 @@ internal IntelligencePacksOperations(OperationalInsightsManagementClient 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)
{
diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/LinkedServicesOperations.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/LinkedServicesOperations.cs
index 9ae36bd3f30d..ddd74e1d7517 100644
--- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/LinkedServicesOperations.cs
+++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/LinkedServicesOperations.cs
@@ -152,10 +152,6 @@ internal LinkedServicesOperations(OperationalInsightsManagementClient 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)
{
@@ -389,10 +385,6 @@ internal LinkedServicesOperations(OperationalInsightsManagementClient 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)
{
@@ -626,10 +618,6 @@ internal LinkedServicesOperations(OperationalInsightsManagementClient 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)
{
@@ -761,7 +749,7 @@ internal LinkedServicesOperations(OperationalInsightsManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 200 && (int)_statusCode != 201)
+ if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202)
{
var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -895,10 +883,6 @@ internal LinkedServicesOperations(OperationalInsightsManagementClient 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)
{
@@ -1019,7 +1003,7 @@ internal LinkedServicesOperations(OperationalInsightsManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 200 && (int)_statusCode != 204)
+ if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204)
{
var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/LinkedStorageAccountsOperations.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/LinkedStorageAccountsOperations.cs
index 62241098aae7..f7fc3caf4da3 100644
--- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/LinkedStorageAccountsOperations.cs
+++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/LinkedStorageAccountsOperations.cs
@@ -104,10 +104,6 @@ internal LinkedStorageAccountsOperations(OperationalInsightsManagementClient cli
{
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)
{
@@ -351,10 +347,6 @@ internal LinkedStorageAccountsOperations(OperationalInsightsManagementClient cli
{
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)
{
@@ -571,10 +563,6 @@ internal LinkedStorageAccountsOperations(OperationalInsightsManagementClient cli
{
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)
{
@@ -816,10 +804,6 @@ internal LinkedStorageAccountsOperations(OperationalInsightsManagementClient cli
{
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)
{
diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/ManagementGroupsOperations.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/ManagementGroupsOperations.cs
index 7a6ee7983735..acb18638c085 100644
--- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/ManagementGroupsOperations.cs
+++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/ManagementGroupsOperations.cs
@@ -96,10 +96,6 @@ internal ManagementGroupsOperations(OperationalInsightsManagementClient 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)
{
diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/Cluster.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/Cluster.cs
index ed8b31ee653e..0afe9167ade2 100644
--- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/Cluster.cs
+++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/Cluster.cs
@@ -58,11 +58,8 @@ public Cluster()
/// regions where Azure Data Explorer support Availability Zones. This
/// Property can not be modified after cluster creation. Default value
/// is 'true' if region supports Availability Zones.
- /// Configures whether billing will be only
- /// on the cluster or each workspace will be billed by its proportional
- /// use. This does not change the overall billing, only how it will be
- /// distributed. Default value is 'Cluster'. Possible values include:
- /// 'Cluster', 'Workspaces'
+ /// The cluster's billing type. Possible
+ /// values include: 'Cluster', 'Workspaces'
/// The associated key
/// properties.
/// The last time the cluster was
@@ -140,11 +137,8 @@ public Cluster()
public bool? IsAvailabilityZonesEnabled { get; set; }
///
- /// Gets or sets configures whether billing will be only on the cluster
- /// or each workspace will be billed by its proportional use. This does
- /// not change the overall billing, only how it will be distributed.
- /// Default value is 'Cluster'. Possible values include: 'Cluster',
- /// 'Workspaces'
+ /// Gets or sets the cluster's billing type. Possible values include:
+ /// 'Cluster', 'Workspaces'
///
[JsonProperty(PropertyName = "properties.billingType")]
public string BillingType { get; set; }
diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/ClusterPatch.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/ClusterPatch.cs
index 21155c53ece7..fdc2e62fcc8a 100644
--- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/ClusterPatch.cs
+++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/ClusterPatch.cs
@@ -37,12 +37,15 @@ public ClusterPatch()
///
/// The associated key
/// properties.
+ /// The cluster's billing type. Possible
+ /// values include: 'Cluster', 'Workspaces'
/// The identity of the resource.
/// The sku properties.
/// Resource tags.
- public ClusterPatch(KeyVaultProperties keyVaultProperties = default(KeyVaultProperties), Identity identity = default(Identity), ClusterSku sku = default(ClusterSku), IDictionary tags = default(IDictionary))
+ public ClusterPatch(KeyVaultProperties keyVaultProperties = default(KeyVaultProperties), string billingType = default(string), Identity identity = default(Identity), ClusterSku sku = default(ClusterSku), IDictionary tags = default(IDictionary))
{
KeyVaultProperties = keyVaultProperties;
+ BillingType = billingType;
Identity = identity;
Sku = sku;
Tags = tags;
@@ -60,6 +63,13 @@ public ClusterPatch()
[JsonProperty(PropertyName = "properties.keyVaultProperties")]
public KeyVaultProperties KeyVaultProperties { get; set; }
+ ///
+ /// Gets or sets the cluster's billing type. Possible values include:
+ /// 'Cluster', 'Workspaces'
+ ///
+ [JsonProperty(PropertyName = "properties.billingType")]
+ public string BillingType { get; set; }
+
///
/// Gets or sets the identity of the resource.
///
diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/SavedSearch.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/SavedSearch.cs
index 1a3466d18f79..d5d016e94186 100644
--- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/SavedSearch.cs
+++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/SavedSearch.cs
@@ -45,7 +45,8 @@ public SavedSearch()
/// The type of the resource. E.g.
/// "Microsoft.Compute/virtualMachines" or
/// "Microsoft.Storage/storageAccounts"
- /// The ETag of the saved search.
+ /// The ETag of the saved search. To override an
+ /// existing saved search, use "*" or specify the current Etag
/// The function alias if query serves as a
/// function.
/// The optional function parameters
@@ -77,7 +78,8 @@ public SavedSearch()
partial void CustomInit();
///
- /// Gets or sets the ETag of the saved search.
+ /// Gets or sets the ETag of the saved search. To override an existing
+ /// saved search, use "*" or specify the current Etag
///
[JsonProperty(PropertyName = "etag")]
public string Etag { get; set; }
diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/Table.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/Table.cs
index cb912d5f41a5..0e9f4c9fb9d9 100644
--- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/Table.cs
+++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/Table.cs
@@ -61,22 +61,5 @@ public Table()
[JsonProperty(PropertyName = "properties.retentionInDays")]
public int? RetentionInDays { get; set; }
- ///
- /// Validate the object.
- ///
- ///
- /// Thrown if validation fails
- ///
- public virtual void Validate()
- {
- if (RetentionInDays > 730)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "RetentionInDays", 730);
- }
- if (RetentionInDays < 30)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "RetentionInDays", 30);
- }
- }
}
}
diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/Workspace.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/Workspace.cs
index e4e089e55c7a..7352bd87ead9 100644
--- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/Workspace.cs
+++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/Workspace.cs
@@ -69,7 +69,7 @@ public Workspace()
/// link scope resources.
/// Workspace features.
/// The ETag of the workspace.
- public Workspace(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string provisioningState = default(string), string customerId = default(string), WorkspaceSku sku = default(WorkspaceSku), int? retentionInDays = default(int?), WorkspaceCapping workspaceCapping = default(WorkspaceCapping), string createdDate = default(string), string modifiedDate = default(string), string publicNetworkAccessForIngestion = default(string), string publicNetworkAccessForQuery = default(string), bool? forceCmkForQuery = default(bool?), IList privateLinkScopedResources = default(IList), IDictionary features = default(IDictionary), string eTag = default(string))
+ public Workspace(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string provisioningState = default(string), string customerId = default(string), WorkspaceSku sku = default(WorkspaceSku), int? retentionInDays = default(int?), WorkspaceCapping workspaceCapping = default(WorkspaceCapping), string createdDate = default(string), string modifiedDate = default(string), string publicNetworkAccessForIngestion = default(string), string publicNetworkAccessForQuery = default(string), bool? forceCmkForQuery = default(bool?), IList privateLinkScopedResources = default(IList), WorkspaceFeatures features = default(WorkspaceFeatures), string eTag = default(string))
: base(location, id, name, type, tags)
{
ProvisioningState = provisioningState;
@@ -169,8 +169,8 @@ public Workspace()
///
/// Gets or sets workspace features.
///
- [JsonProperty(PropertyName = "properties.properties.features")]
- public IDictionary Features { get; set; }
+ [JsonProperty(PropertyName = "properties.features")]
+ public WorkspaceFeatures Features { get; set; }
///
/// Gets or sets the ETag of the workspace.
diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/WorkspaceFeatures.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/WorkspaceFeatures.cs
new file mode 100644
index 000000000000..43b3cefe27d2
--- /dev/null
+++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/WorkspaceFeatures.cs
@@ -0,0 +1,103 @@
+//
+// 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.OperationalInsights.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Workspace features.
+ ///
+ public partial class WorkspaceFeatures
+ {
+ ///
+ /// Initializes a new instance of the WorkspaceFeatures class.
+ ///
+ public WorkspaceFeatures()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the WorkspaceFeatures class.
+ ///
+ /// Unmatched properties from the
+ /// message are deserialized this collection
+ /// Flag that indicate if data should be
+ /// exported.
+ /// Flag that describes if we
+ /// want to remove the data after 30 days.
+ /// Flag that
+ /// indicate which permission to use - resource or workspace or
+ /// both.
+ /// Dedicated LA cluster resourceId
+ /// that is linked to the workspaces.
+ /// Disable Non-AAD based Auth.
+ public WorkspaceFeatures(IDictionary additionalProperties = default(IDictionary), bool? enableDataExport = default(bool?), bool? immediatePurgeDataOn30Days = default(bool?), bool? enableLogAccessUsingOnlyResourcePermissions = default(bool?), string clusterResourceId = default(string), bool? disableLocalAuth = default(bool?))
+ {
+ AdditionalProperties = additionalProperties;
+ EnableDataExport = enableDataExport;
+ ImmediatePurgeDataOn30Days = immediatePurgeDataOn30Days;
+ EnableLogAccessUsingOnlyResourcePermissions = enableLogAccessUsingOnlyResourcePermissions;
+ ClusterResourceId = clusterResourceId;
+ DisableLocalAuth = disableLocalAuth;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets unmatched properties from the message are deserialized
+ /// this collection
+ ///
+ [JsonExtensionData]
+ public IDictionary AdditionalProperties { get; set; }
+
+ ///
+ /// Gets or sets flag that indicate if data should be exported.
+ ///
+ [JsonProperty(PropertyName = "enableDataExport")]
+ public bool? EnableDataExport { get; set; }
+
+ ///
+ /// Gets or sets flag that describes if we want to remove the data
+ /// after 30 days.
+ ///
+ [JsonProperty(PropertyName = "immediatePurgeDataOn30Days")]
+ public bool? ImmediatePurgeDataOn30Days { get; set; }
+
+ ///
+ /// Gets or sets flag that indicate which permission to use - resource
+ /// or workspace or both.
+ ///
+ [JsonProperty(PropertyName = "enableLogAccessUsingOnlyResourcePermissions")]
+ public bool? EnableLogAccessUsingOnlyResourcePermissions { get; set; }
+
+ ///
+ /// Gets or sets dedicated LA cluster resourceId that is linked to the
+ /// workspaces.
+ ///
+ [JsonProperty(PropertyName = "clusterResourceId")]
+ public string ClusterResourceId { get; set; }
+
+ ///
+ /// Gets or sets disable Non-AAD based Auth.
+ ///
+ [JsonProperty(PropertyName = "disableLocalAuth")]
+ public bool? DisableLocalAuth { get; set; }
+
+ }
+}
diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/WorkspacePatch.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/WorkspacePatch.cs
index b167893cd1ed..c3480de74f13 100644
--- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/WorkspacePatch.cs
+++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/WorkspacePatch.cs
@@ -67,7 +67,7 @@ public WorkspacePatch()
/// link scope resources.
/// Workspace features.
/// Resource tags. Optional.
- public WorkspacePatch(string id = default(string), string name = default(string), string type = default(string), string etag = default(string), string provisioningState = default(string), string customerId = default(string), WorkspaceSku sku = default(WorkspaceSku), int? retentionInDays = default(int?), WorkspaceCapping workspaceCapping = default(WorkspaceCapping), string createdDate = default(string), string modifiedDate = default(string), string publicNetworkAccessForIngestion = default(string), string publicNetworkAccessForQuery = default(string), bool? forceCmkForQuery = default(bool?), IList privateLinkScopedResources = default(IList), IDictionary features = default(IDictionary), IDictionary tags = default(IDictionary))
+ public WorkspacePatch(string id = default(string), string name = default(string), string type = default(string), string etag = default(string), string provisioningState = default(string), string customerId = default(string), WorkspaceSku sku = default(WorkspaceSku), int? retentionInDays = default(int?), WorkspaceCapping workspaceCapping = default(WorkspaceCapping), string createdDate = default(string), string modifiedDate = default(string), string publicNetworkAccessForIngestion = default(string), string publicNetworkAccessForQuery = default(string), bool? forceCmkForQuery = default(bool?), IList privateLinkScopedResources = default(IList), WorkspaceFeatures features = default(WorkspaceFeatures), IDictionary tags = default(IDictionary))
: base(id, name, type, etag)
{
ProvisioningState = provisioningState;
@@ -167,8 +167,8 @@ public WorkspacePatch()
///
/// Gets or sets workspace features.
///
- [JsonProperty(PropertyName = "properties.properties.features")]
- public IDictionary Features { get; set; }
+ [JsonProperty(PropertyName = "properties.features")]
+ public WorkspaceFeatures Features { get; set; }
///
/// Gets or sets resource tags. Optional.
diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/SavedSearchesOperations.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/SavedSearchesOperations.cs
index f3e21ee70660..cb8dcc2f74ff 100644
--- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/SavedSearchesOperations.cs
+++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/SavedSearchesOperations.cs
@@ -107,10 +107,6 @@ internal SavedSearchesOperations(OperationalInsightsManagementClient 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)
{
@@ -332,10 +328,6 @@ internal SavedSearchesOperations(OperationalInsightsManagementClient 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)
{
@@ -587,10 +579,6 @@ internal SavedSearchesOperations(OperationalInsightsManagementClient 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)
{
@@ -813,10 +801,6 @@ internal SavedSearchesOperations(OperationalInsightsManagementClient 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)
{
diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/SchemaOperations.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/SchemaOperations.cs
index 5709da8a6bcd..3681f0a61987 100644
--- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/SchemaOperations.cs
+++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/SchemaOperations.cs
@@ -96,10 +96,6 @@ internal SchemaOperations(OperationalInsightsManagementClient 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)
{
diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/SdkInfo_OperationalInsightsManagementClient.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/SdkInfo_OperationalInsightsManagementClient.cs
index a877b3e64272..b38c654c98a8 100644
--- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/SdkInfo_OperationalInsightsManagementClient.cs
+++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/SdkInfo_OperationalInsightsManagementClient.cs
@@ -42,16 +42,5 @@ public static IEnumerable> ApiInfo_OperationalInsi
}.AsEnumerable();
}
}
- // BEGIN: Code Generation Metadata Section
- public static readonly String AutoRestVersion = "v2";
- public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413";
- public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/operationalinsights/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\\One\\SDK_repos\\azure-sdk-for-net\\sdk";
- public static readonly String GithubForkName = "Azure";
- public static readonly String GithubBranchName = "master";
- public static readonly String GithubCommidId = "e401e457b5e95941f241f5c71bc56d42d431a4e0";
- public static readonly String CodeGenerationErrors = "";
- public static readonly String GithubRepoName = "azure-rest-api-specs";
- // END: Code Generation Metadata Section
}
}
-
diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/SharedKeysOperations.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/SharedKeysOperations.cs
index b42efc65d774..3ff3be59e77f 100644
--- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/SharedKeysOperations.cs
+++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/SharedKeysOperations.cs
@@ -96,10 +96,6 @@ internal SharedKeysOperations(OperationalInsightsManagementClient 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)
{
@@ -339,10 +335,6 @@ internal SharedKeysOperations(OperationalInsightsManagementClient 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)
{
diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/StorageInsightConfigsOperations.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/StorageInsightConfigsOperations.cs
index 79a48b5f150a..f9aaa53440c2 100644
--- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/StorageInsightConfigsOperations.cs
+++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/StorageInsightConfigsOperations.cs
@@ -102,10 +102,6 @@ internal StorageInsightConfigsOperations(OperationalInsightsManagementClient cli
{
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)
{
@@ -375,10 +371,6 @@ internal StorageInsightConfigsOperations(OperationalInsightsManagementClient cli
{
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)
{
@@ -612,10 +604,6 @@ internal StorageInsightConfigsOperations(OperationalInsightsManagementClient cli
{
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)
{
@@ -831,10 +819,6 @@ internal StorageInsightConfigsOperations(OperationalInsightsManagementClient cli
{
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)
{
diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/TablesOperations.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/TablesOperations.cs
index df656c603066..4c980a291c23 100644
--- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/TablesOperations.cs
+++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/TablesOperations.cs
@@ -107,10 +107,6 @@ internal TablesOperations(OperationalInsightsManagementClient 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)
{
@@ -340,10 +336,6 @@ internal TablesOperations(OperationalInsightsManagementClient 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)
{
@@ -368,14 +360,6 @@ internal TablesOperations(OperationalInsightsManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "tableName");
}
- if (retentionInDays > 730)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "retentionInDays", 730);
- }
- if (retentionInDays < 30)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "retentionInDays", 30);
- }
string apiVersion = "2020-08-01";
Table parameters = new Table();
if (retentionInDays != null)
@@ -595,10 +579,6 @@ internal TablesOperations(OperationalInsightsManagementClient 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)
{
diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/UsagesOperations.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/UsagesOperations.cs
index 4ea24193db79..e63973ff6ca1 100644
--- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/UsagesOperations.cs
+++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/UsagesOperations.cs
@@ -96,10 +96,6 @@ internal UsagesOperations(OperationalInsightsManagementClient 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)
{
diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/WorkspacePurgeOperations.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/WorkspacePurgeOperations.cs
index ca74ab7036b6..421f17d5e458 100644
--- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/WorkspacePurgeOperations.cs
+++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/WorkspacePurgeOperations.cs
@@ -107,10 +107,6 @@ internal WorkspacePurgeOperations(OperationalInsightsManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (Client.SubscriptionId == null)
{
@@ -370,10 +366,6 @@ internal WorkspacePurgeOperations(OperationalInsightsManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (Client.SubscriptionId == null)
{
diff --git a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/WorkspacesOperations.cs b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/WorkspacesOperations.cs
index 5e4958a6ad33..37411b702c16 100644
--- a/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/WorkspacesOperations.cs
+++ b/sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/WorkspacesOperations.cs
@@ -271,10 +271,6 @@ internal WorkspacesOperations(OperationalInsightsManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (Client.SubscriptionId == null)
{
@@ -530,10 +526,6 @@ internal WorkspacesOperations(OperationalInsightsManagementClient 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)
{
@@ -759,10 +751,6 @@ internal WorkspacesOperations(OperationalInsightsManagementClient 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)
{
@@ -999,10 +987,6 @@ internal WorkspacesOperations(OperationalInsightsManagementClient 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)
{
@@ -1262,10 +1246,6 @@ internal WorkspacesOperations(OperationalInsightsManagementClient 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)
{