Skip to content

Commit

Permalink
AutoPr-SecurityCenter-himarkov-REST Spec PrNumber 6121 (Azure#6421)
Browse files Browse the repository at this point in the history
* .NET SDK Resource Provider:'SecurityCenter'
REST Spec PR 'Azure/azure-rest-api-specs#6121'
REST Spec PR Author 'himarkov'
REST Spec PR Last commit

* .NET SDK Resource Provider:'SecurityCenter'
REST Spec PR 'Azure/azure-rest-api-specs#6121'
REST Spec PR Author 'himarkov'
REST Spec PR Last commit
  • Loading branch information
adxsdknet authored and mentat9 committed Jun 10, 2019
1 parent 7d7c73c commit 04026ef
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 264 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ public partial interface IRegulatoryComplianceAssessmentsOperations
/// Details and state of assessments mapped to selected regulatory
/// compliance control
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group within the user's subscription. The
/// name is case insensitive.
/// </param>
/// <param name='regulatoryComplianceStandardName'>
/// Name of the regulatory compliance standard object
/// </param>
Expand All @@ -55,15 +51,11 @@ public partial interface IRegulatoryComplianceAssessmentsOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<RegulatoryComplianceAssessment>>> ListWithHttpMessagesAsync(string resourceGroupName, string regulatoryComplianceStandardName, string regulatoryComplianceControlName, string filter = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse<IPage<RegulatoryComplianceAssessment>>> ListWithHttpMessagesAsync(string regulatoryComplianceStandardName, string regulatoryComplianceControlName, string filter = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Supported regulatory compliance details and state for selected
/// assessment
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group within the user's subscription. The
/// name is case insensitive.
/// </param>
/// <param name='regulatoryComplianceStandardName'>
/// Name of the regulatory compliance standard object
/// </param>
Expand All @@ -88,7 +80,7 @@ public partial interface IRegulatoryComplianceAssessmentsOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<RegulatoryComplianceAssessment>> GetWithHttpMessagesAsync(string resourceGroupName, string regulatoryComplianceStandardName, string regulatoryComplianceControlName, string regulatoryComplianceAssessmentName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse<RegulatoryComplianceAssessment>> GetWithHttpMessagesAsync(string regulatoryComplianceStandardName, string regulatoryComplianceControlName, string regulatoryComplianceAssessmentName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Details and state of assessments mapped to selected regulatory
/// compliance control
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ public partial interface IRegulatoryComplianceControlsOperations
/// All supported regulatory compliance controls details and state for
/// selected standard
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group within the user's subscription. The
/// name is case insensitive.
/// </param>
/// <param name='regulatoryComplianceStandardName'>
/// Name of the regulatory compliance standard object
/// </param>
Expand All @@ -52,14 +48,10 @@ public partial interface IRegulatoryComplianceControlsOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<RegulatoryComplianceControl>>> ListWithHttpMessagesAsync(string resourceGroupName, string regulatoryComplianceStandardName, string filter = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse<IPage<RegulatoryComplianceControl>>> ListWithHttpMessagesAsync(string regulatoryComplianceStandardName, string filter = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Selected regulatory compliance control details and state
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group within the user's subscription. The
/// name is case insensitive.
/// </param>
/// <param name='regulatoryComplianceStandardName'>
/// Name of the regulatory compliance standard object
/// </param>
Expand All @@ -81,7 +73,7 @@ public partial interface IRegulatoryComplianceControlsOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<RegulatoryComplianceControl>> GetWithHttpMessagesAsync(string resourceGroupName, string regulatoryComplianceStandardName, string regulatoryComplianceControlName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse<RegulatoryComplianceControl>> GetWithHttpMessagesAsync(string regulatoryComplianceStandardName, string regulatoryComplianceControlName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// All supported regulatory compliance controls details and state for
/// selected standard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ public partial interface IRegulatoryComplianceStandardsOperations
/// <summary>
/// Supported regulatory compliance standards details and state
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group within the user's subscription. The
/// name is case insensitive.
/// </param>
/// <param name='filter'>
/// OData filter. Optional.
/// </param>
Expand All @@ -48,14 +44,10 @@ public partial interface IRegulatoryComplianceStandardsOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<RegulatoryComplianceStandard>>> ListWithHttpMessagesAsync(string resourceGroupName, string filter = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse<IPage<RegulatoryComplianceStandard>>> ListWithHttpMessagesAsync(string filter = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Supported regulatory compliance details state for selected standard
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group within the user's subscription. The
/// name is case insensitive.
/// </param>
/// <param name='regulatoryComplianceStandardName'>
/// Name of the regulatory compliance standard object
/// </param>
Expand All @@ -74,7 +66,7 @@ public partial interface IRegulatoryComplianceStandardsOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<RegulatoryComplianceStandard>> GetWithHttpMessagesAsync(string resourceGroupName, string regulatoryComplianceStandardName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse<RegulatoryComplianceStandard>> GetWithHttpMessagesAsync(string regulatoryComplianceStandardName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Supported regulatory compliance standards details and state
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ internal RegulatoryComplianceAssessmentsOperations(SecurityCenterClient client)
/// Details and state of assessments mapped to selected regulatory compliance
/// control
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group within the user's subscription. The name is
/// case insensitive.
/// </param>
/// <param name='regulatoryComplianceStandardName'>
/// Name of the regulatory compliance standard object
/// </param>
Expand Down Expand Up @@ -88,7 +84,7 @@ internal RegulatoryComplianceAssessmentsOperations(SecurityCenterClient client)
/// <return>
/// A response object containing the response body and response headers.
/// </return>
public async Task<AzureOperationResponse<IPage<RegulatoryComplianceAssessment>>> ListWithHttpMessagesAsync(string resourceGroupName, string regulatoryComplianceStandardName, string regulatoryComplianceControlName, string filter = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
public async Task<AzureOperationResponse<IPage<RegulatoryComplianceAssessment>>> ListWithHttpMessagesAsync(string regulatoryComplianceStandardName, string regulatoryComplianceControlName, string filter = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.SubscriptionId == null)
{
Expand All @@ -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");
Expand All @@ -137,7 +114,6 @@ internal RegulatoryComplianceAssessmentsOperations(SecurityCenterClient client)
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary<string, object> tracingParameters = new Dictionary<string, object>();
tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("regulatoryComplianceStandardName", regulatoryComplianceStandardName);
tracingParameters.Add("regulatoryComplianceControlName", regulatoryComplianceControlName);
tracingParameters.Add("filter", filter);
Expand All @@ -146,9 +122,8 @@ internal RegulatoryComplianceAssessmentsOperations(SecurityCenterClient client)
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls/{regulatoryComplianceControlName}/regulatoryComplianceAssessments").ToString();
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<string> _queryParameters = new List<string>();
Expand Down Expand Up @@ -288,10 +263,6 @@ internal RegulatoryComplianceAssessmentsOperations(SecurityCenterClient client)
/// <summary>
/// Supported regulatory compliance details and state for selected assessment
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group within the user's subscription. The name is
/// case insensitive.
/// </param>
/// <param name='regulatoryComplianceStandardName'>
/// Name of the regulatory compliance standard object
/// </param>
Expand Down Expand Up @@ -322,7 +293,7 @@ internal RegulatoryComplianceAssessmentsOperations(SecurityCenterClient client)
/// <return>
/// A response object containing the response body and response headers.
/// </return>
public async Task<AzureOperationResponse<RegulatoryComplianceAssessment>> GetWithHttpMessagesAsync(string resourceGroupName, string regulatoryComplianceStandardName, string regulatoryComplianceControlName, string regulatoryComplianceAssessmentName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
public async Task<AzureOperationResponse<RegulatoryComplianceAssessment>> GetWithHttpMessagesAsync(string regulatoryComplianceStandardName, string regulatoryComplianceControlName, string regulatoryComplianceAssessmentName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.SubscriptionId == null)
{
Expand All @@ -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");
Expand All @@ -375,7 +327,6 @@ internal RegulatoryComplianceAssessmentsOperations(SecurityCenterClient client)
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary<string, object> tracingParameters = new Dictionary<string, object>();
tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("regulatoryComplianceStandardName", regulatoryComplianceStandardName);
tracingParameters.Add("regulatoryComplianceControlName", regulatoryComplianceControlName);
tracingParameters.Add("regulatoryComplianceAssessmentName", regulatoryComplianceAssessmentName);
Expand All @@ -384,9 +335,8 @@ internal RegulatoryComplianceAssessmentsOperations(SecurityCenterClient client)
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls/{regulatoryComplianceControlName}/regulatoryComplianceAssessments/{regulatoryComplianceAssessmentName}").ToString();
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));
Expand Down
Loading

0 comments on commit 04026ef

Please sign in to comment.