class ProjectsLocationsDocumentsDocumentLinks extends Resource (View source)

The "documentLinks" collection of methods.

Typical usage is:

 $contentwarehouseService = new Google\Service\Contentwarehouse(...);
 $documentLinks = $contentwarehouseService->projects_locations_documents_documentLinks;

Methods

create(string $parent, GoogleCloudContentwarehouseV1CreateDocumentLinkRequest $postBody, array $optParams = [])

Create a link between a source document and a target document.

delete(string $name, GoogleCloudContentwarehouseV1DeleteDocumentLinkRequest $postBody, array $optParams = [])

Remove the link between the source and target documents.

Details

GoogleCloudContentwarehouseV1DocumentLink create(string $parent, GoogleCloudContentwarehouseV1CreateDocumentLinkRequest $postBody, array $optParams = [])

Create a link between a source document and a target document.

(documentLinks.create)

Parameters

string $parent

Required. Parent of the document-link to be created. parent of document-link should be a document. Format: projects/{project_numbe r}/locations/{location}/documents/{source_document_id}.

GoogleCloudContentwarehouseV1CreateDocumentLinkRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudContentwarehouseV1DocumentLink

Exceptions

Exception

GoogleProtobufEmpty delete(string $name, GoogleCloudContentwarehouseV1DeleteDocumentLinkRequest $postBody, array $optParams = [])

Remove the link between the source and target documents.

(documentLinks.delete)

Parameters

string $name

Required. The name of the document-link to be deleted. Format: projects/{project_number}/locations/{location}/documents/{source_docu ment_id}/documentLinks/{document_link_id}.

GoogleCloudContentwarehouseV1DeleteDocumentLinkRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleProtobufEmpty

Exceptions

Exception