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
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