diff --git a/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/IRegulatoryComplianceAssessmentsOperations.cs b/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/IRegulatoryComplianceAssessmentsOperations.cs index 57f67e8f7ad71..255632c381caa 100644 --- a/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/IRegulatoryComplianceAssessmentsOperations.cs +++ b/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/IRegulatoryComplianceAssessmentsOperations.cs @@ -27,10 +27,6 @@ public partial interface IRegulatoryComplianceAssessmentsOperations /// Details and state of assessments mapped to selected regulatory /// compliance control /// - /// - /// The name of the resource group within the user's subscription. The - /// name is case insensitive. - /// /// /// Name of the regulatory compliance standard object /// @@ -55,15 +51,11 @@ public partial interface IRegulatoryComplianceAssessmentsOperations /// /// Thrown when a required parameter is null /// - Task>> ListWithHttpMessagesAsync(string resourceGroupName, string regulatoryComplianceStandardName, string regulatoryComplianceControlName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListWithHttpMessagesAsync(string regulatoryComplianceStandardName, string regulatoryComplianceControlName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Supported regulatory compliance details and state for selected /// assessment /// - /// - /// The name of the resource group within the user's subscription. The - /// name is case insensitive. - /// /// /// Name of the regulatory compliance standard object /// @@ -88,7 +80,7 @@ public partial interface IRegulatoryComplianceAssessmentsOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string regulatoryComplianceStandardName, string regulatoryComplianceControlName, string regulatoryComplianceAssessmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string regulatoryComplianceStandardName, string regulatoryComplianceControlName, string regulatoryComplianceAssessmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Details and state of assessments mapped to selected regulatory /// compliance control diff --git a/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/IRegulatoryComplianceControlsOperations.cs b/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/IRegulatoryComplianceControlsOperations.cs index 076574204de71..e9d53899aae03 100644 --- a/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/IRegulatoryComplianceControlsOperations.cs +++ b/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/IRegulatoryComplianceControlsOperations.cs @@ -27,10 +27,6 @@ public partial interface IRegulatoryComplianceControlsOperations /// All supported regulatory compliance controls details and state for /// selected standard /// - /// - /// The name of the resource group within the user's subscription. The - /// name is case insensitive. - /// /// /// Name of the regulatory compliance standard object /// @@ -52,14 +48,10 @@ public partial interface IRegulatoryComplianceControlsOperations /// /// Thrown when a required parameter is null /// - Task>> ListWithHttpMessagesAsync(string resourceGroupName, string regulatoryComplianceStandardName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListWithHttpMessagesAsync(string regulatoryComplianceStandardName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Selected regulatory compliance control details and state /// - /// - /// The name of the resource group within the user's subscription. The - /// name is case insensitive. - /// /// /// Name of the regulatory compliance standard object /// @@ -81,7 +73,7 @@ public partial interface IRegulatoryComplianceControlsOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string regulatoryComplianceStandardName, string regulatoryComplianceControlName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string regulatoryComplianceStandardName, string regulatoryComplianceControlName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// All supported regulatory compliance controls details and state for /// selected standard diff --git a/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/IRegulatoryComplianceStandardsOperations.cs b/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/IRegulatoryComplianceStandardsOperations.cs index dcbe8a7e878fd..b2d4e1e56d275 100644 --- a/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/IRegulatoryComplianceStandardsOperations.cs +++ b/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/IRegulatoryComplianceStandardsOperations.cs @@ -26,10 +26,6 @@ public partial interface IRegulatoryComplianceStandardsOperations /// /// Supported regulatory compliance standards details and state /// - /// - /// The name of the resource group within the user's subscription. The - /// name is case insensitive. - /// /// /// OData filter. Optional. /// @@ -48,14 +44,10 @@ public partial interface IRegulatoryComplianceStandardsOperations /// /// Thrown when a required parameter is null /// - Task>> ListWithHttpMessagesAsync(string resourceGroupName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListWithHttpMessagesAsync(string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Supported regulatory compliance details state for selected standard /// - /// - /// The name of the resource group within the user's subscription. The - /// name is case insensitive. - /// /// /// Name of the regulatory compliance standard object /// @@ -74,7 +66,7 @@ public partial interface IRegulatoryComplianceStandardsOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string regulatoryComplianceStandardName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string regulatoryComplianceStandardName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Supported regulatory compliance standards details and state /// diff --git a/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/RegulatoryComplianceAssessmentsOperations.cs b/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/RegulatoryComplianceAssessmentsOperations.cs index 64afe98a010a0..46c95fe8d2690 100644 --- a/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/RegulatoryComplianceAssessmentsOperations.cs +++ b/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/RegulatoryComplianceAssessmentsOperations.cs @@ -54,10 +54,6 @@ internal RegulatoryComplianceAssessmentsOperations(SecurityCenterClient client) /// Details and state of assessments mapped to selected regulatory compliance /// control /// - /// - /// The name of the resource group within the user's subscription. The name is - /// case insensitive. - /// /// /// Name of the regulatory compliance standard object /// @@ -88,7 +84,7 @@ internal RegulatoryComplianceAssessmentsOperations(SecurityCenterClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, string regulatoryComplianceStandardName, string regulatoryComplianceControlName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(string regulatoryComplianceStandardName, string regulatoryComplianceControlName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -101,25 +97,6 @@ internal RegulatoryComplianceAssessmentsOperations(SecurityCenterClient client) throw new ValidationException(ValidationRules.Pattern, "Client.SubscriptionId", "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$"); } } - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 90) - { - throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); - } - if (resourceGroupName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } - } if (regulatoryComplianceStandardName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "regulatoryComplianceStandardName"); @@ -137,7 +114,6 @@ internal RegulatoryComplianceAssessmentsOperations(SecurityCenterClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("regulatoryComplianceStandardName", regulatoryComplianceStandardName); tracingParameters.Add("regulatoryComplianceControlName", regulatoryComplianceControlName); tracingParameters.Add("filter", filter); @@ -148,7 +124,6 @@ internal RegulatoryComplianceAssessmentsOperations(SecurityCenterClient client) var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls/{regulatoryComplianceControlName}/regulatoryComplianceAssessments").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{regulatoryComplianceStandardName}", System.Uri.EscapeDataString(regulatoryComplianceStandardName)); _url = _url.Replace("{regulatoryComplianceControlName}", System.Uri.EscapeDataString(regulatoryComplianceControlName)); List _queryParameters = new List(); @@ -288,10 +263,6 @@ internal RegulatoryComplianceAssessmentsOperations(SecurityCenterClient client) /// /// Supported regulatory compliance details and state for selected assessment /// - /// - /// The name of the resource group within the user's subscription. The name is - /// case insensitive. - /// /// /// Name of the regulatory compliance standard object /// @@ -322,7 +293,7 @@ internal RegulatoryComplianceAssessmentsOperations(SecurityCenterClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string regulatoryComplianceStandardName, string regulatoryComplianceControlName, string regulatoryComplianceAssessmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string regulatoryComplianceStandardName, string regulatoryComplianceControlName, string regulatoryComplianceAssessmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -335,25 +306,6 @@ internal RegulatoryComplianceAssessmentsOperations(SecurityCenterClient client) throw new ValidationException(ValidationRules.Pattern, "Client.SubscriptionId", "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$"); } } - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 90) - { - throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); - } - if (resourceGroupName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } - } if (regulatoryComplianceStandardName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "regulatoryComplianceStandardName"); @@ -375,7 +327,6 @@ internal RegulatoryComplianceAssessmentsOperations(SecurityCenterClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("regulatoryComplianceStandardName", regulatoryComplianceStandardName); tracingParameters.Add("regulatoryComplianceControlName", regulatoryComplianceControlName); tracingParameters.Add("regulatoryComplianceAssessmentName", regulatoryComplianceAssessmentName); @@ -386,7 +337,6 @@ internal RegulatoryComplianceAssessmentsOperations(SecurityCenterClient client) var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls/{regulatoryComplianceControlName}/regulatoryComplianceAssessments/{regulatoryComplianceAssessmentName}").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{regulatoryComplianceStandardName}", System.Uri.EscapeDataString(regulatoryComplianceStandardName)); _url = _url.Replace("{regulatoryComplianceControlName}", System.Uri.EscapeDataString(regulatoryComplianceControlName)); _url = _url.Replace("{regulatoryComplianceAssessmentName}", System.Uri.EscapeDataString(regulatoryComplianceAssessmentName)); diff --git a/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/RegulatoryComplianceAssessmentsOperationsExtensions.cs b/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/RegulatoryComplianceAssessmentsOperationsExtensions.cs index b6cab2d10df87..481a46a939204 100644 --- a/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/RegulatoryComplianceAssessmentsOperationsExtensions.cs +++ b/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/RegulatoryComplianceAssessmentsOperationsExtensions.cs @@ -28,10 +28,6 @@ public static partial class RegulatoryComplianceAssessmentsOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The name of the resource group within the user's subscription. The name is - /// case insensitive. - /// /// /// Name of the regulatory compliance standard object /// @@ -41,9 +37,9 @@ public static partial class RegulatoryComplianceAssessmentsOperationsExtensions /// /// OData filter. Optional. /// - public static IPage List(this IRegulatoryComplianceAssessmentsOperations operations, string resourceGroupName, string regulatoryComplianceStandardName, string regulatoryComplianceControlName, string filter = default(string)) + public static IPage List(this IRegulatoryComplianceAssessmentsOperations operations, string regulatoryComplianceStandardName, string regulatoryComplianceControlName, string filter = default(string)) { - return operations.ListAsync(resourceGroupName, regulatoryComplianceStandardName, regulatoryComplianceControlName, filter).GetAwaiter().GetResult(); + return operations.ListAsync(regulatoryComplianceStandardName, regulatoryComplianceControlName, filter).GetAwaiter().GetResult(); } /// @@ -53,10 +49,6 @@ public static partial class RegulatoryComplianceAssessmentsOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The name of the resource group within the user's subscription. The name is - /// case insensitive. - /// /// /// Name of the regulatory compliance standard object /// @@ -69,9 +61,9 @@ public static partial class RegulatoryComplianceAssessmentsOperationsExtensions /// /// The cancellation token. /// - public static async Task> ListAsync(this IRegulatoryComplianceAssessmentsOperations operations, string resourceGroupName, string regulatoryComplianceStandardName, string regulatoryComplianceControlName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAsync(this IRegulatoryComplianceAssessmentsOperations operations, string regulatoryComplianceStandardName, string regulatoryComplianceControlName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, regulatoryComplianceStandardName, regulatoryComplianceControlName, filter, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(regulatoryComplianceStandardName, regulatoryComplianceControlName, filter, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -83,10 +75,6 @@ public static partial class RegulatoryComplianceAssessmentsOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The name of the resource group within the user's subscription. The name is - /// case insensitive. - /// /// /// Name of the regulatory compliance standard object /// @@ -96,9 +84,9 @@ public static partial class RegulatoryComplianceAssessmentsOperationsExtensions /// /// Name of the regulatory compliance assessment object /// - public static RegulatoryComplianceAssessment Get(this IRegulatoryComplianceAssessmentsOperations operations, string resourceGroupName, string regulatoryComplianceStandardName, string regulatoryComplianceControlName, string regulatoryComplianceAssessmentName) + public static RegulatoryComplianceAssessment Get(this IRegulatoryComplianceAssessmentsOperations operations, string regulatoryComplianceStandardName, string regulatoryComplianceControlName, string regulatoryComplianceAssessmentName) { - return operations.GetAsync(resourceGroupName, regulatoryComplianceStandardName, regulatoryComplianceControlName, regulatoryComplianceAssessmentName).GetAwaiter().GetResult(); + return operations.GetAsync(regulatoryComplianceStandardName, regulatoryComplianceControlName, regulatoryComplianceAssessmentName).GetAwaiter().GetResult(); } /// @@ -107,10 +95,6 @@ public static RegulatoryComplianceAssessment Get(this IRegulatoryComplianceAsses /// /// The operations group for this extension method. /// - /// - /// The name of the resource group within the user's subscription. The name is - /// case insensitive. - /// /// /// Name of the regulatory compliance standard object /// @@ -123,9 +107,9 @@ public static RegulatoryComplianceAssessment Get(this IRegulatoryComplianceAsses /// /// The cancellation token. /// - public static async Task GetAsync(this IRegulatoryComplianceAssessmentsOperations operations, string resourceGroupName, string regulatoryComplianceStandardName, string regulatoryComplianceControlName, string regulatoryComplianceAssessmentName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IRegulatoryComplianceAssessmentsOperations operations, string regulatoryComplianceStandardName, string regulatoryComplianceControlName, string regulatoryComplianceAssessmentName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, regulatoryComplianceStandardName, regulatoryComplianceControlName, regulatoryComplianceAssessmentName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(regulatoryComplianceStandardName, regulatoryComplianceControlName, regulatoryComplianceAssessmentName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/RegulatoryComplianceControlsOperations.cs b/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/RegulatoryComplianceControlsOperations.cs index d466ddee8cff2..b1b3046fae67c 100644 --- a/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/RegulatoryComplianceControlsOperations.cs +++ b/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/RegulatoryComplianceControlsOperations.cs @@ -54,10 +54,6 @@ internal RegulatoryComplianceControlsOperations(SecurityCenterClient client) /// All supported regulatory compliance controls details and state for selected /// standard /// - /// - /// The name of the resource group within the user's subscription. The name is - /// case insensitive. - /// /// /// Name of the regulatory compliance standard object /// @@ -85,7 +81,7 @@ internal RegulatoryComplianceControlsOperations(SecurityCenterClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, string regulatoryComplianceStandardName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(string regulatoryComplianceStandardName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -98,25 +94,6 @@ internal RegulatoryComplianceControlsOperations(SecurityCenterClient client) throw new ValidationException(ValidationRules.Pattern, "Client.SubscriptionId", "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$"); } } - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 90) - { - throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); - } - if (resourceGroupName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } - } if (regulatoryComplianceStandardName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "regulatoryComplianceStandardName"); @@ -130,7 +107,6 @@ internal RegulatoryComplianceControlsOperations(SecurityCenterClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("regulatoryComplianceStandardName", regulatoryComplianceStandardName); tracingParameters.Add("filter", filter); tracingParameters.Add("cancellationToken", cancellationToken); @@ -140,7 +116,6 @@ internal RegulatoryComplianceControlsOperations(SecurityCenterClient client) var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{regulatoryComplianceStandardName}", System.Uri.EscapeDataString(regulatoryComplianceStandardName)); List _queryParameters = new List(); if (apiVersion != null) @@ -279,10 +254,6 @@ internal RegulatoryComplianceControlsOperations(SecurityCenterClient client) /// /// Selected regulatory compliance control details and state /// - /// - /// The name of the resource group within the user's subscription. The name is - /// case insensitive. - /// /// /// Name of the regulatory compliance standard object /// @@ -310,7 +281,7 @@ internal RegulatoryComplianceControlsOperations(SecurityCenterClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string regulatoryComplianceStandardName, string regulatoryComplianceControlName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string regulatoryComplianceStandardName, string regulatoryComplianceControlName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -323,25 +294,6 @@ internal RegulatoryComplianceControlsOperations(SecurityCenterClient client) throw new ValidationException(ValidationRules.Pattern, "Client.SubscriptionId", "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$"); } } - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 90) - { - throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); - } - if (resourceGroupName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } - } if (regulatoryComplianceStandardName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "regulatoryComplianceStandardName"); @@ -359,7 +311,6 @@ internal RegulatoryComplianceControlsOperations(SecurityCenterClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("regulatoryComplianceStandardName", regulatoryComplianceStandardName); tracingParameters.Add("regulatoryComplianceControlName", regulatoryComplianceControlName); tracingParameters.Add("cancellationToken", cancellationToken); @@ -369,7 +320,6 @@ internal RegulatoryComplianceControlsOperations(SecurityCenterClient client) var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls/{regulatoryComplianceControlName}").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{regulatoryComplianceStandardName}", System.Uri.EscapeDataString(regulatoryComplianceStandardName)); _url = _url.Replace("{regulatoryComplianceControlName}", System.Uri.EscapeDataString(regulatoryComplianceControlName)); List _queryParameters = new List(); diff --git a/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/RegulatoryComplianceControlsOperationsExtensions.cs b/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/RegulatoryComplianceControlsOperationsExtensions.cs index c68e5e9ef9ce5..cd7d6e6df6c2f 100644 --- a/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/RegulatoryComplianceControlsOperationsExtensions.cs +++ b/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/RegulatoryComplianceControlsOperationsExtensions.cs @@ -28,19 +28,15 @@ public static partial class RegulatoryComplianceControlsOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The name of the resource group within the user's subscription. The name is - /// case insensitive. - /// /// /// Name of the regulatory compliance standard object /// /// /// OData filter. Optional. /// - public static IPage List(this IRegulatoryComplianceControlsOperations operations, string resourceGroupName, string regulatoryComplianceStandardName, string filter = default(string)) + public static IPage List(this IRegulatoryComplianceControlsOperations operations, string regulatoryComplianceStandardName, string filter = default(string)) { - return operations.ListAsync(resourceGroupName, regulatoryComplianceStandardName, filter).GetAwaiter().GetResult(); + return operations.ListAsync(regulatoryComplianceStandardName, filter).GetAwaiter().GetResult(); } /// @@ -50,10 +46,6 @@ public static partial class RegulatoryComplianceControlsOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The name of the resource group within the user's subscription. The name is - /// case insensitive. - /// /// /// Name of the regulatory compliance standard object /// @@ -63,9 +55,9 @@ public static partial class RegulatoryComplianceControlsOperationsExtensions /// /// The cancellation token. /// - public static async Task> ListAsync(this IRegulatoryComplianceControlsOperations operations, string resourceGroupName, string regulatoryComplianceStandardName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAsync(this IRegulatoryComplianceControlsOperations operations, string regulatoryComplianceStandardName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, regulatoryComplianceStandardName, filter, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(regulatoryComplianceStandardName, filter, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -77,19 +69,15 @@ public static partial class RegulatoryComplianceControlsOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The name of the resource group within the user's subscription. The name is - /// case insensitive. - /// /// /// Name of the regulatory compliance standard object /// /// /// Name of the regulatory compliance control object /// - public static RegulatoryComplianceControl Get(this IRegulatoryComplianceControlsOperations operations, string resourceGroupName, string regulatoryComplianceStandardName, string regulatoryComplianceControlName) + public static RegulatoryComplianceControl Get(this IRegulatoryComplianceControlsOperations operations, string regulatoryComplianceStandardName, string regulatoryComplianceControlName) { - return operations.GetAsync(resourceGroupName, regulatoryComplianceStandardName, regulatoryComplianceControlName).GetAwaiter().GetResult(); + return operations.GetAsync(regulatoryComplianceStandardName, regulatoryComplianceControlName).GetAwaiter().GetResult(); } /// @@ -98,10 +86,6 @@ public static RegulatoryComplianceControl Get(this IRegulatoryComplianceControls /// /// The operations group for this extension method. /// - /// - /// The name of the resource group within the user's subscription. The name is - /// case insensitive. - /// /// /// Name of the regulatory compliance standard object /// @@ -111,9 +95,9 @@ public static RegulatoryComplianceControl Get(this IRegulatoryComplianceControls /// /// The cancellation token. /// - public static async Task GetAsync(this IRegulatoryComplianceControlsOperations operations, string resourceGroupName, string regulatoryComplianceStandardName, string regulatoryComplianceControlName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IRegulatoryComplianceControlsOperations operations, string regulatoryComplianceStandardName, string regulatoryComplianceControlName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, regulatoryComplianceStandardName, regulatoryComplianceControlName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(regulatoryComplianceStandardName, regulatoryComplianceControlName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/RegulatoryComplianceStandardsOperations.cs b/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/RegulatoryComplianceStandardsOperations.cs index 31c62d19ff66d..8fa85b9d82b47 100644 --- a/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/RegulatoryComplianceStandardsOperations.cs +++ b/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/RegulatoryComplianceStandardsOperations.cs @@ -53,10 +53,6 @@ internal RegulatoryComplianceStandardsOperations(SecurityCenterClient client) /// /// Supported regulatory compliance standards details and state /// - /// - /// The name of the resource group within the user's subscription. The name is - /// case insensitive. - /// /// /// OData filter. Optional. /// @@ -81,7 +77,7 @@ internal RegulatoryComplianceStandardsOperations(SecurityCenterClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -94,25 +90,6 @@ internal RegulatoryComplianceStandardsOperations(SecurityCenterClient client) throw new ValidationException(ValidationRules.Pattern, "Client.SubscriptionId", "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$"); } } - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 90) - { - throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); - } - if (resourceGroupName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } - } string apiVersion = "2019-01-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -122,7 +99,6 @@ internal RegulatoryComplianceStandardsOperations(SecurityCenterClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("filter", filter); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); @@ -131,7 +107,6 @@ internal RegulatoryComplianceStandardsOperations(SecurityCenterClient client) var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Security/regulatoryComplianceStandards").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); List _queryParameters = new List(); if (apiVersion != null) { @@ -269,10 +244,6 @@ internal RegulatoryComplianceStandardsOperations(SecurityCenterClient client) /// /// Supported regulatory compliance details state for selected standard /// - /// - /// The name of the resource group within the user's subscription. The name is - /// case insensitive. - /// /// /// Name of the regulatory compliance standard object /// @@ -297,7 +268,7 @@ internal RegulatoryComplianceStandardsOperations(SecurityCenterClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string regulatoryComplianceStandardName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string regulatoryComplianceStandardName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -310,25 +281,6 @@ internal RegulatoryComplianceStandardsOperations(SecurityCenterClient client) throw new ValidationException(ValidationRules.Pattern, "Client.SubscriptionId", "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$"); } } - if (resourceGroupName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); - } - if (resourceGroupName != null) - { - if (resourceGroupName.Length > 90) - { - throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); - } - if (resourceGroupName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); - } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } - } if (regulatoryComplianceStandardName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "regulatoryComplianceStandardName"); @@ -342,7 +294,6 @@ internal RegulatoryComplianceStandardsOperations(SecurityCenterClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("regulatoryComplianceStandardName", regulatoryComplianceStandardName); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); @@ -351,7 +302,6 @@ internal RegulatoryComplianceStandardsOperations(SecurityCenterClient client) var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{regulatoryComplianceStandardName}", System.Uri.EscapeDataString(regulatoryComplianceStandardName)); List _queryParameters = new List(); if (apiVersion != null) diff --git a/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/RegulatoryComplianceStandardsOperationsExtensions.cs b/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/RegulatoryComplianceStandardsOperationsExtensions.cs index 6e6f6a27a6363..0f1c4822a5a87 100644 --- a/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/RegulatoryComplianceStandardsOperationsExtensions.cs +++ b/src/SDKs/SecurityCenter/Management.SecurityCenter/Generated/RegulatoryComplianceStandardsOperationsExtensions.cs @@ -27,16 +27,12 @@ public static partial class RegulatoryComplianceStandardsOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The name of the resource group within the user's subscription. The name is - /// case insensitive. - /// /// /// OData filter. Optional. /// - public static IPage List(this IRegulatoryComplianceStandardsOperations operations, string resourceGroupName, string filter = default(string)) + public static IPage List(this IRegulatoryComplianceStandardsOperations operations, string filter = default(string)) { - return operations.ListAsync(resourceGroupName, filter).GetAwaiter().GetResult(); + return operations.ListAsync(filter).GetAwaiter().GetResult(); } /// @@ -45,19 +41,15 @@ public static partial class RegulatoryComplianceStandardsOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The name of the resource group within the user's subscription. The name is - /// case insensitive. - /// /// /// OData filter. Optional. /// /// /// The cancellation token. /// - public static async Task> ListAsync(this IRegulatoryComplianceStandardsOperations operations, string resourceGroupName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAsync(this IRegulatoryComplianceStandardsOperations operations, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, filter, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(filter, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -69,16 +61,12 @@ public static partial class RegulatoryComplianceStandardsOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The name of the resource group within the user's subscription. The name is - /// case insensitive. - /// /// /// Name of the regulatory compliance standard object /// - public static RegulatoryComplianceStandard Get(this IRegulatoryComplianceStandardsOperations operations, string resourceGroupName, string regulatoryComplianceStandardName) + public static RegulatoryComplianceStandard Get(this IRegulatoryComplianceStandardsOperations operations, string regulatoryComplianceStandardName) { - return operations.GetAsync(resourceGroupName, regulatoryComplianceStandardName).GetAwaiter().GetResult(); + return operations.GetAsync(regulatoryComplianceStandardName).GetAwaiter().GetResult(); } /// @@ -87,19 +75,15 @@ public static RegulatoryComplianceStandard Get(this IRegulatoryComplianceStandar /// /// The operations group for this extension method. /// - /// - /// The name of the resource group within the user's subscription. The name is - /// case insensitive. - /// /// /// Name of the regulatory compliance standard object /// /// /// The cancellation token. /// - public static async Task GetAsync(this IRegulatoryComplianceStandardsOperations operations, string resourceGroupName, string regulatoryComplianceStandardName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IRegulatoryComplianceStandardsOperations operations, string regulatoryComplianceStandardName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, regulatoryComplianceStandardName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(regulatoryComplianceStandardName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; }