Class CreateCompliancePolicyRuleDetails
The data to create a CompliancePolicyRule.
Inherited Members
Namespace: Oci.FleetappsmanagementService.Models
Assembly: OCI.DotNetSDK.Fleetappsmanagement.dll
Syntax
public class CreateCompliancePolicyRuleDetails
Properties
CompliancePolicyId
Declaration
[Required(ErrorMessage = "CompliancePolicyId is required.")]
[JsonProperty(PropertyName = "compliancePolicyId")]
public string CompliancePolicyId { get; set; }
Property Value
Type | Description |
---|---|
string | Unique OCID of the CompliancePolicy this CompliancePolicyRule belongs to. |
Remarks
Required
DefinedTags
Declaration
[JsonProperty(PropertyName = "definedTags")]
public Dictionary<string, Dictionary<string, object>> DefinedTags { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, Dictionary<string, object>> | Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace": {"bar-key": "value"}} |
DisplayName
Declaration
[Required(ErrorMessage = "DisplayName is required.")]
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
string | A user-friendly name. Does not have to be unique, and it's changeable.
Avoid entering confidential information.
|
Remarks
Required
FreeformTags
Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> | Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"} |
GracePeriod
Declaration
[JsonProperty(PropertyName = "gracePeriod")]
public string GracePeriod { get; set; }
Property Value
Type | Description |
---|---|
string | Grace period in days,weeks,months or years the exemption is applicable for the rule. This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied. |
PatchSelection
Declaration
[Required(ErrorMessage = "PatchSelection is required.")]
[JsonProperty(PropertyName = "patchSelection")]
public PatchSelectionDetails PatchSelection { get; set; }
Property Value
Type | Description |
---|---|
PatchSelectionDetails |
Remarks
Required
PatchTypeId
Declaration
[Required(ErrorMessage = "PatchTypeId is required.")]
[JsonProperty(PropertyName = "patchTypeId")]
public List<string> PatchTypeId { get; set; }
Property Value
Type | Description |
---|---|
List<string> | PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies. |
Remarks
Required
ProductVersion
Declaration
[Required(ErrorMessage = "ProductVersion is required.")]
[JsonProperty(PropertyName = "productVersion")]
public ProductVersionDetails ProductVersion { get; set; }
Property Value
Type | Description |
---|---|
ProductVersionDetails |
Remarks
Required
Severity
Declaration
[JsonProperty(PropertyName = "severity", ItemConverterType = typeof(StringEnumConverter))]
public List<ComplianceRuleSeverity> Severity { get; set; }
Property Value
Type | Description |
---|---|
List<ComplianceRuleSeverity> | Severity to which this CompliancePolicyRule applies. |