Show / Hide Table of Contents

Class Rule

Rule for DYNAMIC selection.

Inheritance
object
Rule
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.FleetappsmanagementService.Models
Assembly: OCI.DotNetSDK.Fleetappsmanagement.dll
Syntax
public class Rule

Properties

Basis

Declaration
[JsonProperty(PropertyName = "basis")]
public string Basis { get; set; }
Property Value
Type Description
string

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'

CompartmentId

Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type Description
string

Compartment Id for which the rule is created.

Remarks

Required

CompartmentIdInSubtree

Declaration
[JsonProperty(PropertyName = "compartmentIdInSubtree")]
public bool? CompartmentIdInSubtree { get; set; }
Property Value
Type Description
bool?

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

Conditions

Declaration
[Required(ErrorMessage = "Conditions is required.")]
[JsonProperty(PropertyName = "conditions")]
public List<Condition> Conditions { get; set; }
Property Value
Type Description
List<Condition>

Rule Conditions

Remarks

Required

MatchCondition

Declaration
[JsonProperty(PropertyName = "matchCondition")]
[JsonConverter(typeof(ResponseEnumConverter))]
public Rule.MatchConditionEnum? MatchCondition { get; set; }
Property Value
Type Description
Rule.MatchConditionEnum?

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

ResourceCompartmentId

Declaration
[Required(ErrorMessage = "ResourceCompartmentId is required.")]
[JsonProperty(PropertyName = "resourceCompartmentId")]
public string ResourceCompartmentId { get; set; }
Property Value
Type Description
string

The Compartment ID to dynamically search resources. Provide the compartment ID to which the rule is applicable.

Remarks

Required

In this article
Back to top