Rule

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

Bases: object

Rule for DYNAMIC selection.

Methods

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

Attributes

basis Gets the basis of this Rule.
compartment_id [Required] Gets the compartment_id of this Rule.
conditions [Required] Gets the conditions of this Rule.
resource_compartment_id [Required] Gets the resource_compartment_id of this Rule.
__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.
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. Tenancy Id (Root Compartment Id)for which the rule is created.

Returns:The compartment_id of this Rule.
Return type:str
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]
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