| 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="dialogflow_v2.html">Dialogflow API</a> . <a href="dialogflow_v2.projects.html">projects</a> . <a href="dialogflow_v2.projects.knowledgeBases.html">knowledgeBases</a> . <a href="dialogflow_v2.projects.knowledgeBases.documents.html">documents</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"></p> |
| 83 |
<p class="toc_element"> |
| 84 |
<code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> |
| 85 |
<p class="firstline"></p> |
| 86 |
<p class="toc_element"> |
| 87 |
<code><a href="#export">export(name, body=None, x__xgafv=None)</a></code></p> |
| 88 |
<p class="firstline"></p> |
| 89 |
<p class="toc_element"> |
| 90 |
<code><a href="#get">get(name, x__xgafv=None)</a></code></p> |
| 91 |
<p class="firstline"></p> |
| 92 |
<p class="toc_element"> |
| 93 |
<code><a href="#import_">import_(parent, body=None, x__xgafv=None)</a></code></p> |
| 94 |
<p class="firstline"></p> |
| 95 |
<p class="toc_element"> |
| 96 |
<code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> |
| 97 |
<p class="firstline"></p> |
| 98 |
<p class="toc_element"> |
| 99 |
<code><a href="#list_next">list_next()</a></code></p> |
| 100 |
<p class="firstline">Retrieves the next page of results.</p> |
| 101 |
<p class="toc_element"> |
| 102 |
<code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p> |
| 103 |
<p class="firstline"></p> |
| 104 |
<p class="toc_element"> |
| 105 |
<code><a href="#reload">reload(name, body=None, x__xgafv=None)</a></code></p> |
| 106 |
<p class="firstline"></p> |
| 107 |
<h3>Method Details</h3> |
| 108 |
<div class="method"> |
| 109 |
<code class="details" id="close">close()</code> |
| 110 |
<pre>Close httplib2 connections.</pre> |
| 111 |
</div> |
| 112 |
|
| 113 |
<div class="method"> |
| 114 |
<code class="details" id="create">create(parent, body=None, x__xgafv=None)</code> |
| 115 |
<pre> |
| 116 |
|
| 117 |
Args: |
| 118 |
parent: string, A parameter (required) |
| 119 |
body: object, The request body. |
| 120 |
The object takes the form of: |
| 121 |
|
| 122 |
{ |
| 123 |
"contentUri": "A String", |
| 124 |
"displayName": "A String", |
| 125 |
"enableAutoReload": True or False, |
| 126 |
"knowledgeTypes": [ |
| 127 |
"A String", |
| 128 |
], |
| 129 |
"latestReloadStatus": { |
| 130 |
"status": { |
| 131 |
"code": 42, |
| 132 |
"details": [ |
| 133 |
{ |
| 134 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 135 |
}, |
| 136 |
], |
| 137 |
"message": "A String", |
| 138 |
}, |
| 139 |
"time": "A String", |
| 140 |
}, |
| 141 |
"metadata": { |
| 142 |
"a_key": "A String", |
| 143 |
}, |
| 144 |
"mimeType": "A String", |
| 145 |
"name": "A String", |
| 146 |
"rawContent": "A String", |
| 147 |
"state": "A String", |
| 148 |
} |
| 149 |
|
| 150 |
x__xgafv: string, V1 error format. |
| 151 |
Allowed values |
| 152 |
1 - v1 error format |
| 153 |
2 - v2 error format |
| 154 |
|
| 155 |
Returns: |
| 156 |
An object of the form: |
| 157 |
|
| 158 |
{ |
| 159 |
"done": True or False, |
| 160 |
"error": { |
| 161 |
"code": 42, |
| 162 |
"details": [ |
| 163 |
{ |
| 164 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 165 |
}, |
| 166 |
], |
| 167 |
"message": "A String", |
| 168 |
}, |
| 169 |
"metadata": { |
| 170 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 171 |
}, |
| 172 |
"name": "A String", |
| 173 |
"response": { |
| 174 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 175 |
}, |
| 176 |
}</pre> |
| 177 |
</div> |
| 178 |
|
| 179 |
<div class="method"> |
| 180 |
<code class="details" id="delete">delete(name, x__xgafv=None)</code> |
| 181 |
<pre> |
| 182 |
|
| 183 |
Args: |
| 184 |
name: string, A parameter (required) |
| 185 |
x__xgafv: string, V1 error format. |
| 186 |
Allowed values |
| 187 |
1 - v1 error format |
| 188 |
2 - v2 error format |
| 189 |
|
| 190 |
Returns: |
| 191 |
An object of the form: |
| 192 |
|
| 193 |
{ |
| 194 |
"done": True or False, |
| 195 |
"error": { |
| 196 |
"code": 42, |
| 197 |
"details": [ |
| 198 |
{ |
| 199 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 200 |
}, |
| 201 |
], |
| 202 |
"message": "A String", |
| 203 |
}, |
| 204 |
"metadata": { |
| 205 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 206 |
}, |
| 207 |
"name": "A String", |
| 208 |
"response": { |
| 209 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 210 |
}, |
| 211 |
}</pre> |
| 212 |
</div> |
| 213 |
|
| 214 |
<div class="method"> |
| 215 |
<code class="details" id="export">export(name, body=None, x__xgafv=None)</code> |
| 216 |
<pre> |
| 217 |
|
| 218 |
Args: |
| 219 |
name: string, A parameter (required) |
| 220 |
body: object, The request body. |
| 221 |
The object takes the form of: |
| 222 |
|
| 223 |
{ |
| 224 |
"exportFullContent": True or False, |
| 225 |
"gcsDestination": { |
| 226 |
"uri": "A String", |
| 227 |
}, |
| 228 |
"smartMessagingPartialUpdate": True or False, |
| 229 |
} |
| 230 |
|
| 231 |
x__xgafv: string, V1 error format. |
| 232 |
Allowed values |
| 233 |
1 - v1 error format |
| 234 |
2 - v2 error format |
| 235 |
|
| 236 |
Returns: |
| 237 |
An object of the form: |
| 238 |
|
| 239 |
{ |
| 240 |
"done": True or False, |
| 241 |
"error": { |
| 242 |
"code": 42, |
| 243 |
"details": [ |
| 244 |
{ |
| 245 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 246 |
}, |
| 247 |
], |
| 248 |
"message": "A String", |
| 249 |
}, |
| 250 |
"metadata": { |
| 251 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 252 |
}, |
| 253 |
"name": "A String", |
| 254 |
"response": { |
| 255 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 256 |
}, |
| 257 |
}</pre> |
| 258 |
</div> |
| 259 |
|
| 260 |
<div class="method"> |
| 261 |
<code class="details" id="get">get(name, x__xgafv=None)</code> |
| 262 |
<pre> |
| 263 |
|
| 264 |
Args: |
| 265 |
name: string, A parameter (required) |
| 266 |
x__xgafv: string, V1 error format. |
| 267 |
Allowed values |
| 268 |
1 - v1 error format |
| 269 |
2 - v2 error format |
| 270 |
|
| 271 |
Returns: |
| 272 |
An object of the form: |
| 273 |
|
| 274 |
{ |
| 275 |
"contentUri": "A String", |
| 276 |
"displayName": "A String", |
| 277 |
"enableAutoReload": True or False, |
| 278 |
"knowledgeTypes": [ |
| 279 |
"A String", |
| 280 |
], |
| 281 |
"latestReloadStatus": { |
| 282 |
"status": { |
| 283 |
"code": 42, |
| 284 |
"details": [ |
| 285 |
{ |
| 286 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 287 |
}, |
| 288 |
], |
| 289 |
"message": "A String", |
| 290 |
}, |
| 291 |
"time": "A String", |
| 292 |
}, |
| 293 |
"metadata": { |
| 294 |
"a_key": "A String", |
| 295 |
}, |
| 296 |
"mimeType": "A String", |
| 297 |
"name": "A String", |
| 298 |
"rawContent": "A String", |
| 299 |
"state": "A String", |
| 300 |
}</pre> |
| 301 |
</div> |
| 302 |
|
| 303 |
<div class="method"> |
| 304 |
<code class="details" id="import_">import_(parent, body=None, x__xgafv=None)</code> |
| 305 |
<pre> |
| 306 |
|
| 307 |
Args: |
| 308 |
parent: string, A parameter (required) |
| 309 |
body: object, The request body. |
| 310 |
The object takes the form of: |
| 311 |
|
| 312 |
{ |
| 313 |
"documentTemplate": { |
| 314 |
"knowledgeTypes": [ |
| 315 |
"A String", |
| 316 |
], |
| 317 |
"metadata": { |
| 318 |
"a_key": "A String", |
| 319 |
}, |
| 320 |
"mimeType": "A String", |
| 321 |
}, |
| 322 |
"gcsSource": { |
| 323 |
"uris": [ |
| 324 |
"A String", |
| 325 |
], |
| 326 |
}, |
| 327 |
"importGcsCustomMetadata": True or False, |
| 328 |
} |
| 329 |
|
| 330 |
x__xgafv: string, V1 error format. |
| 331 |
Allowed values |
| 332 |
1 - v1 error format |
| 333 |
2 - v2 error format |
| 334 |
|
| 335 |
Returns: |
| 336 |
An object of the form: |
| 337 |
|
| 338 |
{ |
| 339 |
"done": True or False, |
| 340 |
"error": { |
| 341 |
"code": 42, |
| 342 |
"details": [ |
| 343 |
{ |
| 344 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 345 |
}, |
| 346 |
], |
| 347 |
"message": "A String", |
| 348 |
}, |
| 349 |
"metadata": { |
| 350 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 351 |
}, |
| 352 |
"name": "A String", |
| 353 |
"response": { |
| 354 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 355 |
}, |
| 356 |
}</pre> |
| 357 |
</div> |
| 358 |
|
| 359 |
<div class="method"> |
| 360 |
<code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code> |
| 361 |
<pre> |
| 362 |
|
| 363 |
Args: |
| 364 |
parent: string, A parameter (required) |
| 365 |
filter: string, A parameter |
| 366 |
pageSize: integer, A parameter |
| 367 |
pageToken: string, A parameter |
| 368 |
x__xgafv: string, V1 error format. |
| 369 |
Allowed values |
| 370 |
1 - v1 error format |
| 371 |
2 - v2 error format |
| 372 |
|
| 373 |
Returns: |
| 374 |
An object of the form: |
| 375 |
|
| 376 |
{ |
| 377 |
"documents": [ |
| 378 |
{ |
| 379 |
"contentUri": "A String", |
| 380 |
"displayName": "A String", |
| 381 |
"enableAutoReload": True or False, |
| 382 |
"knowledgeTypes": [ |
| 383 |
"A String", |
| 384 |
], |
| 385 |
"latestReloadStatus": { |
| 386 |
"status": { |
| 387 |
"code": 42, |
| 388 |
"details": [ |
| 389 |
{ |
| 390 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 391 |
}, |
| 392 |
], |
| 393 |
"message": "A String", |
| 394 |
}, |
| 395 |
"time": "A String", |
| 396 |
}, |
| 397 |
"metadata": { |
| 398 |
"a_key": "A String", |
| 399 |
}, |
| 400 |
"mimeType": "A String", |
| 401 |
"name": "A String", |
| 402 |
"rawContent": "A String", |
| 403 |
"state": "A String", |
| 404 |
}, |
| 405 |
], |
| 406 |
"nextPageToken": "A String", |
| 407 |
}</pre> |
| 408 |
</div> |
| 409 |
|
| 410 |
<div class="method"> |
| 411 |
<code class="details" id="list_next">list_next()</code> |
| 412 |
<pre>Retrieves the next page of results. |
| 413 |
|
| 414 |
Args: |
| 415 |
previous_request: The request for the previous page. (required) |
| 416 |
previous_response: The response from the request for the previous page. (required) |
| 417 |
|
| 418 |
Returns: |
| 419 |
A request object that you can call 'execute()' on to request the next |
| 420 |
page. Returns None if there are no more items in the collection. |
| 421 |
</pre> |
| 422 |
</div> |
| 423 |
|
| 424 |
<div class="method"> |
| 425 |
<code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code> |
| 426 |
<pre> |
| 427 |
|
| 428 |
Args: |
| 429 |
name: string, A parameter (required) |
| 430 |
body: object, The request body. |
| 431 |
The object takes the form of: |
| 432 |
|
| 433 |
{ |
| 434 |
"contentUri": "A String", |
| 435 |
"displayName": "A String", |
| 436 |
"enableAutoReload": True or False, |
| 437 |
"knowledgeTypes": [ |
| 438 |
"A String", |
| 439 |
], |
| 440 |
"latestReloadStatus": { |
| 441 |
"status": { |
| 442 |
"code": 42, |
| 443 |
"details": [ |
| 444 |
{ |
| 445 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 446 |
}, |
| 447 |
], |
| 448 |
"message": "A String", |
| 449 |
}, |
| 450 |
"time": "A String", |
| 451 |
}, |
| 452 |
"metadata": { |
| 453 |
"a_key": "A String", |
| 454 |
}, |
| 455 |
"mimeType": "A String", |
| 456 |
"name": "A String", |
| 457 |
"rawContent": "A String", |
| 458 |
"state": "A String", |
| 459 |
} |
| 460 |
|
| 461 |
updateMask: string, A parameter |
| 462 |
x__xgafv: string, V1 error format. |
| 463 |
Allowed values |
| 464 |
1 - v1 error format |
| 465 |
2 - v2 error format |
| 466 |
|
| 467 |
Returns: |
| 468 |
An object of the form: |
| 469 |
|
| 470 |
{ |
| 471 |
"done": True or False, |
| 472 |
"error": { |
| 473 |
"code": 42, |
| 474 |
"details": [ |
| 475 |
{ |
| 476 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 477 |
}, |
| 478 |
], |
| 479 |
"message": "A String", |
| 480 |
}, |
| 481 |
"metadata": { |
| 482 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 483 |
}, |
| 484 |
"name": "A String", |
| 485 |
"response": { |
| 486 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 487 |
}, |
| 488 |
}</pre> |
| 489 |
</div> |
| 490 |
|
| 491 |
<div class="method"> |
| 492 |
<code class="details" id="reload">reload(name, body=None, x__xgafv=None)</code> |
| 493 |
<pre> |
| 494 |
|
| 495 |
Args: |
| 496 |
name: string, A parameter (required) |
| 497 |
body: object, The request body. |
| 498 |
The object takes the form of: |
| 499 |
|
| 500 |
{ |
| 501 |
"contentUri": "A String", |
| 502 |
"importGcsCustomMetadata": True or False, |
| 503 |
"smartMessagingPartialUpdate": True or False, |
| 504 |
} |
| 505 |
|
| 506 |
x__xgafv: string, V1 error format. |
| 507 |
Allowed values |
| 508 |
1 - v1 error format |
| 509 |
2 - v2 error format |
| 510 |
|
| 511 |
Returns: |
| 512 |
An object of the form: |
| 513 |
|
| 514 |
{ |
| 515 |
"done": True or False, |
| 516 |
"error": { |
| 517 |
"code": 42, |
| 518 |
"details": [ |
| 519 |
{ |
| 520 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 521 |
}, |
| 522 |
], |
| 523 |
"message": "A String", |
| 524 |
}, |
| 525 |
"metadata": { |
| 526 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 527 |
}, |
| 528 |
"name": "A String", |
| 529 |
"response": { |
| 530 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 531 |
}, |
| 532 |
}</pre> |
| 533 |
</div> |
| 534 |
|
| 535 |
</body></html> |