Show / Hide Table of Contents

Class ResourceLock

Resource locks are used to prevent certain APIs from being called for the resource. A full lock prevents both updating the resource and deleting the resource. A delete lock 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.FilestorageService.Models
Assembly: OCI.DotNetSDK.Filestorage.dll
Syntax
public class ResourceLock

Properties

Message

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

A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.

RelatedResourceId

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

The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.

TimeCreated

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

When the lock was created.

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?

Type of the lock.

Remarks

Required

In this article
Back to top