Show / Hide Table of Contents

Class CreateTagDefaultDetails

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

Properties

CompartmentId

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

The OCID of the compartment. The tag default will be applied to all new resources created in this compartment.

Remarks

Required

IsRequired

Declaration
[JsonProperty(PropertyName = "isRequired")]
public bool? IsRequired { get; set; }
Property Value
Type Description
bool?

If you specify that a value is required, a value is set during resource creation (either by the user creating the resource or another tag defualt). If no value is set, resource creation is blocked.

  • If the isRequired flag is set to "true", the value is set during resource creation.
  • If the isRequired flag is set to "false", the value you enter is set during resource creation.
    Example: false

Locks

Declaration
[JsonProperty(PropertyName = "locks")]
public List<AddLockDetails> Locks { get; set; }
Property Value
Type Description
List<AddLockDetails>

Locks associated with this resource.

TagDefinitionId

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

The OCID of the tag definition. The tag default will always assign a default value for this tag definition.

Remarks

Required

Value

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

The default value for the tag definition. This will be applied to all new resources created in the compartment.

Remarks

Required

In this article
Back to top