ProjectsLocationsDocuments
class ProjectsLocationsDocuments extends Resource (View source)
The "documents" collection of methods.
Typical usage is:
$contentwarehouseService = new Google\Service\Contentwarehouse(...);
$documents = $contentwarehouseService->projects_locations_documents;
Methods
Creates a document. (documents.create)
Deletes a document. Returns NOT_FOUND if the document does not exist.
Gets the access control policy for a resource. Returns NOT_FOUND error if the resource does not exist. Returns an empty policy if the resource exists but does not have a policy set. (documents.fetchAcl)
Gets a document. Returns NOT_FOUND if the document does not exist.
Return all source document-links from the document. (documents.linkedSources)
Return all target document-links from the document. (documents.linkedTargets)
Lock the document so the document cannot be updated by other users.
Updates a document. Returns INVALID_ARGUMENT if the name of the document is non-empty and does not equal the existing name. (documents.patch)
Searches for documents using provided SearchDocumentsRequest. This call only returns documents that the caller has permission to search against.
Sets the access control policy for a resource. Replaces any existing policy.
Details
GoogleCloudContentwarehouseV1CreateDocumentResponse
create(string $parent, GoogleCloudContentwarehouseV1CreateDocumentRequest $postBody, array $optParams = [])
Creates a document. (documents.create)
GoogleProtobufEmpty
delete(string $name, GoogleCloudContentwarehouseV1DeleteDocumentRequest $postBody, array $optParams = [])
Deletes a document. Returns NOT_FOUND if the document does not exist.
(documents.delete)
GoogleCloudContentwarehouseV1FetchAclResponse
fetchAcl(string $resource, GoogleCloudContentwarehouseV1FetchAclRequest $postBody, array $optParams = [])
Gets the access control policy for a resource. Returns NOT_FOUND error if the resource does not exist. Returns an empty policy if the resource exists but does not have a policy set. (documents.fetchAcl)
GoogleCloudContentwarehouseV1Document
get(string $name, GoogleCloudContentwarehouseV1GetDocumentRequest $postBody, array $optParams = [])
Gets a document. Returns NOT_FOUND if the document does not exist.
(documents.get)
GoogleCloudContentwarehouseV1ListLinkedSourcesResponse
linkedSources(string $parent, GoogleCloudContentwarehouseV1ListLinkedSourcesRequest $postBody, array $optParams = [])
Return all source document-links from the document. (documents.linkedSources)
GoogleCloudContentwarehouseV1ListLinkedTargetsResponse
linkedTargets(string $parent, GoogleCloudContentwarehouseV1ListLinkedTargetsRequest $postBody, array $optParams = [])
Return all target document-links from the document. (documents.linkedTargets)
GoogleCloudContentwarehouseV1Document
lock(string $name, GoogleCloudContentwarehouseV1LockDocumentRequest $postBody, array $optParams = [])
Lock the document so the document cannot be updated by other users.
(documents.lock)
GoogleCloudContentwarehouseV1UpdateDocumentResponse
patch(string $name, GoogleCloudContentwarehouseV1UpdateDocumentRequest $postBody, array $optParams = [])
Updates a document. Returns INVALID_ARGUMENT if the name of the document is non-empty and does not equal the existing name. (documents.patch)
GoogleCloudContentwarehouseV1SearchDocumentsResponse
search(string $parent, GoogleCloudContentwarehouseV1SearchDocumentsRequest $postBody, array $optParams = [])
Searches for documents using provided SearchDocumentsRequest. This call only returns documents that the caller has permission to search against.
(documents.search)
GoogleCloudContentwarehouseV1SetAclResponse
setAcl(string $resource, GoogleCloudContentwarehouseV1SetAclRequest $postBody, array $optParams = [])
Sets the access control policy for a resource. Replaces any existing policy.
(documents.setAcl)