Class Rule
Rule for DYNAMIC selection.
Inherited Members
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. |
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 |
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 |
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