Skip to content

Commit

Permalink
.NET SDK Resource Provider:'SecurityCenter'
Browse files Browse the repository at this point in the history
REST Spec PR 'Azure/azure-rest-api-specs#5649'
REST Spec PR Author 'chlahav'
REST Spec PR Last commit
  • Loading branch information
adxsdknet committed Apr 24, 2019
1 parent 685d360 commit 4f2d05b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 47 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,20 @@ public SecurityAssessment()
/// assessment</param>
/// <param name="status">Status of the. Possible values include:
/// 'Passed', 'Failed', 'NotApplicable'</param>
/// <param name="notApplicableReasonCode">Programmatic code for the
/// reason the assessment result is NotApplicable</param>
/// <param name="notApplicableReasonDescription">Human readable
/// description for the reason the assessment result is
/// NotApplicable</param>
/// <param name="statusReasonCode">Programmatic code for the reason the
/// assessment result status</param>
/// <param name="statusReasonDescription">Human readable description
/// for the reason the assessment result status</param>
/// <param name="additionalData">Additional data regarding the
/// assessment</param>
public SecurityAssessment(string id = default(string), string name = default(string), string type = default(string), ResourceDetails resourceDetails = default(ResourceDetails), string displayName = default(string), string status = default(string), string notApplicableReasonCode = default(string), string notApplicableReasonDescription = default(string), IList<AssessmentAdditionalData> additionalData = default(IList<AssessmentAdditionalData>))
public SecurityAssessment(string id = default(string), string name = default(string), string type = default(string), ResourceDetails resourceDetails = default(ResourceDetails), string displayName = default(string), string status = default(string), string statusReasonCode = default(string), string statusReasonDescription = default(string), IList<AssessmentAdditionalData> additionalData = default(IList<AssessmentAdditionalData>))
: base(id, name, type)
{
ResourceDetails = resourceDetails;
DisplayName = displayName;
Status = status;
NotApplicableReasonCode = notApplicableReasonCode;
NotApplicableReasonDescription = notApplicableReasonDescription;
StatusReasonCode = statusReasonCode;
StatusReasonDescription = statusReasonDescription;
AdditionalData = additionalData;
CustomInit();
}
Expand Down Expand Up @@ -84,18 +83,17 @@ public SecurityAssessment()
public string Status { get; private set; }

/// <summary>
/// Gets programmatic code for the reason the assessment result is
/// NotApplicable
/// Gets programmatic code for the reason the assessment result status
/// </summary>
[JsonProperty(PropertyName = "properties.notApplicableReasonCode")]
public string NotApplicableReasonCode { get; private set; }
[JsonProperty(PropertyName = "properties.statusReasonCode")]
public string StatusReasonCode { get; private set; }

/// <summary>
/// Gets human readable description for the reason the assessment
/// result is NotApplicable
/// result status
/// </summary>
[JsonProperty(PropertyName = "properties.notApplicableReasonDescription")]
public string NotApplicableReasonDescription { get; private set; }
[JsonProperty(PropertyName = "properties.statusReasonDescription")]
public string StatusReasonDescription { get; private set; }

/// <summary>
/// Gets additional data regarding the assessment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ public SecurityAssessmentMetadata()
/// <param name="secureScoreWeight">Weight for the security score
/// calculation. the higher this number, this severity of this
/// assessment is higher</param>
/// <param name="releaseStatus">Stage of the assessment release.
/// Possible values include: 'GA', 'PublicPreview',
/// 'PrivatePreview'</param>
public SecurityAssessmentMetadata(string id = default(string), string name = default(string), string type = default(string), string displayName = default(string), string policyDefinitionId = default(string), string description = default(string), string remediationDescription = default(string), string category = default(string), int? secureScoreWeight = default(int?), string releaseStatus = default(string))
/// <param name="preview">True if this assessment is in preview release
/// status</param>
public SecurityAssessmentMetadata(string id = default(string), string name = default(string), string type = default(string), string displayName = default(string), string policyDefinitionId = default(string), string description = default(string), string remediationDescription = default(string), string category = default(string), int? secureScoreWeight = default(int?), bool? preview = default(bool?))
: base(id, name, type)
{
DisplayName = displayName;
Expand All @@ -61,7 +60,7 @@ public SecurityAssessmentMetadata()
RemediationDescription = remediationDescription;
Category = category;
SecureScoreWeight = secureScoreWeight;
ReleaseStatus = releaseStatus;
Preview = preview;
CustomInit();
}

Expand Down Expand Up @@ -112,11 +111,10 @@ public SecurityAssessmentMetadata()
public int? SecureScoreWeight { get; private set; }

/// <summary>
/// Gets stage of the assessment release. Possible values include:
/// 'GA', 'PublicPreview', 'PrivatePreview'
/// Gets true if this assessment is in preview release status
/// </summary>
[JsonProperty(PropertyName = "properties.releaseStatus")]
public string ReleaseStatus { get; private set; }
[JsonProperty(PropertyName = "properties.preview")]
public bool? Preview { get; private set; }

}
}

0 comments on commit 4f2d05b

Please sign in to comment.