Rule

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

Bases: object

Rule for DYNAMIC selection.

Attributes

MATCH_CONDITION_ANY A constant which can be used with the match_condition property of a Rule.
MATCH_CONDITION_MATCH_ALL A constant which can be used with the match_condition property of a Rule.
basis Gets the basis of this Rule.
compartment_id [Required] Gets the compartment_id of this Rule.
compartment_id_in_subtree Gets the compartment_id_in_subtree of this Rule.
conditions [Required] Gets the conditions of this Rule.
match_condition Gets the match_condition of this Rule.
resource_compartment_id [Required] Gets the resource_compartment_id of this Rule.

Methods

__init__(**kwargs) Initializes a new Rule object with values from keyword arguments.
MATCH_CONDITION_ANY = 'ANY'

A constant which can be used with the match_condition property of a Rule. This constant has a value of “ANY”

MATCH_CONDITION_MATCH_ALL = 'MATCH_ALL'

A constant which can be used with the match_condition property of a Rule. This constant has a value of “MATCH_ALL”

__init__(**kwargs)

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

Parameters:
  • basis (str) – The value to assign to the basis property of this Rule.
  • compartment_id (str) – The value to assign to the compartment_id property of this Rule.
  • resource_compartment_id (str) – The value to assign to the resource_compartment_id property of this Rule.
  • conditions (list[oci.fleet_apps_management.models.Condition]) – The value to assign to the conditions property of this Rule.
  • match_condition (str) – The value to assign to the match_condition property of this Rule. Allowed values for this property are: “MATCH_ALL”, “ANY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • compartment_id_in_subtree (bool) – The value to assign to the compartment_id_in_subtree property of this Rule.
basis

Gets the basis of this Rule. Based on what the rule is created. It can be based on a resourceProperty or a tag. If based on a tag, basis will be ‘definedTagEquals’ If based on a resource property, basis will be ‘inventoryProperties’

Returns:The basis of this Rule.
Return type:str
compartment_id

[Required] Gets the compartment_id of this Rule. Compartment Id for which the rule is created.

Returns:The compartment_id of this Rule.
Return type:str
compartment_id_in_subtree

Gets the compartment_id_in_subtree of this Rule. If set to true, resources will be returned for not only the provided compartment, but all compartments which descend from it. Which resources are returned and their field contents depends on the value of accessLevel. Default value for compartmentIdInSubtree is false

Returns:The compartment_id_in_subtree of this Rule.
Return type:bool
conditions

[Required] Gets the conditions of this Rule. Rule Conditions

Returns:The conditions of this Rule.
Return type:list[oci.fleet_apps_management.models.Condition]
match_condition

Gets the match_condition of this Rule. Match condition for the rule selection. Include resources that match all rules or any of the rules. Default value for matchCondition is ANY

Allowed values for this property are: “MATCH_ALL”, “ANY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The match_condition of this Rule.
Return type:str
resource_compartment_id

[Required] Gets the resource_compartment_id of this Rule. The Compartment ID to dynamically search resources. Provide the compartment ID to which the rule is applicable.

Returns:The resource_compartment_id of this Rule.
Return type:str