# Class Lock (0.8.0)

0.8.0 (latest) 0.7.0 0.6.0 0.5.0 0.4.15 0.3.0 0.2.0 0.1.1

    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_` | `https://docs.cloud.google.com/python/docs/reference/biglake/latest/google.cloud.bigquery_biglake_v1alpha1.types.Lock.Type` The lock type. |
| `state` | `https://docs.cloud.google.com/python/docs/reference/biglake/latest/google.cloud.bigquery_biglake_v1alpha1.types.Lock.State` Output only. The lock state. |

## Classes

### State

    State(value)

The lock state.

### Type

    Type(value)

The lock type.