Show / Hide Table of Contents

Class EnforcedGovernanceRule

Represents the governance rule shown to the child which is a subset of governance rule resource in parent tenancy.

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

Properties

CompartmentId

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

The Oracle ID (OCID) of the child's root compartment to which the governance rule is attached.

Remarks

Required

GovernanceRuleDisplayName

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

Display name of the governance rule.

Remarks

Required

Id

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

The Oracle ID (OCID) of the enforced governance rule.

Remarks

Required

LifecycleState

Declaration
[Required(ErrorMessage = "LifecycleState is required.")]
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public GovernanceRuleLifecycleState? LifecycleState { get; set; }
Property Value
Type Description
GovernanceRuleLifecycleState?

The current state of the governance rule.

Remarks

Required

Template

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

Required

TimeCreated

Declaration
[Required(ErrorMessage = "TimeCreated is required.")]
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type Description
DateTime?

Date and time the governance rule was created. An RFC3339 formatted datetime string.
Example: 2016-08-25T21:10:29.600Z

Remarks

Required

TimeUpdated

Declaration
[Required(ErrorMessage = "TimeUpdated is required.")]
[JsonProperty(PropertyName = "timeUpdated")]
public DateTime? TimeUpdated { get; set; }
Property Value
Type Description
DateTime?

Date and time the governance rule was updated. An RFC3339 formatted datetime string.
Example: 2016-08-25T21:10:29.600Z

Remarks

Required

Type

Declaration
[Required(ErrorMessage = "Type is required.")]
[JsonProperty(PropertyName = "type")]
[JsonConverter(typeof(ResponseEnumConverter))]
public GovernanceRuleType? Type { get; set; }
Property Value
Type Description
GovernanceRuleType?

Type of the governance rule, can be one of QUOTA, TAG, ALLOWED_REGIONS.
Example: QUOTA

Remarks

Required

In this article
Back to top