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.IdentityService.Models
Assembly: OCI.DotNetSDK.Identity.dll
Syntax
public class ResourceLock
Properties
IsActive
Declaration
[JsonProperty(PropertyName = "isActive")]
public bool? IsActive { get; set; }
Property Value
Type | Description |
---|---|
bool? | Indicates if the lock is active or not. For example, if there are mutliple FULL locks, the first-created FULL lock will be effective. |
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