AddLockDetails

class oci.limits.models.AddLockDetails(**kwargs)

Bases: object

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.

Attributes:

TYPE_DELETE

A constant which can be used with the type property of a AddLockDetails.

TYPE_FULL

A constant which can be used with the type property of a AddLockDetails.

message

Gets the message of this AddLockDetails.

related_resource_id

Gets the related_resource_id of this AddLockDetails.

type

[Required] Gets the type of this AddLockDetails.

Methods:

__init__(**kwargs)

Initializes a new AddLockDetails object with values from keyword arguments.

TYPE_DELETE = 'DELETE'

A constant which can be used with the type property of a AddLockDetails. This constant has a value of “DELETE”

TYPE_FULL = 'FULL'

A constant which can be used with the type property of a AddLockDetails. This constant has a value of “FULL”

__init__(**kwargs)

Initializes a new AddLockDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • type (str) – The value to assign to the type property of this AddLockDetails. Allowed values for this property are: “FULL”, “DELETE”

  • related_resource_id (str) – The value to assign to the related_resource_id property of this AddLockDetails.

  • message (str) – The value to assign to the message property of this AddLockDetails.

property message

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

Returns

The message of this AddLockDetails.

Return type

str

property related_resource_id

Gets the related_resource_id of this AddLockDetails. The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.

Returns

The related_resource_id of this AddLockDetails.

Return type

str

property type

[Required] Gets the type of this AddLockDetails. Lock type.

Allowed values for this property are: “FULL”, “DELETE”

Returns

The type of this AddLockDetails.

Return type

str