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.
Inherited Members
Namespace: Oci.DatabasetoolsService.Models
Assembly: OCI.DotNetSDK.Databasetools.dll
Syntax
public class ResourceLockProperties
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