CompliancePolicyRule

class oci.fleet_apps_management.models.CompliancePolicyRule(**kwargs)

Bases: object

Set of rules that are used to calculate the compliance status of the product. Specific rules will take precedence over broader rules.

Attributes

LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a CompliancePolicyRule.
LIFECYCLE_STATE_CREATING A constant which can be used with the lifecycle_state property of a CompliancePolicyRule.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a CompliancePolicyRule.
LIFECYCLE_STATE_DELETING A constant which can be used with the lifecycle_state property of a CompliancePolicyRule.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a CompliancePolicyRule.
LIFECYCLE_STATE_UPDATING A constant which can be used with the lifecycle_state property of a CompliancePolicyRule.
SEVERITY_CRITICAL A constant which can be used with the severity property of a CompliancePolicyRule.
SEVERITY_HIGH A constant which can be used with the severity property of a CompliancePolicyRule.
SEVERITY_LOW A constant which can be used with the severity property of a CompliancePolicyRule.
SEVERITY_MEDIUM A constant which can be used with the severity property of a CompliancePolicyRule.
compartment_id [Required] Gets the compartment_id of this CompliancePolicyRule.
compliance_policy_id [Required] Gets the compliance_policy_id of this CompliancePolicyRule.
defined_tags [Required] Gets the defined_tags of this CompliancePolicyRule.
display_name [Required] Gets the display_name of this CompliancePolicyRule.
freeform_tags [Required] Gets the freeform_tags of this CompliancePolicyRule.
grace_period Gets the grace_period of this CompliancePolicyRule.
id [Required] Gets the id of this CompliancePolicyRule.
lifecycle_details Gets the lifecycle_details of this CompliancePolicyRule.
lifecycle_state [Required] Gets the lifecycle_state of this CompliancePolicyRule.
patch_selection [Required] Gets the patch_selection of this CompliancePolicyRule.
patch_type [Required] Gets the patch_type of this CompliancePolicyRule.
product_version [Required] Gets the product_version of this CompliancePolicyRule.
severity Gets the severity of this CompliancePolicyRule.
system_tags Gets the system_tags of this CompliancePolicyRule.
time_created [Required] Gets the time_created of this CompliancePolicyRule.
time_updated Gets the time_updated of this CompliancePolicyRule.

Methods

__init__(**kwargs) Initializes a new CompliancePolicyRule object with values from keyword arguments.
LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

A constant which can be used with the lifecycle_state property of a CompliancePolicyRule. This constant has a value of “ACTIVE”

LIFECYCLE_STATE_CREATING = 'CREATING'

A constant which can be used with the lifecycle_state property of a CompliancePolicyRule. This constant has a value of “CREATING”

LIFECYCLE_STATE_DELETED = 'DELETED'

A constant which can be used with the lifecycle_state property of a CompliancePolicyRule. This constant has a value of “DELETED”

LIFECYCLE_STATE_DELETING = 'DELETING'

A constant which can be used with the lifecycle_state property of a CompliancePolicyRule. This constant has a value of “DELETING”

LIFECYCLE_STATE_FAILED = 'FAILED'

A constant which can be used with the lifecycle_state property of a CompliancePolicyRule. This constant has a value of “FAILED”

LIFECYCLE_STATE_UPDATING = 'UPDATING'

A constant which can be used with the lifecycle_state property of a CompliancePolicyRule. This constant has a value of “UPDATING”

SEVERITY_CRITICAL = 'CRITICAL'

A constant which can be used with the severity property of a CompliancePolicyRule. This constant has a value of “CRITICAL”

SEVERITY_HIGH = 'HIGH'

A constant which can be used with the severity property of a CompliancePolicyRule. This constant has a value of “HIGH”

SEVERITY_LOW = 'LOW'

A constant which can be used with the severity property of a CompliancePolicyRule. This constant has a value of “LOW”

SEVERITY_MEDIUM = 'MEDIUM'

A constant which can be used with the severity property of a CompliancePolicyRule. This constant has a value of “MEDIUM”

__init__(**kwargs)

Initializes a new CompliancePolicyRule object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • id (str) – The value to assign to the id property of this CompliancePolicyRule.
  • display_name (str) – The value to assign to the display_name property of this CompliancePolicyRule.
  • compliance_policy_id (str) – The value to assign to the compliance_policy_id property of this CompliancePolicyRule.
  • product_version (oci.fleet_apps_management.models.ProductVersionDetails) – The value to assign to the product_version property of this CompliancePolicyRule.
  • patch_type (list[str]) – The value to assign to the patch_type property of this CompliancePolicyRule.
  • severity (list[str]) – The value to assign to the severity property of this CompliancePolicyRule. Allowed values for items in this list are: “CRITICAL”, “HIGH”, “MEDIUM”, “LOW”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • patch_selection (oci.fleet_apps_management.models.PatchSelectionDetails) – The value to assign to the patch_selection property of this CompliancePolicyRule.
  • grace_period (str) – The value to assign to the grace_period property of this CompliancePolicyRule.
  • compartment_id (str) – The value to assign to the compartment_id property of this CompliancePolicyRule.
  • time_created (datetime) – The value to assign to the time_created property of this CompliancePolicyRule.
  • time_updated (datetime) – The value to assign to the time_updated property of this CompliancePolicyRule.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this CompliancePolicyRule. Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “DELETING”, “DELETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • lifecycle_details (str) – The value to assign to the lifecycle_details property of this CompliancePolicyRule.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CompliancePolicyRule.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CompliancePolicyRule.
  • system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this CompliancePolicyRule.
compartment_id

[Required] Gets the compartment_id of this CompliancePolicyRule. The OCID of the compartment the CompliancePolicyRule belongs to.

Returns:The compartment_id of this CompliancePolicyRule.
Return type:str
compliance_policy_id

[Required] Gets the compliance_policy_id of this CompliancePolicyRule. Unique OCID of the CompliancePolicy.

Returns:The compliance_policy_id of this CompliancePolicyRule.
Return type:str
defined_tags

[Required] Gets the defined_tags of this CompliancePolicyRule. 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 CompliancePolicyRule.
Return type:dict(str, dict(str, object))
display_name

[Required] Gets the display_name of this CompliancePolicyRule. 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 CompliancePolicyRule.
Return type:str
freeform_tags

[Required] Gets the freeform_tags of this CompliancePolicyRule. 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 CompliancePolicyRule.
Return type:dict(str, str)
grace_period

Gets the grace_period of this CompliancePolicyRule. 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 CompliancePolicyRule.
Return type:str
id

[Required] Gets the id of this CompliancePolicyRule. Unique OCID of the CompliancePolicyRule.

Returns:The id of this CompliancePolicyRule.
Return type:str
lifecycle_details

Gets the lifecycle_details of this CompliancePolicyRule. A message that describes the current state of the CompliancePolicyRule in more detail. For example, can be used to provide actionable information for a resource in the Failed state.

Returns:The lifecycle_details of this CompliancePolicyRule.
Return type:str
lifecycle_state

[Required] Gets the lifecycle_state of this CompliancePolicyRule. The current state of the CompliancePolicyRule.

Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “DELETING”, “DELETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The lifecycle_state of this CompliancePolicyRule.
Return type:str
patch_selection

[Required] Gets the patch_selection of this CompliancePolicyRule.

Returns:The patch_selection of this CompliancePolicyRule.
Return type:oci.fleet_apps_management.models.PatchSelectionDetails
patch_type

[Required] Gets the patch_type of this CompliancePolicyRule. PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.

Returns:The patch_type of this CompliancePolicyRule.
Return type:list[str]
product_version

[Required] Gets the product_version of this CompliancePolicyRule.

Returns:The product_version of this CompliancePolicyRule.
Return type:oci.fleet_apps_management.models.ProductVersionDetails
severity

Gets the severity of this CompliancePolicyRule. Severity to which this CompliancePolicyRule applies.

Allowed values for items in this list are: “CRITICAL”, “HIGH”, “MEDIUM”, “LOW”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The severity of this CompliancePolicyRule.
Return type:list[str]
system_tags

Gets the system_tags of this CompliancePolicyRule. System tags for this resource. Each key is predefined and scoped to a namespace. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}

Returns:The system_tags of this CompliancePolicyRule.
Return type:dict(str, dict(str, object))
time_created

[Required] Gets the time_created of this CompliancePolicyRule. The date and time the CompliancePolicyRule was created, in the format defined by RFC 3339.

Example: 2016-08-25T21:10:29.600Z

Returns:The time_created of this CompliancePolicyRule.
Return type:datetime
time_updated

Gets the time_updated of this CompliancePolicyRule. The date and time the CompliancePolicyRule was updated, in the format defined by RFC 3339.

Example: 2016-08-25T21:10:29.600Z

Returns:The time_updated of this CompliancePolicyRule.
Return type:datetime