Debian Codegraph @

docs/dyn/contentwarehouse_v1.projects.locations.documents.documentLinks.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="contentwarehouse_v1.html">Document AI Warehouse API</a> . <a href="contentwarehouse_v1.projects.html">projects</a> . <a href="contentwarehouse_v1.projects.locations.html">locations</a> . <a href="contentwarehouse_v1.projects.locations.documents.html">documents</a> . <a href="contentwarehouse_v1.projects.locations.documents.documentLinks.html">documentLinks</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Create a link between a source document and a target document.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, body=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Remove the link between the source and target documents.</p>
86 <h3>Method Details</h3>
87 <div class="method">
88 <code class="details" id="close">close()</code>
89 <pre>Close httplib2 connections.</pre>
90 </div>
91
92 <div class="method">
93 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
94 <pre>Create a link between a source document and a target document.
95
96 Args:
97 parent: string, Required. Parent of the document-link to be created. parent of document-link should be a document. Format: projects/{project_number}/locations/{location}/documents/{source_document_id}. (required)
98 body: object, The request body.
99 The object takes the form of:
100
101 { # Request message for DocumentLinkService.CreateDocumentLink.
102 &quot;documentLink&quot;: { # A document-link between source and target document. # Required. Document links associated with the source documents (source_document_id).
103 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the documentLink is created.
104 &quot;description&quot;: &quot;A String&quot;, # Description of this document-link.
105 &quot;name&quot;: &quot;A String&quot;, # 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}.
106 &quot;sourceDocumentReference&quot;: { # References to the documents. # Document references of the source document.
107 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the document is created.
108 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time when the document is deleted.
109 &quot;displayName&quot;: &quot;A String&quot;, # display_name of the referenced document; this name does not need to be consistent to the display_name in the Document proto, depending on the ACL constraint.
110 &quot;documentIsFolder&quot;: True or False, # The document type of the document being referenced.
111 &quot;documentIsLegalHoldFolder&quot;: True or False, # Document is a folder with legal hold.
112 &quot;documentIsRetentionFolder&quot;: True or False, # Document is a folder with retention policy.
113 &quot;documentName&quot;: &quot;A String&quot;, # Required. Name of the referenced document.
114 &quot;snippet&quot;: &quot;A String&quot;, # Stores the subset of the referenced document&#x27;s content. This is useful to allow user peek the information of the referenced document.
115 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the document is last updated.
116 },
117 &quot;state&quot;: &quot;A String&quot;, # 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.
118 &quot;targetDocumentReference&quot;: { # References to the documents. # Document references of the target document.
119 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the document is created.
120 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time when the document is deleted.
121 &quot;displayName&quot;: &quot;A String&quot;, # display_name of the referenced document; this name does not need to be consistent to the display_name in the Document proto, depending on the ACL constraint.
122 &quot;documentIsFolder&quot;: True or False, # The document type of the document being referenced.
123 &quot;documentIsLegalHoldFolder&quot;: True or False, # Document is a folder with legal hold.
124 &quot;documentIsRetentionFolder&quot;: True or False, # Document is a folder with retention policy.
125 &quot;documentName&quot;: &quot;A String&quot;, # Required. Name of the referenced document.
126 &quot;snippet&quot;: &quot;A String&quot;, # Stores the subset of the referenced document&#x27;s content. This is useful to allow user peek the information of the referenced document.
127 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the document is last updated.
128 },
129 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the documentLink is last updated.
130 },
131 &quot;requestMetadata&quot;: { # Meta information is used to improve the performance of the service. # The meta information collected about the document creator, used to enforce access control for the service.
132 &quot;userInfo&quot;: { # The user information. # Provides user unique identification and groups information.
133 &quot;groupIds&quot;: [ # The unique group identifications which the user is belong to. The format is &quot;group:[email protected]&quot;;
134 &quot;A String&quot;,
135 ],
136 &quot;id&quot;: &quot;A String&quot;, # A unique user identification string, as determined by the client. The maximum number of allowed characters is 255. Allowed characters include numbers 0 to 9, uppercase and lowercase letters, and restricted special symbols (:, @, +, -, _, ~) The format is &quot;user:[email protected]&quot;;
137 },
138 },
139 }
140
141 x__xgafv: string, V1 error format.
142 Allowed values
143 1 - v1 error format
144 2 - v2 error format
145
146 Returns:
147 An object of the form:
148
149 { # A document-link between source and target document.
150 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the documentLink is created.
151 &quot;description&quot;: &quot;A String&quot;, # Description of this document-link.
152 &quot;name&quot;: &quot;A String&quot;, # 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}.
153 &quot;sourceDocumentReference&quot;: { # References to the documents. # Document references of the source document.
154 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the document is created.
155 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time when the document is deleted.
156 &quot;displayName&quot;: &quot;A String&quot;, # display_name of the referenced document; this name does not need to be consistent to the display_name in the Document proto, depending on the ACL constraint.
157 &quot;documentIsFolder&quot;: True or False, # The document type of the document being referenced.
158 &quot;documentIsLegalHoldFolder&quot;: True or False, # Document is a folder with legal hold.
159 &quot;documentIsRetentionFolder&quot;: True or False, # Document is a folder with retention policy.
160 &quot;documentName&quot;: &quot;A String&quot;, # Required. Name of the referenced document.
161 &quot;snippet&quot;: &quot;A String&quot;, # Stores the subset of the referenced document&#x27;s content. This is useful to allow user peek the information of the referenced document.
162 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the document is last updated.
163 },
164 &quot;state&quot;: &quot;A String&quot;, # 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.
165 &quot;targetDocumentReference&quot;: { # References to the documents. # Document references of the target document.
166 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the document is created.
167 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. The time when the document is deleted.
168 &quot;displayName&quot;: &quot;A String&quot;, # display_name of the referenced document; this name does not need to be consistent to the display_name in the Document proto, depending on the ACL constraint.
169 &quot;documentIsFolder&quot;: True or False, # The document type of the document being referenced.
170 &quot;documentIsLegalHoldFolder&quot;: True or False, # Document is a folder with legal hold.
171 &quot;documentIsRetentionFolder&quot;: True or False, # Document is a folder with retention policy.
172 &quot;documentName&quot;: &quot;A String&quot;, # Required. Name of the referenced document.
173 &quot;snippet&quot;: &quot;A String&quot;, # Stores the subset of the referenced document&#x27;s content. This is useful to allow user peek the information of the referenced document.
174 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the document is last updated.
175 },
176 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the documentLink is last updated.
177 }</pre>
178 </div>
179
180 <div class="method">
181 <code class="details" id="delete">delete(name, body=None, x__xgafv=None)</code>
182 <pre>Remove the link between the source and target documents.
183
184 Args:
185 name: string, Required. The name of the document-link to be deleted. Format: projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_id}. (required)
186 body: object, The request body.
187 The object takes the form of:
188
189 { # Request message for DocumentLinkService.DeleteDocumentLink.
190 &quot;requestMetadata&quot;: { # Meta information is used to improve the performance of the service. # The meta information collected about the document creator, used to enforce access control for the service.
191 &quot;userInfo&quot;: { # The user information. # Provides user unique identification and groups information.
192 &quot;groupIds&quot;: [ # The unique group identifications which the user is belong to. The format is &quot;group:[email protected]&quot;;
193 &quot;A String&quot;,
194 ],
195 &quot;id&quot;: &quot;A String&quot;, # A unique user identification string, as determined by the client. The maximum number of allowed characters is 255. Allowed characters include numbers 0 to 9, uppercase and lowercase letters, and restricted special symbols (:, @, +, -, _, ~) The format is &quot;user:[email protected]&quot;;
196 },
197 },
198 }
199
200 x__xgafv: string, V1 error format.
201 Allowed values
202 1 - v1 error format
203 2 - v2 error format
204
205 Returns:
206 An object of the form:
207
208 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
209 }</pre>
210 </div>
211
212 </body></html>