| 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 |
"documentLink": { # A document-link between source and target document. # Required. Document links associated with the source documents (source_document_id). |
| 103 |
"createTime": "A String", # Output only. The time when the documentLink is created. |
| 104 |
"description": "A String", # Description of this document-link. |
| 105 |
"name": "A String", # 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 |
"sourceDocumentReference": { # References to the documents. # Document references of the source document. |
| 107 |
"createTime": "A String", # Output only. The time when the document is created. |
| 108 |
"deleteTime": "A String", # Output only. The time when the document is deleted. |
| 109 |
"displayName": "A String", # 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 |
"documentIsFolder": True or False, # The document type of the document being referenced. |
| 111 |
"documentIsLegalHoldFolder": True or False, # Document is a folder with legal hold. |
| 112 |
"documentIsRetentionFolder": True or False, # Document is a folder with retention policy. |
| 113 |
"documentName": "A String", # Required. Name of the referenced document. |
| 114 |
"snippet": "A String", # Stores the subset of the referenced document's content. This is useful to allow user peek the information of the referenced document. |
| 115 |
"updateTime": "A String", # Output only. The time when the document is last updated. |
| 116 |
}, |
| 117 |
"state": "A String", # 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 |
"targetDocumentReference": { # References to the documents. # Document references of the target document. |
| 119 |
"createTime": "A String", # Output only. The time when the document is created. |
| 120 |
"deleteTime": "A String", # Output only. The time when the document is deleted. |
| 121 |
"displayName": "A String", # 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 |
"documentIsFolder": True or False, # The document type of the document being referenced. |
| 123 |
"documentIsLegalHoldFolder": True or False, # Document is a folder with legal hold. |
| 124 |
"documentIsRetentionFolder": True or False, # Document is a folder with retention policy. |
| 125 |
"documentName": "A String", # Required. Name of the referenced document. |
| 126 |
"snippet": "A String", # Stores the subset of the referenced document's content. This is useful to allow user peek the information of the referenced document. |
| 127 |
"updateTime": "A String", # Output only. The time when the document is last updated. |
| 128 |
}, |
| 129 |
"updateTime": "A String", # Output only. The time when the documentLink is last updated. |
| 130 |
}, |
| 131 |
"requestMetadata": { # 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 |
"userInfo": { # The user information. # Provides user unique identification and groups information. |
| 133 |
"groupIds": [ # The unique group identifications which the user is belong to. The format is "group:[email protected]"; |
| 134 |
"A String", |
| 135 |
], |
| 136 |
"id": "A String", # 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 "user:[email protected]"; |
| 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 |
"createTime": "A String", # Output only. The time when the documentLink is created. |
| 151 |
"description": "A String", # Description of this document-link. |
| 152 |
"name": "A String", # 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 |
"sourceDocumentReference": { # References to the documents. # Document references of the source document. |
| 154 |
"createTime": "A String", # Output only. The time when the document is created. |
| 155 |
"deleteTime": "A String", # Output only. The time when the document is deleted. |
| 156 |
"displayName": "A String", # 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 |
"documentIsFolder": True or False, # The document type of the document being referenced. |
| 158 |
"documentIsLegalHoldFolder": True or False, # Document is a folder with legal hold. |
| 159 |
"documentIsRetentionFolder": True or False, # Document is a folder with retention policy. |
| 160 |
"documentName": "A String", # Required. Name of the referenced document. |
| 161 |
"snippet": "A String", # Stores the subset of the referenced document's content. This is useful to allow user peek the information of the referenced document. |
| 162 |
"updateTime": "A String", # Output only. The time when the document is last updated. |
| 163 |
}, |
| 164 |
"state": "A String", # 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 |
"targetDocumentReference": { # References to the documents. # Document references of the target document. |
| 166 |
"createTime": "A String", # Output only. The time when the document is created. |
| 167 |
"deleteTime": "A String", # Output only. The time when the document is deleted. |
| 168 |
"displayName": "A String", # 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 |
"documentIsFolder": True or False, # The document type of the document being referenced. |
| 170 |
"documentIsLegalHoldFolder": True or False, # Document is a folder with legal hold. |
| 171 |
"documentIsRetentionFolder": True or False, # Document is a folder with retention policy. |
| 172 |
"documentName": "A String", # Required. Name of the referenced document. |
| 173 |
"snippet": "A String", # Stores the subset of the referenced document's content. This is useful to allow user peek the information of the referenced document. |
| 174 |
"updateTime": "A String", # Output only. The time when the document is last updated. |
| 175 |
}, |
| 176 |
"updateTime": "A String", # 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 |
"requestMetadata": { # 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 |
"userInfo": { # The user information. # Provides user unique identification and groups information. |
| 192 |
"groupIds": [ # The unique group identifications which the user is belong to. The format is "group:[email protected]"; |
| 193 |
"A String", |
| 194 |
], |
| 195 |
"id": "A String", # 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 "user:[email protected]"; |
| 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> |