# Class DocumentLink (0.11.0)

0.11.0 (latest) 0.10.0 0.9.0 0.8.0 0.7.16 0.6.0 0.5.1 0.4.1 0.3.1 0.2.1 0.1.0

    DocumentLink(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A document-link between source and target document.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Name of this document-link. It is required that the parent derived form the name to be consistent with the source document reference. Otherwise an exception will be thrown. Format: projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_id}. |
| `source_document_reference` | `https://docs.cloud.google.com/python/docs/reference/contentwarehouse/latest/google.cloud.contentwarehouse_v1.types.DocumentReference` Document references of the source document. |
| `target_document_reference` | `https://docs.cloud.google.com/python/docs/reference/contentwarehouse/latest/google.cloud.contentwarehouse_v1.types.DocumentReference` Document references of the target document. |
| `description` | `str` Description of this document-link. |
| `update_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The time when the documentLink is last updated. |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The time when the documentLink is created. |
| `state` | `https://docs.cloud.google.com/python/docs/reference/contentwarehouse/latest/google.cloud.contentwarehouse_v1.types.DocumentLink.State` The state of the documentlink. If target node has been deleted, the link is marked as invalid. Removing a source node will result in removal of all associated links. |

## Classes

### State

    State(value)

The state of a document-link.