Show / Hide Table of Contents

Class ResourceLock

Resource locks prevent certain APIs from being called for the resource. A full lock prevents both updating and deleting the resource. A lock delete prevents deleting the resource.

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

Properties

CompartmentId

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

The lock compartment ID.

Remarks

Required

Message

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

A message added by the lock creator. The message typically gives an indication of why the resource is locked.

RelatedResourceId

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

The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.

TimeCreated

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

Indicates when the lock was created, in the format defined by RFC 3339.

Type

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

Lock type.

Remarks

Required

In this article
Back to top