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

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

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