Resource: Lock
Represents a lock.
JSON representation |
---|
{ "name": string, "createTime": string, "type": enum ( |
Fields | |
---|---|
name |
Output only. The resource name. Format: projects/{project_id_or_number}/locations/{locationId}/catalogs/{catalogId}/databases/{databaseId}/locks/{lock_id} |
createTime |
Output only. The creation time of the lock. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
type |
The lock type. |
state |
Output only. The lock state. |
Union field resources . The resource that the lock will be created on. resources can be only one of the following: |
|
tableId |
The table ID (not fully qualified name) in the same database that the lock will be created on. The table must exist. |
Type
The lock type.
Enums | |
---|---|
TYPE_UNSPECIFIED |
The type is not specified. |
EXCLUSIVE |
An exclusive lock prevents another lock from being created on the same resource. |
State
The lock state.
Enums | |
---|---|
STATE_UNSPECIFIED |
The state is not specified. |
WAITING |
Waiting to acquire the lock. |
ACQUIRED |
The lock has been acquired. |
Methods |
|
---|---|
|
Checks the state of a lock specified by the lock ID. |
|
Creates a new lock. |
|
Deletes an existing lock specified by the lock ID. |
|
List all locks in a specified database. |