Lock(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Represents a lock.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes | |
---|---|
Name | Description |
table_id |
str
The table ID (not fully qualified name) in the same database that the lock will be created on. The table must exist. This field is a member of oneof _ resources .
|
name |
str
Output only. The resource name. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}/locks/{lock_id} |
create_time |
google.protobuf.timestamp_pb2.Timestamp
Output only. The creation time of the lock. |
type_ |
google.cloud.bigquery_biglake_v1alpha1.types.Lock.Type
The lock type. |
state |
google.cloud.bigquery_biglake_v1alpha1.types.Lock.State
Output only. The lock state. |
Classes
State
State(value)
The lock state.
Values: STATE_UNSPECIFIED (0): The state is not specified. WAITING (1): Waiting to acquire the lock. ACQUIRED (2): The lock has been acquired.
Type
Type(value)
The lock type.
Values: TYPE_UNSPECIFIED (0): The type is not specified. EXCLUSIVE (1): An exclusive lock prevents another lock from being created on the same resource.