SelectionCriteria

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

Bases: object

Rule Selection Criteria for DYNAMIC resource selection for a GENERIC fleet. Rules define what resources are members of this fleet. All resources that meet the criteria are added automatically.

Attributes

MATCH_CONDITION_ANY A constant which can be used with the match_condition property of a SelectionCriteria.
MATCH_CONDITION_MATCH_ALL A constant which can be used with the match_condition property of a SelectionCriteria.
match_condition [Required] Gets the match_condition of this SelectionCriteria.
rules [Required] Gets the rules of this SelectionCriteria.

Methods

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

A constant which can be used with the match_condition property of a SelectionCriteria. 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 SelectionCriteria. This constant has a value of “MATCH_ALL”

__init__(**kwargs)

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

Parameters:
  • match_condition (str) – The value to assign to the match_condition property of this SelectionCriteria. 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’.
  • rules (list[oci.fleet_apps_management.models.Rule]) – The value to assign to the rules property of this SelectionCriteria.
match_condition

[Required] Gets the match_condition of this SelectionCriteria. Match condition for the rule selection. Include resources that match all rules or any of the rules.

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 SelectionCriteria.
Return type:str
rules

[Required] Gets the rules of this SelectionCriteria. Rules.

Returns:The rules of this SelectionCriteria.
Return type:list[oci.fleet_apps_management.models.Rule]