Rule

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

Bases: object

Rule Selection Criteria

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. Rule to be be applied on.

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

[Required] Gets the compartment_id of this Rule. Please provide the root compartmentId (TenancyId).

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. Resource Compartment Id.Provide the compartmentId the resource belongs to.

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