CreateCompliancePolicyRuleDetails

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

Bases: object

The data to create a CompliancePolicyRule.

Attributes:

SEVERITY_CRITICAL

A constant which can be used with the severity property of a CreateCompliancePolicyRuleDetails.

SEVERITY_HIGH

A constant which can be used with the severity property of a CreateCompliancePolicyRuleDetails.

SEVERITY_LOW

A constant which can be used with the severity property of a CreateCompliancePolicyRuleDetails.

SEVERITY_MEDIUM

A 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_tags

Gets the defined_tags of this CreateCompliancePolicyRuleDetails.

display_name

[Required] Gets the display_name of this CreateCompliancePolicyRuleDetails.

freeform_tags

Gets the freeform_tags of this CreateCompliancePolicyRuleDetails.

grace_period

Gets 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.

severity

Gets 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.

property 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

property defined_tags

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))

property 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

property freeform_tags

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)

property 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

property 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

property 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]

property 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

property 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]