Class AddLockDetails
Request payload to add lock to the resource. The FULL lock type allows no modifications (delete, create, update). The DELETE lock type allows all modifications, but delete is not allowed. type: object
Inherited Members
Namespace: Oci.MediaservicesService.Models
Assembly: OCI.DotNetSDK.Mediaservices.dll
Syntax
public class AddLockDetails
Properties
CompartmentId
Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type | Description |
---|---|
string | The compartment ID of the lock. |
Remarks
Required
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 Target that is locking this Target. Indicates that deleting this Target 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(StringEnumConverter))]
public AddLockDetails.TypeEnum? Type { get; set; }
Property Value
Type | Description |
---|---|
AddLockDetails.TypeEnum? | Type of the lock. |
Remarks
Required