Class CreateGovernanceRuleDetails
Request object for CreateGovernanceRule operation.
Inherited Members
Namespace: Oci.GovernancerulescontrolplaneService.Models
Assembly: OCI.DotNetSDK.Governancerulescontrolplane.dll
Syntax
public class CreateGovernanceRuleDetailsProperties
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(StringEnumConverter))]
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.
 | 
Remarks
Required
DefinedTags
Declaration
[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"}} | 
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
[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"} | 
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. | 
Template
Declaration
[Required(ErrorMessage = "Template is required.")]
[JsonProperty(PropertyName = "template")]
public Template Template { get; set; }Property Value
| Type | Description | 
|---|---|
| Template | 
Remarks
Required
Type
Declaration
[Required(ErrorMessage = "Type is required.")]
[JsonProperty(PropertyName = "type")]
[JsonConverter(typeof(StringEnumConverter))]
public GovernanceRuleType? Type { get; set; }Property Value
| Type | Description | 
|---|---|
| GovernanceRuleType? | Type of the governance rule, can be one of QUOTA, TAG, ALLOWED_REGIONS.
 | 
Remarks
Required