Rule¶
- class oci.fleet_apps_management.models.Rule(**kwargs)¶
Bases:
objectRule for DYNAMIC selection.
Attributes:
A constant which can be used with the match_condition property of a Rule.
A constant which can be used with the match_condition property of a Rule.
Gets the basis of this Rule.
[Required] Gets the compartment_id of this Rule.
Gets the compartment_id_in_subtree of this Rule.
[Required] Gets the conditions of this Rule.
Gets the match_condition of this Rule.
[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.
- property 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
- property 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
- property 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
- property conditions¶
[Required] Gets the conditions of this Rule. Rule Conditions
- Returns
The conditions of this Rule.
- Return type
- property 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
- property 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