Show / Hide Table of Contents

Class GovernanceRule

Represents a rule in parent tenancy which governs resources in child tenancies.

Inheritance
object
GovernanceRule
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 GovernanceRule

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 root compartment containing the governance rule.

Remarks

Required

CreationOption

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

The type of option used to create the governance rule, could be one of TEMPLATE or CLONE.
Example: TEMPLATE

Remarks

Required

DefinedTags

Declaration
[Required(ErrorMessage = "DefinedTags is required.")]
[JsonProperty(PropertyName = "definedTags")]
public Dictionary<string, Dictionary<string, object>> DefinedTags { get; set; }
Property Value
Type Description
Dictionary<string, Dictionary<string, object>>

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace": {"bar-key": "value"}}

Remarks

Required

Description

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

Description of the governance rule.

DisplayName

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

Display name of the governance rule.

Remarks

Required

FreeformTags

Declaration
[Required(ErrorMessage = "FreeformTags is required.")]
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
Type Description
Dictionary<string, string>

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

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

RelatedResourceId

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

The Oracle ID (OCID) of the resource, which was used as a template to create this governance rule.

SystemTags

Declaration
[JsonProperty(PropertyName = "systemTags")]
public Dictionary<string, Dictionary<string, object>> SystemTags { get; set; }
Property Value
Type Description
Dictionary<string, Dictionary<string, object>>

System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud": {"free-tier-retained": "true"}}

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