source: vendor/google/apiclient-services/src/Contentwarehouse/Resource/ProjectsLocationsDocumentsDocumentLinks.php@ f9c482b

Last change on this file since f9c482b was f9c482b, checked in by Vlado 222039 <vlado.popovski@…>, 2 weeks ago

Upload new project files

  • Property mode set to 100644
File size: 3.2 KB
Line 
1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\Contentwarehouse\Resource;
19
20use Google\Service\Contentwarehouse\GoogleCloudContentwarehouseV1CreateDocumentLinkRequest;
21use Google\Service\Contentwarehouse\GoogleCloudContentwarehouseV1DeleteDocumentLinkRequest;
22use Google\Service\Contentwarehouse\GoogleCloudContentwarehouseV1DocumentLink;
23use Google\Service\Contentwarehouse\GoogleProtobufEmpty;
24
25/**
26 * The "documentLinks" collection of methods.
27 * Typical usage is:
28 * <code>
29 * $contentwarehouseService = new Google\Service\Contentwarehouse(...);
30 * $documentLinks = $contentwarehouseService->projects_locations_documents_documentLinks;
31 * </code>
32 */
33class ProjectsLocationsDocumentsDocumentLinks extends \Google\Service\Resource
34{
35 /**
36 * Create a link between a source document and a target document.
37 * (documentLinks.create)
38 *
39 * @param string $parent Required. Parent of the document-link to be created.
40 * parent of document-link should be a document. Format: projects/{project_numbe
41 * r}/locations/{location}/documents/{source_document_id}.
42 * @param GoogleCloudContentwarehouseV1CreateDocumentLinkRequest $postBody
43 * @param array $optParams Optional parameters.
44 * @return GoogleCloudContentwarehouseV1DocumentLink
45 * @throws \Google\Service\Exception
46 */
47 public function create($parent, GoogleCloudContentwarehouseV1CreateDocumentLinkRequest $postBody, $optParams = [])
48 {
49 $params = ['parent' => $parent, 'postBody' => $postBody];
50 $params = array_merge($params, $optParams);
51 return $this->call('create', [$params], GoogleCloudContentwarehouseV1DocumentLink::class);
52 }
53 /**
54 * Remove the link between the source and target documents.
55 * (documentLinks.delete)
56 *
57 * @param string $name Required. The name of the document-link to be deleted.
58 * Format: projects/{project_number}/locations/{location}/documents/{source_docu
59 * ment_id}/documentLinks/{document_link_id}.
60 * @param GoogleCloudContentwarehouseV1DeleteDocumentLinkRequest $postBody
61 * @param array $optParams Optional parameters.
62 * @return GoogleProtobufEmpty
63 * @throws \Google\Service\Exception
64 */
65 public function delete($name, GoogleCloudContentwarehouseV1DeleteDocumentLinkRequest $postBody, $optParams = [])
66 {
67 $params = ['name' => $name, 'postBody' => $postBody];
68 $params = array_merge($params, $optParams);
69 return $this->call('delete', [$params], GoogleProtobufEmpty::class);
70 }
71}
72
73// Adding a class alias for backwards compatibility with the previous class name.
74class_alias(ProjectsLocationsDocumentsDocumentLinks::class, 'Google_Service_Contentwarehouse_Resource_ProjectsLocationsDocumentsDocumentLinks');
Note: See TracBrowser for help on using the repository browser.