CreateCompliancePolicyRuleDetails¶
-
class
oci.fleet_apps_management.models.CreateCompliancePolicyRuleDetails(**kwargs)¶ Bases:
objectThe data to create a CompliancePolicyRule.
Attributes
SEVERITY_CRITICALA constant which can be used with the severity property of a CreateCompliancePolicyRuleDetails. SEVERITY_HIGHA constant which can be used with the severity property of a CreateCompliancePolicyRuleDetails. SEVERITY_LOWA constant which can be used with the severity property of a CreateCompliancePolicyRuleDetails. SEVERITY_MEDIUMA constant which can be used with the severity property of a CreateCompliancePolicyRuleDetails. compliance_policy_id[Required] Gets the compliance_policy_id of this CreateCompliancePolicyRuleDetails. defined_tagsGets the defined_tags of this CreateCompliancePolicyRuleDetails. display_name[Required] Gets the display_name of this CreateCompliancePolicyRuleDetails. freeform_tagsGets the freeform_tags of this CreateCompliancePolicyRuleDetails. grace_periodGets the grace_period of this CreateCompliancePolicyRuleDetails. patch_selection[Required] Gets the patch_selection of this CreateCompliancePolicyRuleDetails. patch_type_id[Required] Gets the patch_type_id of this CreateCompliancePolicyRuleDetails. product_version[Required] Gets the product_version of this CreateCompliancePolicyRuleDetails. severityGets the severity of this CreateCompliancePolicyRuleDetails. Methods
__init__(**kwargs)Initializes a new CreateCompliancePolicyRuleDetails object with values from keyword arguments. -
SEVERITY_CRITICAL= 'CRITICAL'¶ A constant which can be used with the severity property of a CreateCompliancePolicyRuleDetails. This constant has a value of “CRITICAL”
-
SEVERITY_HIGH= 'HIGH'¶ A constant which can be used with the severity property of a CreateCompliancePolicyRuleDetails. This constant has a value of “HIGH”
-
SEVERITY_LOW= 'LOW'¶ A constant which can be used with the severity property of a CreateCompliancePolicyRuleDetails. This constant has a value of “LOW”
-
SEVERITY_MEDIUM= 'MEDIUM'¶ A constant which can be used with the severity property of a CreateCompliancePolicyRuleDetails. This constant has a value of “MEDIUM”
-
__init__(**kwargs)¶ Initializes a new CreateCompliancePolicyRuleDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - display_name (str) – The value to assign to the display_name property of this CreateCompliancePolicyRuleDetails.
- compliance_policy_id (str) – The value to assign to the compliance_policy_id property of this CreateCompliancePolicyRuleDetails.
- product_version (oci.fleet_apps_management.models.ProductVersionDetails) – The value to assign to the product_version property of this CreateCompliancePolicyRuleDetails.
- patch_type_id (list[str]) – The value to assign to the patch_type_id property of this CreateCompliancePolicyRuleDetails.
- severity (list[str]) – The value to assign to the severity property of this CreateCompliancePolicyRuleDetails. Allowed values for items in this list are: “CRITICAL”, “HIGH”, “MEDIUM”, “LOW”
- patch_selection (oci.fleet_apps_management.models.PatchSelectionDetails) – The value to assign to the patch_selection property of this CreateCompliancePolicyRuleDetails.
- grace_period (str) – The value to assign to the grace_period property of this CreateCompliancePolicyRuleDetails.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateCompliancePolicyRuleDetails.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateCompliancePolicyRuleDetails.
-
compliance_policy_id¶ [Required] Gets the compliance_policy_id of this CreateCompliancePolicyRuleDetails. Unique OCID of the CompliancePolicy this CompliancePolicyRule belongs to.
Returns: The compliance_policy_id of this CreateCompliancePolicyRuleDetails. Return type: str
Gets the defined_tags of this CreateCompliancePolicyRuleDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
Returns: The defined_tags of this CreateCompliancePolicyRuleDetails. Return type: dict(str, dict(str, object))
-
display_name¶ [Required] Gets the display_name of this CreateCompliancePolicyRuleDetails. A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
Example: My new resource
Returns: The display_name of this CreateCompliancePolicyRuleDetails. Return type: str
Gets the freeform_tags of this CreateCompliancePolicyRuleDetails. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {“bar-key”: “value”}
Returns: The freeform_tags of this CreateCompliancePolicyRuleDetails. Return type: dict(str, str)
-
grace_period¶ Gets the grace_period of this CreateCompliancePolicyRuleDetails. 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.
Returns: The grace_period of this CreateCompliancePolicyRuleDetails. Return type: str
-
patch_selection¶ [Required] Gets the patch_selection of this CreateCompliancePolicyRuleDetails.
Returns: The patch_selection of this CreateCompliancePolicyRuleDetails. Return type: oci.fleet_apps_management.models.PatchSelectionDetails
-
patch_type_id¶ [Required] Gets the patch_type_id of this CreateCompliancePolicyRuleDetails. PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.
Returns: The patch_type_id of this CreateCompliancePolicyRuleDetails. Return type: list[str]
-
product_version¶ [Required] Gets the product_version of this CreateCompliancePolicyRuleDetails.
Returns: The product_version of this CreateCompliancePolicyRuleDetails. Return type: oci.fleet_apps_management.models.ProductVersionDetails
-
severity¶ Gets the severity of this CreateCompliancePolicyRuleDetails. Severity to which this CompliancePolicyRule applies.
Allowed values for items in this list are: “CRITICAL”, “HIGH”, “MEDIUM”, “LOW”
Returns: The severity of this CreateCompliancePolicyRuleDetails. Return type: list[str]
-